


Reads onchain state
Reads a collateral asset's configuration in a Compound market. Comet's asset info returns the asset and its price feed, the borrow and liquidate collateral factors, the liquidation factor, and the supply cap, with factors at 18 decimals. These parameters decide how much base asset the collateral can back and when it is seized. Reach for it to compute borrowing capacity from a collateral balance and price, to keep a position a chosen distance below the liquidate collateral factor, or to check supply cap headroom before supplying collateral.
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.
Earn yield on Base · 12 plugs
More on Compound · 20





















On other protocols · 3