Function isBadDebt

  • Determines if the provided pair of assets forms a bad debt.

    Parameters

    • totalSupply: bigint

      total supply worth amount

    • totalBorrow: bigint

      total borrow worth amount

    • liquidationBonus: bigint

      collateral liquidation bonus value

    • masterConstants: MasterConstants

      pool constants

    Returns boolean