From 95629cc0fb1f4adba7082504e315b22d213db42f Mon Sep 17 00:00:00 2001 From: Lint Action Date: Tue, 19 Sep 2023 21:12:42 +0000 Subject: [PATCH] Fix code style issues with Prettier --- src/constants.ts | 2 +- src/entities/trade.test.ts | 24 +++++++++++++++++++++--- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index 62e6231..fd46151 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -10,4 +10,4 @@ export const ONE = JSBI.BigInt(1) // = 1 << 23 or 100000000000000000000000 export const V2_FEE_PATH_PLACEHOLDER = 8388608 -export const ZERO_PERCENT = new Percent(ZERO) \ No newline at end of file +export const ZERO_PERCENT = new Percent(ZERO) diff --git a/src/entities/trade.test.ts b/src/entities/trade.test.ts index 2cb4c82..1e6dcf7 100644 --- a/src/entities/trade.test.ts +++ b/src/entities/trade.test.ts @@ -1,5 +1,5 @@ import { sqrt, Token, CurrencyAmount, TradeType, WETH9, Ether, Percent, Price } from '@uniswap/sdk-core' -import { BigNumber } from '@ethersproject/bignumber'; +import { BigNumber } from '@ethersproject/bignumber' import JSBI from 'jsbi' import { MixedRoute, RouteV2, RouteV3 } from './route' @@ -23,8 +23,26 @@ describe('Trade', () => { const token1 = new Token(1, '0x0000000000000000000000000000000000000002', 18, 't1', 'token1') const token2 = new Token(1, '0x0000000000000000000000000000000000000003', 18, 't2', 'token2') const token3 = new Token(1, '0x0000000000000000000000000000000000000004', 18, 't3', 'token3') - const token4WithTax = new Token(1, '0x0000000000000000000000000000000000000005', 18, 't4', 'token4', false, BigNumber.from(100), BigNumber.from(100)) - const token5WithTax = new Token(1, '0x0000000000000000000000000000000000000005', 18, 't5', 'token5', false, BigNumber.from(500), BigNumber.from(500)) + const token4WithTax = new Token( + 1, + '0x0000000000000000000000000000000000000005', + 18, + 't4', + 'token4', + false, + BigNumber.from(100), + BigNumber.from(100) + ) + const token5WithTax = new Token( + 1, + '0x0000000000000000000000000000000000000005', + 18, + 't5', + 'token5', + false, + BigNumber.from(500), + BigNumber.from(500) + ) function v2StylePool( reserve0: CurrencyAmount,