Skip to content

Commit

Permalink
fix: initialize new parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
  • Loading branch information
tmigone authored and pcarranzav committed Sep 11, 2023
1 parent ef3be70 commit 61bcee2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mappings/helpers/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,8 @@ export function createOrLoadGraphNetwork(
graphNetwork.delegationUnbondingPeriod = 0
graphNetwork.delegationTaxPercentage = 0
graphNetwork.rebateRatio = BigDecimal.fromString('0')
graphNetwork.rebateAlpha = BigDecimal.fromString('0')
graphNetwork.rebateLambda = BigDecimal.fromString('0')

graphNetwork.totalTokensStakedTransferredToL2 = BigInt.fromI32(0)
graphNetwork.totalDelegatedTokensTransferredToL2 = BigInt.fromI32(0)
Expand Down
1 change: 1 addition & 0 deletions src/mappings/staking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ export function handleAllocationCreated(event: AllocationCreated): void {
).toI32()
allocation.queryFeesCollected = BigInt.fromI32(0)
allocation.queryFeeRebates = BigInt.fromI32(0)
allocation.distributedRebates = BigInt.fromI32(0)
allocation.curatorRewards = BigInt.fromI32(0)
allocation.indexingRewards = BigInt.fromI32(0)
allocation.indexingIndexerRewards = BigInt.fromI32(0)
Expand Down

0 comments on commit 61bcee2

Please # to comment.