diff --git a/README.md b/README.md index 0e05c4f4b..4d93c96f5 100644 --- a/README.md +++ b/README.md @@ -234,7 +234,7 @@ In order to ensure correctness of encoding please make use of these parameters: - `needWrapNative`: if true, tells if the DEX only deals with wrapped native tokens (eg. on Ethereum it only executes trades with wETH, not native ETH). - `dexFuncHasRecipient`: if true, tells if the DEX can swap and transfer to an arbitrary address (`recipient`) else we would append a transfer call -- `exchangeData`: the call data required by the DEX, and typically requires targetting the contract's interface to encode data. +- `exchangeData`: the call data required by the DEX, and typically requires targeting the contract's interface to encode data. - `transferSrcTokenBeforeSwap`: if your DEX requires a transfer before the swap happens, rather than encoding it within the `exchangeData` - `targetExchange`: the contract against which we swap - `spender`: a contract that we need to approve in order to swap against `targetExchange`. If not set, then the spender will be `targetExchange` diff --git a/src/dex/hashflow/hashflow.ts b/src/dex/hashflow/hashflow.ts index 0ce0aaf4e..a79f666fe 100644 --- a/src/dex/hashflow/hashflow.ts +++ b/src/dex/hashflow/hashflow.ts @@ -771,7 +771,7 @@ export class Hashflow extends SimpleExchange implements IDex { error.addedDatetimeMS + CONSECUTIVE_ERROR_TIMESPAN_MS < Date.now() ) { this.logger.warn( - `${this.dexKey}-${this.network}: First encounter of error code=${errorCode} for ${mm} OR error ocurred outside of threshold, setting up counter`, + `${this.dexKey}-${this.network}: First encounter of error code=${errorCode} for ${mm} OR error occurred outside of threshold, setting up counter`, ); const data: CacheErrorCodesData = { ...errorCodes, diff --git a/src/dex/idex.ts b/src/dex/idex.ts index 85d60407e..e190e72bf 100644 --- a/src/dex/idex.ts +++ b/src/dex/idex.ts @@ -129,7 +129,7 @@ export interface IDexTxBuilder { export interface IDexPricing { readonly dexKey: string; - // This is true if the the DEX is simply + // This is true if the DEX is simply // wrapping/ unwrapping like weth, lending pools, etc // or has a pool where arbitrarily large amounts has // constant price. @@ -196,7 +196,7 @@ export interface IDexPricing { // Build an event based pool with all the info to create inside // a cache key name poolKey addMasterPool?(poolKey: string, blockNumber: number): AsyncOrSync; - // return true if the userAddress is is blacklisted from the exchange + // return true if the userAddress is blacklisted from the exchange // useful for RFQ system isBlacklisted?(userAddress?: Address): AsyncOrSync; diff --git a/src/router/directswap.ts b/src/router/directswap.ts index a0a44edc2..cb6f6abe1 100644 --- a/src/router/directswap.ts +++ b/src/router/directswap.ts @@ -11,7 +11,7 @@ import { } from './payload-encoder'; export class DirectSwap implements IRouter { - // This is just psuedo name as the DirectSwap + // This is just pseudo name as the DirectSwap // is more generic and works with multiple // contract methods. contractMethodName: string = 'directSwap';