From 951d6f3f26b18c4c12232503e93531173a534d5d Mon Sep 17 00:00:00 2001 From: shenpengfeng Date: Wed, 14 Aug 2024 23:43:09 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: shenpengfeng --- cypress/e2e/specs/swap.e2e.cy.ts | 2 +- src/hooks/kyberdao/index.tsx | 2 +- src/state/mint/proamm/hooks.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/specs/swap.e2e.cy.ts b/cypress/e2e/specs/swap.e2e.cy.ts index 33fce12668..38f93f4c24 100644 --- a/cypress/e2e/specs/swap.e2e.cy.ts +++ b/cypress/e2e/specs/swap.e2e.cy.ts @@ -33,7 +33,7 @@ describe(`Swap ${NETWORK}`, () => { cy.intercept('GET', '**/routes?**').as('get-route') cy.wait('@get-route', { timeout: 20000 }).its('response.statusCode').should('be.oneOf', [200, 404, 408]) }) - it('verify the defaul pair', () => { + it('verify the default pair', () => { SwapPage.getCurrentTokenIn(text => { expect(text).to.equal('ETH') }) diff --git a/src/hooks/kyberdao/index.tsx b/src/hooks/kyberdao/index.tsx index 9ea1c77e60..2d52285d3b 100644 --- a/src/hooks/kyberdao/index.tsx +++ b/src/hooks/kyberdao/index.tsx @@ -164,7 +164,7 @@ export function useKyberDaoStakeActions() { [addTransactionWithType, stakingContract], ) const undelegate = useCallback( - // address here alway should be user's address + // address here always should be user's address async (address: string) => { if (!stakingContract) { throw new Error(CONTRACT_NOT_FOUND_MSG) diff --git a/src/state/mint/proamm/hooks.tsx b/src/state/mint/proamm/hooks.tsx index f56fdddd9b..9d0265f4f6 100644 --- a/src/state/mint/proamm/hooks.tsx +++ b/src/state/mint/proamm/hooks.tsx @@ -128,7 +128,7 @@ export function useProAmmMintActionHandlers( } } -// Must be high enough to cover reccommend range +// Must be high enough to cover recommend range // But must be low enough to not matching wrong ranges const MAX_DIFF_DETECT_TICK_RANGE: { [amount in FeeAmount]: number