diff --git a/x/distribution/handler.go b/x/distribution/handler.go index 39371610f..02fb1c3ed 100644 --- a/x/distribution/handler.go +++ b/x/distribution/handler.go @@ -7,6 +7,7 @@ import ( // distribution fee handler func DistributionFeeHandler(ctx sdk.Context, _ sdk.Tx, collectedFees sdk.Coins) { + k. } ////////////////////////////////////////////////////////////////////////////////// diff --git a/x/distribution/keeper/allocation.go b/x/distribution/keeper/allocation.go index ce111b559..43a99dfdb 100644 --- a/x/distribution/keeper/allocation.go +++ b/x/distribution/keeper/allocation.go @@ -3,10 +3,14 @@ package keeper import sdk "github.com/cosmos/cosmos-sdk/types" // XXX TODO -func AllocateFees(feesCollected sdk.Coins, feePool FeePool, proposer ValidatorDistribution, +func (k Keeper) AllocateFees(ctx sdk.Context, feesCollected sdk.Coins, proposerAddr ValidatorDistribution, sumPowerPrecommitValidators, totalBondedTokens, communityTax, proposerCommissionRate sdk.Dec) { + feePool := k.GetFeePool() + proposerOpAddr := Stake.Get + proposer := GetFeeDistribution() + feesCollectedDec = MakeDecCoins(feesCollected) proposerReward = feesCollectedDec * (0.01 + 0.04*sumPowerPrecommitValidators/totalBondedTokens)