Skip to content

Commit

Permalink
Revert "fix: add fallback values for data room stats (#544)" (#545)
Browse files Browse the repository at this point in the history
This reverts commit 92b9c3b.
  • Loading branch information
iamacook authored Jan 30, 2025
1 parent 92b9c3b commit 20bd826
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions src/pages/dataroom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,14 @@ import type { InferGetStaticPropsType, NextPage } from 'next'
import { DataRoom } from '@/components/DataRoom'
import { fetchDataRoomStats } from '@/hooks/useSafeDataRoomStats'

// Added due to broken Dune query 3864414 (values correct as of 29.01)
const DEFAULT_DATA_ROOM_STATS = {
tvpToGDPPercentage: 0.16,
usdcPercentageStored: 6.8,
cryptoPunksStoredPercentage: 9.7,
totalVolumeTransferred: 758690000000,
onChainTransactionsPercentage: 2.74,
tvlSafe: 66000000000,
tvlRobinhoodCEX: 14000000000,
tvlOKX: 19000000000,
tvlBinance: 116000000000,
tvlLido: 25000000000,
tvlAAVE: 14000000000,
tvlEigenLayer: 11000000000,
tvlUniswap: 4800000000,
lastUpdated: null,
annualSwapFees: 15000000,
annualStakeFees: 106000,
annualisedOutgoingTVP: 2.74,
}

const DataRoomPage: NextPage<InferGetStaticPropsType<typeof getStaticProps>> = (props) => {
return <DataRoom {...props} />
}

export async function getStaticProps() {
const dataRoomStats = await fetchDataRoomStats()

if (!dataRoomStats) {
return {
props: {
safeDataRoomStats: DEFAULT_DATA_ROOM_STATS,
},
}
}
if (!dataRoomStats) return null

const {
tvp_perc_world_gdp,
Expand Down

0 comments on commit 20bd826

Please sign in to comment.