From d9d88a7349161a32a8a18734cba64d0e9e8f0e49 Mon Sep 17 00:00:00 2001 From: Hunter King Date: Mon, 25 Nov 2024 01:49:45 +0100 Subject: [PATCH] fix: formatting --- src/contracts/BuildersManager.sol | 2 +- src/interfaces/IBuildersManager.sol | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/contracts/BuildersManager.sol b/src/contracts/BuildersManager.sol index 0739232..930fcbc 100644 --- a/src/contracts/BuildersManager.sol +++ b/src/contracts/BuildersManager.sol @@ -102,7 +102,6 @@ contract BuildersManager is Ownable2StepUpgradeable, IBuildersManager { if (projectToExpiry[_project] > block.timestamp) _ejectProject(_project); else if (projectToVouches[_project] < _params.minVouches) _ejectProject(_project); } - _l = _currentProjects.length; if (_l == 0) revert YieldNoProjects(); @@ -204,6 +203,7 @@ contract BuildersManager is Ownable2StepUpgradeable, IBuildersManager { uint256 _l = _currentProjects.length; for (uint256 _i; _i < _l; _i++) { + // TODO: Does this work? if (_currentProjects[_i] == _project) { _currentProjects[_i] = _currentProjects[_l - 1]; _currentProjects.pop(); diff --git a/src/interfaces/IBuildersManager.sol b/src/interfaces/IBuildersManager.sol index bd7f08c..a3853bb 100644 --- a/src/interfaces/IBuildersManager.sol +++ b/src/interfaces/IBuildersManager.sol @@ -13,7 +13,6 @@ interface IBuildersManager { /*/////////////////////////////////////////////////////////////// DATA //////////////////////////////////////////////////////////////*/ - /** * @notice Builder Manager Parameters * @param cycleLength The yield distribution cycle length @@ -89,7 +88,6 @@ interface IBuildersManager { /*/////////////////////////////////////////////////////////////// LOGIC //////////////////////////////////////////////////////////////*/ - /** * @notice Initialize the BuildersManager contract * @param _token The BuildersDollar token address @@ -132,7 +130,6 @@ interface IBuildersManager { /*/////////////////////////////////////////////////////////////// VIEW //////////////////////////////////////////////////////////////*/ - /** * @notice Get the Builder's Dollar Token * @return _builderToken The Builder Token