Skip to content

Commit

Permalink
fixed comparison for detecting 0xeee address
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielCamba committed Jul 15, 2022
1 parent a81026a commit 0711f5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function handleTrade(event: Trade): void {
buyToken.totalVolume = tokenCurrentBuyAmount.plus(buyAmount)

let buyTokenAddressHexString = buyTokenAddress.toHexString()
let isBuyTokenTheNativeOne = buyTokenAddressHexString === "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
let isBuyTokenTheNativeOne = buyTokenAddressHexString == "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"

if (network == 'xdai') {
let sellTokenPrices = getPrices(sellTokenAddress)
Expand Down

0 comments on commit 0711f5c

Please sign in to comment.