From 549407f529df49bcbb07e7ee3ef79044ddbefcbc Mon Sep 17 00:00:00 2001 From: Quentin Date: Tue, 19 Jul 2022 15:55:52 +0200 Subject: [PATCH] Update index.ts --- src/services/index.ts | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/services/index.ts b/src/services/index.ts index ab804363..4dc11c32 100644 --- a/src/services/index.ts +++ b/src/services/index.ts @@ -73,18 +73,6 @@ export function getProvider( ); } -function getTellorMasterCopy(chainId: number): KnownContracts { - switch (chainId) { - case NETWORK.MAINNET: - return KnownContracts.TELLOR_MAINNET; - case NETWORK.RINKEBY: - return KnownContracts.TELLOR_RINKEBY; - case NETWORK.POLYGON: - return KnownContracts.TELLOR_POLYGON; - } - return KnownContracts.TELLOR_MAINNET; -} - export function getTellorOracle(chainId: number): string { switch (chainId) { case NETWORK.MAINNET: @@ -151,7 +139,7 @@ export function deployTellorModule( chainId: number, args: TellorModuleParams ) { - const type = getTellorMasterCopy(chainId); + const type = KnownContracts.TELLOR const { oracle, cooldown, expiration, executor } = args; const provider = getProvider(chainId); const oracleAddress = oracle || getTellorOracle(chainId);