Withdraw Collateral

Withdraw Collateral on Compound

Ethereum
Ethereum
Base
Base

Acts onchain

Ready to run on Base

Withdraws the wallet's collateral from a Compound market back to the wallet. Comet returns the collateral as long as the position stays collateralized afterward under the borrow collateral factors. Pick Withdraw all to withdraw the full collateral balance. Reach for it to free collateral after a repay earlier in the transaction, or to move margin between markets, holding isCollateralized true with a predicate on the position read.

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 · 3