How does an AMM price trades?
AMMs don’t require buyers and sellers to be matched one by one. Users swap directly against a pair of tokens in a liquidity pool.
Uniswap V2 uses the x × y = k model: ignoring fees, the product of the quantities of the two tokens in the pool remains unchanged before and after a swap.
The most important thing to remember when managing a position: set a slippage limit when trading on a DEX. If it’s too high, you could lose more to sandwich attacks.
$UNI 4.963 (+5.96%)