Closed derekchiang closed 1 year ago
This is an issue as AA wallets are increasingly adopted
Worth noting: https://community.optimism.io/docs/developers/bridge/standard-bridge/#deposits tl;dr: there is a known limitation even for standard optimism bridge for SCW
UPDATE
You can use depositTo if you know what are you doing for sure
If you use the same sender and destination addresses (like deposit
does), you might send funds to the wrong address in general (suppose your SCW isn't represented with the same address on L1 and L2).
Closing the issue as being relevant to the design decisions of Opti stack towards having a dedicated depositTo
method for SCW
The L1 ERC20 token bridge reverts if the sender is an SCW: https://github.com/lidofinance/lido-l2/blob/471993c23f3f8c378b9ef4598e703381e9462189/contracts/optimism/L1ERC20TokenBridge.sol#L58-L60