Decentralised News · Research & market intelligence
2027 planning edition · Primary sources checked 27 November 2026 · Uniswap V3 mechanism study with synthetic accounting fixtures.
A liquidity position can show accrued fees, an amount owed by its manager and a collection transaction without those numbers describing the same assets. In Uniswap V3, an owed balance can include principal removed from the pool. A careful ledger must follow both the entitlement and the tokens actually received.
What matters
- Stored
tokensOwedis a checkpointed amount, and after a liquidity decrease it can contain principal as well as fees. - Fee growth needs the NFT’s liquidity, range and checkpoint. A pool-wide fee counter alone does not establish that NFT’s earnings.
- A collection debit, actual receipt and reinvestment are separate records. Counting all three as income counts the same assets repeatedly.
The Signal
The reviewed position-manager implementation distinguishes expected collection amounts from the actual amounts returned by the pool. Its event and owed-balance reduction can therefore differ slightly from receipt. That is a concrete reason to reconcile token movements rather than stopping at an event label.
DN Alpha Thesis
LP reporting becomes more useful when it preserves transitions: fees accrue, an obligation is updated, assets are collected, and some assets may be invested again. The ledger should explain each transition without turning returned capital into yield or a new position balance into a second reward.
1. Separate the balances before calculating a return
Begin with historical contributions: the token amounts actually consumed when liquidity was added. Then record current principal inventory, meaning the underlying tokens represented by the remaining position at the selected state. Those quantities can differ because the position’s composition changes and because liquidity may have been added or removed. A difference in one token’s units is not, by itself, profit or loss.
Next distinguish fees accumulated since the latest accounting checkpoint, amounts already stored as owed, collections delivered to a recipient, and assets consumed in a subsequent reinvestment. These are stages and locations. A fee that moves from an owed balance into a wallet does not become a second fee merely because a different dashboard now displays it.
Uniswap’s official fee overview distinguishes the versions: V2 adds fees to pool reserves, whereas V3 fees accrue separately for collection. This article examines V3’s position accounting. It does not apply the same ledger mechanically to V2, V4 hooks, managed vaults or every DEX using the word “liquidity.”
For the separate question of whether the whole position outperformed holding its assets, use a consistent price and cash-flow comparison such as DN’s impermanent-loss analysis. The present task is to explain the assets behind a fee figure before using that figure in a return calculation.
2. Identify the NFT and read the correct checkpoint
The relevant identity is more than a wallet and token pair. Retain the chain, position-manager address, NFT token ID, pool, token0 and token1 addresses, fee tier, tick boundaries and observation block. An address that owns several NFTs can have different accounting histories for the same pair.
The official deployment register identifies the Ethereum V3 NonfungiblePositionManager as 0xC36442b4a4522E871399CD717aBDD847Ab11FE88. We checked its verified manager source and interface against the pinned repository implementation. This establishes the code examined; it does not imply that DN accessed a user’s NFT or measured a funded position.
The manager’s positions(tokenId) fields include liquidity, lower and upper ticks, two last-inside-fee-growth counters and two stored owed amounts. Uniswap’s position-fetching guide documents retrieving these fields. Keep the two token sides separate and apply each token’s own decimals only when presenting raw integer amounts.
The core pool’s position record is keyed by an owner address and tick boundaries. For positions wrapped by the NFT manager, that owner is the manager, and its pool-level position can aggregate liquidity from several NFTs sharing the same range. The pool-state interface describes that key and the checkpointed fields. Assigning its aggregate owed balance to one NFT would mix accounting scopes.
3. Reconstruct incremental fees with fixed-point arithmetic
For one unchanged-liquidity interval and one token side, the basic calculation is liquidity multiplied by the change in fee growth inside the NFT’s range, divided by 2128, rounded down to a raw token integer. The core Position library implements the corresponding checkpoint calculation. The result is incremental fees since the checkpoint, not all lifetime fees.
“Inside” is consequential. The Tick library derives inside growth from global growth and the lower and upper ticks’ outside-growth fields. Which side of each boundary counts depends on the current tick. Reading a global counter and multiplying by one NFT’s liquidity skips that range accounting.
Use compatible pool and NFT state at the same block to construct the current inside value. The stored last-inside counter must belong to that NFT’s checkpoint. If liquidity changed between the endpoints, split the history at that change; do not multiply the whole period’s growth by today’s liquidity. The worksheet accepts an already-established current inside counter, so it is not a replacement for reconstructing the ticks.
Counter arithmetic is also part of the method. The pool-state interface explicitly permits uint256 fee-growth counters to overflow. The applicable difference uses subtraction modulo 2256. Ordinary signed subtraction can report a negative value at a wrap, while converting the counters into floating-point numbers can lose low-order units. Neither is suitable for this ledger.
For an invented example, set NFT liquidity to 1,000,000 and the inside-growth increase to three times 2128. The incremental amount is exactly 3,000,000 raw units. With six token decimals, that is 3 tokens. If instead liquidity is one and the growth increase is 2128 minus one, floor division produces zero raw units, not a fraction available for transfer. These are arithmetic fixtures, not observed yields.
4. Distinguish collection, liquidity removal and NFT destruction
In the reviewed NonfungiblePositionManager, decreasing liquidity updates fees and adds the principal returned by the pool’s burn calculation into tokensOwed. Consequently, a later stored owed balance cannot be classified as pure fees without its transaction history.
The ordinary fee-collection operation does not itself reduce NFT liquidity. Uniswap’s collection guide describes collecting without removing liquidity. A user interface can nevertheless combine several calls into one transaction. Inspect the operations and asset transfers, rather than inferring the whole transaction’s effect from its button label.
| Operation | Accounting question | Evidence to retain |
|---|---|---|
| Update the fee checkpoint | What newly accrued amount becomes recognized as owed? | Liquidity and inside-growth counters for the interval. |
| Decrease liquidity | How much principal leaves active liquidity and becomes owed? | Liquidity reduction and returned token amounts. |
| Collect | How much owed accounting is debited and how much arrives? | Manager debit, pool outcome and recipient receipt. |
| Increase liquidity | How many collected or externally funded tokens are consumed? | Actual token amounts used and updated position state. |
| Burn the NFT | Was an already cleared NFT destroyed? | Zero remaining liquidity and owed amounts before destruction. |
The last operation is not the pool’s liquidity-burn calculation. The manager’s interface gives NFT destruction a separate method and requires the position to be cleared. Treating every function named “burn” as a token receipt would merge distinct stages.
5. Work through a mixed principal-and-fee collection
The worksheet defaults describe one hypothetical six-decimal token side. Historical contributions are 100 tokens. At the opening checkpoint, stored owed is 5: the historical ledger classifies 2 as fees and 3 as principal from an earlier decrease. The constant-liquidity growth interval adds 3 new fee tokens, using the fixed-point example above.
A subsequent decrease releases 4 more principal tokens. The resulting owed amount is 5 + 3 + 4 = 12. Its known composition is 5 fees and 7 principal. The next collection debits 10 from manager owed accounting but the recipient is assumed to receive 9.999999. Six received tokens are then actually consumed in reinvestment. An independently supplied closing principal snapshot is 87 tokens and already includes that reinvestment.
DN LP Fee and Principal Ledger
Hypothetical example, ready to edit. Use values and evidence from one consistent context. Blank optional records remain unknown.
One token side at a time, six decimals in the invented defaults. Fee growth uses uint256 modular subtraction, Q128 division and floor rounding, with unchanged NFT liquidity between checkpoints. Segment history at every liquidity change. Stored tokensOwed may contain principal. Blank classification stays unclassified; blank receipt stays unknown. The owed debit is distinct from actual receipt. Reinvestment is an actual consumed amount funded only by this collection, already included in the separately supplied closing principal. Historical deposits are not added to closing inventory. No price valuation, return, tax treatment, APR, gas expense, swap, rebasing token, transfer-tax token or executable collect quote is calculated.
| Stage | Token units | Interpretation |
|---|---|---|
| Stored owed at opening | 5 | 2 fees plus 3 previously released principal. |
| Incremental fee accrual | 3 | New fees calculated from the chosen growth interval. |
| New principal released | 4 | Capital moving out of active liquidity. |
| Owed before collection | 12 | 5 fees plus 7 principal. |
| Owed accounting debited | 10 | Leaves 2 in the modeled owed balance. |
| Actual receipt | 9.999999 | One raw unit below the debit. |
| Receipt reinvested | 6 | Leaves 3.999999 outside the position. |
| Closing principal inventory | 87 | Supplied separately; includes the 6 reinvested tokens. |
Calling the ten-token collection “ten tokens of earnings” would overstate what the ledger establishes. The available owed pool contained only five known fee tokens. Because this is a partial collection from a mixed balance, the scenario does not identify which economic component was received first.
Under the entered classification, the actual receipt’s fee portion can range from 2.999999 to 5 tokens. The lower bound allows all seven principal tokens to arrive; the upper bound allows all five fee tokens to arrive. These are composition bounds, not a claim that the contract assigns a collection order or that tax reporting may choose either figure freely.
The closing one-token inventory accounted for by the fixture is 87 principal + 2 still owed + 3.999999 retained receipt = 92.999999 tokens. Reinvestment is already inside the 87, so adding six again would double count it. Historical contributions of 100 are context; adding them to the closing inventory would count past funding as a present asset.
This is not a complete performance bridge. The other token, changing prices, all contributions and removals, gas and other costs still matter. The closing principal input is independently supplied, not derived by subtracting fees from historical deposits. A difference between 100 contributed units and 92.999999 current units on one side does not establish a monetary loss.
6. A collection event is not always the recipient receipt
The manager’s implementation computes capped collection amounts, asks the pool to collect, and reduces owed accounting by those computed amounts. Its Collect event reports the computed debit. The function’s returned token amounts come from the pool, and the source allows a small shortfall from core rounding. This is why the worksheet keeps the two inputs separate instead of assuming an event is payment proof.
The core pool collection code caps payment against its own owed balances, transfers the resulting amounts and emits its own Collect event. Match the relevant contract and event when reconstructing a transaction. Two events with the same name can report different layers of the operation.
In the fixture, debit minus receipt is 0.000001 token. The model shows that difference exactly; it does not certify rounding as its actual cause. If a real record differs materially, examine the recipient, intermediate contracts, token wrapping, additional transfers and transaction sequence before assigning an explanation.
Leave actual receipt blank when it has not been established. The model will still show the quantities it can calculate, but receipt-based outputs remain unknown. An estimated owed amount, a proposed collection maximum or a successfully constructed transaction is not an observed asset credit.
7. Reinvestment requires an additional asset-flow record
Uniswap’s liquidity overview explains that accrued V3 fees are not automatically compounded into the position. A strategy may automate collection and liquidity additions, but the record still needs the tokens actually consumed in that addition. A desired maximum amount is not the same as the amount used.
The worksheet limits reinvestment to funds from this specific receipt. If a transaction also draws tokens already held in the wallet, those additional flows need their own ledger. If it swaps one token into the other first, the swap changes both token quantities and introduces its own costs; the simple one-token fixture no longer describes the complete route.
Uniswap’s LP API integration guide also describes V3 collection routes that unwrap WETH and sweep tokens. An ETH receipt following an unwrap should be matched through that conversion, rather than compared blindly with a WETH transfer at a different address. The worksheet assumes the same token and excludes those intermediate conversions.
For a real reporting period, keep opening wallet funds, collection receipts, external contributions, reinvestment, other outflows and closing wallet balance distinct. Then reconcile the position at the same cutoff. The automation question is whether the extra deployment improves the result after costs; DN’s compounding-cost study addresses that separate decision.
8. Preserve unknowns instead of forcing the ledger to close
When historical owed has no classification, leave the corresponding fee and principal inputs blank. The worksheet retains an unclassified remainder. In the default example, erasing both classifications makes all five opening owed tokens unclassified and widens the possible fee portion of receipt to 0.999999–8 tokens. The actual total received is unchanged; confidence about its composition changes.
If inside growth is missing while liquidity is positive, incremental fees and the resulting total owed remain unknown. Zero liquidity is different: no new fees accrue through that zero-liquidity interval, while previously stored owed can still exist. The tool rejects a new principal release from a zero-liquidity interval within its scoped sequence.
For a read-only reconstruction, retain the starting NFT state, compatible pool/tick state, each liquidity-changing event, collection debits, actual transfers, reinvestment amounts and a closing principal snapshot. Check ownership and recipients separately. The purpose is a reproducible explanation of quantities, not a claim that collecting makes the position profitable or creates a particular taxable event.
Methodology, scope and limitations
DN read the four nearest existing articles and their tools before drafting. Liquidity-management research compares fees, inventory and rebalance costs; the impermanent-loss tool takes fees as an input; the compounding study compares schedules; and business accounting research connects wallet records with a financial ledger. This article adds the intervening NFT fee-accounting and receipt reconciliation.
Primary sources were checked on 27 November 2026. Core source was pinned to commit 5ea68a77cb541c6b3812df783be71ba8c081e25f and periphery source to 24ccf014fe7f81d74a14c1689d6fdf123f280e45. The reviewed manager source matched the verified Ethereum deployment. The examples are synthetic; no wallet, funded NFT, fee-collection transaction or reinvestment was executed.
The tool uses exact unsigned integer strings, modular uint256 fee-growth subtraction and floor division. It refuses owed amounts outside uint128 instead of treating overflow as wealth. It models one constant-liquidity accrual interval followed by specified actions without further fee accrual between them. Real histories with additional swaps or liquidity changes must be segmented. It is not a complete pool simulator or an executable collection quote.
Amounts are native token quantities. The model excludes market valuation, APR, gas, transfer-tax and rebasing behavior, tax recognition and accounting-policy judgments. The 2027 label is an edition marker, not a forecast of future protocol rules.
Frequently asked questions
Is tokensOwed the same as earned fees?
Only when the relevant history supports that classification. A liquidity decrease can add released principal to the same stored balance, and newer fees may not yet be reflected in its checkpoint.
Does collecting fees reduce principal?
The ordinary V3 collection operation does not reduce NFT liquidity. A transaction that also decreases liquidity has an additional principal effect. Read the complete sequence.
Can I use advertised APR to fill missing fee growth?
No. An annualized rate cannot reconstruct the NFT’s actual range, liquidity history, counters or receipts. Missing evidence should stay missing.
Are fees automatically reinvested after collection?
Collection and liquidity addition are separate steps in this V3 accounting. A managed service can automate them, but the ledger still needs actual reinvestment amounts and must avoid counting them twice.
Disclosure: This article contains no affiliate signup link. It is a documented mechanism study and hypothetical worksheet, not personalised investment, accounting or tax advice. See DN’s disclosures and limitations.
Download the source register and example
Keep the reviewed source register (JSON) and the hypothetical worked example (JSON). The worksheet buttons also download your entered scenario and its source register.




