Fee collection will always fail for initial positions of SuperDCA pools that contain native tokens
The fee collection logic for initial locked LP positions treats all pool currencies as ERC20 tokens, but Uniswap v4 represents native ETH as address(0), causing calls to balanceOf on address(0) to revert. As a result, fees accumulated in ETH-paired pools cannot be collected and remain permanently locked.
0x60scs Follow with 0xB4nkz, 0xBoraichoT and 47 others
Originally disclosed on Sherlock
Source: https://github.com/sherlock-audit/2025-09-super-dca-judging/issues/720
Found by
0x60scs, 0xB4nkz, 0xBoraichoT, 0xleo, 0xzen, 4Nescient, Aamirusmani1552, Al-Qa-qa, BADROBINX, BengalCatBalu, Boy2000, Cryptor, DuoSec, Icon_0x, IzuMan, JeRRy0422, JohnTPark24, JohnWeb3, Kirkeelee, Ollam, Orhukl, R, Razkky, SMB62, SuperDevFavour, alicrali33, bbl4de, bughunter442, deadmanwalking, drdee, farman1094, gneiss, holtzzx, jo13, kom, namx05, natachi, nonso72, oct0pwn, pindarev, shiazinho, shieldrey, silver_eth, techOptimizor, tobi0x18, udo, vinica_boy, vivekd, volleyking, wickie, y4y, yeahChibyke
Summary
Uniswap v4 represents native tokens like ETH as address(0) internally (ref ). The protocol has stated that all uniswap v4 pools need to be supported, including ones that contain native ETH as SuperDCA counterparty. However, even though native token pools can be listed successfully, the fee collection logic for the initial locked LP position treats all tokens like ERC20s, making fee claims impossible for pools with native tokens.
Root Cause
In SuperDCAListing.sol:317-318 the fee collection logic assumes both pool currencies are ERC20 tokens and calls IERC20(Currency.unwrap(token)).balanceOf() to get the before and after balances to calculate fees, but Uniswap v4 represents native ETH as address(0) which will revert when treated as an ERC20.
If either token0 or token1 is a native token like ETH, this will translate to IERC20(Currency.unwrap(address(0)).balanceOf(recipient); which will fail, causing fees for the initial position to be permanently lost
Internal Pre-conditions
- Pool needs to be created and listed with native ETH paired with DCA token
- Admin needs to attempt fee collection from ETH-paired position
External Pre-conditions
- None
Attack Path
- User creates DCA/ETH pool position and lists token through SuperDCAListing
- Pool generates trading fees over time in both DCA tokens and ETH
- Admin calls
collectFees()to retrieve accumulated fees from position - Function attempts to call
IERC20(address(0)).balanceOf(recipient)for ETH - Transaction reverts due to invalid function call on address(0)
- Fees remain permanently locked in position, unable to be collected
Impact
The protocol suffers permanent loss of accumulated trading fees for all ETH-paired pools, as the fee collection mechanism becomes completely non-functional for these positions.
ETH pairs are typically high-volume so the inability to collect fees from these positions represents a significant ongoing revenue loss for the protocol, especially if the initial position contains a large amount of liquidity.
PoC
Skip
Mitigation
Consider implementing native ETH detection and adjusting the before and after balance queries:
- Check if
Currency.unwrap()returnsaddress(0)for ETH or native chain token - Use
recipient.balancefor ETH balance queries instead of ERC20 calls
Discussion
sherlock-admin2
The protocol team fixed this issue in the following PRs/commits: https://github.com/Super-DCA-Tech/super-dca-gauge/pull/39
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
Root cause
The fee collection logic assumes both pool currencies are ERC20 tokens and calls balanceOf on the unwrapped currency address, but native ETH is represented as address(0) which does not implement ERC20 functions.
Impact
The protocol suffers permanent loss of accumulated trading fees for all ETH-paired pools, as the fee collection mechanism becomes completely non-functional for these positions.
What the attacker needed
Pool created and listed with native ETH paired with DCA…; Admin attempts fee collection from ETH-paired position
The fix
The protocol team fixed this issue by implementing native ETH detection and using recipient.balance for ETH balance queries instead of ERC20 calls.
How it was found
- User creates a DCA/ETH pool position and lists the token through SuperDCAListing.
- Pool generates trading fees over time in both DCA tokens and ETH.
- Admin calls collectFees() to retrieve accumulated fees from the position.
- The function attempts to call IERC20(address(0)).balanceOf(recipient) for ETH.
- The transaction reverts due to an invalid function call on address(0).
- Fees remain permanently locked in the position, unable to be collected.
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.
In Uniswap v4, native ETH is represented by a special zero address instead of a normal token contract. The protocol's fee collection code tries to call a standard token function on that zero address, which fails and reverts the whole transaction. This means any trading fees earned in pools that include ETH can never be withdrawn.
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.