ETHRISE Rebalancing Mechanism
The rebalancing mechanism of ETHRISE - 2x Long ETH
ETHRISE rebalancing mechanism is designed to have small volatility decay as small as possible. This document explain the math behind the rebalancing process of ETHRISE.
Background
We need to do the rebalancing in order to maintain the target leverage ratio. The leverage ratio is defined below:
Where is collateral value per ETHRISE token and is the net-asset value of the ETHRISE token.
The leverage ratio will decrease when the collateral price is up and will increase when the collateral price is down.
Rebalancing Problem
We can simplify the rebalancing problem as follows:
Where:
is the target leverage ratio
is the current leverage ratio
is the rebalancing step. The value of rebalancing step can be positive when we want to increase the current leverage ratio or negative when we want to decrease the current leverage ratio.
Leveraging Up
When we want to increase the leverage ratio, we will use as positive value.
The next step is we want to find how much value we want to borrow in order to increase the current leverage ratio by .
Suppose is the total supply of ETHRISE token, we can define as follows:
We can easily solve the equation (3) by using equation (1) and (2) as follows:
Then we can use the equation (4) with (3) as follows:
Example of Leveraging Up
Suppose we want to rebalance the ETHRISE.
We have the following initial states:
ETH Price (): 4000 USDC
Total collateral managed by ETHRISE (): 100 ETH
Total debt managed by ETHRISE (): 200000 USDC
Total supply of the ETHRISE (): 10000 ETHRISE
Based on the initial states above we can calculate the collateral amount per ETHRISE token ():
Each ETHRISE is collateralized by 0.01 ETH.
Then we can calculate the collateral value per ETHRISE token ($C$) as follows:
Each ETHRISE have collateral value 40 USDC.
Then we can calculate and debt per ETHRISE token () as follows:
Each ETHRISE have 20 USDC as debt.
So we can calculate the net-asset value () as follows:
The net-asset value of ETHRISE is 20 USDC.
The current leverage ratio is:
To recap:
Collateral value per ETHRISE: 40 USDC
Debt per ETHRISE: 20 USDC
NAV: 20 USDC
Leverage ratio of ETHRISE: 2
Suppose the ETH price is going up to 4300 USDC. Now the leverage ratio is going down:
As you can see, when the price of ETH is going up from 4000 USDC to 4300 USDC:
The net asset value is going up from 20 USDC to 23 USDC
The leverage ratio is going down from 2 to 1.869565217.
Now it's time to leveraging up by . Using equation (5) we now how much we want to borrow to increase the leverage:
We will borrow 23000 USDC from the vault, then swap it to ETH. Assuming there is no slippage when swapping, we will get 5.348837209 ETH as the collateral.
Now we have the new states:
ETH Price (): 4300 USDC
Total collateral managed by ETHRISE (): 105.3488372 ETH
Total debt managed by ETHRISE (): 223000 USDC
Total supply of the ETHRISE (): 10000 ETHRISE
Let's calculate the net-asset value once again after rebalancing:
Now the new leverage ratio after rebalancing:
As you can see, we have successfully leveraging up the leverage ratio from 1.869565217 to 1.969565217 without changing the net-asset value of the ETHRISE.
Leveraging Down
When we want to decrease the leverage ratio, we will use as negative value.
The next step is we want to find how much debt we want to repay in order to descrease the current leverage ratio by .
Suppose is the total supply of ETHRISE token, we can define as follows:
We can use equations (4) and (5) to solve equations (6).
You may notice that is equal to which is expected.
is how much value we want to borrow in order to increase the leverage ratio by $\Delta L$
is how much value we want repay the debt in order to decrease the leverage ratio by $\Delta L$
Example of Leveraging Down
Suppose we want to rebalance the ETHRISE.
We have the following initial states:
ETH Price (): 4000 USDC
Total collateral managed by ETHRISE (): 100 ETH
Total debt managed by ETHRISE (): 200000 USDC
Total supply of the ETHRISE (): 10000 ETHRISE
Based on the initial states above we can calculate the collateral amount per ETHRISE token ():
Each ETHRISE is collateralized by 0.01 ETH.
Then we can calculate the collateral value per ETHRISE token ($C$) as follows:
Each ETHRISE has a collateral value of 40 USDC.
Then we can calculate and debt per ETHRISE token () as follows:
Each ETHRISE has 20 USDC as debt.
So we can calculate the net asset value () as follows:
The net-asset value of ETHRISE is 20 USDC.
The current leverage ratio is:
To recap:
Collateral value per ETHRISE: 40 USDC
Debt per ETHRISE: 20 USDC
NAV: 20 USDC
Leverage ratio of ETHRISE: 2
Suppose the ETH price is going down to 3800 USDC. Now the leverage ratio is going up:
As you can see, when the price of ETH is going down from 4000 USDC to 3800 USDC:
The net asset value is going down from 20 USDC to 18 USDC
The leverage ratio is going up from 2 to 2.111111111.
Now it's time to leverage down by . Using equation (5) we now how much debt we want to repay to decrease the leverage:
We will repay 18000 USDC debt to the vault. We do this by selling 4.736842105 ETH, assuming there is no slippage.
Now we have the new states:
ETH Price (): 3800 USDC
Total collateral managed by ETHRISE (): 95.26315789 ETH
Total debt managed by ETHRISE (): 182000 USDC
Total supply of the ETHRISE (): 10000 ETHRISE
Let's calculate the net-asset value once again after rebalancing:
Now the new leverage ratio after rebalancing:
As you can see, we have successfully leveraging down the leverage ratio from 2.111111111 to 2.011111111 without changing the net-asset value of the ETHRISE.
Rebalancing Rule
This is the rule of the rebalancing: When the leverage ratio is out of range ( or ) protocol will increase or decrease the leverage ratio by . , and will different based on the collateral asset.
Maximum Borrow Value and Repay Value
In order to prevent high slippage when rebalancing, we want to limit and to 500K USDC. The maximum borrow and repay value may differ for each asset.
Future Improvements
Currently we define as constants, we may use dynamic value of by utilizing of volatility value etc.
Last updated