Skip to content
Business logic Audit finding Intermediate

Unfair distribution of rewards for LPs

Rewards accumulated over time are distributed only to liquidity positions that are in range at the moment a liquidity operation triggers distribution, not to those that provided active liquidity during the accrual period. An attacker can move the price tick to a narrow range where their position is active, trigger distribution, and collect most of the rewards.

patitonar Follow with vinica_boy

Originally disclosed on Sherlock

Source: https://github.com/sherlock-audit/2025-09-super-dca-judging/issues/489

Found by

patitonar, vinica_boy

Summary

The pool's reward distribution occurs during each liquidity operation through the beforeAddLiquidity and beforeRemoveLiquidity hooks. The Uniswap pool's donate mechanism is used, which distributes rewards to in-range LPs at the current slot0.tick. The problem with this design is that rewards accrued over a certain period are distributed to the current in-range position, regardless of which positions provided active liquidity during the accrual period. This can be exploited by an attacker who performs the following steps (can be done in a single transaction):

  1. Some time has passed and rewards have been accumulated, but not distributed.
  2. Attacker makes a swap to move the tick to a predefined tick where their position provides liquidity in a small adjacent tick range.
  3. Triggers the reward distribution mechanism by collecting fees (e.g., modifying liquidity with a 0 liquidity delta, which triggers the beforeRemoveLiquidity hook).
  4. His position would accrue most of the fees because of the super tight range it has provided liquidity.
  5. Swaps back to move the tick to its original value.

The attacker incurs gas fees and swap fees, but depending on the accrued rewards, this can be profitable. Even if not profitable, this would still lead to steal of rewards from other honest LPs.

In a normal workflow scenario it would look like this - rewards accrue over a certain time period without any liquidity operations and numerous swaps move the tick in range of tick t0 to tick t1. All LPs that have provided active liquidity during that period should be rewarded, but if there is a certain market movement and price/tick move to a different tick t2 and liquidity operation is triggered at that point, only positions which have tick t2 in range would accrue rewards for all period since the last distribution.

Root Cause

The main problem is that the protocol cannot account for which LPs have provided actual in-range liquidity during reward accrual and distributes reward when there is an liquidity operation.

handleDistributionAndSettlement()

Internal Pre-conditions

N/A

External Pre-conditions

N/A

Attack Path

Shared in the Summary section.

Impact

Steal of LPs rewards.

PoC

N/A

Mitigation

Non-trivial mitigation as we need a way to account for the active LP position which deserve part of the accumulated rewards. One option would be to lock LPs positions and distribute rewards on a fixed time epochs instead of distributing rewards on liquidity operations. This would allow to verify which positions have actually provided in-range liquidity for that epoch and distribute rewards based on that.

Discussion

sherlock-admin2

The protocol team fixed this issue in the following PRs/commits: https://github.com/Super-DCA-Tech/super-dca-gauge/pull/52

The original report as published on Sherlock, by patitonar. 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

Likely the protocol distributes accumulated rewards only when a liquidity operation occurs, using the current tick to decide recipients, without tracking which positions were active during the accrual period.

Impact

The attacker could steal liquidity provider rewards, though they incur gas and swap fees that may make the attack unprofitable in some cases.

What the attacker needed

Attacker can add liquidity; attacker can perform swaps; rewards have accumulated

The fix

The protocol team fixed this issue in a pull request.

How it was found

  1. Wait until rewards have accumulated but not been distributed.
  2. Swap to move the tick to a predefined tick where the attacker's position provides liquidity in a small adjacent range.
  3. Trigger reward distribution by collecting fees, for example by modifying liquidity with a zero delta.
  4. The attacker's position accrues most of the fees due to its tight range.
  5. Swap back to move the tick to its original value.

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.

Liquidity providers put money into a pool and earn rewards over time. This pool only pays out those rewards to whoever happens to be providing liquidity at the exact moment a deposit or withdrawal happens, so someone can briefly jump in at the right price and take rewards that belong to others.

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.