-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.48.0] UNI token in production is not showing as permitable #3221
Comments
Connected via WC2, I got the error: But still, permit data loaded fine. After awhile I can reproduce.
This leads me to believe there must be some sort of caching with the provider being in the old chain maybe? |
Yes, i think one issue with this implementation is that this method blindly assumes that if the calls fail, its because the contract doesn't have the specific method They ignore the received error, and just do the recursive call. Since its a library, is hard to modify this (unless we want to copy or patch it). If these are 2 time consuming, we can just hope there's not a lot of cases, and do it later. We would drastically reduce the problem if we do the pre-calculation of which tokens are permitable. |
That's one problem, yes, but the main issue here is that the |
Yes... and no. Sure, we do not need to calculate which tokens are permittable as they don't change. |
Description
Is triggering the normal Approve flow and not ERC-2612 one.
This happened to me several times in a row, even after deleting the local storage and refreshing.
However, now i cannot reproduce
Somewhere in the code we have something that if it fails, it can make us think is NOT PERMITABLE. This happened over Wallet Connect, so maybe is related? Maybe we had an issue with our ethereum provider and we interpreted the error as a "no support"
How to Reproduce
I just tried to sell UNI, and triggered the normal approval
Expected behavior
Trigger reliably always ERC-2612 flow for UNI and other permitable tokens
Additional context
@alfetopito knows, cause i showed it live, however i cannot reproduce now. Not sure if related, but we saw this in the log:
I think this error comes from Wallet connect library somehow
However, its still not clear this is the reason, because i still get this error, but it doesn't reproduce now
More CTX: https://cowservices.slack.com/archives/C0361CDG8GP/p1697131326306699
The text was updated successfully, but these errors were encountered: