0

when making a swap via IUniswapV2Router(router).swapExactTokensForTokens(_amount, 1, path, address(this), deadline) on Goerli i got the following error on Tenderly: enter image description here

2
  • What is the question exactly here?
    – Nal Luksic
    Jan 21, 2023 at 11:07
  • How to fix this error ?
    – adam mr
    Jan 21, 2023 at 19:16

1 Answer 1

0

If you want to fix the error, you should supply more gas. Currently, your gas limit is 100k gas. Sometimes it happens that Metamask evaluates transactions wrongly, so you have to set the gas limit manually.

If you are using Metamask, this is how you can do it: https://metamask.zendesk.com/hc/en-us/articles/360015488771-How-to-adjust-Gas-Price-and-Gas-Limit

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.