Module web30::amm[][src]

Structs

The DAI V2 Token’s address, on prod Ethereum

Uniswap V3’s Quoter interface for checking current swap prices, from prod Ethereum

Uniswap V3’s Router interface for swapping tokens, from prod Ethereum

The Wrapped Ether’s address, on prod Ethereum

Functions

Computes the geometric mean of token_1’s liquidity and token_0’s liquidity Intuitively this specifies how out-of-balance the two liquidity pools can be Attempts to encode the result as a Q64.96 (a rational number with 64 bits of numerator precision, 96 bits of denominator precision) by copying the javascript implementation