Skip to content

Commit

Permalink
update assets
Browse files Browse the repository at this point in the history
  • Loading branch information
kc1116 committed Apr 26, 2024
1 parent 6d2015e commit 28a5b3d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions contracts/epochs/FlowEpoch.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -603,12 +603,6 @@ access(all) contract FlowEpoch {
FlowEpoch.borrowDKGAdmin().forceEndDKG()
}

/// Calculate rewards for the current epoch
/// and set the payout for the next epoch
FlowEpoch.calculateAndSetRewards()
/// Start a new Epoch, which increments the current epoch counter
FlowEpoch.startNewEpoch()

/// Create the recovery epoch metadata, this struct is used to hold
/// EpochRecover service event data.
let recoverEpochMetadata = FlowEpoch.RecoverEpochMetadata(
Expand Down Expand Up @@ -649,6 +643,12 @@ access(all) contract FlowEpoch {
/// Save the new epoch meta data, it will be referenced as
/// the epoch progresses through each phase.
FlowEpoch.saveEpochMetadata(newEpochMetadata)

/// Calculate rewards for the current epoch
/// and set the payout for the next epoch
FlowEpoch.calculateAndSetRewards()
/// Start a new Epoch, which increments the current epoch counter
FlowEpoch.startNewEpoch()
}

/// Ends the currently active epoch and starts a new one with the provided configuration.
Expand Down
Loading

0 comments on commit 28a5b3d

Please sign in to comment.