From 6c2eda6e1d86505eaf6203af259bd40df6ba21d1 Mon Sep 17 00:00:00 2001 From: rigelrozanski Date: Fri, 30 Mar 2018 22:57:58 +0200 Subject: [PATCH] adrian pr comment --- x/stake/handler.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x/stake/handler.go b/x/stake/handler.go index 22e079f61c..6e3b6ff72d 100644 --- a/x/stake/handler.go +++ b/x/stake/handler.go @@ -177,8 +177,7 @@ func BondCoins(ctx sdk.Context, k Keeper, bond DelegatorBond, candidate Candidat return err } p := k.GetPool(ctx) - var newShares sdk.Rat - p, candidate, newShares = p.candidateAddTokens(candidate, amount.Amount) + p, candidate, newShares := p.candidateAddTokens(candidate, amount.Amount) bond.Shares = bond.Shares.Add(newShares) k.setPool(ctx, p) k.setCandidate(ctx, candidate)