C3P0

Home › All tools › Liquidity Fix

Liquidity Fix

The liquidity fix moves both tokens straight into a V2 pair and mints, in one transaction, bypassing the router. A router checks what it received against the pair's ratio and reverts on a fee-on-transfer token, or on a pair already holding balances nobody minted against. Transferring and minting lets the pair settle on its own balance delta, which handles both.

How to use

  1. Enter the token address (leave the quote empty for the native coin) and read the reserves and unminted balance
  2. For a taxing token, exempt the helper address shown on the page first
  3. Enter both amounts, optionally a minimum LP, then sign the approval and the fix

FAQ

Why must it be one transaction?
Tokens transferred into a pair belong to whoever calls mint next. Split across two transactions, any bystander could take the LP, so the transfers and the mint have to share one transaction.
What is the unminted balance?
Someone transferred tokens to the pair without minting, so they are not in the recorded reserves. This mint counts them in and the LP goes to you.
How is this different from a normal add?
A normal add lets the router return the excess side at the current ratio. Here both amounts go in in full, so a mismatched ratio donates the excess to the pool. Check the expected LP first.
What if my chain has none?
The fix needs a helper contract deployed on that chain. Without one the tool reports itself unavailable rather than falling back to sync() or a router add.

Related tools