From 569eb98d8f5ff818a6f76d690d3b0d1ff9baf3fa Mon Sep 17 00:00:00 2001 From: mihaisc Date: Fri, 10 Jun 2022 02:10:46 -0700 Subject: [PATCH] fix global stats pool count (#453) * fix global stats pool count * fix lint --- package-lock.json | 1 - src/mappings/pool.ts | 10 +--------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index bf9450d..f114789 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,7 +5,6 @@ "requires": true, "packages": { "": { - "name": "ocean-subgraph", "version": "1.2.0", "license": "Apache-2.0", "dependencies": { diff --git a/src/mappings/pool.ts b/src/mappings/pool.ts index 68b9ea8..0f60cdf 100644 --- a/src/mappings/pool.ts +++ b/src/mappings/pool.ts @@ -15,12 +15,7 @@ import { ZERO_ADDRESS } from './utils/constants' import { weiToDecimal } from './utils/generic' -import { - addLiquidity, - addPoolSwap, - getGlobalStats, - removeLiquidity -} from './utils/globalUtils' +import { addLiquidity, addPoolSwap, removeLiquidity } from './utils/globalUtils' import { calcSpotPrice, getPool, @@ -256,9 +251,6 @@ export function handleSetup(event: LOG_SETUP): void { poolSnapshot.totalShares = pool.totalShares poolSnapshot.save() - const globalStats = getGlobalStats() - globalStats.poolCount = globalStats.poolCount + 1 - globalStats.save() datatoken.save() }