From 81f3e55ab9c145cf185d1aeb2417f03807a4caf3 Mon Sep 17 00:00:00 2001 From: gallo Date: Tue, 29 Oct 2024 16:08:27 +0100 Subject: [PATCH] chore: comment --- src/Governance.sol | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Governance.sol b/src/Governance.sol index 13f0668d..7f639f9d 100644 --- a/src/Governance.sol +++ b/src/Governance.sol @@ -560,6 +560,9 @@ contract Governance is Multicall, UserProxyFactory, ReentrancyGuard, IGovernance function resetAllocations(address[] calldata _initiativesToReset) external nonReentrant { _requireNoDuplicates(_initiativesToReset); _resetInitiatives(_initiativesToReset); + + // TODO: Remove this as we may be in a scenario in which this causes DOS due to + // having too many initiatives require(userStates[msg.sender].allocatedLQTY == 0, "must be a reset"); }