The delete method does not delete from the array; instead, it is set to zero, which can lead to the loss of funds during distribution.
The correct way to implement the function is moving the position and using pop
:
Also, we may consider this as protocol interaction and update the deadline.
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.