AMM Constant Product Formula x*y=k
The price of the on-chain coin, taking the coin on the Solana chain as an example:
How the price of Co nan changes. k is a constant value, x is the quantity of Co nan in the liquidity pool, and y is the quantity of sol in the liquidity pool. The above quantities are influenced by coefficients. x*y=k (constant value).