Function getMaxReduceCollateralForBorrowUtilisationRatio

  • Returns the maximum reduce collateral of a given f asset considering a target borrow utilisation ratio. Returns 0 if no collateral in loan. Returns at most the collateral balance.

    Returns

    bigint max f asset amount

    Parameters

    • loan: UserLoanInfo

      user loan

    • colPoolAppId: number

      price of asset borrowing 14 d.p.

    • targetBorrowUtilisationRatio: bigint

      the utilisation ratio that you are targeting 4 d.p.

    Returns bigint

Generated using TypeDoc