Skip to content

Commit

Permalink
doc: fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jtakalai authored Oct 3, 2023
1 parent b458c1b commit 545f13d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/network-subgraphs/src/sponsorshipFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export function handleNewSponsorship(event: NewSponsorship): void {
sponsorship.creator = creator
sponsorship.cumulativeSponsoring = BigInt.zero()

// standard set is allocation-, leave-, kick-, join-policies
// oprerator only joinpolicy is always set, so we check for 5 policies
// then the 4rth policy is the max operators join policy
// The standard ordering is: allocation, leave, kick, join policies
// "Operator-only join policy" is always set, so we check if we have 5 policies,
// and in that case we assume the 4th policy is the "max-operators join policy"
if (event.params.policies.length == 5) {
sponsorship.maxOperators = event.params.policyParams[3].toI32()
}
Expand Down

0 comments on commit 545f13d

Please sign in to comment.