diff --git a/src/BribeInitiative.sol b/src/BribeInitiative.sol index 570c1274..e524288f 100644 --- a/src/BribeInitiative.sol +++ b/src/BribeInitiative.sol @@ -191,10 +191,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); }