Get Borrow Rate
Get Borrow Rate
This function returns the per second borrow rate as the decimal representation of a percentage scaled up by 10 ^ 18
. The formula for producing the borrow rate is:
To calculate the borrow APR as a percentage, pass the current utilization to this function, and divide the result by 10 ^ 18
and multiply by the approximate number of seconds in one year and scale up by 100.
utilization
: The utilization at which to calculate the rate.RETURNS
: The per second borrow rate as the decimal representation of a percentage scaled up by10 ^ 18
. E.g.317100000
indicates, roughly, a 1% APR.
Last updated