Skip to content

Commit

Permalink
Removed the unnecessary function
Browse files Browse the repository at this point in the history
  • Loading branch information
LeifuChen committed Jul 7, 2023
1 parent 26bf8ce commit 5eb9a53
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/app/src/queries/staking/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,3 @@ export const parseEpochData = (index: number, networkId?: NetworkId) => {
const label = `Epoch ${index}`
return { period: index, start: epochStart, end: epochEnd, label }
}

export const useEstimatedReward = (fileName: string) => {
const network = useAppSelector(selectNetwork)
const walletAddress = useAppSelector(selectWallet)
const query = useGetFile(
`trading-rewards-snapshots/${network === 420 ? 'goerli-' : ''}${fileName}`
)
return BigNumber.from(query?.data?.claims[walletAddress!]?.amount ?? 0)
}

0 comments on commit 5eb9a53

Please sign in to comment.