haiko-xyz
strategy-reversion
Cairo

Reversion strategy for Haiko AMM

Last updated Jan 27, 2025
11
Stars
0
Forks
0
Issues
0
Stars/day
Attention Score
0
Language breakdown
Cairo 100.0%
Files click to expand
README

Reversion Strategy for Haiko AMM

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.

How it works

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

Getting started

# Run the tests
snforge test

Build contracts

scarb build

Version control

© 2026 GitRepoTrend · haiko-xyz/strategy-reversion · Updated daily from GitHub