From 0711f5c5f8e8150cec159ae2b2e944fc56ad5301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Nicol=C3=A1s=20Gonz=C3=A1lez?= Date: Fri, 15 Jul 2022 12:42:46 -0300 Subject: [PATCH] fixed comparison for detecting 0xeee address --- src/mapping.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapping.ts b/src/mapping.ts index 12daa54..cb2c2c2 100644 --- a/src/mapping.ts +++ b/src/mapping.ts @@ -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)