Skip to content

Commit

Permalink
chore: remove unused getReadOnlyEthereumContracts function
Browse files Browse the repository at this point in the history
  • Loading branch information
Polybius93 committed Jul 22, 2024
1 parent 7e70b4f commit 01cb98a
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/functions/ethereum/ethereum-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,25 +129,6 @@ export function getEthereumContracts(
return { dlcManagerContract, dlcBTCContract };
}

export function getReadOnlyEthereumContracts(
ethereumDeploymentPlans: EthereumDeploymentPlan[],
readOnlyProvider: providers.JsonRpcProvider
): { protocolContract: Contract; dlcManagerContract: Contract; dlcBTCContract: Contract } {
const protocolContract = getEthereumContract(
ethereumDeploymentPlans,
'TokenManager',
readOnlyProvider
);
const dlcManagerContract = getEthereumContract(
ethereumDeploymentPlans,
'DLCManager',
readOnlyProvider
);
const dlcBTCContract = getEthereumContract(ethereumDeploymentPlans, 'DLCBTC', readOnlyProvider);

return { protocolContract, dlcManagerContract, dlcBTCContract };
}

export async function getLockedBTCBalance(userVaults: RawVault[]): Promise<number> {
try {
const fundedVaults = userVaults.filter(vault => vault.status === VaultState.FUNDED);
Expand Down

0 comments on commit 01cb98a

Please sign in to comment.