Function prepareLiquidateTransactions

  • Returns a group transaction to liquidate an under-collateralized loan.

    Returns

    Transaction[] liquidate group transaction

    Parameters

    • tokenPair: TokenPair

      token pair to use for borrow

    • oracle: lendV1.Oracle

      oracle price source

    • senderAddr: string

      account address for the sender

    • escrowAddr: string

      escrow address that will hold the collateral

    • reserveAddr: string

      reserve address that will earn percentage of interest paid

    • liquidationAmount: number | bigint

      amount to liquidate (will send back any over-payment if any)

    • params: SuggestedParams

      suggested params for the transactions with the fees overwritten

    Returns Transaction[]

Generated using TypeDoc