Skip to content
Coin Press

Reporting from across crypto

SparkLend Collateral: When Other Assets Cover Your Debt

To turn off one asset as collateral in DeFi lending, switch off its collateral flag after checking that your remaining eligible assets can support the debt.

Coin Press Newsroom2 min read

SparkLend Collateral: When Other Assets Cover Your Debt

Multiasset borrowers with debt outstanding can switch off one supplied asset’s collateral flag after confirming that the remaining collateral can support the position. The asset stays supplied, but its reserve balance no longer counts toward the position’s collateral.

On SparkLend, the Pool’s collateral setting changes whether a reserve supports your outstanding debt. The SparkLend collateral flag applies to the entire supplied balance, so switching it off removes all of that reserve from collateral calculations; it cannot remove only part.

Preview the position before changing the flag

Preview the health factor after removing the asset, using the thresholds that apply to your position, including any E-Mode thresholds. The remaining eligible collateral must still support the debt for the change to pass validation.

  1. Start with the asset enabled. Connect the wallet holding the SparkLend position and make sure it has gas for the transaction. Identify the supplied reserve whose collateral support you want to remove. The other eligible assets must provide sufficient collateral after the change.
  2. Preview the change. Estimate the position’s health factor with the selected reserve excluded. E-Mode can affect the thresholds used, so use the settings that apply to the position. If the remaining collateral would not pass validation, repay some debt or add eligible collateral before trying again.

Switch off collateral and confirm the result

Turn off the selected asset’s collateral toggle and confirm the transaction only after checking that the preview leaves enough eligible collateral. The Pool exposes setUserUseReserveAsCollateral(asset, false) for this change. Its health validation recalculates the position using the remaining eligible assets.

  1. Switch the toggle off. Select the reserve’s collateral setting and turn it off. This changes collateral treatment for the full supplied reserve balance. The tokens remain supplied in the Pool, but that balance no longer supports borrowing.
  2. Confirm execution. Submit the transaction from the connected wallet and wait for it to complete. If validation fails, the Pool will not accept the change. Reduce outstanding debt or add eligible collateral, preview the resulting health factor, then retry.
  3. Check the updated flag. Inspect the position after execution and confirm that the reserve’s collateral flag is off while its supplied balance remains. The balance can continue to earn applicable supply yield and remains exposed to the reserve’s risks. Does the updated position show the flag off and the balance supplied? If so, the change is complete; if not, revisit validation and the transaction status.