Skip to content

test: vault deposit #81

test: vault deposit

test: vault deposit #81

Triggered via pull request July 23, 2025 16:18
Status Success
Total duration 4m 1s
Artifacts

pull-request.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 errors
Verify / Test
Process completed with exit code 1.
packages/client/src/actions/withdraw.test.ts > Given an Aave Market > And the reserve allows withdrawals in native tokens > When the user withdraws from the reserve in native tokens > Then the user should receive the amount in native tokens: packages/client/src/client.ts#L23
InvariantError: Expected a value, got: [GraphQL] Expected input type "WithdrawAmount", found "0.01". (occurred while parsing "WithdrawNativeAmountInput") (occurred while parsing "WithdrawAmountInput") (occurred while parsing "WithdrawRequest") ❯ n packages/types/src/helpers/invariant.ts:20:11 ❯ takeValue packages/client/src/client.ts:23:3 ❯ ResultAsync.<anonymous> node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:133:33 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:71 ❯ __awaiter node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:129:60 ❯ packages/client/src/actions/withdraw.test.ts:149:24
packages/client/src/actions/withdraw.test.ts > Given an Aave Market > And a user with a supply position > When the user withdraws their supply > Then it should be reflected in the user supply positions: packages/client/src/client.ts#L23
InvariantError: Expected a value, got: [GraphQL] Expected input type "WithdrawAmount", found "0.01". (occurred while parsing "WithdrawErc20AmountInput") (occurred while parsing "WithdrawAmountInput") (occurred while parsing "WithdrawRequest") ❯ n packages/types/src/helpers/invariant.ts:20:11 ❯ takeValue packages/client/src/client.ts:23:3 ❯ ResultAsync.<anonymous> node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:133:33 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:71 ❯ __awaiter node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:129:60 ❯ packages/client/src/actions/withdraw.test.ts:82:24
packages/client/src/actions/vaultDeposit.test.ts > Given the Aave v3 Vaults > When a user deposits into an existing vault > Then it should be available in the user's vault positions: packages/client/src/client.ts#L23
InvariantError: Expected a value, got: [GraphQL] Server error - PgError db error: ERROR: syntax error at or near "." ❯ n packages/types/src/helpers/invariant.ts:20:11 ❯ takeValue packages/client/src/client.ts:23:3 ❯ ResultAsync.<anonymous> node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:133:33 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:71 ❯ __awaiter node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:129:60 ❯ packages/client/src/actions/vaultDeposit.test.ts:68:22
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.437460408789959405563900027", "token": "WETH", }, { - "apy": toBeBigDecimalCloseTo<"3", 0>, + "apy": "0.038199803590888559834843819", "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/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) ] (27 matching properties omitted from actual) - Expected + Received @@ -1,10 +1,48 @@ [ - ObjectContaining { - "canBeCollateral": false, - "currency": ObjectContaining { + { + "__typename": "MarketUserReserveSupplyPosition", + "apy": { + "__typename": "DecimalValue", + "decimals": 27, + "raw": "38199803590888559834843819", + "value": "0.038199803590888559834843819", + }, + "balance": { + "__typename": "TokenAmount", + "amount": { + "__typename": "DecimalValue", + "decimals": 6, + "raw": "9999", + "value": "0.009999", + }, + "usd": "0.00999760014", + "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": "DecimalValue", + "decimals": 4, + "raw": "100", + "value": "0.01", + }, + "liquidationThreshold": { + "__typename": "DecimalValue", + "decimals": 4, + "raw": "9500", + "value": "0.95", + }, + "maxLTV": { + "__typename": "DecimalValue", + "decimals": 4, + "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