What this does
This plug computes a Morpho borrow APR by scaling a per-second borrow rate to an annual figure. It asks the caller for borrow_rate_per_second, the per-second borrow rate to annualize. It runs on demand, converting one year of 365 days into seconds and multiplying that span by the supplied rate. Doing this by hand or against a stale per-second rate produces an annual borrow figure that misstates the current cost of borrowing.
Actions · 4




Related plugs · 8