Module amm

Module amm 

Source

Modules§

__packing_pool
__packing_pool_key

Structs§

Pool
Pool structure matching the Solidity implementation
PoolHandler
Type-safe handler for accessing #struct_name in storage.
PoolKey
PoolKeyHandler
Type-safe handler for accessing #struct_name in 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