diff --git a/test/mocha/e2e/quote.test.ts b/test/mocha/e2e/quote.test.ts index 0cd702f2b6..a4968ff854 100644 --- a/test/mocha/e2e/quote.test.ts +++ b/test/mocha/e2e/quote.test.ts @@ -1041,7 +1041,7 @@ describe('quote', function () { tokenInChainId: 1, tokenOutAddress: 'USDC', tokenOutChainId: 1, - amount: await getAmount(1, type, 'ETH', 'USDC', type == 'exactIn' ? '1' : '1000'), + amount: await getAmount(1, type, 'ETH', 'USDC', type == 'exactIn' ? '0.1' : '100'), type, recipient: alice.address, slippageTolerance: LARGE_SLIPPAGE, @@ -1075,10 +1075,10 @@ describe('quote', function () { ) if (type == 'exactIn') { - expect(tokenInBefore.subtract(tokenInAfter).greaterThan(parseAmount('1', Ether.onChain(1)))).to.be.true + expect(tokenInBefore.subtract(tokenInAfter).greaterThan(parseAmount('0.1', Ether.onChain(1)))).to.be.true checkQuoteToken(tokenOutBefore, tokenOutAfter, CurrencyAmount.fromRawAmount(USDC_MAINNET, data.quote)) } else { - expect(tokenOutAfter.subtract(tokenOutBefore).toExact()).to.equal('1000') + expect(tokenOutAfter.subtract(tokenOutBefore).toExact()).to.equal('100') } expect(response.data.hitsCachedRoutes).to.be.true @@ -1157,7 +1157,7 @@ describe('quote', function () { tokenInChainId: 1, tokenOutAddress: 'USDC', tokenOutChainId: 1, - amount: await getAmount(1, type, 'WETH', 'USDC', type == 'exactIn' ? '1' : '1000'), + amount: await getAmount(1, type, 'WETH', 'USDC', type == 'exactIn' ? '0.1' : '100'), type, recipient: alice.address, slippageTolerance: LARGE_SLIPPAGE, @@ -1191,10 +1191,10 @@ describe('quote', function () { ) if (type == 'exactIn') { - expect(tokenInBefore.subtract(tokenInAfter).toExact()).to.equal('1') + expect(tokenInBefore.subtract(tokenInAfter).toExact()).to.equal('0.1') checkQuoteToken(tokenOutBefore, tokenOutAfter, CurrencyAmount.fromRawAmount(USDC_MAINNET, data.quote)) } else { - expect(tokenOutAfter.subtract(tokenOutBefore).toExact()).to.equal('1000') + expect(tokenOutAfter.subtract(tokenOutBefore).toExact()).to.equal('100') checkQuoteToken(tokenInBefore, tokenInAfter, CurrencyAmount.fromRawAmount(WETH9[1]!, data.quote)) }