Function prepareReduceCollateralTransactions

  • Returns a group transaction to reduce collateral.

    Returns

    Transaction[] reduce collateral group transaction

    Parameters

    • tokenPair: TokenPair

      token pair to use for borrow

    • oracle: lendV1.Oracle

      oracle price source

    • sender: string

      account address for the sender

    • escrow: string

      escrow address that will hold the collateral

    • reduceAmount: undefined | number | bigint

      collateral amount to reduce by (max amount if undefined)

    • params: SuggestedParams

      suggested params for the transactions with the fees overwritten

    Returns Transaction[]

Generated using TypeDoc