feat: midas tokens logic #495
push.yml
on: push
Matrix: build / build
Matrix: publish / publish
Waiting for pending jobs
Annotations
2 errors
packages/migration-sdk-viem/test/e2e/aaveV3/supply.test.ts > Supply position on AAVE V3 > on chain 8453 > shouldn't fetch user collateral positions if borrow:
packages/test/src/client.ts#L256
ContractFunctionExecutionError: The contract function "borrow" reverted with the following reason:
failed to get account for 0x4c52FE2162200bf26c314d7bbd8611699139d553: server returned an error response: error code -32000: missing trie node 8ef21b1df4d96365a1cec24ac8aaebff75882933e42473bfaf9c929fe0c87ae2 (path ) state 0x8ef21b1df4d96365a1cec24ac8aaebff75882933e42473bfaf9c929fe0c87ae2 is not available
Contract Call:
address: 0xA238Dd80C259a72e81d7e4664a9801593F98d1c5
function: borrow(address asset, uint256 amount, uint256 interestRateMode, uint16 referralCode, address onBehalfOf)
args: (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, 1000000, 2, 0, 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266)
sender: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
Docs: https://viem.sh/docs/contract/writeContract
Version: viem@2.22.2
❯ getContractError node_modules/.pnpm/viem@2.22.2_bufferutil@4.0.8_typescript@5.7.2_utf-8-validate@5.0.10/node_modules/viem/utils/errors/getContractError.ts:78:10
❯ Module.writeContract node_modules/.pnpm/viem@2.22.2_bufferutil@4.0.8_typescript@5.7.2_utf-8-validate@5.0.10/node_modules/viem/actions/wallet/writeContract.ts:208:11
❯ Object.writeContract packages/test/src/client.ts:256:24
❯ packages/migration-sdk-viem/test/e2e/aaveV3/supply.test.ts:151:11
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: '/docs/contract/writeContract', metaMessages: [ 'Contract Call:', ' address: 0xA238Dd80C259a72e81d7e4664a9801593F98d1c5\n function: borrow(address asset, uint256 amount, uint256 interestRateMode, uint16 referralCode, address onBehalfOf)\n args: (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, 1000000, 2, 0, 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266)\n sender: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' ], shortMessage: 'The contract function "borrow" reverted with the following reason:\nfailed to get account for 0x4c52FE2162200bf26c314d7bbd8611699139d553: server returned an error response: error code -32000: missing trie node 8ef21b1df4d96365a1cec24ac8aaebff75882933e42473bfaf9c929fe0c87ae2 (path ) state 0x8ef21b1df4d96365a1cec24ac8aaebff75882933e42473bfaf9c929fe0c87ae2 is not available', version: '2.22.2', abi: [ { inputs: [ { internalType: 'contract IPoolAddressesProvider', name: 'provider', type: 'address' } ], stateMutability: 'nonpayable', type: 'constructor' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'reserve', type: 'address' }, { indexed: true, internalType: 'address', name: 'backer', type: 'address' }, { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'fee', type: 'uint256' } ], name: 'BackUnbacked', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'reserve', type: 'address' }, { indexed: false, internalType: 'address', name: 'user', type: 'address' }, { indexed: true, internalType: 'address', name: 'onBehalfOf', type: 'address' }, { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' }, { indexed: false, internalType: 'enum DataTypes.InterestRateMode', name: 'interestRateMode', type: 'uint8' }, { indexed: false, internalType: 'uint256', name: 'borrowRate', type: 'uint256' }, { indexed: true, internalType: 'uint16', name: 'referralCode', type: 'uint16' } ], name: 'Borrow', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'target', type: 'address' }, { indexed: false, internalType: 'address', name: 'initiator', type: 'address' }, { indexed: true, internalType: 'address', name: 'asset', type: 'address' }, { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' }, { indexed: false, internalType: 'enum DataTypes.InterestRateMode', name: 'interestRateMode', type: 'uint8' }, { indexed: false, internalType: 'uint256', name: 'premium', type: 'uint256' }, { indexed: true, internalType: 'uint16', name: 'referralCode', type: 'uint16' } ], name: 'FlashLoan', type: 'event' }, { anonymous: false, inputs: [
|
test / vitest
Process completed with exit code 1.
|