Collateral & Debt Switch
Users who manage their position on DeFi Saver have the option of using the Collateral and Debt switch options.
Additionally, there's the option of Position Flip - which flips your collateral asset for the debt asset, and vice-versa.
These tools let you swap out your collateral or debt asset for another in a single transaction.
Once the Collateral/Debt switch is successful, the confirmation pop-up might seem confusing as it will show that the new debt asset was sold for the original debt asset (for Debt Switch) or that the new collateral asset was sold for the old one (for Collateral Switch).
For example, if you're switching debt from DAI to USDC, the confirmation pop-up will show the following:
While this might seem incorrect - since you're moving from DAI to USDC, it's actually correct if we consider how the debt shift works:
The new debt asset is flash loaned (USDC)
It's sold off for the original debt asset in order to repay the original debt (DAI)
The new debt asset is borrowed and used to pay back the flash loan (USDC)
As such, the only swap happening in the transaction is selling the new, flash loaned debt asset for the original debt asset. Reading through how each of the switches works will also help you understand the swaps that show up during these transactions.
Related Articles:
Use-case
Fees
Compatibility
Position Flip
Last updated