How position funds work
Your position funds include earned fees, unused deposits, and proceeds from liquidity you removed. Collecting pays these funds to the withdrawal address fixed when you minted. You cannot choose a different destination when collecting. You can collect without changing your liquidity or range. The liquidity you leave in the position can continue earning fees while its range is active. Funds waiting for collection do not earn trading fees. Burning removes a position that has no liquidity and no position funds left. In the app, this happens for you when you decrease a position by 100 percent. With the SDKs or CLI, it is a separate call after the final collect.In the app
Before you startYou’ll need: Shield Wallet connected to Shield Swap, using the account that owns the position.Collect from a position
- Open Pools, then select the pool. Under Your Positions, the Position Funds column shows what each position holds for you. Hover the info icon next to the column name for what the total includes.
- Select Collect in the position’s row, or Collect All below the table to collect from every position in the pool.
- In Review collection, check the Receive amount for each asset and the position ID. Select Confirm.
- In the Transaction request in Shield Wallet, check that the request is from swap.shield.fi and that the amounts match, then select Confirm.
Collect from Pending Claims
Position funds also appear under Portfolio, where you can collect from positions in every pool at once.- Open Portfolio, then select Pending Claims. Total recoverable shows the combined value.
- Under Position Funds, find the position’s row. Select the info icon to open Position claim details, which shows the range and the position’s full ID.
- Select Collect in the row, then follow the review and wallet steps above.
Close a position
The app has no separate close action. Decreasing a position by 100 percent removes its liquidity, collects its funds, and closes it in one flow. See Decreasing liquidity.Troubleshooting
Next steps
- Decreasing liquidity to remove funds or close a position.
- Rebalancing positions to move a position to a new range without collecting first.
Collect and burn
Prerequisites: Your authenticated mainnetclient for Typescript, dex for Python, or CLI profile from Setup, and a position with an owed balance, for example after Decreasing liquidity.Request the amounts the position reports it owes, read back from chain, rather than amounts assumed from an earlier decrease. A request above the owed total is rejected; a request below it succeeds and leaves the remainder owed.Replace POSITION_TOKEN_ID with the ID of the position you intend to change. Define the confirmation helper for your SDK before running these examples.- Typescript
- Python
- CLI
Step 1: Collect what is owed
collect has no recipient parameter; payment goes to the withdrawal address fixed at mint. Despite their names, uncollectedFees0 and uncollectedFees1 include both the settled owed balances and fees accrued since the last checkpoint. Do not add the owed balances again.Step 2: Burn the empty position
Burn succeeds only after liquidity and both owed balances are zero.How it works on chain
collect pays requested amounts to the withdrawal address fixed at mint. burn closes the position after its liquidity and both owed balances reach zero.What each operation changes
How a collect settles
- The contract settles pending fees using the position’s current liquidity and fee growth inside its range.
- It checks each requested base-unit amount against that token’s total owed balance, including the newly settled fees. A request above either total rejects the transaction.
- It subtracts the payouts and advances the fee checkpoints. Any uncollected whole base units remain owed.
Close the position in order
- Decrease all liquidity and wait for acceptance and the replacement
PositionNFT. - Collect both owed balances and wait for acceptance and another replacement record.
- Confirm that
liquidity,tokens_owed0, andtokens_owed1are all zero. - Burn using the latest record. The position is closed once the burn is accepted.
Next steps
- Decreasing liquidity to remove liquidity before a final collect and burn.
- Rebalancing positions to move a position to a new range in one transaction.