2732 shaares
32 private links
32 private links
/**
- @title Passive Strategy
- @notice Rebalancing strategy for Alpha Vault that maintains the two
- following range orders:
-
- Base order is placed between X - B and X + B + TS.
-
- 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.
*/