From 43b9939ffa2b6a8e2b45718d3c4eda0ae33d744d Mon Sep 17 00:00:00 2001 From: 34x4p08 <34x4p08@gmail.com> Date: Tue, 7 Dec 2021 21:59:15 +0300 Subject: [PATCH] Fix incorrect tokenID substitution --- stores/fixedForexStore.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stores/fixedForexStore.js b/stores/fixedForexStore.js index 0d1996d..206931c 100644 --- a/stores/fixedForexStore.js +++ b/stores/fixedForexStore.js @@ -1028,10 +1028,9 @@ class Store { const validPositions = await Promise.all(tokenPositions.filter((pos, idx) => { const isActive = pos.token0 === '0x1cEB5cB57C4D4E2b2433641b95Dd330A33185A44' && pos.token1 === '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2' && BigNumber(pos.liquidity).gt(0) - tokenIDs.splice(idx, 1) - return isActive - }).map(async (pos, idx) => { pos.tokenID = tokenIDs[idx] + return isActive + }).map(async (pos) => { pos.address = "0x11B7a6bc0259ed6Cf9DB8F499988F9eCc7167bf5"; pos.balance = BigNumber(pos.liquidity).div(10**18).toFixed(18) pos.feePercent = BigNumber(pos.fee).div(10000).toFixed(4)