Pumponomics can be skipped when using FluidLocker::provideLiquidity
The provideLiquidity function only applies the pump mechanism to the ETH sent in the call, but uses all WETH held by the contract to create a Uniswap position. An attacker can transfer WETH directly to the locker and then call provideLiquidity with a tiny ETH amount, bypassing the intended buy-pressure.
0x73696d616f Follow with 0xb0k0, 0xbakeng and 7 others
Originally disclosed on Sherlock
Source: https://github.com/sherlock-audit/2025-06-superfluid-locker-system-judging/issues/210
Found by
0x73696d616f, 0xb0k0, 0xbakeng, 0xloscar01, 37H3RN17Y2, SamuelTroyDomi, illoy_sci, katz, nagato, newspacexyz
Summary
Pumponomics can be effectively skipped since the eth amount used to create a position on uniswap could be different than the called amount. It uses all available balance inside the contract. This causes the intended buy-pressure mechanism to be skipped, and damages Superfluid's economic model.
Root Cause
Inside FluidLocker::provideLiquidity function, only the eth sent in this call are pumped. However, all available wrapped eth are used to create a position. This allows locker owners to send eth manually to the locker, not when they are calling the provideLiquidity function, effectively skipping Pumponomics.
Internal Pre-conditions
None
External Pre-conditions
None
Attack Path
- Locker owner transfers certain amount of wrapped ethers to the locker directly by calling WETH9.transfer, they will be used as the paired asset for provideLiquidity function.
- Call provideLiquidity function with a dust amount of eth, and a normal amount of supAmount to utilize the wrapped ether we sent in step 1.
Now a position is created without Pumponomics.
Impact
Weaken the intended structural buy-pressure; causes protocol to lose potential fees earned from swaps and liquidity.
PoC
Due to the difficulty of observing the effect of the pump function (1% difference), we directly modify the FluidLocker contract for visibility by creating a new field
uint256 public ethPumped;
and place it after all other fields that already exist.
To use it, we insert this line into the beginning of the _pump function
ethPumped += ethAmount;
These modification should not change the behaviour of the contract.
Now, paste the following test into FluidLockerTest contract inside FluidLocker.t.sol
If needed, please import import { IWETH9 } from "../src/token/IWETH9.sol";
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
);
}
Mitigation
No response
Discussion
sherlock-admin2
The protocol team fixed this issue in the following PRs/commits: https://github.com/superfluid-finance/fluid/pull/27
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
The intended structural buy-pressure is weakened, and the protocol may lose potential fees from swaps and liquidity.
What the attacker needed
Be a locker owner; send WETH directly to the locker contract
The fix
The protocol team fixed this issue in a pull request.
How it was found
- The locker owner transfers WETH directly to the locker contract using WETH9.transfer.
- The locker owner calls provideLiquidity with a dust amount of ETH and a normal supAmount, which uses the pre-sent WETH to create a position.
- A Uniswap position is created without the intended pump mechanism being applied to the full amount.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A smart contract called FluidLocker is supposed to create buying pressure by using a small portion of the ETH you send to buy its own token. But it actually uses all the WETH sitting in the contract to create a liquidity position, not just the ETH you just sent. So someone can send WETH directly to the contract beforehand and then call the function with a tiny amount of ETH, and the buying pressure is almost zero.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.