We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 403dd40 commit 71e5a82Copy full SHA for 71e5a82
src/contracts/core/EmissionsController.sol
@@ -80,6 +80,12 @@ contract EmissionsController is
80
uint256 totalDistributions = getTotalDistributions();
81
uint256 nextDistributionId = _epochs[currentEpoch].totalProcessed;
82
83
+ // Check if emissions have not started yet.
84
+ // Prevents minting EIGEN before the first epoch has started.
85
+ if (currentEpoch == type(uint256).max) {
86
+ revert EmissionsNotStarted();
87
+ }
88
+
89
// Check if all distributions have already been processed.
90
if (nextDistributionId >= totalDistributions) {
91
revert AllDistributionsProcessed();
0 commit comments