Modules§
Structs§
- Pool
- Pool structure matching the Solidity implementation
- Pool
Handler - Type-safe handler for accessing
#struct_namein storage. - PoolKey
- Pool
KeyHandler - Type-safe handler for accessing
#struct_namein storage.
Constants§
- M
- Constants from the Solidity reference implementation
- MIN_
LIQUIDITY - N
- SCALE
- SQRT_
SCALE
Functions§
- compute_
amount_ out - Compute amount out for a fee swap
- sqrt
- Calculate integer square rootu