diff --git a/test/exchangeIssuance/flashMintPerp.spec.ts b/test/exchangeIssuance/flashMintPerp.spec.ts index fe463d3c..1f845294 100644 --- a/test/exchangeIssuance/flashMintPerp.spec.ts +++ b/test/exchangeIssuance/flashMintPerp.spec.ts @@ -17,7 +17,6 @@ import { UnitsUtils } from "@utils/common/unitsUtils"; import { SetFixture } from "@utils/fixtures"; import { BigNumber, ContractTransaction } from "ethers"; import { FlashMintPerp } from "@typechain/FlashMintPerp"; -import { SwapRouter } from "@typechain/SwapRouter"; import { Quoter } from "@typechain/Quoter"; import { SlippageIssuanceModule } from "@typechain/SlippageIssuanceModule"; import { @@ -26,6 +25,7 @@ import { getUsdcAmountInForExactSet, getUsdcAmountOutForExactSet, } from "@utils/common/exchangeIssuanceUtils"; +import { SwapRouter02 } from "@typechain/SwapRouter02"; const expect = getWaffleExpect(); @@ -87,7 +87,7 @@ describe("FlashMintPerp", async () => { }); describe("#constructor", async () => { - let uniV3Router: SwapRouter; + let uniV3Router: SwapRouter02; let uniV3Quoter: Quoter; let slippageIssuanceModule: SlippageIssuanceModule; let usdc: StandardTokenMock; @@ -151,7 +151,7 @@ describe("FlashMintPerp", async () => { }); context("when exchange issuance is deployed", async () => { - let uniV3Router: SwapRouter; + let uniV3Router: SwapRouter02; let uniV3Quoter: Quoter; let slippageIssuanceModule: SlippageIssuanceModule; diff --git a/test/integration/optimism/flashMintPerpIntegration.spec.ts b/test/integration/optimism/flashMintPerpIntegration.spec.ts index 80ae42f0..8e99ea70 100644 --- a/test/integration/optimism/flashMintPerpIntegration.spec.ts +++ b/test/integration/optimism/flashMintPerpIntegration.spec.ts @@ -6,7 +6,7 @@ import { cacheBeforeEach, ether, getAccounts, getWaffleExpect } from "@utils/ind import { SetToken, SlippageIssuanceModule } from "@utils/contracts/setV2"; import { BigNumber, ContractTransaction } from "ethers"; import { FlashMintPerp, StandardTokenMock, WETH9 } from "@utils/contracts/index"; -import { Quoter, SwapRouter } from "../../../typechain"; +import { Quoter, SwapRouter02 } from "../../../typechain"; import { ADDRESS_ZERO, MAX_UINT_256 } from "@utils/constants"; import { encodePath, @@ -37,7 +37,7 @@ if (process.env.INTEGRATIONTEST) { let exchangeIssuance: FlashMintPerp; let slippageIssuanceModule: SlippageIssuanceModule; - let uniV3Router: SwapRouter; + let uniV3Router: SwapRouter02; let uniV3Quoter: Quoter; let usdc: StandardTokenMock; let weth: WETH9; @@ -53,7 +53,7 @@ if (process.env.INTEGRATIONTEST) { ); usdc = await ethers.getContractAt("StandardTokenMock", usdcAddress); weth = await ethers.getContractAt("IWETH", wethAddress); - uniV3Router = await ethers.getContractAt("ISwapRouter", uniV3SwapRouterAddress); + uniV3Router = await ethers.getContractAt("ISwapRouter02", uniV3SwapRouterAddress); uniV3Quoter = await ethers.getContractAt("IQuoter", uniV3QuoterAddress); exchangeIssuance = await deployer.extensions.deployFlashMintPerp(