fix global stats pool count (#453)

* fix global stats pool count

* fix lint
This commit is contained in:
mihaisc 2022-06-10 02:10:46 -07:00 committed by GitHub
parent aa4574994b
commit 569eb98d8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 10 deletions

1
package-lock.json generated
View File

@ -5,7 +5,6 @@
"requires": true,
"packages": {
"": {
"name": "ocean-subgraph",
"version": "1.2.0",
"license": "Apache-2.0",
"dependencies": {

View File

@ -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()
}