Closed pavloburykh closed 1 month ago
i was able to send snt just 2 days ago. i dont have any context besides that. maybe something got broken recently
@virginiabalducci can you pls check?
I was able to do a send tx in testnet but I'm reproducing the same issue in mainnet
https://github.com/user-attachments/assets/0112d279-f6ec-45c9-9eab-958dbf00f5c4 app_20240917_124336.log
If needed, adding addresses I tested with: From: 0x32e12fd7c2c7984dd6de153691d901445fc8aa07 To: 0x69af29dedbe58f4001bcf14803963cb7894112b3
thanks @virginiabalducci @saledjenic @dlipicar do you know the root cause?
@virginiabalducci I was able to reproduce your case with 0x32e12fd7c2c7984dd6de153691d901445fc8aa07
address.
So let's analyze it:
0x32e12fd7c2c7984dd6de153691d901445fc8aa07
from any of the supported chains (mainnet, opt, arb) to the recipient address to any chain (mainnet, opt, arb) insufficient funds for gas * price + value: address 0x32e12fD7C2C7984DD6de153691D901445fC8AA07 have 16773029697747188 want 235096461785385998
execution reverted: ERC20: transfer amount exceeds balance
cause you have 0 SNT on optimismexecution reverted: ERC20: transfer amount exceeds balance
cause you have 0 SNT on arbitrummainnet
-> optimism
-> not available for chainID
means there is no contract for bridging SNTmainnet
-> arbitrum
-> not available for chainID
means there is no contract for bridging SNToptimism
-> mainnet
-> not available for chainID
means there is no contract for bridging SNToptimism
-> arbitrum
-> not available for chainID
means there is no contract for bridging SNTarbitrum
-> mainnet
-> not available for chainID
means there is no contract for bridging SNTarbitrum
-> optimism
-> not available for chainID
means there is no contract for bridging SNTTo summarize and conclude, there is no error in the router logic. @virginiabalducci @anastasiyaig @pavloburykh @alwx
To summarize and conclude, there is no error in the router logic. @virginiabalducci @anastasiyaig @pavloburykh @alwx
Thank you for the comment @saledjenic
I have couple of questions here:
Regarding insufficient funds error: we have an open issue https://github.com/status-im/status-mobile/issues/20970. Could you please leave a comment in that issue summarising your findings regrading this problem. I remember that recently there have been much discussions in different Discord channels, but unfortunately there is no summary in the ticket. Currently we are not able to perform L1-L1 transactions in Status app, at the same time I am able to perform same transaction with the same account using Metamask.
At which point do we understand that token is available only on L1 and thus there is no sense to try building any routes except L1-L1? Can we prevent from trying to perform mainnet -> optimism (bridge)
, mainnet -> arbitrum (bridge)
etc steps if we know that only mainnet-mainnet is available? To be honest, this is very confusing that we are showing user the irrelevant errors like transfer amount exceeds balance
or not available for chain ID
while app UI shows that we are trying to build L1-L1 route and both errors have nothing to do with L1-L1 in this case. Why we are not showing insufficient funds
here which is related to L1-L1 route building?
I believe we can close https://github.com/status-im/status-mobile/issues/21292 in favour of https://github.com/status-im/status-mobile/issues/20970 and wait for new RPC provider integration 🤞
i would suggest to check proxy logic since the issue was not on the router side, but on proxy. So querying Infura directly was just fine. Replacing provider wont help in this specific case. There is an explanation in https://github.com/status-im/status-mobile/issues/20970 @churik
There is no actually one conclusion (as it was checked with disabled both grove and proxy), and the discussion moved there, but yeah, seems that the issue might be on both sides - grove and proxy. Thanks for the comment. I'll bring this issue today on the wallet sync
Fro reproduction you can use SNT
Steps:
Actual result:
Status-debug-logs - 2024-09-19T171851.912.zip
On mobile I receive different errors, like
transfer amount exceeds balance
ornot available for chain ID
Same on Desktop:
cc @saledjenic @anastasiyaig
Additional Information