A user can increase the amount of his position with a remaining duration < MIN_LOCK_DURATION. This will break the lock duration min limit.
MIN_LOCK_DURATION is the criteria for lock duration.
https://github.com/Cyfrin/2025-02-raac/blob/main/contracts/core/tokens/veRAACToken.sol#L37-L39
However, there is no check for MIN_LOCK_DURATION in the increase() function for for the remaining duration. As a result, a user can increase the amount of his position with a remaining duration < MIN_LOCK_DURATION. This will break the lock duration min limit.
Consider the following scenario:
Alice a locks minimum amount for MIN_LOCK_DURATION in advance.
After some days(shorter than 1 year), Alice increases the amount of her position.
As a result, Alice locks her funds with the actual duration(< MIN_LOCK_DURATION).
Min lock duration limit can be broken.
Increasing amount of a position with a remaining duration < MIN_LOCK_DURATION should not be allowed.
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.