uniswap_v3.utils
Documentation for eth_defi.uniswap_v3.utils Python module.
Uniswap v3 helper functions.
Functions
|
Decodes the path. |
|
Encode the routing path to be suitable to use with Quoter and SwapRouter. |
|
Returns the sqrt ratio as a Q64.96 corresponding to a given ratio of amount1 and amount0 |
Returns min and max tick for a given fee, this is used by default if the pool owner doesn't want to apply concentrated liquidity initially. |
|
|
Returns max tick for given fee. |
|
Returns min tick for given fee. |
|
|
|
Returns token0 (base token) amount in a liquidity range |
|
Returns token1 (quote token) amount in a liquidity range |
|
Run query on Uniswap v3 subgraph |
|
Returns price corresponding to a tick |
|
Returns square root price corresponding to a tick |