You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the logic is adding a "_ETH" at the Wrapped WAVAX token address. But once I choose to use this "_ETH" token for the from or to token, so to swap AVAX to another tooken I run into the issue
ERROR Error: Uncaught (in promise): UniswapError: invalid from or to contract tokens
UniswapError: invalid from or to contract tokens
at new UniswapError (uniswap-error.js:17:28)
at TokensFactory.<anonymous> (tokens.factory.js:123:31)
at step (tokens.factory.js:32:23)
at Object.next (tokens.factory.js:13:53)
I found that, If I forked the lib and added new support for Avalanche main and test net, the issue from the SWAP libs are resolved. So I suggest I prepare the fork and the merge request
BTW without doing anything not all tests passed
Test Suites: 4 failed, 22 passed, 26 total
Tests: 16 failed, 3 skipped, 206 passed, 225 total
Snapshots: 0 total
Time: 168.614s
Ran all test suites.
I'm using the
simple-uniswap-sdk
and your angular swap on theAVALANCHE
main net. But there are problems with the NATIVE token.My config is mainly this:
and
It seems that the logic is adding a "_ETH" at the Wrapped WAVAX token address. But once I choose to use this "_ETH" token for the from or to token, so to swap AVAX to another tooken I run into the issue
@joshstevens19 @liu-zhipeng @vm06007
The text was updated successfully, but these errors were encountered: