Skip to content

Commit

Permalink
Filter out incorrect proposals (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson committed Sep 20, 2023
1 parent af571a2 commit ae5be40
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/protocol-dashboard/src/store/cache/proposals/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,21 @@ export const getExecutionDelay = (state: AppState) =>

// -------------------------------- Thunk Actions --------------------------------

// Filter proposals impacted by
// https://blog.audius.co/article/audius-governance-takeover-post-mortem-7-23-22
const filteredProposals = new Set([82, 83, 84, 85])
filteredProposals.add(130) // Incorrect slash amount applied via sla-auditor
filteredProposals.add(131) // Incorrect slash amount applied via sla-auditor

export function fetchActiveProposals(): ThunkAction<
void,
AppState,
Audius,
Action<string>
> {
return async (dispatch, getState, aud) => {
const proposalIds = await aud.Governance.getInProgressProposalIds()
let proposalIds = await aud.Governance.getInProgressProposalIds()
proposalIds = proposalIds.filter(p => filteredProposals.has(p))
const proposals = (
await Promise.all(
proposalIds.map(async id => {
Expand All @@ -82,10 +89,6 @@ export function fetchActiveProposals(): ThunkAction<
}
}

// Filter proposals impacted by
// https://blog.audius.co/article/audius-governance-takeover-post-mortem-7-23-22
const filteredProposals = new Set([82, 83, 84, 85])

export function fetchAllProposals(): ThunkAction<
void,
AppState,
Expand Down

0 comments on commit ae5be40

Please sign in to comment.