Merge pull request #27 from aave/chore/update-gql-breaking-change #94
cd.yml
on: push
Verify
/
Lint
24s
Verify
/
Test
2m 22s
Annotations
10 errors
|
packages/client/src/actions/repay.test.ts > Given an Aave Market > And a user with a borrow position > And the reserve allows repaying in native tokens > When the user repays their loan in native tokens:
packages/client/src/actions/repay.test.ts#L50
InvariantError: Expected result to be Ok: Service Unavailable
❯ S packages/types/src/helpers/assertions.ts:36:11
❯ supplyAndBorrow packages/client/src/actions/repay.test.ts:50:3
❯ packages/client/src/actions/repay.test.ts:137:11
|
|
packages/client/src/actions/repay.test.ts > Given an Aave Market > And a user with a borrow position > When the user repays their loan:
packages/client/src/actions/repay.test.ts#L65
InvariantError: Expected result to be Ok: Bad Gateway
❯ S packages/types/src/helpers/assertions.ts:36:11
❯ packages/client/src/actions/repay.test.ts:65:9
|
|
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#L98
InvariantError: Expected result to be Ok: Service Unavailable
❯ S packages/types/src/helpers/assertions.ts:36:11
❯ packages/client/src/actions/markets.test.ts:98:7
|
|
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#L62
InvariantError: Expected result to be Ok: Service Unavailable
❯ S packages/types/src/helpers/assertions.ts:36:11
❯ packages/client/src/actions/markets.test.ts:62:7
|
|
packages/client/src/actions/markets.test.ts > Given the Aave Protocol v3 > When fetching a single market > Then it should return the expected data for the market:
packages/client/src/actions/markets.test.ts#L42
InvariantError: Expected result to be Ok: Service Unavailable
❯ S packages/types/src/helpers/assertions.ts:36:11
❯ packages/client/src/actions/markets.test.ts:42:7
|
|
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#L21
InvariantError: Expected result to be Ok: Service Unavailable
❯ S packages/types/src/helpers/assertions.ts:36:11
❯ packages/client/src/actions/markets.test.ts:21:7
|
|
packages/client/src/actions/eMode.test.ts > Given an Aave Market > And the user has some supply positions > When the user enables an E-Mode category involving some of the supply positions > Then any user supply position that are not included in the E-Mode category should not be able to be used as collateral:
packages/client/src/actions/eMode.test.ts#L172
AssertionError: expected [ { …(7) }, { …(7) } ] to match object [ ObjectContaining{…}, …(1) ]
(28 matching properties omitted from actual)
- Expected
+ Received
@@ -1,10 +1,49 @@
[
- ObjectContaining {
- "canBeCollateral": false,
- "currency": ObjectContaining {
+ {
+ "__typename": "MarketUserReserveSupplyPosition",
+ "apy": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "3.82",
+ "raw": "38201048194922231719309079",
+ "value": "0.038201048194922231719309079",
+ },
+ "balance": {
+ "__typename": "TokenAmount",
+ "amount": {
+ "__typename": "DecimalValue",
+ "decimals": 6,
+ "raw": "10000",
+ "value": "0.01",
+ },
+ "usd": "0.0099986",
+ "usdPerToken": "0.99986",
+ },
+ "canBeCollateral": true,
+ "currency": {
+ "__typename": "Currency",
"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
+ "chainId": 99999999,
+ "decimals": 6,
+ "imageUrl": "https://token-logos.family.co/asset?id=99999999:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48&token=USDC",
+ "name": "USD Coin",
+ "symbol": "USDC",
+ },
+ "isCollateral": true,
+ "market": {
+ "__typename": "MarketInfo",
+ "address": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
+ "chain": {
+ "__typename": "Chain",
+ "chainId": 99999999,
+ "explorerUrl": "https://dashboard.tenderly.co/explorer/vnet/27ff3c60-0e2c-4d46-8190-f5170dc7da8c",
+ "icon": "https://statics.aave.com/ethereum.svg",
+ "name": "Forked Ethereum",
+ },
+ "icon": "https://statics.aave.com/ethereum.svg",
+ "name": "AaveV3ForkedEthereum",
},
},
ObjectContaining {
"canBeCollateral": true,
"currency": ObjectContaining {
❯ packages/client/src/actions/eMode.test.ts:172:30
|
|
packages/client/src/actions/eMode.test.ts > Given an Aave Market > When a user enables an E-Mode category for the given market > Then the market's reserves should have user state that reflects the selected E-Mode category settings:
packages/client/src/actions/eMode.test.ts#L70
AssertionError: expected { __typename: 'Reserve', …(16) } to match object { userState: ObjectContaining{…} }
(106 matching properties omitted from actual)
- Expected
+ Received
{
- "userState": ObjectContaining {
+ "userState": {
+ "__typename": "ReserveUserState",
+ "balance": {
+ "__typename": "TokenAmount",
+ "amount": {
+ "__typename": "DecimalValue",
+ "decimals": 18,
+ "raw": "0",
+ "value": "0",
+ },
+ "usd": "0",
+ "usdPerToken": "0.3024919",
+ },
+ "borrowable": {
+ "__typename": "TokenAmount",
+ "amount": {
+ "__typename": "DecimalValue",
+ "decimals": 18,
+ "raw": "0",
+ "value": "0",
+ },
+ "usd": "0",
+ "usdPerToken": "0.3024919",
+ },
"canBeBorrowed": false,
- "canBeCollateral": false,
- "emode": ObjectContaining {
+ "canBeCollateral": true,
+ "emode": {
+ "__typename": "EmodeReserveInfo",
+ "canBeBorrowed": true,
+ "canBeCollateral": true,
"categoryId": 1,
+ "label": "ETH correlated",
+ "liquidationPenalty": {
+ "__typename": "PercentValue",
+ "decimals": 4,
+ "formatted": "1.00",
+ "raw": "100",
+ "value": "0.01",
+ },
+ "liquidationThreshold": {
+ "__typename": "PercentValue",
+ "decimals": 4,
+ "formatted": "95.00",
+ "raw": "9500",
+ "value": "0.95",
+ },
+ "maxLTV": {
+ "__typename": "PercentValue",
+ "decimals": 4,
+ "formatted": "93.00",
+ "raw": "9300",
+ "value": "0.93",
+ },
+ },
+ "isInIsolationMode": true,
+ "suppliable": {
+ "__typename": "TokenAmount",
+ "amount": {
+ "__typename": "DecimalValue",
+ "decimals": 18,
+ "raw": "0",
+ "value": "0",
+ },
+ "usd": "0",
+ "usdPerToken": "0.3024919",
},
},
}
❯ packages/client/src/actions/eMode.test.ts:70:25
|
|
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:
packages/client/src/actions/borrow.test.ts#L140
InvariantError: Expected result to be Ok: Bad Gateway
❯ S packages/types/src/helpers/assertions.ts:36:11
❯ packages/client/src/actions/borrow.test.ts:140:9
|
|
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 ERC20 from the reserve:
packages/client/src/test-utils.ts#L179
InvariantError: Expected result to be Ok: Bad Gateway
❯ S packages/types/src/helpers/assertions.ts:36:11
❯ fetchReserve packages/client/src/test-utils.ts:179:3
❯ packages/client/src/actions/borrow.test.ts:96:31
|