diff --git a/src/BribeInitiative.sol b/src/BribeInitiative.sol index 15b18451..f0c09f17 100644 --- a/src/BribeInitiative.sol +++ b/src/BribeInitiative.sol @@ -175,10 +175,12 @@ contract BribeInitiative is IInitiative, IBribeInitiative { } function _loadTotalLQTYAllocation(uint16 _epoch) private view returns (uint88, uint32) { + require(_epoch <= governance.epoch(), "No future Lookup"); return _decodeLQTYAllocation(totalLQTYAllocationByEpoch.items[_epoch].value); } function _loadLQTYAllocation(address _user, uint16 _epoch) private view returns (uint88, uint32) { + require(_epoch <= governance.epoch(), "No future Lookup"); return _decodeLQTYAllocation(lqtyAllocationByUserAtEpoch[_user].items[_epoch].value); }