Some tokens (e.g. BNB) that revert on zero value approvals can't be used in L1ERC20Bridge.deposit function as it tries to clear allowance on L1_ASSET_ROUTER at the end.
According to weird-tokens:
In L1ERC20Bridge.deposit function, it clears the allowance on L1_ASSET_ROUTER:
That means, deposit operation will fail with such tokens.
The L1ERC20Bridge.deposit function's inability to handle tokens that revert on zero-value approvals could disrupt deposit functionality for such tokens.
Manual Review
Utilize OpenZeppelin's SafeERC20 library to handle token approvals securely.
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.