# 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.

<details>

<summary>How Collateral Switch works:</summary>

* Flash loans the original collateral asset
* Swaps it to the new collateral asset
* Supplies the new collateral asset
* Withdraws the original collateral asset
* Pays back the flash loan

</details>

<details>

<summary>How Debt Switch works:</summary>

* Flash loans the new debt asset
* Swaps the new debt asset for the original debt asset
* Pays back the original debt loan from your position
* Borrows the new debt asset
* Pays back the flash loan

</details>

{% hint style="warning" %}
Once the 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 example, if you're switching debt from DAI to USDC, the confirmation pop-up will show the following:<br>

![](https://help.defisaver.com/~gitbook/image?url=https%3A%2F%2F2276946674-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fo1t7pGS5d15WeQzoQ3Fe%252Fuploads%252FqEeKjQh07nlZ04hEz2po%252FScreenshot%25202025-07-15%2520120832.png%3Falt%3Dmedia%26token%3D4d076546-07e7-4a26-b94a-6fd728df48e4\&width=300\&dpr=4\&quality=100\&sign=95bb9cd8\&sv=2) <br>

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.
{% endhint %}

{% hint style="info" %}
*The Collateral Switch tool is also available as an automation strategy. To learn more, please visit our* [*Automation Use-case article*](https://help.defisaver.com/features/automation/use-case)*, and open the "Collateral Switch" window.*
{% endhint %}

***

## Related Articles:

* [Use-case](https://help.defisaver.com/features/collateral-and-debt-switch/use-case)
* [Fees](https://help.defisaver.com/features/collateral-and-debt-switch/fees)
* [Compatibility](https://help.defisaver.com/features/collateral-and-debt-switch/compatibility)
* [Position Flip](https://help.defisaver.com/features/collateral-and-debt-switch/position-flip)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.defisaver.com/features/collateral-and-debt-switch.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
