stability-contracts icon indicating copy to clipboard operation
stability-contracts copied to clipboard

ALM

Open a17 opened this issue 1 year ago • 0 comments

Stability ALM

We need our own unique implementation of a universal Automatic Liquidity Manager for UniswapV3-based AMMs. We started similar development in the fall of 2023 in the form of Active strategies #14 #48, which are ALMs, but the concept has changed. Previously, we intended to manage the provision of liquidity completely on-chain, and create a separate strategy for each liquidity management algorithm (Fill-Up/Follow/Swap), but now we decided to shift part of the work to the off-chain environment and transfer already calculated tick ranges to the strategy when rebalancing. In general, we are now following the path of most existing ALMs.

Unique features

  • Impermanent Loss tracking
  • All known rebalancing algorithms
  • Integrated reinvestment of farming rewards

Base strategy

  • [ ] ALM is a single base strategy contract for all rebalancing algorithms and all supported DeXes.

Liquidity can be provided and rebalanced in the form of a dynamic number of ranges.

The calculation of the new position for rebalancing will be done off-chain, but the type of algorithm and its specifics will be requested from this contract. This specificity and algorithm can be changed through Governance and Multisig.

Algos

Rebalancing algorithms that will be supported by Stability Server Pro. Must be tested within this issue through the implemented methods of UniversalTest.

  • [ ] Fill-Up | Narrow, Wide (like Gamma)
  • [ ] Follow | Ultra Narrow (max farm APR, max IL), Very Narrow, Narrow
  • [ ] Swap | Custom range, custom rebalance trigger (USDC-USDT QuickSwap pool: 1 tickSpacing)

Implementations

  • [ ] ALMQuickSwapMerklFarm
  • [ ] ALMRetroMerklFarm

a17 avatar Mar 29 '24 14:03 a17