Uniswap V3 on Corn was hosted via Oku's UI. Oku has discontinued frontend support for the chain, so to exit a position you call the NonfungiblePositionManager (NFPM) contract directly on Cornscan.
You can see your active LP positions on the Earn page of the Corn Chain App to confirm what you hold before you start.
The flow is three transactions:
decreaseLiquidity— pull all the liquidity out of your position.collect— sweep the underlying tokens (and any fees earned) to your wallet.burn— burn the now-empty position NFT (optional — saves a tiny bit of clutter).
NFPM contract
Prerequisites
Your wallet connected to Corn — see Connecting your wallet to Corn.
A small amount of BTCN for gas (3 transactions × small).
Your token ID — the NFT ID of your liquidity position. Find it in your wallet (NFTs section) or on Cornscan: search your address and look at NFT holdings.
Step 1 — Read your position
On the NFPM contract, click Contract → Read Contract:
Find the
positions(uint256 tokenId)function.Enter your token ID.
Click Query. The result includes
token0,token1,liquidity,tokensOwed0,tokensOwed1.
Note your liquidity value — you'll use it in Step 2.
Step 2 — Call decreaseLiquidity
On the Write Contract tab, find decreaseLiquidity. Fill in the tuple:
Field | Value |
| Your token ID |
| The full |
|
|
|
|
| A future Unix timestamp, e.g. |
Click Write and confirm. The position's liquidity drops to zero, but the tokens are now "owed" to you, not yet in your wallet.
Step 3 — Call collect
Still on Write Contract, find collect. Fill in:
Field | Value |
| Your token ID |
| Your wallet address |
| A very large number, e.g. |
| Same |
Click Write and confirm. Both underlying tokens (plus any fees earned) land in your wallet.
Step 4 (optional) — Burn
If you want to clean up, call burn(tokenId). This destroys the now-empty NFT. Skip this if you don't care.
Step 5 — Bridge
Both underlying tokens are now in your wallet. Bridge each via the Asset → Bridge index. Common pairs:
CORN/WBTCN — bridge CORN via the Corn Bridge app; unwrap wBTCN to BTCN first, then bridge BTCN.
USD₮0/WBTCN — bridge USD₮0 via the Corn Bridge app; unwrap and bridge BTCN.
Help
If decreaseLiquidity reverts:
Make sure you're calling it on the NFPM contract address above (
0x743E03cc...).Make sure your wallet is the owner of the token ID (read
ownerOf(tokenId)on the NFPM).Make sure
liquiditymatches what you read in Step 1 exactly.
For anything else, ping us in the Corn Discord with your wallet address, token ID, and the failing transaction hash.