Skip to content
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

Transaction gas fees / uniswap #45

Closed
gwendall opened this issue Apr 9, 2021 · 2 comments
Closed

Transaction gas fees / uniswap #45

gwendall opened this issue Apr 9, 2021 · 2 comments

Comments

@gwendall
Copy link

gwendall commented Apr 9, 2021

First, thanks for the great content !

Quick question: is there a way to set the gas fees we would like to pay for a transaction calling the swapExactTokensForTokens method ?

Here is what I have for now:

const tx = await router.swapExactTokensForTokens(
  amountIn,
  amountOutMin,
  [tokenIn, tokenOut],
  recipientAddress,
  expiryDate,
);
const receipt = await tx.wait();
@gwendall gwendall changed the title ethers vs @uniswap/sdk transaction gas fees / uniswap Apr 9, 2021
@gwendall gwendall changed the title transaction gas fees / uniswap Transaction gas fees / uniswap Apr 9, 2021
@djammy33
Copy link

djammy33 commented Apr 9, 2021

thak you gwendall!!👍👌

@tuxforensics
Copy link

Was this resolved? How do you set gas and gas limit..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants