Get account data

Get account data on Compound

Ethereum
Ethereum
Base
Base

Reads onchain state

Ready to run on Base

Reads an address's position in a Compound market: base supplied, base borrowed, and whether it is collateralized. Comet reports the user's supplied and borrowed base balances in the base asset's units, both accruing interest, and isCollateralized from the borrow collateral factors. A false there means the position cannot borrow more and, past the liquidate factors, can be absorbed. Reach for it to require the position remains collateralized after a borrow or collateral withdrawal, or to read the live debt before a repay so the amount matches.

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

Earn yield on Base · 12 plugs

More on Compound · 20

On other protocols · 6