diff --git a/src/EVault/Dispatch.sol b/src/EVault/Dispatch.sol index d869fd66..db778c9d 100644 --- a/src/EVault/Dispatch.sol +++ b/src/EVault/Dispatch.sol @@ -81,8 +81,9 @@ abstract contract Dispatch is } } - // External function which is only callable by the EVault itself. It's purpose is to be static called by `delegateToModuleView` - // which allows delegate-calling modules also for external view functions. + // External function which is only callable by the EVault itself. Its purpose is to be static called by `delegateToModuleView` + // which allows view functions to be implemented in modules, even though delegatecall cannot be directly used within + // view functions. function viewDelegate() external { if (msg.sender != address(this)) revert E_Unauthorized(); diff --git a/src/EVault/EVault.sol b/src/EVault/EVault.sol index 7bcd4b5f..809440a6 100644 --- a/src/EVault/EVault.sol +++ b/src/EVault/EVault.sol @@ -7,7 +7,6 @@ import {Dispatch} from "./Dispatch.sol"; /// @title EVault /// @author Euler Labs (https://www.eulerlabs.com/) /// @notice This contract implements an EVC enabled lending vault -/// @notice White paper: https://github.com/euler-xyz/euler-docusaurus/blob/main/docs/euler-vault-kit-white-paper/index.md /// @dev The responsibility of this contract is call routing. Select functions are embedded, while most are delegated to the modules. contract EVault is Dispatch { constructor(Integrations memory integrations, DeployedModules memory modules) Dispatch(integrations, modules) {} diff --git a/src/EVault/modules/BalanceForwarder.sol b/src/EVault/modules/BalanceForwarder.sol index bdc1dcd2..36850548 100644 --- a/src/EVault/modules/BalanceForwarder.sol +++ b/src/EVault/modules/BalanceForwarder.sol @@ -7,7 +7,7 @@ import {Base} from "../shared/Base.sol"; /// @title BalanceForwarderModule /// @author Euler Labs (https://www.eulerlabs.com/) -/// @notice An EVault module handling communication with balance tracker contract. +/// @notice An EVault module handling communication a with balance tracker contract. abstract contract BalanceForwarderModule is IBalanceForwarder, Base { /// @inheritdoc IBalanceForwarder function balanceTrackerAddress() public view virtual reentrantOK returns (address) { diff --git a/src/EVault/shared/Cache.sol b/src/EVault/shared/Cache.sol index bd4b4419..ab1db971 100644 --- a/src/EVault/shared/Cache.sol +++ b/src/EVault/shared/Cache.sol @@ -12,7 +12,7 @@ import "./types/Types.sol"; /// @title Cache /// @author Euler Labs (https://www.eulerlabs.com/) -/// @notice Utilities for loading vault storage and updating it with interest accured +/// @notice Utilities for loading vault storage and updating it with interest accrued contract Cache is Storage, Errors { using TypesLib for uint256; using SafeERC20Lib for IERC20; diff --git a/src/EVault/shared/Events.sol b/src/EVault/shared/Events.sol index 1b48f102..b47153a0 100644 --- a/src/EVault/shared/Events.sol +++ b/src/EVault/shared/Events.sol @@ -98,8 +98,8 @@ abstract contract Events { /// @param sender Address initializing the conversion /// @param protocolReceiver Address receiving the protocol's share of the fees /// @param governorReceiver Address receiving the governor's share of the fees - /// @param protocolShares Amount of shares tranfered to the protocol receiver - /// @param governorShares Amount of shares tranfered to the governor receiver + /// @param protocolShares Amount of shares transferred to the protocol receiver + /// @param governorShares Amount of shares transferred to the governor receiver event ConvertFees( address indexed sender, address indexed protocolReceiver, diff --git a/src/EVault/shared/Storage.sol b/src/EVault/shared/Storage.sol index 9e9f0e05..fcad5470 100644 --- a/src/EVault/shared/Storage.sol +++ b/src/EVault/shared/Storage.sol @@ -6,7 +6,7 @@ import {VaultStorage, Snapshot} from "./types/Types.sol"; /// @title Storage /// @author Euler Labs (https://www.eulerlabs.com/) -/// @notice Contract defines the EVault's data storage +/// @notice Contract that defines the EVault's data storage abstract contract Storage { /// @notice Flag indicating if the vault has been initialized bool initialized;