From 956566d5d1a9f130edf611ff5404ab288994a687 Mon Sep 17 00:00:00 2001 From: rigelrozanski Date: Thu, 27 Sep 2018 23:04:37 -0400 Subject: [PATCH] proser --- x/distribution/keeper/allocation.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/x/distribution/keeper/allocation.go b/x/distribution/keeper/allocation.go index 8cc61dcad..4174f8b17 100644 --- a/x/distribution/keeper/allocation.go +++ b/x/distribution/keeper/allocation.go @@ -10,8 +10,8 @@ func (k Keeper) AllocateFees(ctx sdk.Context) { // get the proposer of this block proposerConsAddr := k.GetProposerConsAddr(ctx) - proserValidator := k.stakeKeeper.ValidatorByConsAddr(ctx, proposerConsAddr) - proposerDist := k.GetValidatorDistInfo(ctx, proserValidator.GetOperator()) + proposerValidator := k.stakeKeeper.ValidatorByConsAddr(ctx, proposerConsAddr) + proposerDist := k.GetValidatorDistInfo(ctx, proposerValidator.GetOperator()) // get the fees which have been getting collected through all the // transactions in the block @@ -26,8 +26,8 @@ func (k Keeper) AllocateFees(ctx sdk.Context) { proposerReward := feesCollectedDec.Mul(proposerMultiplier) // apply commission - commission := proposerReward.Mul(proserValidator.GetCommission()) - remaining := proposerReward.Mul(sdk.OneDec().Sub(proserValidator.GetCommission())) + commission := proposerReward.Mul(proposerValidator.GetCommission()) + remaining := proposerReward.Mul(sdk.OneDec().Sub(proposerValidator.GetCommission())) proposerDist.PoolCommission = proposerDist.PoolCommission.Plus(commission) proposerDist.Pool = proposerDist.Pool.Plus(remaining)