Jelajahi Sumber

spell checks

0xfirefist 1 tahun lalu
induk
melakukan
7c4d8102e7

+ 9 - 9
target_chains/ethereum/contracts/contracts/entropy/EntropyGovernance.sol

@@ -23,12 +23,12 @@ abstract contract EntropyGovernance is EntropyState {
     /**
      * @dev Set the admin of the contract.
      *
-     * Calls {_authoriseAdminAction}.
+     * Calls {_authorizeAdminAction}.
      *
      * Emits an {AdminSet} event.
      */
     function setAdmin(address newAdmin) external {
-        _authoriseAdminAction();
+        _authorizeAdminAction();
 
         address oldAdmin = _state.admin;
         _state.admin = newAdmin;
@@ -39,12 +39,12 @@ abstract contract EntropyGovernance is EntropyState {
     /**
      * @dev Set the Pyth fee in Wei
      *
-     * Calls {_authoriseAdminAction}.
+     * Calls {_authorizeAdminAction}.
      *
      * Emits an {PythFeeSet} event.
      */
     function setPythFee(uint128 newPythFee) external {
-        _authoriseAdminAction();
+        _authorizeAdminAction();
 
         uint oldPythFee = _state.pythFeeInWei;
         _state.pythFeeInWei = newPythFee;
@@ -55,12 +55,12 @@ abstract contract EntropyGovernance is EntropyState {
     /**
      * @dev Set the default provider of the contract
      *
-     * Calls {_authoriseAdminAction}.
+     * Calls {_authorizeAdminAction}.
      *
      * Emits an {DefaultProviderSet} event.
      */
     function setDefaultProvider(address newDefaultProvider) external {
-        _authoriseAdminAction();
+        _authorizeAdminAction();
 
         address oldDefaultProvider = _state.defaultProvider;
         _state.defaultProvider = newDefaultProvider;
@@ -73,7 +73,7 @@ abstract contract EntropyGovernance is EntropyState {
     // balance of fees has accrued in the contract).
     function withdrawPythFees(uint128 amount) public {
         // Use checks-effects-interactions pattern to prevent reentrancy attacks.
-        _authoriseOwner();
+        _authorizeOwner();
         require(_state.accruedPythFeesInWei >= amount, "Insufficient balance");
 
         _state.accruedPythFeesInWei -= amount;
@@ -83,7 +83,7 @@ abstract contract EntropyGovernance is EntropyState {
         require(sent, "withdrawal to msg.sender failed");
     }
 
-    function _authoriseAdminAction() internal virtual;
+    function _authorizeAdminAction() internal virtual;
 
-    function _authoriseOwner() internal virtual;
+    function _authorizeOwner() internal virtual;
 }

+ 3 - 3
target_chains/ethereum/contracts/contracts/entropy/EntropyUpgradable.sol

@@ -53,13 +53,13 @@ contract EntropyUpgradable is
     function _authorizeUpgrade(address) internal override onlyOwner {}
 
     // There are some actions which both and admin and owner can perform
-    function _authoriseAdminAction() internal view override {
+    function _authorizeAdminAction() internal view override {
         if (msg.sender != owner() && msg.sender != _state.admin)
             revert EntropyErrors.Unauthorized();
     }
 
-    // There are some actions which both and admin and owner can perform
-    function _authoriseOwner() internal view override onlyOwner {}
+    // Authorize owner of this contract
+    function _authorizeOwner() internal view override onlyOwner {}
 
     // We have not overridden these methods in Pyth contracts implementation.
     // But we are overriding them here because there was no owner before and