From b9ac18eec6b4287a70ba1e67e85c0004bfdf6f04 Mon Sep 17 00:00:00 2001 From: cuibuwei Date: Mon, 2 Dec 2024 20:47:29 +0800 Subject: [PATCH] chore: fix some typos in comment Signed-off-by: cuibuwei --- README.md | 2 +- protocol/governance/README.md | 2 +- protocol/synthetix/contracts/interfaces/IAccountModule.sol | 2 +- .../synthetix/contracts/mocks/CollateralMockWithoutDecimals.sol | 2 +- protocol/synthetix/contracts/storage/Distribution.sol | 2 +- protocol/synthetix/contracts/storage/MarketConfiguration.sol | 2 +- .../test/integration/modules/core/RewardsManagerModule.test.ts | 2 +- .../synthetix/test/integration/storage/Market/Market.test.ts | 2 +- utils/core-utils/src/utils/assertions/assert-bignumber.ts | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index db91931de8..713ef375f2 100644 --- a/README.md +++ b/README.md @@ -228,7 +228,7 @@ Do **NOT** manually update `package.json` of any package. ```sh git reset --hard ``` - And ensure workign tree is clean again + And ensure working tree is clean again ```sh git diff --exit-code ``` diff --git a/protocol/governance/README.md b/protocol/governance/README.md index 49ecd32031..37006af6e4 100644 --- a/protocol/governance/README.md +++ b/protocol/governance/README.md @@ -12,7 +12,7 @@ yarn hardhat cannon ### Periods -Then, for development purposes, you can for example fast forward to the nomination period on the current running node (remember to use the `Proxy` address as the `--address` paramenter): +Then, for development purposes, you can for example fast forward to the nomination period on the current running node (remember to use the `Proxy` address as the `--address` parameter): ```bash yarn hardhat --network local fast-forward-to --address 0x866cf0358C0514D4E63fCef80fD4B57C2eE5Fbe0 nomination diff --git a/protocol/synthetix/contracts/interfaces/IAccountModule.sol b/protocol/synthetix/contracts/interfaces/IAccountModule.sol index 78887fa2a8..1b9c989f79 100644 --- a/protocol/synthetix/contracts/interfaces/IAccountModule.sol +++ b/protocol/synthetix/contracts/interfaces/IAccountModule.sol @@ -190,7 +190,7 @@ interface IAccountModule { /** * @notice Returns the last unix timestamp that a permissioned action was taken with this account * @param accountId The account id to check - * @return timestamp The unix timestamp of the last time a permissioned action occured with the account + * @return timestamp The unix timestamp of the last time a permissioned action occurred with the account */ function getAccountLastInteraction(uint128 accountId) external view returns (uint256 timestamp); } diff --git a/protocol/synthetix/contracts/mocks/CollateralMockWithoutDecimals.sol b/protocol/synthetix/contracts/mocks/CollateralMockWithoutDecimals.sol index c68146f49b..ad24ac4be8 100644 --- a/protocol/synthetix/contracts/mocks/CollateralMockWithoutDecimals.sol +++ b/protocol/synthetix/contracts/mocks/CollateralMockWithoutDecimals.sol @@ -160,7 +160,7 @@ contract CollateralMockWithoutDecimals { revert InsufficientBalance(amount, accountBalance); } - // No need for underflow check since it would have occured in the previous step + // No need for underflow check since it would have occurred in the previous step unchecked { store.balanceOf[from] -= amount; store.totalSupply -= amount; diff --git a/protocol/synthetix/contracts/storage/Distribution.sol b/protocol/synthetix/contracts/storage/Distribution.sol index 2b5c93b8bd..60b845ec77 100644 --- a/protocol/synthetix/contracts/storage/Distribution.sol +++ b/protocol/synthetix/contracts/storage/Distribution.sol @@ -72,7 +72,7 @@ library Distribution { * * Whenever an actor's shares are changed in this way, we record the distribution's current valuePerShare into the actor's lastValuePerShare record. * - * Returns the the amount by which the actors value changed since the last update. + * Returns the amount by which the actors value changed since the last update. */ function setActorShares( Data storage self, diff --git a/protocol/synthetix/contracts/storage/MarketConfiguration.sol b/protocol/synthetix/contracts/storage/MarketConfiguration.sol index 77d7f6b69a..ac9fd56724 100644 --- a/protocol/synthetix/contracts/storage/MarketConfiguration.sol +++ b/protocol/synthetix/contracts/storage/MarketConfiguration.sol @@ -27,7 +27,7 @@ library MarketConfiguration { /** * @dev Maximum value per share that a pool will tolerate for this market. * - * If the the limit is met, the markets exceeding debt will be distributed, and it will be disconnected from the pool that no longer provides credit to it. + * If the limit is met, the markets exceeding debt will be distributed, and it will be disconnected from the pool that no longer provides credit to it. * * Note: This value will have no effect if the system wide limit is hit first. See `PoolConfiguration.minLiquidityRatioD18`. */ diff --git a/protocol/synthetix/test/integration/modules/core/RewardsManagerModule.test.ts b/protocol/synthetix/test/integration/modules/core/RewardsManagerModule.test.ts index bbb0f77893..9ed22bbccc 100644 --- a/protocol/synthetix/test/integration/modules/core/RewardsManagerModule.test.ts +++ b/protocol/synthetix/test/integration/modules/core/RewardsManagerModule.test.ts @@ -884,7 +884,7 @@ describe('RewardsManagerModule', function () { await ( await systems() .Core.connect(user1) - // NOTE: we use `collateralAddress` instead of `ethers.utils.AddressZero` here becuase here the claim function will look at the distributor address to determine if its pool level + // NOTE: we use `collateralAddress` instead of `ethers.utils.AddressZero` here because here the claim function will look at the distributor address to determine if its pool level .claimPoolRewards( accountId, poolId, diff --git a/protocol/synthetix/test/integration/storage/Market/Market.test.ts b/protocol/synthetix/test/integration/storage/Market/Market.test.ts index 0aed70f5c7..c53def0c72 100644 --- a/protocol/synthetix/test/integration/storage/Market/Market.test.ts +++ b/protocol/synthetix/test/integration/storage/Market/Market.test.ts @@ -522,7 +522,7 @@ describe('Market', function () { it('debt is only partially moved', async () => { // none of the pools have received any debt allocation - // becuase it only just now entered the range + // because it only just now entered the range assertBn.equal( await systems().Core.callStatic.Market__testOnly_getOutstandingDebt( fakeMarketId, diff --git a/utils/core-utils/src/utils/assertions/assert-bignumber.ts b/utils/core-utils/src/utils/assertions/assert-bignumber.ts index 88284441bf..6481c681cc 100644 --- a/utils/core-utils/src/utils/assertions/assert-bignumber.ts +++ b/utils/core-utils/src/utils/assertions/assert-bignumber.ts @@ -37,7 +37,7 @@ export = { equal: _createAssertBN('eq'), /** - * Assert if `a` is less than than `b` + * Assert if `a` is less than `b` * @param {(string|number|BigNumber)} a * @param {(string|number|BigNumber)} b */