Liquidity Pool
A liquidity pool is a smart contract holding paired cryptocurrency reserves. It powers decentralized trading on AMMs like Uniswap by enabling automated swaps.
What Is a Liquidity Pool?
A liquidity pool is a smart contract that holds reserves of two or more tokens for traders to swap against. It replaces the order book on a decentralised exchange: instead of matching buyers with sellers, an automated market maker (AMM) formula sets the price from the ratio of the reserves.
In the constant-product design (x * y = k) used by Uniswap v2, every trade changes the ratio and therefore the price, and the larger a trade is relative to the pool, the worse the rate it gets. Stable pools such as those on Curve use a formula that stays flatter around 1:1.
Anyone can become a liquidity provider by depositing tokens and receives an LP token that represents their share. Each swap pays a fee, 0.3% in Uniswap v2, that goes to the providers. In return they bear impermanent loss and the risk of a contract bug or of one of the tokens collapsing.
With a hardware wallet, a swap against a pool is a contract call that should be readable on the device. Providing liquidity moves the tokens out of the wallet into the contract; the key then controls the LP token, which is needed to withdraw. Anyone can create a pool for any token, including a counterfeit with a familiar ticker.
Real-World Examples
Example 1: A SafePal S1 owner swaps ETH for USDC on Uniswap through WalletConnect. In a deep pool the price is close to the market; the same trade in a thin pool would move the price by several percent.
Example 2: A provider deposits ETH and USDC of equal value and receives LP tokens. Months later they redeem them for a different mix of the two tokens plus their share of the fees.
Example 3: A scammer creates a pool for a counterfeit token that uses the ticker of a popular coin. Buyers who do not check the contract address receive worthless tokens.
Ready to Choose a Secure Wallet?
Use our tools to find the right hardware wallet for your needs.