diff --git a/src/dex/generic-rfq/e2e-test-config.ts b/src/dex/generic-rfq/e2e-test-config.ts index 42b289646..7c4b5861b 100644 --- a/src/dex/generic-rfq/e2e-test-config.ts +++ b/src/dex/generic-rfq/e2e-test-config.ts @@ -8,16 +8,16 @@ export const testConfig: { amount: string; }>; } = { - [Network.ARBITRUM]: [ - { - srcToken: 'WETH', - destToken: 'USDC', - amount: '10000', - swapSide: SwapSide.BUY, - }, + [Network.MAINNET]: [ + // { + // srcToken: 'USDT', + // destToken: 'USDC', + // amount: '10000', + // swapSide: SwapSide.BUY, + // }, { srcToken: 'USDC', - destToken: 'WETH', + destToken: 'USDT', amount: '10000', swapSide: SwapSide.SELL, }, diff --git a/src/dex/generic-rfq/generic-rfq-e2e.test.ts b/src/dex/generic-rfq/generic-rfq-e2e.test.ts index 54de508eb..de59bd3c4 100644 --- a/src/dex/generic-rfq/generic-rfq-e2e.test.ts +++ b/src/dex/generic-rfq/generic-rfq-e2e.test.ts @@ -118,18 +118,20 @@ describe(`GenericRFQ ${dexKey} E2E`, () => { srcToken = smartTokens[testCase.srcToken]; destToken = smartTokens[testCase.destToken]; - srcToken.addBalance(testAccount.address, MAX_UINT); + const amount = (BigInt(MAX_UINT) / 10n ** 10n).toString(); + + srcToken.addBalance(testAccount.address, amount); srcToken.addAllowance( testAccount.address, config.augustusRFQAddress, - MAX_UINT, + amount, ); - destToken.addBalance(testAccount.address, MAX_UINT); + destToken.addBalance(testAccount.address, amount); destToken.addAllowance( testAccount.address, config.augustusRFQAddress, - MAX_UINT, + amount, ); } const contractMethod = diff --git a/tests/constants-e2e.ts b/tests/constants-e2e.ts index f9eec28c1..1f6c30739 100644 --- a/tests/constants-e2e.ts +++ b/tests/constants-e2e.ts @@ -128,7 +128,7 @@ export const Tokens: { address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48', decimals: 6, symbol: 'USDC', - addBalance: balancesFn, + addBalance: balanceAndBlacklistStatesFn, addAllowance: allowedFn, }, INST: { diff --git a/tests/utils-e2e.ts b/tests/utils-e2e.ts index 1c74b820a..1354d82ee 100644 --- a/tests/utils-e2e.ts +++ b/tests/utils-e2e.ts @@ -702,7 +702,7 @@ export async function newTestE2E({ stateOverrides: {}, }; - destToken.addBalance(GIFTER_ADDRESS, MAX_UINT); + destToken.addBalance(GIFTER_ADDRESS, (BigInt(MAX_UINT) / 4n).toString()); destToken.applyOverrides(stateOverrides); const giftTx = makeFakeTransferToSenderAddress(