Reproduced Exploit

ULTI: the active-pumper bonus is 0.03 percent instead of 3 percent

The whitepaper pays active pumpers 3% of the guardian bonus. ACTIVE_PUMPERS_BONUS_PERCENTAGE is 3, and the code multiplies by (10000 + 3) / 10000. On a 10000 ULTI guardian bonus the pumper receives 10003. The intended payment is 10300. 297 ULTI remains in the distributor.

Nov 2024•Other•logic•2 min read

Loss

Pumper is paid 10003 ULTI instead of 10300; 297 ULTI stays in the distributor

Chain

Other

Category

logic

Date

Nov 2024

Source

AuditVault

EVM Playground

Source-level debugger — step opcodes and Solidity in sync

evm-hack-analyzer

The attack is replayed in an in-browser EVM preloaded with the exact dumped fork state. The execution tree shows every call; step by Solidity line or by opcode across all depths — source, Stack, Memory, Storage, Balances (native / ERC-20 / NFT), Transient storage and Return value stay in sync. Click a tree node, opcode, or source line to jump. Query opens a search over the trace: previous and next writes, balance changes and calls, breakpoints, and a diff of everything that changed between two steps. No backend, no live RPC.

Loading fork state…

Source & credit. Reproduction of a public audit finding curated by AuditVault — the original finding: 43912-h-01-wrong-active-pumper-bonus-calculation-pashov-audit-grou. Standalone Foundry PoC and full write-up: 43912-h-01-wrong-active-pumper-bonus-calculation-pashov-audit-grou_exp in the evm-hack-registry mirror.


Vulnerability classes: vuln/logic/reward-calculation · vuln/arithmetic/precision-loss

Key info#

FieldValue
LossPumper is paid 10003 ULTI instead of 10300; 297 ULTI stays in the distributor
Vulnerable contractDistributor.payActivePumper
Attacker EOA0x1111111111111111111111111111111111111111
Attack contractExploit
Attack txExploit.run()
Chain / block / dateLocal synthetic · 2024-11
Compilersolc 0.8.27, cancun, via IR
Bug classA 3 percent bonus is divided by 10000

TL;DR#

The whitepaper pays active pumpers 3% of the guardian bonus. ACTIVE_PUMPERS_BONUS_PERCENTAGE is 3, and the code multiplies by (10000 + 3) / 10000. On a 10000 ULTI guardian bonus the pumper receives 10003. The intended payment is 10300. 297 ULTI remains in the distributor.

The vulnerable code#

SOLIDITY
uint256 paid = guardianBonus * (10000 + ACTIVE_PUMPERS_BONUS_PERCENTAGE) / 10000;

ACTIVE_PUMPERS_BONUS_PERCENTAGE is ULTI_NUMBER / 10, which is 3. Dividing by 100 treats that 3 as 3%. Dividing by 10000 treats it as 0.03%.

Root cause#

The bonus constant is a percent, and the formula scales it as basis points.

Preconditions#

  • The guardian bonus is 10000 ULTI.
  • The active-pumper percentage constant is 3.

Attack walkthrough#

  1. The distributor holds the guardian bonus plus room for the 3% add-on.
  2. The payout multiplies by 10003/10000.
  3. The pumper receives 10003 ULTI.
  4. 297 ULTI stays in the distributor. That is the missing 3% minus the 0.03% that was paid.

Diagrams#

flowchart TD A["Guardian bonus is 10000 ULTI"] --> B["Bonus constant is 3"] B --> C["Formula divides by 10000"] C --> D["Pumper is paid 10003"] D --> E["297 ULTI of the 3 percent bonus stays in the distributor"]

Impact#

Every active pumper is underpaid by almost the entire advertised bonus. This run short-pays 297 ULTI on a 10000 ULTI guardian bonus.

How to reproduce#

BASH
cd 43912-h-01-wrong-active-pumper-bonus-calculation-pashov-audit-grou_exp
forge test -vv

Sources#


Sources & further analysis#

Reproductions & code

Alerts & third-party analyses

  • Web3Sec X hacked database: search.
  • Rekt leaderboard: search.
  • Solodit incident search: search.

These dashboards index community alerts tweets, post-mortems, and independent write-ups. Reach them through the protocol name above to cross-check this reproduction against other analyses.