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

This commit is contained in:
dongsamb 2018-11-24 01:28:29 +09:00 committed by Christopher Goes
parent f09fa33cfd
commit 33d64b6163
1 changed files with 1 additions and 2 deletions

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