Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jklepatch committed Mar 29, 2021
1 parent ed8b728 commit 10d541e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions screencast/322-uniswap-trading-bot/bot.js
Expand Up @@ -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;
}
Expand Down

0 comments on commit 10d541e

Please sign in to comment.