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

Fix typos in comments #2342

Open
wants to merge 3 commits into
base: main
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
2 changes: 1 addition & 1 deletion protocol/governance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion protocol/synthetix/contracts/interfaces/IAccountModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion protocol/synthetix/contracts/storage/Distribution.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion utils/core-utils/src/utils/assertions/assert-bignumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down