Skip to content

Commit

Permalink
Merge pull request antonnell#12 from 34x4p08/master
Browse files Browse the repository at this point in the history
Fix incorrect tokenID substitution
  • Loading branch information
antonnell authored Dec 9, 2021
2 parents 882d0c2 + 43b9939 commit 7505597
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions stores/fixedForexStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -1058,10 +1058,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)
Expand Down

0 comments on commit 7505597

Please sign in to comment.