Skip to content

Commit

Permalink
[Flare-99] Patch graphs (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson authored and michellebrier committed Oct 9, 2023
1 parent 00d82c6 commit 9383099
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,11 @@ export function fetchTotalStaked(
const timestamps: number[] = [ts]
for (let i = 1; i < points; ++i) {
const time = ts - i * (timeSliceMs / points)
// Filter timestamps impacted by
// https://blog.audius.co/article/audius-governance-takeover-post-mortem-7-23-22
if (time > 1658573677000 && time < 1658884462050) {
continue
}
timestamps.push(time)
}

Expand Down
5 changes: 2 additions & 3 deletions packages/protocol-dashboard/src/store/cache/music/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { useSelector, useDispatch } from 'react-redux'
import { ThunkAction } from 'redux-thunk'
import { Action } from 'redux'
import AppState from 'store/types'
import { DiscoveryProvider, Playlist, Track } from 'types'
import { useDiscoveryProviders } from '../discoveryProvider/hooks'
import { Playlist, Track } from 'types'
import { useEffect, useState } from 'react'
import imageBlank from 'assets/img/imageBlank2x.png'
import {
Expand Down Expand Up @@ -92,7 +91,7 @@ export function fetchTopAlbums(): ThunkAction<
try {
await aud.awaitSetup()
const data = await fetchWithLibs({
endpoint: '/v1/playlists/top',
endpoint: '/v1/full/playlists/top',
queryParams: { type: 'album', limit: 5 }
})
const albums: Playlist[] = data.map((d: any) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ export function fetchActiveProposals(): ThunkAction<
}
}

const filteredProposals = new Set([84, 85])
// 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,
Expand Down

0 comments on commit 9383099

Please sign in to comment.