cosmos-sdk/x/distribution/keeper/alias_functions.go

23 lines
717 B
Go
Raw Normal View History

package keeper
import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/bank/exported"
2019-06-28 13:11:27 -07:00
"github.com/cosmos/cosmos-sdk/x/distribution/types"
)
// get outstanding rewards
func (k Keeper) GetValidatorOutstandingRewardsCoins(ctx sdk.Context, val sdk.ValAddress) sdk.DecCoins {
return k.GetValidatorOutstandingRewards(ctx, val).Rewards
}
// get the community coins
func (k Keeper) GetFeePoolCommunityCoins(ctx sdk.Context) sdk.DecCoins {
return k.GetFeePool(ctx).CommunityPool
}
2019-06-28 13:11:27 -07:00
// GetDistributionAccount returns the distribution ModuleAccount
func (k Keeper) GetDistributionAccount(ctx sdk.Context) exported.ModuleAccountI {
return k.bankKeeper.GetModuleAccount(ctx, types.ModuleName)
2019-06-28 13:11:27 -07:00
}