Skip to content

Commit

Permalink
fix: cannot claim in the future
Browse files Browse the repository at this point in the history
  • Loading branch information
GalloDaSballo committed Oct 14, 2024
1 parent 3a6c038 commit af5132f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BribeInitiative.sol
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ contract BribeInitiative is IInitiative, IBribeInitiative {
uint16 _prevLQTYAllocationEpoch,
uint16 _prevTotalLQTYAllocationEpoch
) internal returns (uint256 boldAmount, uint256 bribeTokenAmount) {
require(_epoch != governance.epoch(), "BribeInitiative: cannot-claim-for-current-epoch");
require(_epoch < governance.epoch(), "BribeInitiative: cannot-claim-for-current-epoch");
require(!claimedBribeAtEpoch[_user][_epoch], "BribeInitiative: already-claimed");

Bribe memory bribe = bribeByEpoch[_epoch];
Expand Down

0 comments on commit af5132f

Please sign in to comment.