To maintain certain control and sanitize inputs, the veRAACToken::lock implements a series of checks to ensure the protocol's health. However, the veRAACToken::increase function completely ignores the same checks allowing users to easily bypass the sanity checks.
Users can start a lock position by entering a minimum value accepted by MAX_TOTAL_SUPPLY and then call veRAACToken::increaseto increment their positions without any constraints.
Protocol MAX_TOTAL_SUPPLYwill be blown up leading to wrong calculations done on top of totalSupply amounts. For example:
BoostController::_calculateBoost
BoostController::calculateBoost
Code review
Ensure the MAX_TOTAL_SUPPLYis enforced on the veRAACTokens::increasefunction.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.