Skip to main content

Protocol Design

Smart Contract Architecture

Pools Protocol is built using Move, the smart contract language used on the IOTA chain. The codebase is cleanly modularized:

  • amm_router: Main interface for swaps and liquidity ops

  • amm_math and amm_utils: Handle pricing logic and overflow-safe calculations

  • amm_config: Allows for pausing pools and managing global state

  • amm_swap: Core logic for processing trades

  • amm_entries: Exposes public entrypoints for swaps, deposits, and admin tasks

  • stake, stake_entries, stake_config: Enable LP staking, reward distribution, and emergency controls