Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
ramirotw committed Apr 15, 2020
1 parent d515816 commit 3cf7b77
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/utils/makerdao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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 }) => {
Expand Down Expand Up @@ -120,7 +104,7 @@ export async function getMakerDaoData() {
about,
}))

return { /*executiveVotes,*/ historicalPolls, spellsInfo }
return { historicalPolls, spellsInfo }
}

// Polls data
Expand Down

0 comments on commit 3cf7b77

Please sign in to comment.