Function withdrawWithLiquiditySwap

  • 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;
    })[]