From 61f893a55b365d332dd0c7e78583e53cc031b139 Mon Sep 17 00:00:00 2001 From: Alawode Oluwandabira Date: Fri, 23 Feb 2018 00:44:15 +0100 Subject: [PATCH] Changed ticket target percent to full percentage (#355) --- explorer/explorer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/explorer/explorer.go b/explorer/explorer.go index 5534ab8cb..860980324 100644 --- a/explorer/explorer.go +++ b/explorer/explorer.go @@ -483,8 +483,8 @@ func (exp *explorerUI) Store(blockData *blockdata.BlockData, _ *wire.MsgBlock) e Percentage: percentage(blockData.PoolInfo.Value, dcrutil.Amount(blockData.ExtraInfo.CoinSupply).ToCoin()), Target: exp.ChainParams.TicketPoolSize * exp.ChainParams.TicketsPerBlock, PercentTarget: func() float64 { - target := int32(exp.ChainParams.TicketPoolSize * exp.ChainParams.TicketsPerBlock) - return float64((int32(blockData.PoolInfo.Size) - target)) / float64(target) * 100 + target := float64(exp.ChainParams.TicketPoolSize * exp.ChainParams.TicketsPerBlock) + return float64(blockData.PoolInfo.Size) / target * 100 }(), }, TicketROI: percentage(dcrutil.Amount(blockData.ExtraInfo.NextBlockSubsidy.PoS).ToCoin()/5, blockData.CurrentStakeDiff.CurrentStakeDifficulty),