Skip to content

Commit

Permalink
removed voteCount selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed May 23, 2024
1 parent 1d20af2 commit fee6870
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 68 deletions.
34 changes: 0 additions & 34 deletions packages/state/recoil/selectors/contracts/DaoProposalMultiple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,37 +418,3 @@ export const listAllVotesSelector = selectorFamily<
return votes
},
})

export const voteCountSelector = selectorFamily<
number | undefined,
QueryClientParams & {
proposalId: number
}
>({
key: 'daoProposalMultipleVoteCount',
get:
({ proposalId, ...queryClientParams }) =>
async ({ get }) => {
const id =
get(refreshProposalsIdAtom) +
get(
refreshProposalIdAtom({
address: queryClientParams.contractAddress,
proposalId,
})
)

return (
get(
queryContractIndexerSelector({
...queryClientParams,
formula: 'daoProposalMultiple/voteCount',
args: {
proposalId,
},
id,
})
) ?? undefined
)
},
})
Original file line number Diff line number Diff line change
Expand Up @@ -322,37 +322,3 @@ export const reverseProposalsSelector = selectorFamily<
)
},
})

export const voteCountSelector = selectorFamily<
number | undefined,
QueryClientParams & {
proposalId: number
}
>({
key: 'daoProposalSingleCommonVoteCount',
get:
({ proposalId, ...queryClientParams }) =>
async ({ get }) => {
const id =
get(refreshProposalsIdAtom) +
get(
refreshProposalIdAtom({
address: queryClientParams.contractAddress,
proposalId,
})
)

return (
get(
queryContractIndexerSelector({
...queryClientParams,
formula: 'daoProposalSingle/voteCount',
args: {
proposalId,
},
id,
})
) ?? undefined
)
},
})

0 comments on commit fee6870

Please sign in to comment.