Skip to content

Commit

Permalink
fix: statemind-Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
alrxy committed Dec 2, 2024
1 parent e772f1a commit 1f5ca0f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/managers/VaultManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ abstract contract VaultManager is BaseManager {
error NotVault();
error NotOperatorVault();
error VaultNotInitialized();
error VaultAlreadyRegistred();
error VaultAlreadyRegistered();
error VaultEpochTooShort();
error InactiveVaultSlash();
error UnknownSlasherType();
Expand Down Expand Up @@ -422,8 +422,7 @@ abstract contract VaultManager is BaseManager {
address[] memory operators
) internal view returns (uint256 power) {
for (uint256 i; i < operators.length; ++i) {
uint256 operatorStake = getOperatorPower(operators[i]);
power += operatorStake;
power += getOperatorPower(operators[i]);
}

return power;
Expand Down Expand Up @@ -495,7 +494,7 @@ abstract contract VaultManager is BaseManager {
_validateVault(vault);
_validateOperatorVault(operator, vault);
if ($._sharedVaults.contains(vault)) {
revert VaultAlreadyRegistred();
revert VaultAlreadyRegistered();
}
$._operatorVaults[operator].register(Time.timestamp(), vault);
$._vaultOperator.set(vault, operator);
Expand Down Expand Up @@ -648,7 +647,7 @@ abstract contract VaultManager is BaseManager {
}

if ($._vaultOperator.contains(vault)) {
revert VaultAlreadyRegistred();
revert VaultAlreadyRegistered();
}

uint48 vaultEpoch = IVault(vault).epochDuration();
Expand Down

0 comments on commit 1f5ca0f

Please sign in to comment.