Collateral Swap Tutorial
This guide is to help you understand the utility, and how to set up a collateral swap combination on Furucombo. The collateral swap combination on Furucombo allows you to change your collateral position on a lending protocol, such as Aave, without paying back your current debts, and without having any upfront funds by using the flash loan feature. This can be done to change your LTV ratio, your collateral earn percentage, or to change your market risk by switching assets. If you are more of a visual learner, you can use our video tutorial instead.
What is a Collateral Swap?
A collateral swap allows you to swap your collateral position within the protocol without first liquidating your position. This means you can swap collateral without paying back your debts.
What are the Advantages of a Collateral Swap?
The advantages of a collateral swap are that you are able to switch your position without any upfront funds using flash loans. This is beneficial because it allows you to change your loan-to-value ratio, change your collateral earn percentage, or adjust your market risk by switching assets.
When do I need a collateral swap?
You can use a collateral swap whenever you wish to take advantage of the above benefits.
Steps to perform a collateral swap:
Connect your wallet, and select the network of your choice on the top right of create mode on Furucombo. Once connected, click the cube icon in the center of the page, and add a ‘Flashloan’ cube. We will want to take a flash loan out in the token we are removing the collateral position with. In this example, if our collateral position is currently USDT, we will take a flash loan in USDT. You can choose how much collateral you want to swap, and take a flash loan of that amount. You don't have to swap the full collateral position if you choose.
Next we will swap to the token you wish to deposit as collateral. If that token is ETH, swap the flash loaned USDT to ETH using a ‘Swap Token’ cube, such as Paraswap. Ensure that the swap token cube is above the bottom flash loan cube.
Now we can deposit the new collateral into the lending protocol, such as Aave. To do this, use the ‘Deposit’ cube under Aave, and add in the token amount after you perform the swap. In this example, that will be ETH. Again ensure that the deposit cube is above the bottom flash loan cube.
The next step is to return the funds to our wallet, so that the system knows that we have additional collateral in the denomination of aTokens, or aWETH in this example. Add the ‘Return Funds’ cube and add the aToken, or aWETH in this example, and add it just above the bottom flash loan cube.
Now the system will recognize our new collateral. We can add our old collateral to the contract so that we are able to remove it from Aave. To do this, add a ‘Add Funds’ cube, and input the original collateral token, and token amount. In this example, it will be aUSDT in the amount of 2000. Add it above the bottom flash loan cube.
With the funds added, we can now remove the original collateral position. To do this, add a ‘Withdraw’ cube, and input the aUSDT to withdraw the position, and get USDT tokens back. This will allow us to complete the collateral swap, and to pay back our flash loan. Again, add it above the bottom flash loan cube.
Once you are happy with the results, click approve and send at the bottom to complete your transaction.
This is a quick and simple guide on how to perform a collateral swap on Furucombo. If you have any questions or concerns, please reach out to us on our community Discord.
To learn more about our other position management features, click the following tutorials:
Last updated