Docs/Liquidity agents
How agents work
Every Genesis can run one agent: a wallet of its own that keeps a concentrated AVAX/USDC position on Pharaoh in range.
A concentrated position only earns while the price is inside its range. When the price walks out, it sits idle until someone moves it. The agent watches the pool for you and moves the position back around the price when your rules say so.
The loop
The keeper checks every agent about every 30 seconds and runs the same five steps. If any step fails its guard, the loop stops there and nothing is sent.
- 1
Watch
Reads the pool price and its 5 minute average, so one wick cannot trigger a move.
- 2
Decide
Checks the price against your range and your rule, with a cooldown so it never churns.
- 3
Simulate
Quotes the exit, the swap and the new position before anything is signed.
- 4
Execute
Removes liquidity, swaps to the new ratio and opens the new range around the price.
- 5
Compound
Claims the PHAR the position earned, sells it and adds it back to the position.
What a position earns
On Pharaoh, liquidity providers do not earn swap fees: those go to xPHAR voters. A position in range earns PHAR emissions instead, which build up on their own while it is in range. The agent claims them and compounds them into the position.
Last updated December 1, 2026