From 9ec98451146386d2607b2bea14b5f16a639391d7 Mon Sep 17 00:00:00 2001 From: jsy1218 <91580504+jsy1218@users.noreply.github.com> Date: Wed, 29 Jan 2025 22:56:40 -0800 Subject: [PATCH 1/2] npm install --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index cfa664837a..38c69a24ba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,7 @@ "@uniswap/permit2-sdk": "^1.3.0", "@uniswap/router-sdk": "^1.21.0", "@uniswap/sdk-core": "^7.5.0", - "@uniswap/smart-order-router": "4.17.2", + "@uniswap/smart-order-router": "4.17.3", "@uniswap/token-lists": "^1.0.0-beta.33", "@uniswap/universal-router-sdk": "^4.14.0", "@uniswap/v2-sdk": "^4.13.0", @@ -4508,9 +4508,9 @@ } }, "node_modules/@uniswap/smart-order-router": { - "version": "4.17.2", - "resolved": "https://registry.npmjs.org/@uniswap/smart-order-router/-/smart-order-router-4.17.2.tgz", - "integrity": "sha512-1A5blQB+l+QgAGbKo1gu+/oY+9y8fYegpnCE1j/ECy11B6A++ZJVAT/igUJ7y3id19PVB9KTcI5jmUpYV47N/A==", + "version": "4.17.3", + "resolved": "https://registry.npmjs.org/@uniswap/smart-order-router/-/smart-order-router-4.17.3.tgz", + "integrity": "sha512-f+Y8RA04vAWxaA2Dkg1EYvbPlp+51b2n9PVsqF/g3zvhSGCYjWpEQgI6UrNj8Icvbig276MHneBbJzQFTu1CaA==", "dependencies": { "@eth-optimism/sdk": "^3.2.2", "@types/brotli": "^1.3.4", @@ -27936,9 +27936,9 @@ } }, "@uniswap/smart-order-router": { - "version": "4.17.2", - "resolved": "https://registry.npmjs.org/@uniswap/smart-order-router/-/smart-order-router-4.17.2.tgz", - "integrity": "sha512-1A5blQB+l+QgAGbKo1gu+/oY+9y8fYegpnCE1j/ECy11B6A++ZJVAT/igUJ7y3id19PVB9KTcI5jmUpYV47N/A==", + "version": "4.17.3", + "resolved": "https://registry.npmjs.org/@uniswap/smart-order-router/-/smart-order-router-4.17.3.tgz", + "integrity": "sha512-f+Y8RA04vAWxaA2Dkg1EYvbPlp+51b2n9PVsqF/g3zvhSGCYjWpEQgI6UrNj8Icvbig276MHneBbJzQFTu1CaA==", "requires": { "@eth-optimism/sdk": "^3.2.2", "@types/brotli": "^1.3.4", diff --git a/package.json b/package.json index cffdd8d884..531cf9efb1 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "@uniswap/permit2-sdk": "^1.3.0", "@uniswap/router-sdk": "^1.21.0", "@uniswap/sdk-core": "^7.5.0", - "@uniswap/smart-order-router": "4.17.2", + "@uniswap/smart-order-router": "4.17.3", "@uniswap/token-lists": "^1.0.0-beta.33", "@uniswap/universal-router-sdk": "^4.14.0", "@uniswap/v2-sdk": "^4.13.0", From 5d2d03d08aad5b7ab866459b292b95448887831e Mon Sep 17 00:00:00 2001 From: jsy1218 <91580504+jsy1218@users.noreply.github.com> Date: Wed, 29 Jan 2025 22:58:22 -0800 Subject: [PATCH 2/2] fux prettier --- test/mocha/e2e/quote.test.ts | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/test/mocha/e2e/quote.test.ts b/test/mocha/e2e/quote.test.ts index d56a6ace8d..b81b3d8401 100644 --- a/test/mocha/e2e/quote.test.ts +++ b/test/mocha/e2e/quote.test.ts @@ -999,7 +999,12 @@ describe('quote', function () { if (type == 'exactIn') { expect(tokenInBefore.subtract(tokenInAfter).greaterThan(parseAmount('0.00001', Ether.onChain(1)))).to.be .true - checkQuoteToken(tokenOutBefore, tokenOutAfter, CurrencyAmount.fromRawAmount(USDC_MAINNET, data.quote), LARGE_SLIPPAGE) + checkQuoteToken( + tokenOutBefore, + tokenOutAfter, + CurrencyAmount.fromRawAmount(USDC_MAINNET, data.quote), + LARGE_SLIPPAGE + ) } else { expect(tokenOutAfter.subtract(tokenOutBefore).toExact()).to.equal('0.1') } @@ -1104,10 +1109,20 @@ describe('quote', function () { if (type == 'exactIn') { expect(tokenInBefore.subtract(tokenInAfter).toExact()).to.equal('0.00001') - checkQuoteToken(tokenOutBefore, tokenOutAfter, CurrencyAmount.fromRawAmount(USDC_MAINNET, data.quote), LARGE_SLIPPAGE) + checkQuoteToken( + tokenOutBefore, + tokenOutAfter, + CurrencyAmount.fromRawAmount(USDC_MAINNET, data.quote), + LARGE_SLIPPAGE + ) } else { expect(tokenOutAfter.subtract(tokenOutBefore).toExact()).to.equal('0.01') - checkQuoteToken(tokenInBefore, tokenInAfter, CurrencyAmount.fromRawAmount(WETH9[1]!, data.quote), LARGE_SLIPPAGE) + checkQuoteToken( + tokenInBefore, + tokenInAfter, + CurrencyAmount.fromRawAmount(WETH9[1]!, data.quote), + LARGE_SLIPPAGE + ) } expect(response.data.hitsCachedRoutes).to.be.true