Rebalancing strategies
Last updated
Last updated
This page describes how you can manually rebalance the strategies incase their health factor goes down.
Also, you can check out the Status Risk-engine/Pricer service: strkfarm.betteruptime.com
Open below links, scroll down to see health_factors
and click query:
STRK Sensei (DeltaNeutralLoopingSTRKETH) - https://voyager.online/contract/0x020d5fc4c9df4f943ebb36078e703369c04176ed00accf290e8295b659d2cea6#readContract
USDC Sensei (DeltaNeutralLoopingUSDCETH) - https://voyager.online/contract/0x04937b58e05a3a2477402d1f74e66686f58a61a5070fcc6f694fb9a0b3bae422#readContract
ETH Sensei (DeltaNeutralLoopingETHUSDC) - https://voyager.online/contract/0x009d23d9b1fa0db8c9d75a1df924c3820e594fc4ab1475695889286f3f6df250
On the contract page, scroll down to the "Contract Data" section.
Click on "Read Contract"
Go to health_factors
and click on it.
Select "Decimal" for response format.
Finally, click on "Query," and you will see two numbers as output, as shown in the picture below:
Here, the first number is the health factor of zkLend. Second is Nostra's.
All > 12000 -> Safe
At least one between 11500 - 12000 -> Warning
At least one below 11500 -> Danger
Open the "Write Contract" tab and go to rebalance
function. Also, make sure you connect your wallet!
It takes two parameters:
shouldRepay
: Write "1" if zkLend health factor is low or "0" if Nostra health factor is low (i.e. < 13000). You get this number by querying the health_factors
as mentioned above.
amount
: You get this number via trial and error. Can start with 1 ETH (i.e. 1000000000000000000). Use this tool: https://eth-converter.com. Try submitting the transaction by clicking on "Transact" button and your wallet extension will throw an error if its an incorrect value. Depending on the error, you should choose one of the two options:
If shouldRepay
is 1: Increase the value (eg. 1.1 -- 1.2 ETH or more) if the error is zkLend low health. Decrease the amount if Nostra is low health.
If shouldRepay
is 0: Decrease the amount if the error is saying Nostra low health (eg, 0.5-0.7 ETH). Increase the amount if zkLend has low health.