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

    Interface SwapAndRepayParams

    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 SwapAndRepayParams {
        address: string;
        amount: bigint;
        marketId: string;
        positionCapId: string;
        slippage: number;
        swapFromCoinType: string;
        swapToCoinType: string;
    }
    Index

    Properties

    address: string

    Address of the user withdrawing collateral

    amount: bigint

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

    marketId: string

    Market ID from which to withdraw

    positionCapId: string

    Object ID of the position capability object

    slippage: number

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

    swapFromCoinType: string

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

    swapToCoinType: string

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