

Reads onchain state
Reads what a Moonwell market charges borrowers, per second and as an APY. borrowRatePerTimestamp is the market's interest rate model evaluated at its current cash, borrows and reserves at 18 decimals, steepening sharply once utilization crosses the model's kink; the action compounds it over a year into borrowApy. Reach for it to repay a borrow when its rate crosses a ceiling, or to borrow from whichever market charges less.
Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.
More on Moonwell · 17