There is wrong implemented if (locks[_lockId].startTime + halfDuration > block.timestamp) revert HalfDurationNotElapsed(); as in the comment it is written that at least half of the locking duration must have elapsed to initiate the unlock period but here we are doing the opposite of that.
if (locks[_lockId].startTime + halfDuration > block.timestamp) revert HalfDurationNotElapsed();
we cannot initiateUnlock the lock.
(locks[_lockId].startTime + halfDuration <block.timestamp)
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.