Skip to content
Permalink
Browse files
typo
  • Loading branch information
jklepatch committed Mar 29, 2021
1 parent ed8b728 commit 10d541e6f5c2077ce3f5634533509185b898f0ce
Showing with 2 additions and 2 deletions.
  1. +2 −2 screencast/322-uniswap-trading-bot/bot.js
@@ -37,12 +37,12 @@ factory.on('PairCreated', async (token0, token1, pairAddress) => {

//The quote currency needs to be WETH (we will pay with WETH)
let tokenIn, tokenOut;
if(token0 === WETH) {
if(token0 === addresses.WETH) {
tokenIn = token0;
tokenOut = token1;
}

if(token1 == WETH) {
if(token1 == addresses.WETH) {
tokenIn = token1;
tokenOut = token0;
}

0 comments on commit 10d541e

Please sign in to comment.