The increase()
function in veRAACToken will always revert. A check on maxLockAmount in LockManager
will always fail as maxLockAmount is never set, so equal to 0.
LockManager::LockState.maxLockAmount = 0
as it's never set during initialization.
increase()
calls increaseLock
that will revert all the time as if (lock.amount + additionalAmount > state.maxLockAmount) revert AmountExceedsLimit();
will always be true.
Dos of veRAACToken::increase() functions.
Manual
Initialize maxLockAmount value in LockManager
A good practice is to check either maxAmount in veRAACToken
or LockManager
, but not in both to avoid any inconsistencies between maxAmount in both contracts.
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.