chore: update according to GQL changes #100
pull-request.yml
on: pull_request
Verify
/
Lint
26s
Verify
/
Test
4m 11s
Annotations
10 errors
|
packages/client/src/actions/reserve.test.ts > Given an Aave Market reserve > When fetching the supply APY history for it > Then it should return a time series for the specified window LAST_DAY:
packages/client/src/actions/reserve.test.ts#L93
AssertionError: expected 0 to be greater than 0
❯ packages/client/src/actions/reserve.test.ts:93:38
|
|
packages/client/src/actions/reserve.test.ts > Given an Aave Market reserve > When fetching the borrow APY history for it > Then it should return a time series for the specified window LAST_YEAR:
packages/client/src/actions/reserve.test.ts#L69
AssertionError: expected 0 to be greater than 0
❯ packages/client/src/actions/reserve.test.ts:69:38
|
|
packages/client/src/actions/reserve.test.ts > Given an Aave Market reserve > When fetching the borrow APY history for it > Then it should return a time series for the specified window LAST_SIX_MONTHS:
packages/client/src/actions/reserve.test.ts#L69
AssertionError: expected 0 to be greater than 0
❯ packages/client/src/actions/reserve.test.ts:69:38
|
|
packages/client/src/actions/reserve.test.ts > Given an Aave Market reserve > When fetching the borrow APY history for it > Then it should return a time series for the specified window LAST_MONTH:
packages/client/src/actions/reserve.test.ts#L69
AssertionError: expected 0 to be greater than 0
❯ packages/client/src/actions/reserve.test.ts:69:38
|
|
packages/client/src/actions/reserve.test.ts > Given an Aave Market reserve > When fetching the borrow APY history for it > Then it should return a time series for the specified window LAST_WEEK:
packages/client/src/actions/reserve.test.ts#L69
AssertionError: expected 0 to be greater than 0
❯ packages/client/src/actions/reserve.test.ts:69:38
|
|
packages/client/src/actions/reserve.test.ts > Given an Aave Market reserve > When fetching the borrow APY history for it > Then it should return a time series for the specified window LAST_DAY:
packages/client/src/actions/reserve.test.ts#L69
AssertionError: expected 0 to be greater than 0
❯ packages/client/src/actions/reserve.test.ts:69:38
|
|
packages/client/src/actions/markets.test.ts > Given the Aave Protocol v3 > When fetching user market state for a new user > Then it should return the expected data for a user that has never interacted with the market:
packages/client/src/actions/markets.test.ts#L99
Error: Snapshot mismatched
- Expected
+ Received
{
+ "__typename": "MarketUserState",
"availableBorrowsBase": Any<String>,
- "currentLiquidationThreshold": Any<String>,
+ "currentLiquidationThreshold": {
+ "__typename": "PercentValue",
+ "decimals": 0,
+ "formatted": "0",
+ "raw": "0",
+ "value": "0",
+ },
+ "eModeEnabled": false,
"healthFactor": Any<String>,
- "ltv": Any<String>,
- "netAPY": Any<String>,
+ "isInIsolationMode": false,
+ "ltv": {
+ "__typename": "PercentValue",
+ "decimals": 0,
+ "formatted": "0",
+ "raw": "0",
+ "value": "0",
+ },
+ "netAPY": {
+ "__typename": "PercentValue",
+ "decimals": 0,
+ "formatted": "0",
+ "raw": "0",
+ "value": "0",
+ },
"netWorth": Any<String>,
"totalCollateralBase": Any<String>,
"totalDebtBase": Any<String>,
}
❯ packages/client/src/actions/markets.test.ts:99:28
|
|
packages/client/src/actions/markets.test.ts > Given the Aave Protocol v3 > When fetching a single market > Then it should return supply reserves APYs in the expected order of magnitude:
packages/client/src/actions/markets.test.ts#L69
AssertionError: expected [ { token: 'WETH', …(1) }, …(48) ] to deeply equal [ { token: 'WETH', …(1) }, …(48) ]
- Expected
+ Received
@@ -1,16 +1,16 @@
[
{
- "apy": toBeBigDecimalCloseTo<"4", 0>,
+ "apy": "0.437092930632261602528242707",
"token": "WETH",
},
{
- "apy": toBeBigDecimalCloseTo<"3", 0>,
+ "apy": "0.038201332671184850092643984",
"token": "USDC",
},
{
- "apy": toBeBigDecimalCloseTo<"3", 0>,
+ "apy": "0.037998810047443793528461769",
"token": "USDS",
},
Any<Object>,
Any<Object>,
Any<Object>,
❯ packages/client/src/actions/markets.test.ts:69:9
|
|
packages/client/src/actions/markets.test.ts > Given the Aave Protocol v3 > When fetching markets by chain ID(s) > Then it should return the expected data for each market:
packages/client/src/actions/markets.test.ts#L24
Error: Snapshot `Given the Aave Protocol v3 > When fetching markets by chain ID(s) > Then it should return the expected data for each market 1` mismatched
- Expected
+ Received
{
"__typename": "Market",
- "address": "0x0AA97c284e98396202b6A04024F5E2c65026F3c0",
+ "address": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
"borrowReserves": Any<Array>,
"chain": {
"__typename": "Chain",
"chainId": 1,
"explorerUrl": "https://etherscan.io",
"icon": "https://statics.aave.com/ethereum.svg",
"name": "Ethereum",
},
"eModeCategories": Any<Array>,
"icon": "https://statics.aave.com/ethereum.svg",
- "name": "AaveV3EthereumEtherFi",
+ "name": "AaveV3Ethereum",
"supplyReserves": Any<Array>,
"totalAvailableLiquidity": Any<String>,
"totalMarketSize": Any<String>,
"userState": null,
}
❯ packages/client/src/actions/markets.test.ts:24:24
❯ packages/client/src/actions/markets.test.ts:23:20
|
|
packages/client/src/actions/borrow.test.ts > Given an Aave Market > And a user with a supply position > When the user set the supply as collateral > Then it should be possible to borrow native from the reserve:
packages/client/src/actions/borrow.test.ts#L189
AssertionError: expected +0 to be 1 // Object.is equality
- Expected
+ Received
- 1
+ 0
❯ packages/client/src/actions/borrow.test.ts:189:43
|