Set collateral status
Set collateral status

Aave V4 · Acts onchain

Enables or disables an asset the wallet has supplied to an Aave V4 spoke as collateral. The config position manager flips the reserve's collateral bit on the wallet's position. Enabling makes the supplied balance count toward borrowing power at the reserve's current collateral factor, which the spoke snapshots onto the position at that moment; disabling removes it, refreshes the wallet's risk premium, and is refused if the debt would no longer be covered. A supply on Aave V4 is never collateral until it is enabled. The wallet approves the config manager as a position manager on the spoke once and permits the socket to toggle collateral, both in the same confirmation. Reach for it right after a supply so the new deposit backs the borrow that follows, or to take an asset out of liquidation reach once the debt it supported has been repaid earlier in the transaction.

On other protocols · 2