Daily Shaarli

All links of one day in a single page.

November 9, 2021

Charm.fi PassiveStrategy
thumbnail

/**

  • @title Passive Strategy
  • @notice Rebalancing strategy for Alpha Vault that maintains the two
  • following range orders:
    1. Base order is placed between X - B and X + B + TS.
    1. Limit order is placed between X - L and X, or between X + TS
  • and X + L + TS, depending on which token it holds more of.
  • where:
  • X = current tick rounded down to multiple of tick spacing
  • TS = tick spacing
  • B = base threshold
  • L = limit threshold
  • Note that after these two orders, the vault should have deposited
  • all its tokens and should only have a few wei left.
  • Because the limit order tries to sell whichever token the vault
  • holds more of, the vault's holdings will have a tendency to get
  • closer to a 1:1 balance. This enables it to continue providing
  • liquidity without running out of inventory of either token, and
  • achieves this without the need to swap directly on Uniswap and pay
  • fees.
    */
FAQs - Bancor Network
thumbnail

explains Impermanent Loss Protection