Skip to content

Commit 569eb98

Browse files
authored
fix global stats pool count (#453)
* fix global stats pool count * fix lint
1 parent aa45749 commit 569eb98

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

package-lock.json

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/mappings/pool.ts

+1-9
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@ import {
1515
ZERO_ADDRESS
1616
} from './utils/constants'
1717
import { weiToDecimal } from './utils/generic'
18-
import {
19-
addLiquidity,
20-
addPoolSwap,
21-
getGlobalStats,
22-
removeLiquidity
23-
} from './utils/globalUtils'
18+
import { addLiquidity, addPoolSwap, removeLiquidity } from './utils/globalUtils'
2419
import {
2520
calcSpotPrice,
2621
getPool,
@@ -256,9 +251,6 @@ export function handleSetup(event: LOG_SETUP): void {
256251
poolSnapshot.totalShares = pool.totalShares
257252

258253
poolSnapshot.save()
259-
const globalStats = getGlobalStats()
260-
globalStats.poolCount = globalStats.poolCount + 1
261-
globalStats.save()
262254
datatoken.save()
263255
}
264256

0 commit comments

Comments
 (0)