Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
QuintusTheFifth committed Jul 19, 2022
1 parent 614717f commit 549407f
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 549407f

Please sign in to comment.