# V3AMO integration with V3 does not collect LP fees when burning liquidity.

SolidlyV3AMO's unfarmBuyBurn calls burnAndCollect, but SolidlyV3 removed in-pool fee accrual, so LP fees are never collected and stay stuck forever.

- Payout: Audit contest
- Severity: high
- Program: Axion
- Found by: pkqs90
- Disclosed: 2024-10-07
- Write-up quality: 6/10
- Original: https://github.com/sherlock-audit/2024-10-axion-judging/issues/242
- Library page: https://bugbountylibrary.com/r/sherlock%3A2024-10-axion%3AH-3
- Tags: area:web3 domain:web3 impact:funds-loss kind:contest platform:sherlock sev:high tech:evm tech:solidity technique:source-review vuln:accounting-error vuln:business-logic

**Target:** SolidlyV3AMO liquidity-AMO contract / SolidlyV3 pool burnAndCollect
**Root cause:** SolidlyV3 forked UniswapV3 but removed fee accrual in Position.update and moved fee distribution to a merkle-based RewardsDistributor, so burnAndCollect returns no LP fees.
**Steps:**
1. Read SolidlyV3Pool.burnAndCollect -> _burn -> _modifyPosition -> _updatePosition -> Position.update; note fee-growth update removed vs UniswapV3.
2. Confirm SolidlyV3 docs: fees/bribes distributed via RewardsDistributor merkle claims, not pool collect.
3. Inspect SolidlyV3AMO._unfarmBuyBurn: it calls burnAndCollect expecting amount0Collected/amount1Collected to include LP fees.
4. Observe collected amounts are zero for fees; fees remain claimable only via RewardsDistributor, which the AMO never calls.
**How found:** Code-reading comparison of SolidlyV3's Position.update against UniswapV3 revealed the fee-accrual logic was stripped, then cross-checked against Solidly docs describing the RewardsDistributor, exposing the AMO's reliance on burnAndCollect for fees.
**Insight:** When integrating a UniswapV3 fork, diff the fork's Position/Tick fee-growth code against upstream; forks like Solidly move fee distribution to external merkle distributors, so collect() silently returns nothing and integrations must claim separately.

