Skip to content

Commit

Permalink
feat(events): track circulating supply change on distribution of rewa…
Browse files Browse the repository at this point in the history
…rds PE-6796
  • Loading branch information
Ariel Melendez committed Oct 23, 2024
1 parent 6d76e21 commit fc255ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1740,11 +1740,13 @@ addEventingHandler("distribute", utils.hasMatchingTag("Action", "Tick"), functio
if utils.lengthOfTable(tickedRewardDistributions) > 0 then
msg.ioEvent:addField("Ticked-Reward-Distributions", tickedRewardDistributions)
msg.ioEvent:addField("Total-Ticked-Rewards-Distributed", totalTickedRewardsDistributed)
lastKnownCirculatingSupply = lastKnownCirculatingSupply + totalTickedRewardsDistributed
end

local gwStats = gatewayStats()
msg.ioEvent:addField("Joined-Gateways-Count", gwStats.joined)
msg.ioEvent:addField("Leaving-Gateways-Count", gwStats.leaving)
addSupplyData(msg.ioEvent)
end)

-- READ HANDLERS
Expand Down

0 comments on commit fc255ba

Please sign in to comment.