Whilst adding liquidity to a new pool within Uniswap V3, I am trying to calculate the formula for the 'Deposit Amounts' on any given pair.
For example, let's take the pair ETH/USDC
Current Price: 2172.05 Set price Rangle -20% & +20%
Min Price: 1747.7 Max Price: 2612.4
ETH: 0.394064 ($854.888) USDC: 1000 ($1000)
How is the ETH dollar amount calculated and what is the formula? (How did Uniswap get ETH to $854.888 ???)
ps: I have looked at the Uniswap V3 white paper https://uniswap.org/whitepaper-v3.pdf but need a step by step layman explanation. Cheers!
Additional
I have been reading the following article and the answer lies within the formulas below:
Source: uniswap-deep-dive-into-v3-technical-white-paper