Effective price of a swap on a constant-product pool
An automated market maker holds 100 ETH and 300,000 USDC, so its spot price is 3,000 USDC per ETH. It keeps the product of its two balances constant on every trade, after first deducting a 0.3% fee from the input (the fee is not used in the product). You swap 30,000 USDC into the pool. What effective price do you pay, in USDC per ETH (to the nearest unit)?
Show hints (2)+
- Keep the product of the balances fixed; only 99.7% of your input enters the product.
- Effective price = USDC paid / ETH received.
Answer
Reveal answer →Final answer
3309 (± 1)
Create a free account to see the full worked solution and track your progress.
Interview format: Market Maker, Prop Trading