Skip to content

Commit

Permalink
add total rewards value sync
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuahannan committed Apr 10, 2023
1 parent eb62b4c commit 28fe222
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions contracts/epochs/FlowEpoch.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ pub contract FlowEpoch {
let rewardsSummary = stakingAdmin.calculateRewards()
let currentMetadata = self.getEpochMetadata(self.currentEpochCounter)!
currentMetadata.setRewardAmounts(rewardsSummary.breakdown)
currentMetadata.setTotalRewards(rewardsSummary.totalRewards)
self.saveEpochMetadata(currentMetadata)

if FlowEpoch.automaticRewardsEnabled() {
Expand Down
Loading

0 comments on commit 28fe222

Please sign in to comment.