Incorrect lock duration handling could lead to unfair reward distribution or unintended lock extensions
In the participateInMarket function, when users add to existing positions, the lock duration is completely reset without considering remaining time from previous locks.
Users can effectively reduce their total lock duration by making multiple deposits
The redeemFromMarket function uses this lockEndTime for reward eligibility
Market lockDuration = 30 days
User deposits 100 tokens at T=0 ➔ lockEndTime = 30 days
At T=15 days, user deposits another 100 tokens
Current Behavior: lockEndTime becomes T+30 = 45 days total
Expected Behavior: Original 100 tokens should lock until T=30, new 100 tokens until T=45
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.