Define Arbitrage and Its Role in Keeping AMM Prices Aligned with External Markets.
Arbitrage is the simultaneous buying and selling of an asset in different markets to profit from a price difference. In AMMs, arbitrageurs monitor the pool's calculated price against external exchange prices.
If the AMM price is lower, they buy from the pool and sell externally, and vice versa. This activity adjusts the pool's token ratio until its calculated price matches the external market, ensuring price alignment and market efficiency.