Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: high
Invalid

MarketCreator Infinite Rewards

Summary:

MarketCreator allows users to deposit quote assets and redeem them for RAAC rewards. However, the code never decrements market.reward after redemption, letting multiple participants claim more rewards than intended.

Vulnerability Details:

In MarketCreator.sol, the calculateReward function uses:

return (amount * market.reward) / market.totalDeposits;

But market.reward never changes after user redemption. Multiple participants can repeatedly deposit and redeem, each effectively receiving a fraction of the full market.reward, which can exceed the intended total.

Impact:

An attacker or normal user can infinitely claim RAAC tokens, draining the contract.

Tools Used:

  • Manual code inspection

  • Logical modeling of deposit/redeem flows

Recommendations:

  • Deduct the claimed portion from market.reward to ensure the total distributed reward cannot exceed the initial allocation.

  • Alternatively, track user shares at deposit time and reduce market.reward accordingly.

Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Out of scope

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.