If a user deposits by calling L1BossBridge::depositTokensToL2
, there is no way to withdraw directly from the L1.
Instances where a user may want to cancel their deposit include: users erroneously depositing to the bridge, changing their mind about bridging their tokens, and sending an incorrect amount. If a user wants to cancel their deposit and be able to withdraw directly from the L1, they will not be able to since there is no cancel functionality.
Users would have to withdraw from the L2, deposit back to the L2, and then withdraw from the L1. This is a costly and time-consuming process.
## Recommended mitigation
Add a cancel function for users to withdraw directly from the L1.
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.