Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some typos in comments #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contracts/Bridge/L1/xRenzoBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion contracts/Bridge/L2/Oracle/RenzoOracleL2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions contracts/Bridge/L2/xRenzoDeposit.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion contracts/Bridge/xERC20/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)).
- Add `OptimismMintableERC20` compatibility (see [here](https://github.com/ethereum-optimism/optimism/blob/f54a2234f2f350795552011f35f704a3feb56a08/packages/contracts-bedrock/src/universal/IOptimismMintableERC20.sol)).
2 changes: 1 addition & 1 deletion contracts/Errors/Errors.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion contracts/Oracle/RenzoOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down