Function withdrawWithLiquiditySwap
- withdrawWithLiquiditySwap(userVaultTokens, userWithdrawals, chains, vaults, vaultAddresses, assetsAddresses, userAddresses, messageVerifyGasCosts, priceOfDeliveryGas, priceOfAckGas, refundGasTo): ({
executionInstructions: {
commands: string;
gas: {
estimatedGasUsedOnLocal: bigint;
estimatedGasUsedOnLocalAck: bigint;
estimatedGasUsedOnRemote: bigint;
estimatedRefundOnAck: bigint;
estimatedRoutingPayment: bigint;
};
inputs: string[];
};
} | {
executionInstructions: undefined;
})[] Parameters
- userVaultTokens: bigint[]
- userWithdrawals: bigint[][]
- chains: {
chainId: number;
channelId: string;
}[] - vaults: VaultInformation[]
- vaultAddresses: string[]
- assetsAddresses: string[][]
- userAddresses: string[]
- messageVerifyGasCosts: bigint[]
- priceOfDeliveryGas: bigint[][]
- priceOfAckGas: bigint[]
- refundGasTo: string
Returns ({
executionInstructions: {
commands: string;
gas: {
estimatedGasUsedOnLocal: bigint;
estimatedGasUsedOnLocalAck: bigint;
estimatedGasUsedOnRemote: bigint;
estimatedRefundOnAck: bigint;
estimatedRoutingPayment: bigint;
};
inputs: string[];
};
} | {
executionInstructions: undefined;
})[]