
Compound · Reads onchain state
Reads an address's collateral balance of an asset in a Compound market. Comet returns the user's supplied collateral in the asset's units. Reach for it to size a collateral withdrawal at what is actually held, or to multiply the balance by a price and a collateral factor to compute borrowing capacity before a borrow.
On other protocols · 2