About AMMs (automated market makers):
Liquidity providers deposit two tokens in proportion to the pool’s ratio and earn a share of trading fees.
AMM prices are calculated solely from the ratio of the amounts of the two tokens in the pool. When a price discrepancy with the external market arises, arbitrage trading brings the quote back near the external price.
$UNI 4.697 (-1.43%)