Set collateral status

Set collateral status on Spark

Ethereum
Ethereum

Acts onchain

Ready to run on Base

Enables or disables an asset you have supplied as collateral in a Spark market. The pool flips the reserve's collateral bit in your user configuration. Enabling makes the supplied balance count toward borrowing power; disabling removes it, which the pool refuses if doing so would leave the position undercollateralized. Spark's pool only ever changes the position of whoever sends the call, so the switch runs as a plug of its own that your wallet sends directly. Reach for it once a supply has landed so the deposit backs the borrows that follow, or to disable collateral on an asset you want kept out of liquidation reach once the debt it supported has been repaid.

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