The Reversion Strategy operates on a trend classification model (Up
, Down
or Ranging
) to place countervailing liquidity positions in the Haiko AMM, capturing fees on reversion to the trend.
Positions automatically follow the price of an asset, updated on either single or double-sided price action, depending on the prevailing trend. It is inspired by Maverick Protocol's Left and Right modes and enables liquidity provision in both volatile and stable market conditions.
Unlike the first Replicating Strategy for Haiko, it:
- Does not rely on an external oracle price, allowing for use with a much wider range of pairs.
- Tracks Vault positions with ERC20 tokens, allowing for greater composability across DeFi protocols.
- Builds on top of Giza's zkML stack and trustless Agents to bring the outputs of a trend classification model on-chain.
- Will be built in open source
# Run the tests
snforge test
# Build contracts
scarb build
- Scarb 2.6.3
- Cairo 2.6.3
- Starknet Foundry 0.21.0
- OpenZeppelin Contracts 0.11.0