From 37f5fe57485b503d40536f60f4d7f798455f657e Mon Sep 17 00:00:00 2001 From: pradyuman-verma Date: Wed, 15 Dec 2021 18:13:58 +0530 Subject: [PATCH] quickswap deployed update --- contracts/polygon/connectors/quickswap/main.sol | 2 +- scripts/deployment/deploy.ts | 1 + test/polygon/quickswap/quickswap.test.ts | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/contracts/polygon/connectors/quickswap/main.sol b/contracts/polygon/connectors/quickswap/main.sol index 6973948b..404b6be0 100644 --- a/contracts/polygon/connectors/quickswap/main.sol +++ b/contracts/polygon/connectors/quickswap/main.sol @@ -251,6 +251,6 @@ abstract contract QuickpswapResolver is Helpers, Events { } } -contract ConnectV2Quickswap is QuickpswapResolver { +contract ConnectV2QuickswapPolygon is QuickpswapResolver { string public constant name = "Quickpswap-v1.1"; } diff --git a/scripts/deployment/deploy.ts b/scripts/deployment/deploy.ts index 381fe091..ac66d9ad 100644 --- a/scripts/deployment/deploy.ts +++ b/scripts/deployment/deploy.ts @@ -18,6 +18,7 @@ async function main() { "GELATO-A": "ConnectV2Gelato", "MAKERDAO-A": "ConnectV2Maker", "UNISWAP-A": "ConnectV2UniswapV2", + "QUICKSWAP-A": "ConnectV2QuickswapPolygon" }; const addressMapping: Record = {}; diff --git a/test/polygon/quickswap/quickswap.test.ts b/test/polygon/quickswap/quickswap.test.ts index 5047fd61..3d3a9346 100644 --- a/test/polygon/quickswap/quickswap.test.ts +++ b/test/polygon/quickswap/quickswap.test.ts @@ -11,7 +11,7 @@ import { addLiquidity } from "../../../scripts/tests/addLiquidity"; import { addresses } from "../../../scripts/tests/polygon/addresses"; import { abis } from "../../../scripts/constant/abis"; -import { ConnectV2Quickswap__factory, ConnectV2Quickswap } from "../../../typechain"; +import { ConnectV2QuickswapPolygon__factory, ConnectV2QuickswapPolygon } from "../../../typechain"; import type { Signer, Contract } from "ethers"; const DAI_ADDR = "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063"; @@ -44,7 +44,7 @@ describe("Quickswap", function () { instaConnectorsV2 = await ethers.getContractAt(abis.core.connectorsV2, addresses.core.connectorsV2); connector = await deployAndEnableConnector({ connectorName, - contractArtifact: ConnectV2Quickswap__factory, + contractArtifact: ConnectV2QuickswapPolygon__factory, signer: masterSigner, connectors: instaConnectorsV2 });