How to Participate in Redemption
How to Redeem USH?
The redemption process is straightforward and consists of two main steps:
Step 1: Opening a Depeg Window
Before initiating a redemption, the redeemer must open a Depeg Window in the Depeg Strategy. This is done by calling the openDepegWindow
function:
Once the Depeg Window is successfully opened, the user must wait 5 minutes before proceeding. The redemption window remains open for 10 minutes, during which the redeem action must be executed.
Step 2: Executing the Redemption
To redeem, the user must call the Redeem endpoint in the Isolated Lending Protocol. This function is payable in EGLD and is used to repay USH borrows in exchange for collateral.
This mechanism allows anyone to repay the riskiest USH borrows in exchange for their collateral. Since USH is trading below the peg in the open market while the protocol assumes a pegged price, this process can be profitable for the redeemer. The provided EGLD is swapped for USH through the liquidity pool, helping to restore the peg.
It’s important to note that not all of the transferred EGLD may be used, as the redemption depends on the riskiest accounts in the protocol.
Other Useful Functions
1. Checking If A Depeg Window Can Be Opened
Before attempting to open a redemption window, you can check if the conditions allow it by calling the canOpenDepegWindow
function:
If the function returns true
, a Depeg Window can be opened.
2. Determining The Optimal EGLD Amount For Maximum Profit
To estimate the ideal amount of EGLD to use in the Redeem function for the highest possible profit, you can call getEgldAmountMaxProfit
:
This function provides the optimal amount of EGLD to use, ensuring the best possible arbitrage opportunities during the redemption process.
ABI Files
Last updated
Was this helpful?