Skip to content

Commit 424f08a

Browse files
committed
fix: missing inits
1 parent 77f4a2e commit 424f08a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

schema.graphql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,8 @@ type Provision @entity {
938938
ownStakeRatio: BigDecimal!
939939
"Ratio between the amount of delegated stake over the total usable stake."
940940
delegatedStakeRatio: BigDecimal!
941+
"Percentage of indexers' own rewards received in relation to its own stake. 1 (100%) means that the indexer is receiving the exact amount that is generated by his own stake"
942+
indexerRewardsOwnGenerationRatio: BigDecimal!
941943

942944
"Service registry URL for the indexer"
943945
url: String

src/mappings/helpers/helpers.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,11 @@ export function createOrLoadProvision(indexerAddress: Bytes, verifierAddress: By
216216
provision.delegatedTokens = BigInt.fromI32(0)
217217
provision.delegatorShares = BigInt.fromI32(0)
218218
provision.delegationExchangeRate = BigInt.fromI32(0).toBigDecimal()
219+
provision.indexingRewardEffectiveCut = BigInt.fromI32(0).toBigDecimal()
220+
provision.queryFeeEffectiveCut = BigInt.fromI32(0).toBigDecimal()
221+
provision.ownStakeRatio = BigInt.fromI32(0).toBigDecimal()
222+
provision.delegatedStakeRatio = BigInt.fromI32(0).toBigDecimal()
223+
provision.indexerRewardsOwnGenerationRatio = BigInt.fromI32(0).toBigDecimal()
219224
provision.save()
220225
}
221226

0 commit comments

Comments
 (0)