The calculateVeAmount function is responsible for computing the veRAAC amount based on the lock duration and amount. However, the function does not enforce a minimum lock duration (MIN_LOCK_DURATION), allowing users to input an extremely low duration, which may lead to unintended behavior.
The function correctly caps lockDuration at MAX_LOCK_DURATION, but it does not ensure that lockDuration is at least MIN_LOCK_DURATION.
This oversight allows users to call the function with a lock duration of 1 second or any arbitrary small value, leading to very small veRAAC allocations.
This could lead to an inefficient distribution of voting power, potentially affecting governance mechanisms.
Modify the function to enforce MIN_LOCK_DURATION, ensuring that any lock duration provided is within the valid range:
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.