feat: add liquidity unbalanced permit2 #3310
checks.yml
on: pull_request
Build
3m 48s
Lint
1m 1s
Unit-Test
1m 46s
Integration-Test
1m 52s
Annotations
10 errors and 8 warnings
lib/modules/web3/contracts/useManagedSendTransaction.integration.spec.ts > weighted add flow > Sends transaction after updating amount inputs:
lib/modules/pool/actions/add-liquidity/handlers/BaseUnbalancedAddLiquidity.handler.ts#L33
ContractFunctionExecutionError: The contract function "queryJoin" reverted.
Contract Call:
address: 0xE39B5e3B6D74016b2F6A9673D7d7493B6DF549d5
function: queryJoin(bytes32 poolId, address sender, address recipient, (address[] assets, uint256[] maxAmountsIn, bytes userData, bool fromInternalBalance))
args: (0x68e3266c9c8bbd44ad9dca5afbfe629022aee9fe000200000000000000000512, 0x0000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000, {"assets":["0x198d7387fa97a73f05b8578cdeff8f2a1f34cd1f","0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"],"maxAmountsIn":["100000000000000000","100000000000000000"],"userData":"0x0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000016345785d8a0000","fromInternalBalance":false})
Docs: https://viem.sh/docs/contract/simulateContract
Version: 2.21.6
❯ getContractError node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/viem/utils/errors/getContractError.ts:72:10
❯ simulateContract node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/viem/actions/public/simulateContract.ts:306:27
❯ doAddLiquidityQuery node_modules/.pnpm/@balancer[email protected][email protected][email protected][email protected][email protected]/node_modules/@balancer/sdk/src/entities/utils/doAddLiquidityQuery.ts:22:9
❯ AddLiquidityWeighted.query node_modules/.pnpm/@balancer[email protected][email protected][email protected][email protected][email protected]/node_modules/@balancer/sdk/src/entities/addLiquidity/addLiquidityV2/weighted/addLiquidityWeighted.ts:52:29
❯ UnbalancedAddLiquidityHandler.simulate lib/modules/pool/actions/add-liquidity/handlers/BaseUnbalancedAddLiquidity.handler.ts:33:28
❯ lib/modules/web3/contracts/useManagedSendTransaction.integration.spec.ts:46:25
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: '/docs/contract/simulateContract', metaMessages: [ 'Contract Call:', ' address: 0xE39B5e3B6D74016b2F6A9673D7d7493B6DF549d5\n function: queryJoin(bytes32 poolId, address sender, address recipient, (address[] assets, uint256[] maxAmountsIn, bytes userData, bool fromInternalBalance))\n args: (0x68e3266c9c8bbd44ad9dca5afbfe629022aee9fe000200000000000000000512, 0x0000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000, {"assets":["0x198d7387fa97a73f05b8578cdeff8f2a1f34cd1f","0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"],"maxAmountsIn":["100000000000000000","100000000000000000"],"userData":"0x0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000016345785d8a0000","fromInternalBalance":false})' ], shortMessage: 'The contract function "queryJoin" reverted.', version: '2.21.6', abi: [ { inputs: [ { internalType: 'contract IVault', name: '_vault', type: 'address' } ], stateMutability: 'nonpayable', type: 'constructor' }, { inputs: [ { internalType: 'enum IVault.SwapKind', name: 'kind', type: 'uint8' }, { components: [ { internalType: 'bytes32', name: 'poolId', type: 'bytes32' }, { internalType: 'uint256', name: 'assetInIndex', type: 'uint256' }, { internalType: 'uint256', name: 'assetOutIndex', type: 'uint256' }, { internalType: 'uint256', name: 'amount', type: 'uint256' }, { internalType: 'bytes', name: 'userData', type: 'bytes' } ], internalType: 'struct IVault.BatchSwapStep[]', name: 'swaps', type: 'tuple[]' }, { internalType: 'contract IAsset[]', name: 'assets', type:
|
lib/modules/web3/contracts/useManagedSendTransaction.integration.spec.ts > weighted add flow > Sends transaction after updating amount inputs:
lib/modules/pool/actions/add-liquidity/handlers/BaseUnbalancedAddLiquidity.handler.ts#L33
ContractFunctionExecutionError: The contract function "queryJoin" reverted.
Contract Call:
address: 0xE39B5e3B6D74016b2F6A9673D7d7493B6DF549d5
function: queryJoin(bytes32 poolId, address sender, address recipient, (address[] assets, uint256[] maxAmountsIn, bytes userData, bool fromInternalBalance))
args: (0x68e3266c9c8bbd44ad9dca5afbfe629022aee9fe000200000000000000000512, 0x0000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000, {"assets":["0x198d7387fa97a73f05b8578cdeff8f2a1f34cd1f","0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"],"maxAmountsIn":["100000000000000000","100000000000000000"],"userData":"0x0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000016345785d8a0000","fromInternalBalance":false})
Docs: https://viem.sh/docs/contract/simulateContract
Version: 2.21.6
❯ getContractError node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/viem/utils/errors/getContractError.ts:72:10
❯ simulateContract node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/viem/actions/public/simulateContract.ts:306:27
❯ doAddLiquidityQuery node_modules/.pnpm/@balancer[email protected][email protected][email protected][email protected][email protected]/node_modules/@balancer/sdk/src/entities/utils/doAddLiquidityQuery.ts:22:9
❯ AddLiquidityWeighted.query node_modules/.pnpm/@balancer[email protected][email protected][email protected][email protected][email protected]/node_modules/@balancer/sdk/src/entities/addLiquidity/addLiquidityV2/weighted/addLiquidityWeighted.ts:52:29
❯ UnbalancedAddLiquidityHandler.simulate lib/modules/pool/actions/add-liquidity/handlers/BaseUnbalancedAddLiquidity.handler.ts:33:28
❯ lib/modules/web3/contracts/useManagedSendTransaction.integration.spec.ts:46:25
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: '/docs/contract/simulateContract', metaMessages: [ 'Contract Call:', ' address: 0xE39B5e3B6D74016b2F6A9673D7d7493B6DF549d5\n function: queryJoin(bytes32 poolId, address sender, address recipient, (address[] assets, uint256[] maxAmountsIn, bytes userData, bool fromInternalBalance))\n args: (0x68e3266c9c8bbd44ad9dca5afbfe629022aee9fe000200000000000000000512, 0x0000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000, {"assets":["0x198d7387fa97a73f05b8578cdeff8f2a1f34cd1f","0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"],"maxAmountsIn":["100000000000000000","100000000000000000"],"userData":"0x0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000016345785d8a0000","fromInternalBalance":false})' ], shortMessage: 'The contract function "queryJoin" reverted.', version: '2.21.6', abi: [ { inputs: [ { internalType: 'contract IVault', name: '_vault', type: 'address' } ], stateMutability: 'nonpayable', type: 'constructor' }, { inputs: [ { internalType: 'enum IVault.SwapKind', name: 'kind', type: 'uint8' }, { components: [ { internalType: 'bytes32', name: 'poolId', type: 'bytes32' }, { internalType: 'uint256', name: 'assetInIndex', type: 'uint256' }, { internalType: 'uint256', name: 'assetOutIndex', type: 'uint256' }, { internalType: 'uint256', name: 'amount', type: 'uint256' }, { internalType: 'bytes', name: 'userData', type: 'bytes' } ], internalType: 'struct IVault.BatchSwapStep[]', name: 'swaps', type: 'tuple[]' }, { internalType: 'contract IAsset[]', name: 'assets', type:
|
lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts > queries add liquidity transaction:
lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts#L55
AssertionError: expected [ { …(2) }, { …(2) } ] to deeply equal [ { …(2) }, { …(2) } ]
- Expected
+ Received
Array [
Object {
"humanAmount": "12",
- "tokenAddress": "0x198d7387fa97a73f05b8578cdeff8f2a1f34cd1f",
+ "tokenAddress": "0x198d7387Fa97A73F05b8578CdEFf8F2A1f34Cd1F",
},
Object {
"humanAmount": "0.04",
- "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
+ "tokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
},
]
❯ lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts:55:37
|
lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts > queries add liquidity transaction:
lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts#L55
AssertionError: expected [ { …(2) }, { …(2) } ] to deeply equal [ { …(2) }, { …(2) } ]
- Expected
+ Received
Array [
Object {
"humanAmount": "12",
- "tokenAddress": "0x198d7387fa97a73f05b8578cdeff8f2a1f34cd1f",
+ "tokenAddress": "0x198d7387Fa97A73F05b8578CdEFf8F2A1f34Cd1F",
},
Object {
"humanAmount": "0.04",
- "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
+ "tokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
},
]
❯ lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts:55:37
|
lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts > queries remove liquidity transaction:
lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts#L99
AssertionError: expected [ { …(2) }, { …(2) } ] to deeply equal [ { …(2) }, { …(2) } ]
- Expected
+ Received
Array [
Object {
"humanAmount": "16597.845312687911573359",
- "tokenAddress": "0x198d7387fa97a73f05b8578cdeff8f2a1f34cd1f",
+ "tokenAddress": "0x198d7387Fa97A73F05b8578CdEFf8F2A1f34Cd1F",
},
Object {
"humanAmount": "4.553531492712836774",
- "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
+ "tokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
},
]
❯ lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts:99:41
|
lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts > queries remove liquidity transaction:
lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts#L99
AssertionError: expected [ { …(2) }, { …(2) } ] to deeply equal [ { …(2) }, { …(2) } ]
- Expected
+ Received
Array [
Object {
"humanAmount": "16597.845312687911573359",
- "tokenAddress": "0x198d7387fa97a73f05b8578cdeff8f2a1f34cd1f",
+ "tokenAddress": "0x198d7387Fa97A73F05b8578CdEFf8F2A1f34Cd1F",
},
Object {
"humanAmount": "4.553531492712836774",
- "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
+ "tokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
},
]
❯ lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts:99:41
|
lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts > queries swap transaction > when the native asset is not included (from DAI to WPOL):
lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts#L127
AssertionError: expected { …(2) } to deeply equal { humanAmount: '1', …(1) }
- Expected
+ Received
Object {
"humanAmount": "1",
- "tokenAddress": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
+ "tokenAddress": "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",
}
❯ lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts:127:38
|
lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts > queries swap transaction > when the native asset is not included (from DAI to WPOL):
lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts#L127
AssertionError: expected { …(2) } to deeply equal { humanAmount: '1', …(1) }
- Expected
+ Received
Object {
"humanAmount": "1",
- "tokenAddress": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
+ "tokenAddress": "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",
}
❯ lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts:127:38
|
lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts > queries swap transaction > when the native asset is the token in (from POL to DAI):
lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts#L152
AssertionError: expected { …(2) } to deeply equal { …(2) }
- Expected
+ Received
Object {
"humanAmount": "0.693570611425675513",
- "tokenAddress": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
+ "tokenAddress": "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",
}
❯ lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts:152:42
|
lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts > queries swap transaction > when the native asset is the token in (from POL to DAI):
lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts#L152
AssertionError: expected { …(2) } to deeply equal { …(2) }
- Expected
+ Received
Object {
"humanAmount": "0.693570611425675513",
- "tokenAddress": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
+ "tokenAddress": "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",
}
❯ lib/modules/transactions/transaction-steps/receipts/receipt.hooks.integration.spec.ts:152:42
|
Lint
Unexpected input(s) 'node-version', valid inputs are ['version', 'dest', 'run_install', 'package_json_file', 'standalone']
|
Lint
Unexpected input(s) 'node-version', valid inputs are ['version', 'dest', 'run_install', 'package_json_file', 'standalone']
|
Unit-Test
Unexpected input(s) 'node-version', valid inputs are ['version', 'dest', 'run_install', 'package_json_file', 'standalone']
|
Unit-Test
Unexpected input(s) 'node-version', valid inputs are ['version', 'dest', 'run_install', 'package_json_file', 'standalone']
|
Integration-Test
Unexpected input(s) 'node-version', valid inputs are ['version', 'dest', 'run_install', 'package_json_file', 'standalone']
|
Integration-Test
Unexpected input(s) 'node-version', valid inputs are ['version', 'dest', 'run_install', 'package_json_file', 'standalone']
|
Build
Unexpected input(s) 'node-version', valid inputs are ['version', 'dest', 'run_install', 'package_json_file', 'standalone']
|
Build
Unexpected input(s) 'node-version', valid inputs are ['version', 'dest', 'run_install', 'package_json_file', 'standalone']
|