Skip to content

Commit

Permalink
Merge pull request #494 from ethereum/consolidate-currency-methods
Browse files Browse the repository at this point in the history
Consolidate network token logic?
  • Loading branch information
samajammin authored Jan 10, 2022
2 parents e453c20 + a19bab5 commit e55d603
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
5 changes: 2 additions & 3 deletions vue-app/src/api/recipient-registry-optimistic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
import { isHexString } from '@ethersproject/bytes'
import { DateTime } from 'luxon'
import { getEventArg } from '@/utils/contracts'
import { getNetworkToken } from '@/utils/networks'
import { chain } from '@/api/core'

import { OptimisticRecipientRegistry } from './abi'
import { provider, ipfsGatewayUrl, recipientRegistryPolicy } from './core'
Expand All @@ -33,12 +33,11 @@ export async function getRegistryInfo(
)
const deposit = await registry.baseDeposit()
const challengePeriodDuration = await registry.challengePeriodDuration()
const network = await provider.getNetwork()
const recipientCount = await registry.getRecipientCount()
const owner = await registry.owner()
return {
deposit,
depositToken: getNetworkToken(network),
depositToken: chain.currency,
challengePeriodDuration: challengePeriodDuration.toNumber(),
listingPolicyUrl: `${ipfsGatewayUrl}/ipfs/${recipientRegistryPolicy}`,
recipientCount: recipientCount.toNumber(),
Expand Down
9 changes: 0 additions & 9 deletions vue-app/src/utils/networks.ts

This file was deleted.

0 comments on commit e55d603

Please sign in to comment.