diff --git a/docs/whitepaper.md b/docs/whitepaper.md index 3e970df3..4d732dc8 100644 --- a/docs/whitepaper.md +++ b/docs/whitepaper.md @@ -560,7 +560,7 @@ In essence, a liquidation is equivalent to a stop-loss order. As long as you set **This section is still a work-in-progress and is subject to change** -Since the EVK is a *kit*, it attempts to be maximally flexible and doesn't enforce policy decisions on vault creators. This means that it is possible to create vaults with insecure or malicious configurations. Furthermore, an otherwise secure vault may be insecure because it accapts an [insecure collateral as collateral](#untrusted-collaterals) (or a collateral vault itself accepts insecure collateral, etc, recursively). +Since the EVK is a *kit*, it attempts to be maximally flexible and doesn't enforce policy decisions on vault creators. This means that it is possible to create vaults with insecure or malicious configurations. Furthermore, an otherwise secure vault may be insecure because it accepts an [insecure collateral as collateral](#untrusted-collaterals) (or a collateral vault itself accepts insecure collateral, etc, recursively). Perspectives provide a mechanism for validating properties of a vault using on-chain verifiable logic. A perspective is any contract that implements the following interface: diff --git a/src/Synths/ERC20Collateral.sol b/src/Synths/ERC20Collateral.sol index d7901961..61e9353c 100644 --- a/src/Synths/ERC20Collateral.sol +++ b/src/Synths/ERC20Collateral.sol @@ -20,7 +20,7 @@ abstract contract ERC20Collateral is EVCUtil, ERC20Permit, ReentrancyGuard { {} /// @notice Transfers a certain amount of tokens to a recipient. - /// @dev Overriden to add reentrancy protection. + /// @dev Overridden to add reentrancy protection. /// @param to The recipient of the transfer. /// @param amount The amount shares to transfer. /// @return A boolean indicating whether the transfer was successful. @@ -29,7 +29,7 @@ abstract contract ERC20Collateral is EVCUtil, ERC20Permit, ReentrancyGuard { } /// @notice Transfers a certain amount of tokens from a sender to a recipient. - /// @dev Overriden to add reentrancy protection. + /// @dev Overridden to add reentrancy protection. /// @param from The sender of the transfer. /// @param to The recipient of the transfer. /// @param amount The amount of shares to transfer. @@ -47,7 +47,7 @@ abstract contract ERC20Collateral is EVCUtil, ERC20Permit, ReentrancyGuard { /// @notice Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` /// (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding /// this function. - /// @dev Overriden to require account status checks on transfers from non-zero addresses. The account status check + /// @dev Overridden to require account status checks on transfers from non-zero addresses. The account status check /// must be required on any operation that reduces user's balance. Note that the user balance cannot be modified // outside of this function as the account status check must always be requested after the balance is modified which // is ensured by this function. If any user balance modifications are done outside of this function, the contract @@ -64,7 +64,7 @@ abstract contract ERC20Collateral is EVCUtil, ERC20Permit, ReentrancyGuard { } /// @notice Retrieves the message sender in the context of the EVC. - /// @dev Overriden due to the conflict with the Context definition. + /// @dev Overridden due to the conflict with the Context definition. /// @dev This function returns the account on behalf of which the current operation is being performed, which is /// either msg.sender or the account authenticated by the EVC. /// @return The address of the message sender. diff --git a/src/Synths/ESynth.sol b/src/Synths/ESynth.sol index 5ab4e219..1793bee8 100644 --- a/src/Synths/ESynth.sol +++ b/src/Synths/ESynth.sol @@ -118,7 +118,7 @@ contract ESynth is ERC20Collateral, Ownable { } /// @notice Retrieves the message sender in the context of the EVC. - /// @dev Overriden due to the conflict with the Context definition. + /// @dev Overridden due to the conflict with the Context definition. /// @dev This function returns the account on behalf of which the current operation is being performed, which is /// either msg.sender or the account authenticated by the EVC. /// @return The address of the message sender. @@ -155,7 +155,7 @@ contract ESynth is ERC20Collateral, Ownable { } /// @notice Retrieves the total supply of the token. - /// @dev Overriden to exclude the ignored accounts from the total supply. + /// @dev Overridden to exclude the ignored accounts from the total supply. /// @return The total supply of the token. function totalSupply() public view override returns (uint256) { uint256 total = super.totalSupply();