Recently, we became aware of this issue and the lack of a way to do it in the Bastion UI, so we decided to create a tutorial for everyone to use independently. Big thanks to the people in the community who helped me create and test this tutorial and provided invaluable insights and feedback!
To formulate the problem more precisely, a user has some cUSDCcUSDTLP
tokens and wants to convert these back to stables. The Bastion project's UI doesn't allow this today, so the only way is to call smart contracts directly.
We will go through the next steps:
- What contracts should we call?
- What method should we call, and how?
- How to convert
cUSDC
and cUSDT
into regular stables?
We will use the most convenient way for users to interact with smart contracts—the Explorer. However, devs can always write a script to perform the steps described in this article with Ethers or Web3.js.
Let's go!