From 3cf7b777632b13417f54de0311837bdeef748ec9 Mon Sep 17 00:00:00 2001 From: Ramiro Vazquez Date: Wed, 15 Apr 2020 10:40:41 -0300 Subject: [PATCH] remove commented code --- src/utils/makerdao.ts | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/utils/makerdao.ts b/src/utils/makerdao.ts index 4920809..2ff754c 100644 --- a/src/utils/makerdao.ts +++ b/src/utils/makerdao.ts @@ -3,7 +3,6 @@ import BigNumber from 'bignumber.js' import { getUnixTime } from 'date-fns' const Hash = require('ipfs-only-hash') -// const network = 'mainnet' const prod = 'https://cms-gov.makerfoundation.com' const topicsPath = 'content/governance-dashboard' const spellsPath = 'content/all-spells' @@ -54,21 +53,6 @@ const fetchSpells = async network => { return fetchNetwork(prod, 'spells', spellsPath, network) } -// function extractProposals(topics, network) { -// const executiveTopics = topics.filter(t => t.govVote === false) -// return executiveTopics.reduce((acc, topic) => { -// const proposals = topic.proposals.map(({ source, ...otherProps }) => ({ -// ...otherProps, -// source: source.startsWith('{') ? JSON.parse(source)[network] : source, -// active: topic.active, -// govVote: topic.govVote, -// topicKey: topic.key, -// topicTitle: topic.topic, -// })) -// return acc.concat(proposals) -// }, []) -// } - export const formatHistoricalPolls = topics => { const govTopics = topics.filter(t => t.govVote === true) const allPolls = govTopics.reduce((result, { end_timestamp, date, topic_blurb, topic, key, proposals }) => { @@ -120,7 +104,7 @@ export async function getMakerDaoData() { about, })) - return { /*executiveVotes,*/ historicalPolls, spellsInfo } + return { historicalPolls, spellsInfo } } // Polls data