Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
LABS
Glossary

LP Token Migration

LP Token Migration is the process of moving a liquidity position from one version of a protocol's pool or from one protocol to another, often involving burning old LP tokens and minting new ones.
Chainscore © 2026
definition
DEFINITION

What is LP Token Migration?

The process of moving liquidity provider tokens from one decentralized exchange or protocol version to another.

LP Token Migration is the technical process of redeeming or moving liquidity provider (LP) tokens from an old or deprecated smart contract to a new, upgraded one. This is a critical operational procedure in DeFi when a protocol undergoes a major upgrade, launches a new version (e.g., Uniswap v2 to v3), or when liquidity needs to be consolidated into a more efficient pool. The migration ensures that users' underlying capital and accrued fees are not stranded in obsolete contracts and can continue earning yields in the updated system. It typically involves a user approving a transaction that burns the old LP tokens and mints new ones representing a share in the updated liquidity pool.

The migration process is often initiated by the protocol's developers or decentralized autonomous organization (DAO) and is communicated through official channels. Users interact with a dedicated migration portal or smart contract, which handles the exchange of token representations. Key technical considerations include ensuring the price impact and slippage during the migration are minimal, maintaining the correct exchange rate between old and new tokens, and preserving the user's proportional share of the total liquidity. Failure to migrate can result in LP tokens becoming illiquid or losing value as activity shifts entirely to the new pool.

Common triggers for LP token migration include protocol upgrades that introduce new fee structures or concentrated liquidity, security vulnerabilities requiring a contract redeployment, or incentive program shifts where farming rewards are only distributed to the new pool. For example, when SushiSwap migrated liquidity from its initial MasterChef contract to MasterChefV2, users had to manually migrate their SLP tokens to access new rewards. The process underscores the non-custodial but active management required in DeFi, where smart contracts are immutable but not static, and user action is necessary to follow protocol evolution.

key-features
MECHANICS & PURPOSE

Key Features of LP Token Migration

LP token migration is the process of moving liquidity from one decentralized exchange (DEX) or liquidity pool to another, typically to access better yields, lower fees, or new features. This involves burning the old LP tokens and minting new ones.

01

Incentive Alignment

Protocols use liquidity mining rewards and yield farming programs to incentivize LPs to migrate. This is often a core growth strategy for new DEXs or upgraded versions (e.g., Uniswap v2 to v3). The process aligns LP incentives with protocol goals by offering token emissions or fee share boosts for providing liquidity in designated pools.

02

Technical Process Flow

The migration is a multi-step on-chain transaction:

  1. Remove Liquidity: Burn the old LP tokens to redeem the underlying token pair.
  2. Approve New Router: Grant the new DEX's router contract spending approval for the tokens.
  3. Add Liquidity: Deposit the tokens into the new pool to mint the new LP tokens.
  4. Stake (Optional): Deposit the new LP tokens into a farm to earn rewards. Automated migration contracts can bundle these steps into a single transaction.
03

Impermanent Loss & Risk Management

Migrating exposes LPs to impermanent loss during the transition window when assets are out of a pool. Price volatility between the removal and re-deposit steps can result in lost value. Advanced migration tools use flash loans or single-sided deposits to minimize this risk and market impact.

04

Governance & Protocol Upgrades

Migration is often mandated by DAO governance votes for major protocol upgrades. For example, a community may vote to sunset an old pool version and direct all liquidity and fees to a new, more capital-efficient design. LPs must migrate to continue earning fees or participating in governance.

05

Automation via Migration Contracts

To simplify the user experience, protocols deploy dedicated migration smart contracts. These contracts automate the entire process—withdraw, swap if necessary, and deposit—often in a single click, reducing gas costs and execution complexity for the liquidity provider.

06

Cross-Chain Liquidity Bridges

A specialized form of migration involves moving liquidity between different blockchains (e.g., Ethereum to Arbitrum). This uses cross-chain bridges or canonical bridges to lock/burn LP tokens on the source chain and mint a representation on the destination chain, enabling liquidity deployment in a new ecosystem.

how-it-works
MECHANISM

How LP Token Migration Works

A technical breakdown of the process for moving liquidity from one decentralized exchange (DEX) pool to another, typically involving the burning of old LP tokens and minting of new ones.

LP token migration is the process of moving liquidity provider (LP) positions from one automated market maker (AMM) pool to another, often to upgrade to a new contract version, switch to a more efficient DEX, or consolidate fragmented liquidity. The core mechanism involves a user or a smart contract burning their existing LP tokens from the source pool to withdraw the underlying asset pair, then depositing those assets into a new target pool to mint new LP tokens. This is not a direct token swap; it is a two-step redemption and re-deposit process executed atomically to minimize impermanent loss and slippage.

The migration is typically initiated through a dedicated migration portal or smart contract provided by the protocol team. A user approves the migration contract to spend their old LP tokens, then submits a transaction that bundles the sequential operations: (1) redeeming the old LP Token V1 for the constituent tokens (e.g., ETH and USDC), and (2) supplying those tokens to the new LP Token V2 pool. Advanced migrations may use a router contract to handle complex routing, fee adjustments, and residual dust. The entire process is designed to be permissionless, though users must often pay gas fees for the multiple contract interactions involved.

Key technical considerations during migration include price impact from large withdrawals/deposits, fee accrual differences between old and new pools, and potential slippage on the asset amounts received upon redemption. Protocols may implement incentives like liquidity mining rewards for the new pool to encourage migration. A critical security aspect is verifying the legitimacy of the new pool's smart contract address to avoid depositing funds into a malicious copy. Successful migration results in the user holding a new LP token representing a share of the updated liquidity pool, with its own fee structure and often improved gas efficiency or additional features.

common-triggers
LP TOKEN MIGRATION

Common Triggers for Migration

Liquidity providers migrate their LP tokens for several key reasons, primarily driven by protocol upgrades, security events, or the pursuit of superior yields and features.

01

Protocol Upgrade or V2 Launch

The most common trigger is a major protocol version upgrade. When a new version (e.g., Uniswap V2 to V3) launches, it introduces new features like concentrated liquidity or a different fee structure. The protocol incentivizes migration by deprecating the old version, often redirecting trading fees and liquidity mining rewards exclusively to the new pools.

02

Security Incident or Exploit

A discovered vulnerability, hack, or economic exploit in a liquidity pool smart contract forces an emergency migration. The protocol team deploys new, audited contracts and creates a secure migration path to move user funds away from the compromised system. This is a critical risk-mitigation event.

03

Superior Yield or Incentives

Liquidity providers are economically incentivized to migrate when a new protocol or fork offers better returns. This includes:

  • Higher liquidity mining APY or token rewards.
  • More favorable fee structures (e.g., lower protocol fees).
  • Access to veTokenomics models that offer governance power and fee revenue sharing.
04

Governance-Directed Migration

A formal DAO governance vote can mandate a migration. Token holders may vote to upgrade core infrastructure, change treasury management strategies, or consolidate liquidity into a more efficient system. This creates a scheduled, community-approved migration event for all LPs.

05

Cross-Chain or Layer Expansion

When a protocol expands to a new blockchain or Layer 2 (e.g., from Ethereum to Arbitrum), it often requires liquidity to be bridged and deposited into new pools on the destination chain. This migration is necessary to bootstrap liquidity in the new deployment and is frequently accompanied by incentive programs.

06

Underlying Asset Change (Rebasing/Upgrade)

Migration is required when the underlying tokens in a pool undergo a fundamental change. Examples include:

  • A token undergoing a rebasing mechanism that is incompatible with standard LP tokens.
  • A token upgrade or contract migration (e.g., from a standard ERC-20 to an ERC-4626 vault standard).
  • A wrapping event, like migrating from stETH to wstETH pools.
examples
LP TOKEN MIGRATION

Real-World Examples

LP token migration is a critical operational process in DeFi, often triggered by protocol upgrades, security incidents, or liquidity pool optimizations. These examples illustrate how major protocols have executed migrations to maintain user trust and system integrity.

02

SushiSwap "Vampire Attack" Migration

In 2020, SushiSwap executed a liquidity migration from Uniswap, a classic example of a "vampire attack." The protocol incentivized users to migrate their Uniswap v2 LP tokens to SushiSwap by offering SUSHI governance tokens as a reward. The process was facilitated by a migration contract that:

  • Accepted users' Uniswap LP tokens.
  • Withdrew the underlying liquidity from Uniswap.
  • Deposited it into an identical SushiSwap pool.
  • Issued new SushiSwap LP tokens and distributed SUSHI rewards to the migrator.
03

Curve Finance Gauge Migration & Rewards

Curve Finance migrations often involve moving gauge weight and CRV emissions rather than the underlying LP tokens themselves. When a new, optimized pool version is launched (e.g., a metapool), LPs may migrate to capture higher yield. The process typically involves:

  • Depositing old LP tokens into a migration zap contract that swaps them for the new LP tokens.
  • The new LP tokens must then be staked in a gauge to earn CRV rewards and voting power.
  • This ensures liquidity and vote-locking incentives are seamlessly transferred to the upgraded pool.
04

Post-Exploit Migration: Cream Finance

Following a security exploit, protocols may need to migrate to new, audited contracts. After Cream Finance's October 2021 hack, the team created a migration plan for affected liquidity providers. This involved:

  • Snapshotting LP token balances from the old, compromised contracts at a specific block.
  • Deploying new, secure vault contracts.
  • Allowing users to burn their old, worthless LP tokens to mint new ones in the secure system, restoring their claim on the protocol's remaining treasury assets.
05

Automated Migration via Zap Contracts

To simplify complex migrations, protocols deploy zap contracts that bundle multiple transactions. For example, migrating between different Automated Market Maker (AMM) types or wrapping LP tokens might require several steps. A zap automates this by:

  • Accepting the old LP token.
  • Programmatically withdrawing, swapping, and re-depositing assets into the new pool in a single transaction.
  • Minimizing slippage, gas costs, and user error. Yearn Finance and other yield aggregators frequently use zaps for vault migration strategies.
06

Cross-Chain LP Migration

As multi-chain DeFi expands, LP migration can occur across blockchains. Moving liquidity from Ethereum to an EVM-compatible chain like Arbitrum or Polygon involves:

  • Using a cross-chain bridge or canonical bridge to transfer the underlying tokens.
  • Burning the LP tokens on the source chain.
  • Minting new LP tokens on the destination chain after providing liquidity in a new pool.
  • Protocols like Hop Protocol or Stargate facilitate this by offering cross-chain LP tokens that represent bridged liquidity.
security-considerations
LP TOKEN MIGRATION

Security Considerations & Risks

The process of moving liquidity provider (LP) tokens from one smart contract to another introduces critical security vectors. These risks range from smart contract exploits to governance manipulation and user error.

01

Smart Contract Vulnerabilities

The new migration contract is a primary attack surface. Risks include:

  • Reentrancy attacks where malicious code drains funds during the transfer.
  • Logic flaws in the migration function that could mint incorrect token amounts or lock funds.
  • Upgradeability risks if the contract uses proxy patterns, where admin keys could be compromised to alter behavior post-migration. Always require audits from multiple reputable firms and a formal verification of critical state changes.
02

Governance & Centralization Risks

Migration is often initiated via a governance vote, creating several risks:

  • Vote manipulation through token borrowing or flash loans to pass a malicious proposal.
  • Tyranny of the majority where a large holder forces a migration that harms smaller LPs.
  • Admin key risk if the migration is executed by a multi-sig; a compromised signer could redirect funds. Transparent governance forums and time-locked execution are essential mitigations.
03

User Execution & Phishing

End-users are vulnerable during the migration process:

  • Phishing websites impersonate the legitimate migration portal to steal approval signatures and private keys.
  • Approval risks: Users must grant high or infinite token approvals to the new contract, which could be exploited if the contract is malicious.
  • Transaction front-running: Bots can exploit public migration transactions, though this is mitigated by using commit-reveal schemes or direct contract interactions.
04

Liquidity Fragmentation & Economic Attacks

Migration can destabilize the underlying asset's economics:

  • Temporary liquidity gaps occur as funds move, creating arbitrage opportunities and price slippage.
  • Oracle manipulation during the migration window can affect price feeds for the old and new pools.
  • Denial-of-Service (DoS) attacks on the migration transaction via high gas prices can prevent users from migrating, leaving them in an deprecated, illiquid pool. Staggered migrations and liquidity incentives can reduce these impacts.
05

Timelock & Emergency Procedures

A secure migration must include safety mechanisms:

  • Timelock on execution: All critical functions (e.g., setting new contract addresses) should have a mandatory delay (e.g., 48-72 hours) allowing users to review and exit.
  • Emergency pause function: A guarded ability to halt migration if bugs are discovered.
  • Clear migration window: A defined period for users to move funds, after which the old contract should have a secure shutdown procedure to prevent funds from being stranded in an unsupported system.
06

Verification & Transparency

Users must verify every aspect of the migration:

  • Contract verification: Ensure the new contract's source code is publicly verified on the block explorer and matches the audited version.
  • Token address verification: Double-check that the new LP token contract address is correct and immutable.
  • On-chain governance verification: Confirm the migration proposal passed legitimately by checking the governance contract directly, not relying on third-party sites. Trust should be minimized; verify all data on-chain.
LP TOKEN MIGRATION

Frequently Asked Questions (FAQ)

Common questions and technical details for developers and liquidity providers navigating the process of moving liquidity to a new smart contract or protocol version.

An LP token migration is the process of moving liquidity provider positions from an older or deprecated smart contract to a new, upgraded version, which involves users redeeming their old LP tokens for new ones representing a share in the updated liquidity pool. This is typically initiated by a protocol upgrade, a security patch, or a move to a more efficient Automated Market Maker (AMM) design. The migration process is governed by smart contracts and often requires users to approve a transaction that burns the old tokens and mints new ones, transferring the underlying assets to the new pool. Failure to migrate can result in liquidity being stranded in an unsupported or insecure contract.

ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected Directly to Engineering Team
LP Token Migration: Definition & Process in DeFi | ChainScore Glossary