WETH contract (0x42...) not responding to ETH deposit for larger deposits, but responding for smaller ones #432
Replies: 8 comments 7 replies
-
This deposit as of this morning processed correctly, other ones in the ticket are still stuck / need remediation |
Beta Was this translation helpful? Give feedback.
-
I am a user directly impacted by this. It's now been 5 days since I merely made an ETH deposit (txid-here). After which I see ETH was deposited to wETH contract... but strangely no wETH appears to have been transferred back from the contract. Op-Etherscan displays no balance on the address. @sbvegan are you not able to have a look at this or engage some OP team member who perhaps can figure out what happened here and how to retrieve the coins/fix it? It has been very difficult do grasp what happened here and the lack of feedback is just making it harder to cope with the situation. |
Beta Was this translation helpful? Give feedback.
-
Let me flag this internally |
Beta Was this translation helpful? Give feedback.
-
Hey @jbarry786, it looks like it worked successfully, but the etherscan indexer might not be working as expected. You can see this blockscout transaction showing the weth being distributed. If you use the following foundry query, you see the expected result:
I can flag this to etherscan to investigate. cc @newcodave |
Beta Was this translation helpful? Give feedback.
-
our software using Infura doesn't see it either |
Beta Was this translation helpful? Give feedback.
-
Looking into the tx hash, it looks like its a simple eth send from a binance controlled account to Is the source code available for the code at the account? I am guessing that the source code attempts to wrap the ether on receive? Nothing about the WETH predeploy has changed on OP Mainnet. Was this flow working previously? I see that you are saying it only works with small amounts. |
Beta Was this translation helpful? Give feedback.
-
@tynes thank you for looking at this. I understand this situation may be quite confusing to read, so just to try to clarify what I saw from a user perspective (so a user of Juniper, which uses Optimism).
What confused me was that the optimistic.etherscan never displayed the token balance. That balance not displaying has been fixed now, at least for my smart wallet contract address. @sbvegan contacting etherscan appears to have fixed this for me, but there's a strange thing. If you check this other wallet (referenced in the first post here on this thread), this one doesn't display the balance of wETH. It only shows the smaller amount, not the 0.34 weth (address) Mine (address) now shows the token holdings now (previously was completely blank): It's strange that they must have fixed an issue, but that fix doesn't appear to have fixed the other one. Since I am just a Juniper user, I don't exactly know what the contract/code sets out to do exactly after it receives the wETH. However, it's fair to assume that this etherscan "display"/indexing issue may be correlated with the failure of Juniper code to process the wETH. @newcodave should be able to dig further into this, now that etherscan appears to be applying some fixes. Apologies for the long message and in case I didn't use the best terms at times to describe the vents. Thanks for your feedback, helps learning. |
Beta Was this translation helpful? Give feedback.
-
@sbvegan @tynes surely Etherscan didn't only fix the issue for just one address? This wallet still displays less WETH than was sent to 0x42... via "internal txns" https://optimistic.etherscan.io/address/0x3048FC9d14188a3B7d7f720252f46008b0BbA3a8#tokentxns Additionally it exhibits the "smaller sends receiving WETH, larger ones not" issue |
Beta Was this translation helpful? Give feedback.
-
Bug Description
Juniper (https://app.juniperfi.com/) is a ERC-4337 smart wallet built on OP using ZeroDev's Kernel smart wallet SDK. Its ETH deposit flow is:
Lately (earliest user report 22 May 2024), the WETH contract at 0x42... will sometimes not send back any WETH in response, and this correlates with larger deposits as seen in this smart wallet where a E0.003 send to 0x42... receives WETH, whereas a E0.34 wrap operation never receives WETH:
https://optimistic.etherscan.io/address/0x3048FC9d14188a3B7d7f720252f46008b0BbA3a8#internaltx
The earliest example of the behavior/eventually/ responded with WETH, but only after 14 hours:
https://optimistic.etherscan.io/address/0x4cdce7541b42dc1537b75114a9160aa5e0b9f445#internaltx
Steps to Reproduce
Expected behavior
An equal amount of WETH for ETH after a send to 0x42...
Note that we haven't reduced the case yet via EOA usage of 0x42..., these are customer cases.
Environment Information:
Configurations:
Logs:
Smart contract wallets exhibiting the WETH behavior follow.
https://optimistic.etherscan.io/address/0x3048FC9d14188a3B7d7f720252f46008b0BbA3a8#internaltx
https://optimistic.etherscan.io/address/0x65aa028301f9F9eD96e56971F0452aef108D8866#internaltx
The first wallet exhibits the small amount vs larger amount behavior
Additional context
Also discussed in #devsupport on Discord
Please ensure all required sections are filled out accurately to expedite the debugging process and improve issue resolution efficiency.
Beta Was this translation helpful? Give feedback.
All reactions