> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3.fun/llms.txt
> Use this file to discover all available pages before exploring further.

# Estimate Migration Price

Estimating price at migration and considerations for Uniswap v4 initialization.

## Overview

Migration initializes a Uniswap v4 pool. The contract computes `sqrtPriceX96` from bonding state.

## Practical approach

- Use bonding reads to approximate price near the target:
- `getCurrentBondingCurvePricePerToken()`
- `getBondingProgress()`

## Considerations

- The final split and liquidity amount can affect initial ticks.
- Slippage protections are applied when adding liquidity.
- For ERC20 quote assets, ensure pair and decimals are accounted for when converting to `sqrtPriceX96`.

Exact initialization math is handled on-chain. Use reads for UI estimation; treat final on-chain initialization as source of truth.