Hadron pools are designed for active management. Unlike passive AMMs (like Uniswap), the pool does not update the midprice based on reserves. You, the operator, must push price updates from your own price engine. This is the crank. The crank loop is the heartbeat of a live Hadron pool. A typical production crank:Documentation Index
Fetch the complete documentation index at: https://docs.hadron.fi/llms.txt
Use this file to discover all available pages before exploring further.
- Fetches the latest market price from your price source (CEX feed, oracle, internal model)
- Computes the new midprice and optionally a new spread
- Builds an
update_midprice_and_base_spreadinstruction - Sends and confirms the transaction
- Waits for the next tick, then repeats
.png?fit=max&auto=format&n=pH37fL0GL14scVCH&q=85&s=5749b485c8c5b2386a4cca404e97d6be)