페이지를 넘기고 있습니다.
다음 장을 불러오고 있습니다…
잠깐… 나만의 읽기 환경을 만들어 보세요.
글꼴과 테마는 화면 설정에서 설정하세요. 눈의 편안함도 중요합니다.
다음 장을 불러오고 있습니다…
The x * y = k rule used by Uniswap v2-style pools. Larger trades pay a steeper price.
브라우저의 읽어주기 지원을 확인하는 중…
이 읽기 자료는 현재 영어로 제공됩니다. 인터페이스에는 선택한 언어가 적용됩니다.
영어 원문 읽기 →A simple constant-product market maker relates two reserves through x multiplied by y equals k. A trade that removes one asset must add enough of the other to satisfy the pool's invariant. This produces a curved exchange rate: buying a larger portion of a reserve becomes progressively more expensive. In an implementation with retained trading fees, the reserve product can increase over time, so constant product describes the pricing relationship rather than a claim that the numerical product never changes.
Start with 100 units of token A and 1,000 units of token B, giving a product of 100,000. Ignoring fees, a trader adding 10 A leaves 110 A in the pool. Keeping the product constant requires about 909.09 B to remain, so the trader receives about 90.91 B. The starting reserve ratio was ten B per A, but the average execution price is lower because the trade moves along the curve. This difference arises from the trade's size relative to liquidity.
The formula enforces a reserve relationship; it does not know the asset's fair price on other venues. Arbitrage can move pool ratios toward external prices, and a temporary reserve ratio can be manipulated by trading. An application relying on a pool for valuation therefore needs an appropriate oracle design rather than blindly trusting its current spot ratio. The illustrative arithmetic also omits fees, integer rounding, transfer restrictions, and other implementation details. Those details must be included when calculating the actual outcome of a transaction.