mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-12-02 05:57:29 +01:00
fix global stats pool count (#453)
* fix global stats pool count * fix lint
This commit is contained in:
parent
aa4574994b
commit
569eb98d8f
1
package-lock.json
generated
1
package-lock.json
generated
@ -5,7 +5,6 @@
|
|||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "ocean-subgraph",
|
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -15,12 +15,7 @@ import {
|
|||||||
ZERO_ADDRESS
|
ZERO_ADDRESS
|
||||||
} from './utils/constants'
|
} from './utils/constants'
|
||||||
import { weiToDecimal } from './utils/generic'
|
import { weiToDecimal } from './utils/generic'
|
||||||
import {
|
import { addLiquidity, addPoolSwap, removeLiquidity } from './utils/globalUtils'
|
||||||
addLiquidity,
|
|
||||||
addPoolSwap,
|
|
||||||
getGlobalStats,
|
|
||||||
removeLiquidity
|
|
||||||
} from './utils/globalUtils'
|
|
||||||
import {
|
import {
|
||||||
calcSpotPrice,
|
calcSpotPrice,
|
||||||
getPool,
|
getPool,
|
||||||
@ -256,9 +251,6 @@ export function handleSetup(event: LOG_SETUP): void {
|
|||||||
poolSnapshot.totalShares = pool.totalShares
|
poolSnapshot.totalShares = pool.totalShares
|
||||||
|
|
||||||
poolSnapshot.save()
|
poolSnapshot.save()
|
||||||
const globalStats = getGlobalStats()
|
|
||||||
globalStats.poolCount = globalStats.poolCount + 1
|
|
||||||
globalStats.save()
|
|
||||||
datatoken.save()
|
datatoken.save()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user