
Uniswap V2 · Reads onchain state
Reads the amount a Uniswap V2 pair would pay right now for a swap. The pair applies the constant-product formula to its live reserves with its swap fee. The deepest pair is offered first. Reach for it to set a swap floor from a live quote with a slippage haircut, to compare venues before routing, or to gate a trade on a minimum rate with a predicate.
On other protocols · 3