STRKFarm Docs
AppTwitterTelegram
  • 🙏Welcome to STRKFarm
  • 📥How to deposit?
  • 📤How to withdraw?
  • ❓FAQ
  • 🫂Community
    • 🎉Raffle
    • 💯NFT Levels System
    • 🤝Referral Campaign
    • 🖼️OG Farmer NFT Campaign
  • 💰Strategies
    • 1️Auto-Compounding
    • 2️Sensei - Delta neutral Lending
    • Vesu Fusion - Rebalancing vaults
  • Ekubo - CL Vaults
  • 👩‍💻Developers
    • Integrations
      • Auto-compounding strategies
      • Sensei strategies
    • Risk engine
    • Contribute - Onlydust
    • Rebalancing strategies
    • Contracts
Powered by GitBook
On this page
  • How to manually check health factors:
  • Steps to query:
  • Interpreting Health Factors:
  • About Health factors:
  • How to manually rebalance?

Was this helpful?

  1. Developers

Rebalancing strategies

PreviousContribute - OnlydustNextContracts

Last updated 7 months ago

Was this helpful?

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:

How to manually check health factors:

Open below links, scroll down to see health_factors and click query:

  1. STRK Sensei (DeltaNeutralLoopingSTRKETH) -

  2. USDC Sensei (DeltaNeutralLoopingUSDCETH) -

  3. ETH Sensei (DeltaNeutralLoopingETHUSDC) -

Steps to query:

  1. On the contract page, scroll down to the "Contract Data" section.

  2. Click on "Read Contract"

  3. Go to health_factors and click on it.

  4. Select "Decimal" for response format.

  5. Finally, click on "Query," and you will see two numbers as output, as shown in the picture below:

Interpreting Health Factors:

Here, the first number is the health factor of zkLend. Second is Nostra's.

About Health factors:

  1. All > 12000 -> Safe

  2. At least one between 11500 - 12000 -> Warning

  3. At least one below 11500 -> Danger

How to manually rebalance?

Open the "Write Contract" tab and go to rebalance function. Also, make sure you connect your wallet!

It takes two parameters:

    1. 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.

    2. 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.

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 .

amount: You get this number via trial and error. Can start with 1 ETH (i.e. 1000000000000000000). Use this tool: . 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:

👩‍💻
above
https://eth-converter.com
strkfarm.betteruptime.com
https://voyager.online/contract/0x020d5fc4c9df4f943ebb36078e703369c04176ed00accf290e8295b659d2cea6#readContract
https://voyager.online/contract/0x04937b58e05a3a2477402d1f74e66686f58a61a5070fcc6f694fb9a0b3bae422#readContract
https://voyager.online/contract/0x009d23d9b1fa0db8c9d75a1df924c3820e594fc4ab1475695889286f3f6df250
image from voyager