status-im / status-mobile

a free (libre) open source, mobile OS for Ethereum
https://status.app
Mozilla Public License 2.0
3.88k stars 984 forks source link

Bridging low amount of USDc leads to error and inability to see your assets #20914

Closed churik closed 1 month ago

churik commented 1 month ago

When bridging not big amount of USDc (tried 0.1, 1) - got an error, the user stayed on send tx page and all assets are disappeared at atemmpt to pull-to-refresh

In MM the limit is 10 USDc (this amount is working in Status as well)

Please, verify what limits Hop Bridge is supporting, it can be the case for all tokens

Consequences: 1) was not redirected to activity page 2) tx is failed and reverted with "Fail with error 'ERC20: transfer amount exceeds allowance", example https://arbiscan.io/tx/0xa834e4772e11daf3cfe0a9afba521e7fb0c4c2280bca6483fa27bbe99c99a5f2 3) Wallet freeze at update and eventually shows 0 Re-login helps.

We need to find out what is this error about (I believe some tx limits in Hop might not be met) and prevent users from making faulty txs.

Video:

https://github.com/user-attachments/assets/953e125f-2fe4-4487-a20b-52bdc8eb04e9

Logs:

logs (103).zip

What I get after pull-to-refresh: IMAGE 2024-07-29 13:49:35

Originally posted by @churik in https://github.com/status-im/status-mobile/issues/20902#issuecomment-2255722912

churik commented 1 month ago

now this is error "Fail with error 'L2_AMM_W: Bonder fee cannot exceed amount'", but in last version of https://github.com/status-im/status-mobile/pull/20902 it leads to activity age and wallet doesn't show 0 anymore, so it got better

More info and discussion here

TX example: https://optimistic.etherscan.io/tx/0x512088988c4dd288657c5ec6a758837ad25b9993cc91a3d64b833dee0588fabf