Closed Eyon42 closed 2 years ago
Nevermind. One of my tokens wasn't approved.
how to import smart-order-router on vue-vite?
Hi Eyon,
I see that you just put gasLimit: 1000000
on your transaction, rather than relying on the gas that the routeToRatio method returned. We also saw that the routeToRatio function was perhaps underestimating gas. Curious if you saw that it was underestimating too.
Also wondering if you had any Fraction parsing issues. We had to change some of the Fraction code to get the AlphaRouter working
Yes, It was directly failing to estimate gas and throwing an error. Haven't had Fraction issues yet.
Tx: https://polygonscan.com/tx/0x946104cc9f0370ada9a10bc500a8504b9d7280d5877bb87a79e1b163109fbc79 Network: Polygon Versions:
Code:
Output: