
Uniswap · Acts onchain
Provides both tokens to a Uniswap V2 pair and receives LP tokens. The socket approves the router for both tokens and calls addLiquidity with the desired amounts and min floors; the router uses the pair's ratio, leaves the surplus side untaken, and the call returns the amounts taken and the LP minted. Set either amount to max to offer the full balance. Reach for it to enter a pair, coiling the LP out into a stake or a stored record, with floors set from the reserves read so the ratio cannot move against you.
On other protocols · 2