Skip to content

Commit

Permalink
adjust aount even more
Browse files Browse the repository at this point in the history
  • Loading branch information
xrsv committed Feb 12, 2025
1 parent 910daeb commit 473b6e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/mocha/e2e/quote.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ describe('quote', function () {
}

before(async function () {
this.timeout(40000)
this.timeout(400000)
;[alice] = await ethers.getSigners()

// Make a dummy call to the API to get a block number to fork from.
Expand Down Expand Up @@ -1061,7 +1061,7 @@ describe('quote', function () {
tokenOutAddress: 'USDC',
tokenOutChainId: 1,
// Reducing amount as v4 ETH/USDC pool with very low liquidity might be selected, and liquidity changes often
amount: await getAmount(1, type, 'ETH', 'USDC', type == 'exactIn' ? '0.001' : '1'),
amount: await getAmount(1, type, 'ETH', 'USDC', type == 'exactIn' ? '0.00001' : '0.1'),
type,
recipient: alice.address,
slippageTolerance: LARGE_SLIPPAGE,
Expand All @@ -1087,11 +1087,11 @@ describe('quote', function () {
)

if (type == 'exactIn') {
expect(tokenInBefore.subtract(tokenInAfter).greaterThan(parseAmount('0.001', Ether.onChain(1)))).to.be
expect(tokenInBefore.subtract(tokenInAfter).greaterThan(parseAmount('0.00001', Ether.onChain(1)))).to.be
.true
checkQuoteToken(tokenOutBefore, tokenOutAfter, CurrencyAmount.fromRawAmount(USDC_MAINNET, data.quote))
} else {
expect(tokenOutAfter.subtract(tokenOutBefore).toExact()).to.equal('1')
expect(tokenOutAfter.subtract(tokenOutBefore).toExact()).to.equal('0.1')
}

expect(response.data.hitsCachedRoutes).to.be.true
Expand Down

0 comments on commit 473b6e5

Please sign in to comment.