Skip to content

Commit 7c58a06

Browse files
committed
fix: add missing properties to provision initializer
Signed-off-by: Tomás Migone <[email protected]>
1 parent a5bdbdb commit 7c58a06

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/mappings/helpers/helpers.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,24 @@ export function createOrLoadProvision(indexerAddress: Bytes, verifierAddress: By
215215
provision.queryFeeCut = BigInt.fromI32(0)
216216
provision.indexingFeeCut = BigInt.fromI32(0)
217217
provision.indexingRewardsCut = BigInt.fromI32(0)
218+
provision.indexingRewardEffectiveCut = BigInt.fromI32(0).toBigDecimal()
219+
provision.queryFeeEffectiveCut = BigInt.fromI32(0).toBigDecimal()
220+
provision.overDelegationDilution = BigInt.fromI32(0).toBigDecimal()
221+
provision.rewardsEarned = BigInt.fromI32(0)
222+
provision.indexerIndexingRewards = BigInt.fromI32(0)
223+
provision.delegatorIndexingRewards = BigInt.fromI32(0)
224+
provision.queryFeesCollected = BigInt.fromI32(0)
225+
provision.indexerQueryFees = BigInt.fromI32(0)
226+
provision.delegatorQueryFees = BigInt.fromI32(0)
218227
provision.delegatedTokens = BigInt.fromI32(0)
219228
provision.delegatorShares = BigInt.fromI32(0)
220229
provision.delegationExchangeRate = BigInt.fromI32(0).toBigDecimal()
221-
provision.indexingRewardEffectiveCut = BigInt.fromI32(0).toBigDecimal()
222-
provision.queryFeeEffectiveCut = BigInt.fromI32(0).toBigDecimal()
223230
provision.ownStakeRatio = BigInt.fromI32(0).toBigDecimal()
224231
provision.delegatedStakeRatio = BigInt.fromI32(0).toBigDecimal()
225232
provision.indexerRewardsOwnGenerationRatio = BigInt.fromI32(0).toBigDecimal()
233+
provision.url = ''
234+
provision.geoHash = ''
235+
provision.rewardsDestination = Bytes.fromI32(0)
226236
provision.save()
227237
}
228238

0 commit comments

Comments
 (0)