NFTs sent from l2 to l1 with use_withdraw_auto = true
will be stuck until it is enabled again on l1
The function withdrawTokens
in Bridge.sol contains the following if statement
However the function deposit_tokens
in Bridge.cairo still allows NFTs to be sent with use_withdraw_auto = true
NFT becomes stuck as withdrawTokens
always reverts and there is no way to cancel the request
Manual review
Add a check to Bridge.cairo that checks use_withdraw_auto != true
.
Or remove use_withdraw_auto
entirely as it is not currently used.
Impact: High, token will be stuck in L2 bridge. Likelyhood: Very low, option is available in L2 but has been disabled since March on L1, would be almost a user error.
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.