SMART CONTRACTS
← Contract catalogAMMRouter
Route swaps and liquidity operations to pools.
Role and use
Provide swap paths and recipient conditions as an application entry point to CircuitBreakerAMM pools.
Integration considerationsProvide token approvals, minimum output and deadlines. Account for differences between a quote and actual execution.
Key contract operations
Key entry points for direct contract calls. Consult the linked implementation and matching ABI for parameters, types and access conditions.
| Operation | Purpose |
|---|---|
swapExactTokensForTokens | Swap tokens along a path |
addLiquidity | Add pool liquidity |
removeLiquidity | Remove pool liquidity |
quoteExactTokensForTokens | Quote output along a swap path |
Related contracts
Put it into practice
Payments & connected services
See the data model, processing sequence and SDK code for an application-level implementation.
Read the implementation patternSpecification and source
The Solidity source is pinned to the revision below. Match it with the SDK version and your network’s implementation address and ABI.
circuitbreaker-amm/contracts/AMMRouter.solSource revision: b53a5b5