Comment on page
This page collects frequently asked questions specifically related to developin on Maverick's contracts.
These are all linked on the page for each pool or boosted position.
Click this icon to find the contract address for a pool or boosted position.
The PoolInformation contract has a
calculateSwapestimator. It will tell you the output you can expect. Then you can set
amountOutMinimumto a slightly smaller value, in order to limit slippage to a worst case value.
All of the aggregators (e.g., Odos, OpenOcean, 1inch, Paraswap) maintain APIs where you can route just through Maverick’s pools and find a best path.
The PoolInformation contract has a view function that will tell you the
binIdof your positions. Once you have that, the Pool contract has a
balanceOffunction that will tell you the amount per bin. You can also overestimate and the contract will only return the amount you actually have.
The formula is
log_1.0001(price) = tick * tickSpacing