Skip to main content

Input Parameters

To mint, call nonfungiblePositionManager.mint with MintParams.

Calling Mint

  • TickMath.MIN_TICK / TickMath.MAX_TICK provides liquidity across the whole range. For other fee tiers, snap to the pool’s tick spacing: (TickMath.MIN_TICK / tickSpacing) * tickSpacing. Get tick spacing via pool.tickSpacing(). Tick spacings: 0.01% = 1, 0.05% = 10, 0.3% = 60, 1% = 200.
  • amount0Min / amount1Min are set to zero here. In production, set slippage protection to prevent frontrunning.
  • This will not initialize a pool that does not yet exist.

Updating The Deposit Mapping And Refunding