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

    Interface LiquidateParams

    Parameters for liquidating an unhealthy position Used with the liquidate method

    interface LiquidateParams {
        borrowCoinType: string;
        borrowMarketId: string;
        liquidatePositionId: string;
        priceUpdateCoinTypes: string[];
        repayCoin: TransactionArgument;
        tx?: Transaction;
        withdrawCoinType: string;
        withdrawMarketId: string;
    }
    Index

    Properties

    borrowCoinType: string

    Fully qualified coin type for debt repayment

    borrowMarketId: string

    Market ID where debt is repaid

    liquidatePositionId: string

    Object ID of the position to liquidate

    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 is being liquidated)

    repayCoin: TransactionArgument

    Amount of debt to repay in base units

    tx?: Transaction
    withdrawCoinType: string

    Fully qualified coin type for collateral to seize

    withdrawMarketId: string

    Market ID where collateral is seized