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
Constants
Default padding multiplied to uniswap exchange gas limit values due to variablity of gas limit values between iterations
Functions
Computes the sqrt price of a pool given token_1’s liquidity and token_0’s liquidity When used as the sqrt price limit, this calculates the maximum price that a swap is allowed to push the pool to by changing the underlying liquidity 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