When users lock their tokens, a MIN_DURATION is enforced on time of lock, but this can later be bypassed when extending a lock.
When users lock their tokens, a MIN/MAX lock duration is enforced:
But later when users extend their locks, although the max duration limit is present, there is no min duration enforced:
The extension duration is added to the remaining duration and it's made sure to not surpass the max lock duration limitation, but the min lock duration limitation is missing in this case.
Locks with less than MIN_LOCK_DURATION can be created by users meanwhile they should not exist.
Manual Review
Enforce the same check when extending a lock as well.
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.