Skip to content

Commit

Permalink
🛕 Historical revenue share participants (#286)
Browse files Browse the repository at this point in the history
* New field for revenue share

* Set potential revenue share particitants at the time of start
  • Loading branch information
WRadoslaw authored Feb 19, 2024
1 parent e601087 commit e1cea5d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions schema/token.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ type RevenueShare @entity {
"ending block"
endsAt: Int!

"number of holders that could join the split before it ended"
potentialParticipantsNum: Int

"Number of participants (stackers)"
participantsNum: Int!

Expand Down
1 change: 1 addition & 0 deletions src/mappings/token/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ export async function processRevenueSplitIssuedEvent({
claimed: BigInt(0),
startingAt: startBlock,
endsAt,
potentialParticipantsNum: token.accountsNum,
}) as RevenueShare

token.currentRenvenueShareId = id
Expand Down

0 comments on commit e1cea5d

Please sign in to comment.