Skip to content
Business logic Audit finding Intermediate

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.

https://github.com/sherlock-audit/2025-09-super-dca/blob/main/super-dca-gauge/src/SuperDCAListing.sol#L304-L324

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

  1. Pool needs to be created and listed with native ETH paired with DCA token
  2. Admin needs to attempt fee collection from ETH-paired position

External Pre-conditions

  1. None

Attack Path

  1. User creates DCA/ETH pool position and lists token through SuperDCAListing
  2. Pool generates trading fees over time in both DCA tokens and ETH
  3. Admin calls collectFees() to retrieve accumulated fees from position
  4. Function attempts to call IERC20(address(0)).balanceOf(recipient) for ETH
  5. Transaction reverts due to invalid function call on address(0)
  6. 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:

  1. Check if Currency.unwrap() returns address(0) for ETH or native chain token
  2. Use recipient.balance for 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

The original report as published on Sherlock, by 0x60scs. Images and videos are our own copies; raw HTML is shown as text. View it on Sherlock.

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

  1. User creates a DCA/ETH pool position and lists the token through SuperDCAListing.
  2. Pool generates trading fees over time in both DCA tokens and ETH.
  3. Admin calls collectFees() to retrieve accumulated fees from the position.
  4. The function attempts to call IERC20(address(0)).balanceOf(recipient) for ETH.
  5. The transaction reverts due to an invalid function call on address(0).
  6. 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.

More from Super DCA Liquidity Network

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.