

Reads onchain state
Reads what an account's 40 Acres portfolio owes. getTotalDebt is the debt the portfolio's collateral manager books: every borrow at its full amount, less every payment, whether the owner paid it or the epoch's rewards did. It accrues no interest between them. Reach for it to size a payment, or to act once rewards have paid the loan down past a threshold.
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 40 Acres ยท 16