• Calculates per-second borrow interest rate for a product. For example, a returned rate of 0.1 indicates 10% borrower interest. The calculation for interest rate is as follows:

    If utilization ratio > inflection: annual rate = (1 - utilization ratio) / (1 - inflection) * interestLargeCap + interestFloor + interestSmallCap

    If utilization ratio < inflection: annual rate = utilization * interestSmallCap / inflection + utilization

    The returned rate is annual rate / 31536000 seconds per year.

    Parameters

    Returns BigNumber