Open VolodLytvynenko opened 1 week ago
@VolodLytvynenko a reason for this issue is Grove in Swap. So this is not an issue in swap logic or so, we just need to remove Grove as an option.
If it's a Grove issue, then shouldn't this PR fix it already: https://github.com/status-im/status-go/pull/5904 ?
Could you re-check it? It should've been fixed by the status-go PR.
If it's a Grove issue, then shouldn't this PR fix it already: status-im/status-go#5904 ?
Hi @alwx still reproducible in the scope of this PR both on mobile and desktop
@VolodLytvynenko ok, checking it right now but it still seems to be a status-go issue :(
@VolodLytvynenko I've done some tests and figured out that call eth_EstimateGas
to estimate approval tx to SNT contract https://etherscan.io/address/0x744d70fdbe2ba4cf95131626614a1763df805b9e for a higher value than one already set return execution reverted
error, while that's not the case for other contracts, tested with https://etherscan.io/address/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48.
That's not the case when you're setting approval for the first time (if it was 0 before that).
Why it's like that I have no idea, except that's something up to our SNT contract.
In the video below you can see how it looks (for both contracts, USDC and SNT, I have some amount already approved, when no approvals works fine for SNT contract as well):
https://github.com/user-attachments/assets/8f62978d-c2db-46b1-a8b9-8abb82c04568
@saledjenic SNT is a MineMe contract, which has a couple more features than a normal ERC20 token. That's probably why. It makes most transactions cost a little more.
I'm not sure what we can do to fix it though. It's not like we can update the contract.
Thank you @saledjenic
Preconditions:
Current User has:
Steps:
Actual Result:
The swap transaction fails, and the error message "Error-status-proxy-0.error: execution reverted" is shown. Moblie:
Desktop
Expected Result:
The swap transaction should build successfully without errors, and the swap should proceed smoothly.
OS:
IOS, Android, Desktop
Logs
Mobile Status-debug-logs (2).zip Desktop desktop swap (1).txt