Skip to content

haiko-xyz/strategy-reversion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  1. Does not rely on an external oracle price, allowing for use with a much wider range of pairs.
  2. Tracks Vault positions with ERC20 tokens, allowing for greater composability across DeFi protocols.
  3. Builds on top of Giza's zkML stack and trustless Agents to bring the outputs of a trend classification model on-chain.
  4. Will be built in open source

Getting started

# Run the tests
snforge test

# Build contracts
scarb build

Version control