diff --git a/README.md b/README.md index 016198e..eff0c99 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@

Obol Splits

-This repo contains Obol Splits smart contracts. This suite of smart contracts and associated tests are intended to serve as a public good to to enable the safe and secure creation of Distributed Validators for Ethereum Consensus-based networks. +This repo contains Obol Splits smart contracts. This suite of smart contracts and associated tests are intended to serve as a public good to enable the safe and secure creation of Distributed Validators for Ethereum Consensus-based networks. ### Disclaimer diff --git a/script/DeployOTWRAndSplit.s.sol b/script/DeployOTWRAndSplit.s.sol index fb94889..feb4675 100644 --- a/script/DeployOTWRAndSplit.s.sol +++ b/script/DeployOTWRAndSplit.s.sol @@ -59,9 +59,9 @@ contract DeployOTWRAndSplit is Script, SplitterConfiguration { string memory objKey = vm.toString(i); vm.serializeAddress(objKey, "splitAddress", split); - string memory repsonse = vm.serializeAddress(objKey, "OTWRAddress", otwrAddress); + string memory response = vm.serializeAddress(objKey, "OTWRAddress", otwrAddress); - finalJSON = vm.serializeString(jsonKey, objKey, repsonse); + finalJSON = vm.serializeString(jsonKey, objKey, response); } vm.writeJson(finalJSON, "./otwr-split.json"); diff --git a/script/ObolLidoSetupScript.sol b/script/ObolLidoSetupScript.sol index 7b510f9..022f888 100644 --- a/script/ObolLidoSetupScript.sol +++ b/script/ObolLidoSetupScript.sol @@ -8,7 +8,7 @@ import {SplitterConfiguration} from "./SplitterConfiguration.sol"; /// @title ObolLidoScript /// @author Obol -/// @notice Creates Split and ObolLidoSplit Adddresses +/// @notice Creates Split and ObolLidoSplit Addresses /// /// @dev Takes a json file following the format defined at ./data/lido-data-sample.json /// and deploys split and ObolLido split contracts. @@ -68,9 +68,9 @@ contract ObolLidoSetupScript is Script, SplitterConfiguration { vm.stopBroadcast(); vm.serializeAddress(objKey, "splitAddress", split); - string memory repsonse = vm.serializeAddress(objKey, "obolLidoSplitAddress", obolLidoSplitAdress); + string memory response = vm.serializeAddress(objKey, "obolLidoSplitAddress", obolLidoSplitAdress); - finalJSON = vm.serializeString(jsonKey, objKey, repsonse); + finalJSON = vm.serializeString(jsonKey, objKey, response); } vm.writeJson(finalJSON, "./result.json"); diff --git a/src/base/BaseSplit.sol b/src/base/BaseSplit.sol index f2a8063..b24fc2a 100644 --- a/src/base/BaseSplit.sol +++ b/src/base/BaseSplit.sol @@ -49,7 +49,7 @@ abstract contract BaseSplit is Clone { return _getArgAddress(WITHDRAWAL_ADDRESS_OFFSET); } - /// Token addresss + /// Token address /// @dev equivalent to address public immutable token function token() public pure virtual returns (address) { return _getArgAddress(TOKEN_ADDRESS_OFFSET); diff --git a/src/controllers/ImmutableSplitController.sol b/src/controllers/ImmutableSplitController.sol index c9eea93..c6e0933 100644 --- a/src/controllers/ImmutableSplitController.sol +++ b/src/controllers/ImmutableSplitController.sol @@ -41,7 +41,7 @@ contract ImmutableSplitController is Clone { // onwer (address, 20 bytes) // 2; third item uint256 internal constant OWNER_OFFSET = 24; - // recipeints size (uint8, 1 byte ) + // recipients size (uint8, 1 byte ) // 3; third item uint256 internal constant RECIPIENTS_SIZE_OFFSET = 44; // recipients data () @@ -118,7 +118,7 @@ contract ImmutableSplitController is Clone { } } - /// Number of recipeints + /// Number of recipients /// @dev equivalent to address internal immutable _recipientsSize; function _recipientsSize() internal pure returns (uint256) { return _getArgUint8(RECIPIENTS_SIZE_OFFSET); @@ -132,4 +132,4 @@ contract ImmutableSplitController is Clone { return _getArgUint256(RECIPIENTS_OFFSET + (i * ONE_WORD)); } } -} \ No newline at end of file +} diff --git a/src/eigenlayer/ObolEigenLayerPodController.sol b/src/eigenlayer/ObolEigenLayerPodController.sol index f47dd57..fc10442 100644 --- a/src/eigenlayer/ObolEigenLayerPodController.sol +++ b/src/eigenlayer/ObolEigenLayerPodController.sol @@ -22,7 +22,7 @@ contract ObolEigenLayerPodController { /// @dev contract already initialized error AlreadyInitialized(); - /// @dev Emiited on intialize + /// @dev Emitted on initialize event Initialized(address eigenPod, address owner); /// ----------------------------------------------------------------------- diff --git a/src/etherfi/ObolEtherfiSplitFactory.sol b/src/etherfi/ObolEtherfiSplitFactory.sol index bca33cf..a1e45ec 100644 --- a/src/etherfi/ObolEtherfiSplitFactory.sol +++ b/src/etherfi/ObolEtherfiSplitFactory.sol @@ -32,7 +32,7 @@ contract ObolEtherfiSplitFactory is BaseSplitFactory { /// @dev Create a new collector /// @dev address(0) is used to represent ETH /// @param withdrawalAddress Address of the splitWallet to transfer weETH to - /// @return collector Address of the wrappper split + /// @return collector Address of the wrapper split function createCollector(address, address withdrawalAddress) external override returns (address collector) { if (withdrawalAddress == address(0)) revert Invalid_Address(); diff --git a/src/test/collector/ObolCollector.t.sol b/src/test/collector/ObolCollector.t.sol index dd53844..7e4128a 100644 --- a/src/test/collector/ObolCollector.t.sol +++ b/src/test/collector/ObolCollector.t.sol @@ -69,7 +69,7 @@ contract ObolCollectorTest is Test { function test_token() public { assertEq(collectorWithFee.token(), address(mERC20), "invalid token"); - assertEq(ethCollectorWithFee.token(), address(0), "ivnalid token eth"); + assertEq(ethCollectorWithFee.token(), address(0), "invalid token eth"); } function test_DistributeERC20WithFee() public { diff --git a/src/test/controllers/IMSCFactory.t.sol b/src/test/controllers/IMSCFactory.t.sol index e9e79de..85efb77 100644 --- a/src/test/controllers/IMSCFactory.t.sol +++ b/src/test/controllers/IMSCFactory.t.sol @@ -146,7 +146,7 @@ contract IMSCFactory is Test { ); } - function test_RevertIfRecipeintSizeTooMany() public { + function test_RevertIfRecipientSizeTooMany() public { bytes32 deploymentSalt = keccak256(abi.encodePacked(uint256(1102))); uint256 size = 400; diff --git a/src/test/eigenlayer/OELPCFactory.t.sol b/src/test/eigenlayer/OELPCFactory.t.sol index 78ecf40..cb84c75 100644 --- a/src/test/eigenlayer/OELPCFactory.t.sol +++ b/src/test/eigenlayer/OELPCFactory.t.sol @@ -43,7 +43,7 @@ contract ObolEigenLayerPodControllerFactoryTest is EigenLayerTestBase { new ObolEigenLayerPodControllerFactory(feeRecipient, feeShare, address(0), POD_MANAGER_GOERLI, DELAY_ROUTER_GOERLI); } - function test_RevertIfInvalidPodManger() external { + function test_RevertIfInvalidPodManager() external { vm.expectRevert(Invalid_EigenPodManaager.selector); new ObolEigenLayerPodControllerFactory( feeRecipient, feeShare, DELEGATION_MANAGER_GOERLI, address(0), DELAY_ROUTER_GOERLI