Skip to main content

Why Is the Price in an X Y=k Pool Always Quoted as the Ratio of the Reserves, Y/x?

The price of token X in terms of token Y is the marginal rate of substitution, which is approximated by the ratio of the reserves. To buy a small amount of token X, a trader must deposit an amount of token Y such that the product of the new reserves remains equal to k.

The required amount of Y is calculated based on the current reserve ratio, y/x. This ratio represents the effective price at that exact point on the curve, reflecting how many Y tokens are needed for one X token.

How Is the Marginal Exchange Rate (Price) Calculated within a Constant Product AMM?
What Is the Concept of ‘Diminishing Marginal Utility’ in the Context of Network Growth?
Why Is the Effective Spread Considered a More Accurate Measure of Trading Cost than the Quoted Spread?
Which Type of Preimage Attack Is More Critical for Blockchain Integrity?