Skip to content

Commit

Permalink
fix(subgraph): make sure to update timestamp and blocknumber when upd…
Browse files Browse the repository at this point in the history
…ating pool
  • Loading branch information
kasparkallas committed Sep 12, 2024
1 parent 2b2fe84 commit cbbc8d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/subgraph/src/mappingHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,9 @@ export function updatePoolTotalAmountFlowedAndDistributed(
pool.totalAmountDistributedUntilUpdatedAt.plus(
amountFlowedSinceLastUpdate
);

pool.updatedAtTimestamp = event.block.timestamp;
pool.updatedAtBlockNumber = event.block.number;

pool.save();

Expand Down

0 comments on commit cbbc8d8

Please sign in to comment.