Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/utils/intervalUpdates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export function updatePoolDayData(event: ethereum.Event): PoolDayData {
poolDayData.open = pool.token0Price
poolDayData.high = pool.token0Price
poolDayData.low = pool.token0Price
poolDayData.close = pool.token0Price
}

if (pool.token0Price.gt(poolDayData.high)) {
Expand All @@ -81,6 +80,7 @@ export function updatePoolDayData(event: ethereum.Event): PoolDayData {
poolDayData.feeGrowthGlobal1X128 = pool.feeGrowthGlobal1X128
poolDayData.token0Price = pool.token0Price
poolDayData.token1Price = pool.token1Price
poolDayData.close = pool.token0Price
poolDayData.tick = pool.tick
poolDayData.tvlUSD = pool.totalValueLockedUSD
poolDayData.txCount = poolDayData.txCount.plus(ONE_BI)
Expand Down Expand Up @@ -114,7 +114,6 @@ export function updatePoolHourData(event: ethereum.Event): PoolHourData {
poolHourData.open = pool.token0Price
poolHourData.high = pool.token0Price
poolHourData.low = pool.token0Price
poolHourData.close = pool.token0Price
}

if (pool.token0Price.gt(poolHourData.high)) {
Expand Down Expand Up @@ -163,7 +162,6 @@ export function updateTokenDayData(token: Token, event: ethereum.Event): TokenDa
tokenDayData.open = tokenPrice
tokenDayData.high = tokenPrice
tokenDayData.low = tokenPrice
tokenDayData.close = tokenPrice
}

if (tokenPrice.gt(tokenDayData.high)) {
Expand Down Expand Up @@ -206,7 +204,6 @@ export function updateTokenHourData(token: Token, event: ethereum.Event): TokenH
tokenHourData.open = tokenPrice
tokenHourData.high = tokenPrice
tokenHourData.low = tokenPrice
tokenHourData.close = tokenPrice
}

if (tokenPrice.gt(tokenHourData.high)) {
Expand Down