Get max loan

Get max loan on 40 Acres

Base
Base

Reads onchain state

Ready to run on Base

Reads how much an account's 40 Acres portfolio can borrow. getMaxLoan returns maxLoan, what a borrow can draw right now, and maxLoanIgnoreSupply, the whole credit line: the locked AERO times the market's rewards rate and multiplier. maxLoan is the line less the current debt, capped by what the lending vault can lend before it reaches 80% utilization, and zero while it is past it. Reach for it to size a borrow, or to draw whenever the vault's capacity opens up.

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 plugs on Base

Borrow on Base · 7 plugs

More on 40 Acres · 16