Core Contracts

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

Incorrect Boost Application Due to Fixed Base Amount

Summary

The _calculateBoost function incorrectly applies the boost multiplier to a fixed amount (10000) instead of the user's actual stake. While the boost multiplier is correctly determined based on the user's veToken balance, the boosted amount is always derived from this fixed value, leading to inaccurate reward calculations.

Vulnerability Details

In the updateUserBoost function, the new boost is determined using:

uint256 newBoost = _calculateBoost(user, pool, 10000); // Base amount

This calls _calculateBoost, which calculates the boost multiplier correctly but applies it to a hardcoded 10000 instead of the user's actual balance.

Within calculateTimeWeightedBoost:

boostedAmount = (amount * boostBasisPoints) / 10000;

Since amount is always 10000, the boosted amount is effectively just boostBasisPoints, rather than being proportional to the user's actual stake. This means the boost is not properly scaled to individual user balances.

Impact

  • The boost multiplier is correctly calculated but does not apply to the user's real stake, leading to miscalculated rewards.

  • Users with larger veToken balances do not receive appropriately scaled boosts, while smaller holders get disproportionate boosts.

  • The intended mechanics of the boost system are compromised, leading to unfair reward distribution.

Tools Used

Manual Review

Recommendations

  • Modify _calculateBoost to use the user's actual stake instead of 10000.

  • Ensure calculateTimeWeightedBoost applies the boost multiplier to the user's real balance.

Updates

Lead Judging Commences

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Validated
Assigned finding tags:

BoostController::updateUserBoost uses hardcoded 10000 base amount, storing basis points instead of actual boosted amount

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Validated
Assigned finding tags:

BoostController::updateUserBoost uses hardcoded 10000 base amount, storing basis points instead of actual boosted amount

Support

FAQs

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

Give us feedback!