# 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 $C$ is collateral value per ETHRISE token and $V$ is the net-asset value of the ETHRISE token.

The leverage ratio $L$ will decrease when the collateral price is up and $L$ will increase when the collateral price is down.

## Rebalancing Problem

We can simplify the rebalancing problem as follows:

Where:

$L_{t+1}$ is the target leverage ratio

$L_{t}$ is the current leverage ratio

$\Delta L$ 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 $\Delta L$ as positive value.

The next step is we want to find how much value we want to borrow $B_{t+1}$ in order to increase the current leverage ratio $L_{t}$ by $\Delta L$.

Suppose $N$ is the total supply of ETHRISE token, we can define $B_{t+1}$ 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 ($P$): 4000 USDC

Total collateral managed by ETHRISE ($\hat C$): 100 ETH

Total debt managed by ETHRISE ($\hat D$): 200000 USDC

Total supply of the ETHRISE ($N$): 10000 ETHRISE

Based on the initial states above we can calculate the collateral amount per ETHRISE token ($A$):

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 ($D$) as follows:

Each ETHRISE have 20 USDC as debt.

So we can calculate the net-asset value ($V$) 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 $\Delta L=0.1$. 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 ($P$): 4300 USDC

Total collateral managed by ETHRISE ($\hat C$): 105.3488372 ETH

Total debt managed by ETHRISE ($\hat D$): 223000 USDC

Total supply of the ETHRISE ($N$): 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 $\Delta L$ as negative value.

The next step is we want to find how much debt we want to repay $R_{t+1}$ in order to descrease the current leverage ratio $L_{t}$ by $\Delta L$.

Suppose $N$ is the total supply of ETHRISE token, we can define $R_{t+1}$ as follows:

We can use equations (4) and (5) to solve equations (6).

You may notice that $B_{t+1}$ is equal to $R_{t+1}$ which is expected.

$B_{t+1}$ is how much value we want to borrow in order to increase the leverage ratio by $\Delta L$

$R_{t+1}$ 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 ($P$): 4000 USDC

Total collateral managed by ETHRISE ($\hat C$): 100 ETH

Total debt managed by ETHRISE ($\hat D$): 200000 USDC

Total supply of the ETHRISE ($N$): 10000 ETHRISE

Based on the initial states above we can calculate the collateral amount per ETHRISE token ($A$):

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 ($D$) as follows:

Each ETHRISE has 20 USDC as debt.

So we can calculate the net asset value ($V$) 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 $\Delta L=0.1$. 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 ($P$): 3800 USDC

Total collateral managed by ETHRISE ($\hat C$): 95.26315789 ETH

Total debt managed by ETHRISE ($\hat D$): 182000 USDC

Total supply of the ETHRISE ($N$): 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 ( $L_{t} < L_{min}$ or $L_{t} > L_{max}$) protocol will increase or decrease the leverage ratio by $\Delta L$. $L_{min}$, $L_{max}$ and $\Delta L$ 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 $B_{t+1}$ and $S_{t+1}$ to 500K USDC. The maximum borrow and repay value may differ for each asset.

## Future Improvements

Currently we define $\Delta L$ as constants, we may use dynamic value of $\Delta L$ by utilizing of volatility value etc.

Last updated