Plan a position from a human price range
plan_positionAligns a human price range to Uniswap v3 ticks and converts amounts to wei, preparing inputs for building a mint transaction.
Instructions
READ-ONLY helper (builds no tx). Given a human price range (token1 per token0) and optional human token amounts, reads each token's decimals over RPC and returns the aligned tickLower/tickUpper (for the fee's tick spacing) plus wei amount0Desired/amount1Desired — ready to feed into build_mint. token0 must be < token1 by address. Does NOT compute the optimal amount ratio for the range.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | Yes | ||
| token0 | Yes | ||
| token1 | Yes | ||
| amount0 | No | ||
| amount1 | No | ||
| chainId | Yes | ||
| priceLower | Yes | ||
| priceUpper | Yes |