Skip to content

Commit

Permalink
Remove missing debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcorbalan committed May 19, 2020
1 parent eb54422 commit 0f69090
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/Home/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const getStakedMkrData = (data: any, time: string) => {
return -1
}

if (a.type === 'LOCK' || (a.type === 'FREE' && b.type)) {
if (a.type === 'LOCK' || a.type === 'FREE') {
return -1
}

Expand Down Expand Up @@ -144,10 +144,6 @@ function calculateVotingMkr(
const stake = voters[sender] || new BigNumber(0)

if (type === 'LOCK') {
const tS = totalStaked.plus(wad)
const tV = stake.isZero() ? totalVoting : totalVoting.plus(wad)
const vs = { ...voters, [sender]: !stake.isZero() ? stake.plus(wad) : new BigNumber(0) }

return {
totalStaked: totalStaked.plus(wad),
totalVoting: stake.isZero() ? totalVoting : totalVoting.plus(wad),
Expand Down Expand Up @@ -176,7 +172,7 @@ function calculateVotingMkr(
}

return {
totalStaked: totalStaked,
totalStaked,
totalVoting: newTotalVoting,
voters: { ...voters, [sender]: yays.length ? new BigNumber(wad) : new BigNumber(0) },
}
Expand Down

0 comments on commit 0f69090

Please sign in to comment.