Get LP share
Get LP share

Uniswap V2 · Reads onchain state

Reads the share of a Uniswap V2 pair an address's LP tokens represent. The address's balance of the pair's LP token over that token's total supply is the share, returned at 18 decimals where 1e18 is the whole pool. Reach for it to compute how much of each reserve a removal will return, multiplying share by the reserves read, or to set removal floors.