Liquidity Mining
Liquidity mining, also known as yield farming, is a process where users provide liquidity to a decentralized exchange (DEX) and are rewarded with tokens.
Liquidity mining, often referred to as yield farming, is a DeFi strategy where users provide capital (liquidity) to decentralized exchanges (DEXs) or other DeFi protocols in exchange for rewards. These rewards typically consist of the protocol's native governance tokens, trading fees generated by the pool, or a combination thereof. The core mechanism involves users depositing a pair of assets (e.g., ETH and USDC) into a liquidity pool on a DEX. In return for providing this liquidity, which enables others to trade between those assets, the liquidity providers (LPs) receive LP tokens representing their share of the pool. These LP tokens can then be "staked" in a separate contract, often managed by the protocol, to earn additional rewards, typically in the form of newly minted governance tokens. The goal for protocols is to bootstrap liquidity quickly, incentivizing users to participate and thereby making their platform more attractive and functional. For users, liquidity mining offers the potential for high returns, but it comes with significant risks. These include impermanent loss (where the value of deposited assets diverges unfavorably compared to simply holding them), smart contract vulnerabilities, and the volatility of the reward tokens themselves, which can lose value rapidly. The APY (Annual Percentage Yield) in liquidity mining can be very high initially but tends to decrease as more liquidity enters the pools and reward emissions are reduced.
graph LR
Center["Liquidity Mining"]:::main
Pre_logic["logic"]:::pre --> Center
click Pre_logic "/terms/logic"
Rel_liquid_restaking_token["liquid-restaking-token"]:::related -.-> Center
click Rel_liquid_restaking_token "/terms/liquid-restaking-token"
Rel_liquid_staking["liquid-staking"]:::related -.-> Center
click Rel_liquid_staking "/terms/liquid-staking"
Rel_liquidity_pool["liquidity-pool"]:::related -.-> Center
click Rel_liquidity_pool "/terms/liquidity-pool"
classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
linkStyle default stroke:#4b5563,stroke-width:2px;
🧒 Explain Like I'm 5
It's like helping a store keep its shelves stocked with popular items. The store gives you a share of the profits and sometimes bonus coupons (tokens) for your help, but if the items you stocked become less popular, your share might be worth less.
🤓 Expert Deep Dive
Liquidity mining is a core growth mechanism for many DeFi protocols, particularly Automated Market Makers (AMMs). It incentivizes the provision of liquidity, which is essential for efficient price execution and low slippage. Protocols often allocate a significant portion of their token supply to liquidity mining rewards, distributed over time according to predefined emission schedules. This creates a "tokenomic" incentive loop: users farm tokens, which they may sell for profit or stake to further participate in the protocol, thereby increasing demand for the native token and supporting its value. The mathematical basis often involves calculating rewards proportional to a user's share of the total liquidity provided and the total rewards allocated to the pool. Impermanent Loss (IL) is a critical risk factor, calculated as the difference in value between holding the assets separately versus providing them as liquidity. Protocols may attempt to mitigate IL through mechanisms like single-sided liquidity provision or dynamic fee adjustments. The sustainability of liquidity mining programs is often debated, as high APYs can be temporary and reliant on continuous token inflation. Advanced strategies involve leveraging LP tokens as collateral or participating in complex yield-aggregation vaults.