USH Redemption
as of 02/01/2025
Last updated
as of 02/01/2025
Last updated
The Redemption Mechanism is the most important feature of the Isolated Pools. It provides a quick and simple process that anyone can execute when USH depegs from the dollar. Essentially, it allows users to perform a liquidation-like operation on healthy accounts by repaying loans and seizing collateral. Both redeemers and borrowers can benefit financially in this process:
For redeemers: They buy USH from the market at a price below its peg and seize collateral valued at the peg price.
Example: Alice buys 100 USH for $99 on the market. She redeems it through the protocol, repaying 100 USH and seizing $100 worth of Bob’s collateral. Alice earns $1.
For borrowers: Borrowers don’t lose money as long as USH returns to its peg since their borrow balance and collateral decrease proportionally. Revenue from the redemption can also be shared between redeemers and borrowers.
Example: If Alice redeems 100 USH at an equivalent value of $99.5, both Alice and Bob earn $0.5 each.
This explanation only introduces the surface of the Redemption Mechanism. Let’s now explore the details:
Depeg Detection: A Depeg Strategy smart contract monitors the market and, if USH depegs, opens a redemption window where anyone can redeem.
Execution Process: When a redeemer repays an amount of USH, the protocol identifies healthy but risky accounts and distributes the redemptions across them, prioritizing the riskiest accounts.
The protocol uses a Red-Black Tree data structure to efficiently find and prioritize these accounts.
The total amount of USH repaid equals the following summation:
We want to find the riskiest but healthy accounts and redeem them in a way that makes all of them have the same resulting health. An account’s health is directly related to the account’s borrow limit used , given by the following relationship:
However, all accounts are affected by the same price quotient and collateral factor, so we can abstract all that out and just use the following rate:
For simplicity, we can define the redemption price as:
such that:
Then, the final rate is given by:
With a bit of algebra, we can rearrange the previous equation and get:
In redemption, we want to find the accounts with the higher that are still healthy and:
repay a portion of their borrows while seizing collateral,
make all of them have the same resulting rate .
An account being redeemed by an amount will see the following change in its rate:
The amount being repaid and the collateral being seized are related by the following relationship:
where is the Depeg factor that allows sharing the revenue between redeemer and borrowers. Then, we have:
Finally, since we know that all accounts will end up with the same health (or borrow limit used or rate), we can use the equation for and get:
With previous equations, we first obtain for all accounts and then compute for each account.