-
Notifications
You must be signed in to change notification settings - Fork 368
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
"execution reverted: Insufficient WETH9" on Polygon #346
Comments
Hi! Does it work as intended if you swap the token for a wrapped matic? I haven't touched alt networks for aeons, but I remember some weird issues regarding swaps from/to native tokens. |
I tried, but it transferred to WMATIC instead of MATIC |
I would just swap token<->wmatic then unwrapping manually when needed. Basically, uni v2/v3 router calls don't swap for native tokens directly, but for wrapped first and then unwrap, so it's pretty the same. IIRC, there is a call for wrapping/unwrapping native tokens in router's contract, check ABI out. |
Btw, try to set |
Describe the bug
I want to transfer AMP to MATIC(not WMATIC),but I got a error
To Reproduce
this is my code
Additional context
I set in the constants.py ETH_ADDRESS = "0x0000000000000000000000000000000000001010"
The text was updated successfully, but these errors were encountered: