From 020425a2a581cf84796644a26472bd2b47d20368 Mon Sep 17 00:00:00 2001 From: clonemycode Date: Wed, 1 May 2024 14:49:33 +0800 Subject: [PATCH] chore: fix some typos in comments Signed-off-by: clonemycode --- contracts/Bridge/L1/xRenzoBridge.sol | 2 +- contracts/Bridge/L2/Oracle/RenzoOracleL2.sol | 2 +- contracts/Bridge/L2/xRenzoDeposit.sol | 4 ++-- contracts/Bridge/xERC20/README.md | 2 +- contracts/Errors/Errors.sol | 2 +- contracts/Oracle/RenzoOracle.sol | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/contracts/Bridge/L1/xRenzoBridge.sol b/contracts/Bridge/L1/xRenzoBridge.sol index 5b872d7..79f7910 100644 --- a/contracts/Bridge/L1/xRenzoBridge.sol +++ b/contracts/Bridge/L1/xRenzoBridge.sol @@ -168,7 +168,7 @@ contract xRenzoBridge is // Get the amount of ETH uint256 ethAmount = address(this).balance - ethBalanceBeforeWithdraw; - // Get the amonut of ezETH before the deposit + // Get the amount of ezETH before the deposit uint256 ezETHBalanceBeforeDeposit = ezETH.balanceOf(address(this)); // Deposit it into Renzo RestakeManager diff --git a/contracts/Bridge/L2/Oracle/RenzoOracleL2.sol b/contracts/Bridge/L2/Oracle/RenzoOracleL2.sol index e5fc4ba..1c0f012 100644 --- a/contracts/Bridge/L2/Oracle/RenzoOracleL2.sol +++ b/contracts/Bridge/L2/Oracle/RenzoOracleL2.sol @@ -9,7 +9,7 @@ import { import "../../../Errors/Errors.sol"; contract RenzoOracleL2 is Initializable, OwnableUpgradeable, RenzoOracleL2StorageV1 { - /// @dev The maxmimum staleness allowed for a price feed from chainlink + /// @dev The maximum staleness allowed for a price feed from chainlink uint256 public constant MAX_TIME_WINDOW = 86400 + 60; // 24 hours + 60 seconds event OracleAddressUpdated(address newOracle, address oldOracle); diff --git a/contracts/Bridge/L2/xRenzoDeposit.sol b/contracts/Bridge/L2/xRenzoDeposit.sol index bcda872..66d0efb 100644 --- a/contracts/Bridge/L2/xRenzoDeposit.sol +++ b/contracts/Bridge/L2/xRenzoDeposit.sol @@ -157,7 +157,7 @@ contract xRenzoDeposit is /** * @notice Accepts deposit for the user in the native asset and mints xezETH - * @dev This funcion allows anyone to call and deposit the native asset for xezETH + * @dev This function allows anyone to call and deposit the native asset for xezETH * The native asset will be wrapped to WETH (if it is supported) * ezETH will be immediately minted based on the current price * Funds will be held until sweep() is called. @@ -192,7 +192,7 @@ contract xRenzoDeposit is /** * @notice Accepts deposit for the user in depositToken and mints xezETH - * @dev This funcion allows anyone to call and deposit collateral for xezETH + * @dev This function allows anyone to call and deposit collateral for xezETH * ezETH will be immediately minted based on the current price * Funds will be held until sweep() is called. * User calling this function should first approve the tokens to be pulled via transferFrom diff --git a/contracts/Bridge/xERC20/README.md b/contracts/Bridge/xERC20/README.md index 4f34adf..6cfff2e 100644 --- a/contracts/Bridge/xERC20/README.md +++ b/contracts/Bridge/xERC20/README.md @@ -7,4 +7,4 @@ The modifications being made are: - Make contract upgradeable via OpenZeppelin's upgradeable contracts - Instead of deploying full contracts, the factories will deploy OZ TransparentUpgradeableProxy - Implementation addresses can be updated by the owner of the factories -- Add `OptimismMintableERC20` compatability (see [here](https://github.com/ethereum-optimism/optimism/blob/f54a2234f2f350795552011f35f704a3feb56a08/packages/contracts-bedrock/src/universal/IOptimismMintableERC20.sol)). \ No newline at end of file +- Add `OptimismMintableERC20` compatibility (see [here](https://github.com/ethereum-optimism/optimism/blob/f54a2234f2f350795552011f35f704a3feb56a08/packages/contracts-bedrock/src/universal/IOptimismMintableERC20.sol)). \ No newline at end of file diff --git a/contracts/Errors/Errors.sol b/contracts/Errors/Errors.sol index e38e45a..2aab434 100644 --- a/contracts/Errors/Errors.sol +++ b/contracts/Errors/Errors.sol @@ -43,7 +43,7 @@ error NotOracleAdmin(); /// @dev Error when caller is not RestakeManager contract error NotRestakeManager(); -/// @dev Errror when caller does not have ETH Restake Admin role +/// @dev Error when caller does not have ETH Restake Admin role error NotNativeEthRestakeAdmin(); /// @dev Error when delegation address was already set - cannot be set again diff --git a/contracts/Oracle/RenzoOracle.sol b/contracts/Oracle/RenzoOracle.sol index 4d029a1..f58ea3c 100644 --- a/contracts/Oracle/RenzoOracle.sol +++ b/contracts/Oracle/RenzoOracle.sol @@ -22,7 +22,7 @@ contract RenzoOracle is // Scale factor for all values of prices uint256 constant SCALE_FACTOR = 10 ** 18; - /// @dev The maxmimum staleness allowed for a price feed from chainlink + /// @dev The maximum staleness allowed for a price feed from chainlink uint256 constant MAX_TIME_WINDOW = 86400 + 60; // 24 hours + 60 seconds /// @dev Allows only a whitelisted address to configure the contract