Request cancellation lacks 5-day waiting period.
The implementation of request cancellation does not enforce the documented 5-day waiting period between initiating a cancellation and executing it.
Here's the Starknet documentation:
Reclaims a deposit after a five day period has passed from the time that StarkGate received a deposit cancellation request from thedepositCancelRequest
function.
https://docs.starknet.io/starkgate/function-reference/#depositReclaim
This discrepancy between the documented behavior and the actual implementation could lead to premature cancellations.
Premature cancellations would fail without knowing the cause of the failure.
Manual review
Implement a mapping to store the initiation timestamp for each cancellation request.
Add a time check in the cancelRequest
function to ensure 5 days have passed.
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.