Function deductReserve

  • Deducts reserve from liquidation amount

    Parameters

    • amount: bigint

      liquidation amount with reserve

    • reserveFactor: bigint

      asset reserve factor

    • reserveFactorScale: bigint

      asset reserve factor scale

    Returns bigint

    liquidation amount without reserve