# The value of each closure is not the same, and the same ValueToken cannot be used for all cids

Burve ValueTokenFacet mints one shared ValueToken across all closures, letting an attacker mint against a low-value cid and burn against a high-value cid to drain LPs.

- Payout: Audit contest
- Severity: medium
- Program: Burve
- Found by: Drynooo
- Disclosed: 2025-04-17
- Write-up quality: 7/10
- Original: https://github.com/sherlock-audit/2025-04-burve-judging/issues/280
- Library page: https://bugbountylibrary.com/r/sherlock%3A2025-04-burve%3AM-4
- Tags: area:web3 domain:web3 impact:funds-loss kind:contest platform:sherlock sev:medium tech:evm tech:solidity technique:source-review vuln:accounting-error vuln:business-logic

**Target:** ValueTokenFacet mint/burn in multi-closure AMM
**Root cause:** ValueTokenFacet.mint/burn uses a single ValueToken regardless of cid, so minted value from one closure is redeemable against any other closure's liquidity.
**Steps:**
1. Set up closures with differing token values via `swapFacet.swap` so token[0]<token[1]<token[2]
2. Victim bob: `valueFacet.addValue(bob,0x6,1e19,0)` then `valueTokenFacet.mint(1e19,0,0x6)`
3. Attacker alice: `valueFacet.addValueSingle(alice,0x3,1e19,0,tokens[1],0)` on lower-value cid
4. `valueTokenFacet.mint(1e19,0,0x3)`
5. `valueTokenFacet.burn(1e19,0,0x6)` to redeem against higher-value closure
6. `valueFacet.removeValueSingle(alice,0x6,1e19,0,tokens[1],0)` and compare received vs requiredBalance
**How found:** Noticed mint/burn in ValueTokenFacet ignores cid, hypothesizing that a single ValueToken could be redeemed across closures of differing value; validated with a forge PoC comparing received vs deposited value.
**Exploitation:** Attacker adds liquidity to a low-value closure, mints the shared ValueToken, then burns it against a higher-value closure where another user has minted, redeeming more valuable liquidity and removing it for profit.
**Insight:** When a protocol issues a single fungible receipt token across multiple pools/closures, check whether mint and burn are bound to the same pool id — cross-pool redemption lets you arbitrage pool value differences at LPs' expense.

