From e986c140635d7fe7e7f38e0bf306459b0311edaa Mon Sep 17 00:00:00 2001 From: NinaLua Date: Tue, 30 Apr 2024 13:59:41 +0800 Subject: [PATCH] chore: remove repetitive words --- .../bfp-market/test/integration/modules/MarginModule.test.ts | 2 +- .../modules/PerpMarketFactoryModule.utilisation.test.ts | 2 +- protocol/oracle-manager/README.md | 2 +- protocol/synthetix/contracts/storage/Distribution.sol | 2 +- protocol/synthetix/contracts/storage/MarketConfiguration.sol | 2 +- utils/core-utils/src/utils/assertions/assert-bignumber.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/markets/bfp-market/test/integration/modules/MarginModule.test.ts b/markets/bfp-market/test/integration/modules/MarginModule.test.ts index 95811c552f..6165f34b07 100644 --- a/markets/bfp-market/test/integration/modules/MarginModule.test.ts +++ b/markets/bfp-market/test/integration/modules/MarginModule.test.ts @@ -2467,7 +2467,7 @@ describe('MarginModule', async () => { bn(0.000001) ); - // Change the price, this might lead to profit or loss, depending the the generated order is long or short + // Change the price, this might lead to profit or loss, depending the generated order is long or short const newPrice = wei(order.oraclePrice).mul(1.5).toBN(); // Update price await market.aggregator().mockSetCurrentPrice(newPrice); diff --git a/markets/bfp-market/test/integration/modules/PerpMarketFactoryModule.utilisation.test.ts b/markets/bfp-market/test/integration/modules/PerpMarketFactoryModule.utilisation.test.ts index 5926149571..ac62756cbd 100644 --- a/markets/bfp-market/test/integration/modules/PerpMarketFactoryModule.utilisation.test.ts +++ b/markets/bfp-market/test/integration/modules/PerpMarketFactoryModule.utilisation.test.ts @@ -251,7 +251,7 @@ describe('PerpMarketFactoryModule Utilization', () => { }); await commitAndSettle(bs, marketId, trader1, closeOrder1); - // Create a new position with a different trader. This trader will will not incur and profits or losses. + // Create a new position with a different trader. This trader will not incur and profits or losses. const { collateral: collateral2, collateralDepositAmount: collateralDepositAmount2 } = await depositMargin(bs, genTrader(bs, { desiredMarket: market, desiredTrader: trader2 })); const order2 = await genOrder(bs, market, collateral2, collateralDepositAmount2); diff --git a/protocol/oracle-manager/README.md b/protocol/oracle-manager/README.md index b58be09dce..c5469f9877 100644 --- a/protocol/oracle-manager/README.md +++ b/protocol/oracle-manager/README.md @@ -32,7 +32,7 @@ The Chainlink Node retrieves data from a [Chainlink Price Feed](https://docs.cha - `nodeType` Value: 3 - Parameters: - `address chainlinkAddress` - The address of the Chainlink price feed contract. - - `uint256 twapTimeInterval` - The the duration (in seconds) of the lookback window for price reports to be incorporated in a time-weighted average price calculation. Use `0` to retrieve only the latest price report. + - `uint256 twapTimeInterval` - The duration (in seconds) of the lookback window for price reports to be incorporated in a time-weighted average price calculation. Use `0` to retrieve only the latest price report. - `uint8 decimals` - The number of decimals places used by the Chainlink price feed contract. _This must match what is provided by the price feed contract's `decimals()` function_. - Expected Parents: 0 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/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 */