@alphafi/alphalend-sdk - v1.1.17
    Preparing search index...

    Interface ZapOutWithdrawParams

    Parameters for zap-out withdraw operation to a lending market Used with the zapOutWithdraw method to swap input tokens and withdraw them from a single market in a single transaction

    interface ZapOutWithdrawParams {
        address: string;
        amount: bigint;
        marketCoinType: string;
        marketId: string;
        outputCoinType: string;
        positionCapId: string;
        priceUpdateCoinTypes: string[];
        slippage: number;
    }
    Index

    Properties

    address: string

    Address of the user withdrawing collateral

    amount: bigint

    Amount to withdraw (in mists, use MAX_U64 constant to withdraw all)

    marketCoinType: string

    Withdraw coin type (e.g., "0x2::sui::SUI")

    marketId: string

    Market ID from which to withdraw

    outputCoinType: string

    Withdraw coin type (e.g., "0x2::sui::SUI")

    positionCapId: string

    Object ID of the position capability object

    priceUpdateCoinTypes: string[]

    Coin types of the coins whose price needs to be updated (Will have to pass all market coin types that user has supplied or borrowed in and current market coin type in which user is withdrawing)

    slippage: number

    Slippage for the swap (e.g., 0.01 for 1%)