Get total borrowed

Get total borrowed on Spark

Ethereum
Ethereum

Reads onchain state

Ready to run on Base

Reads the total amount of an asset currently borrowed from a Spark market. The figure comes from the pool data provider as the reserve's total variable debt in the asset's units, growing with interest as blocks pass. Reach for it with the borrow cap to compute remaining borrowable room, or with total supplied to compute utilization and reason about how the rate will move before committing to a supply or borrow.

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 Spark · 25

On other protocols · 5