Skip to content

Commit

Permalink
remaining comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Spablob committed Jun 30, 2023
1 parent 504e35f commit 29a59c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions contracts/libraries/VaultLifecycleTreasury.sol
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,7 @@ library VaultLifecycleTreasury {
);
require(bytes(_initParams._tokenName).length > 0, "!_tokenName");
require(bytes(_initParams._tokenSymbol).length > 0, "!_tokenSymbol");
require((_initParams._period > 0), "!_period");
require(
_initParams._optionsPremiumPricer != address(0),
"!_optionsPremiumPricer"
Expand Down
6 changes: 2 additions & 4 deletions contracts/vaults/TreasuryVault/RibbonTreasuryVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -443,10 +443,8 @@ contract RibbonTreasuryVault is

for (uint256 i = 0; i < arrayLength - 1; i++) {
if (excludeDepositor == array[i]) {
(array[i], array[arrayLength - 1]) = (
array[arrayLength - 1],
array[i]
);
array[i] = array[arrayLength - 1];
break;
}
}
array.pop();
Expand Down

0 comments on commit 29a59c9

Please sign in to comment.