The return value of _withdrawFromEscrow
is not checked when called in _cancelRequest
. It might lead to silent failures during cancellation.
Users might believe they have successfully canceled the request and withdrawn the token, but due to a silent failure, the token will not actually be withdrawn.
Check the return value of _withdrawFromEscrow
and revert if it is false.
To cancel a message, it has to be sent to the Starknet Core, otherwise it reverts. Therefore, to cancel a request, a token will always be escrowed. There is no impact here because the described case will never happen, that’s why check that boolean is not useful.
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.