Merge PR #2891: Remove redundant temporary code remDelPool when calc DelPool

This commit is contained in:
dongsamb
2018-11-23 17:28:29 +01:00
committed by Christopher Goes
parent f09fa33cfd
commit 33d64b6163
+1 -2
View File
@@ -50,9 +50,8 @@ func (di DelegationDistInfo) WithdrawRewards(wc WithdrawContext, vi ValidatorDis
accum := di.GetDelAccum(wc.Height, delegatorShares)
di.DelPoolWithdrawalHeight = wc.Height
withdrawalTokens := vi.DelPool.MulDec(accum).QuoDec(vi.DelAccum.Accum)
remDelPool := vi.DelPool.Minus(withdrawalTokens)
vi.DelPool = remDelPool
vi.DelPool = vi.DelPool.Minus(withdrawalTokens)
vi.DelAccum.Accum = vi.DelAccum.Accum.Sub(accum)
return di, vi, fp, withdrawalTokens