func (a AssetKeeper) GetCoinPower(ctx sdk.Context, account types.AccountID, creator, symbol types.Name) (types.Coin, error) {
	coins, err := a.getCoinsPower(ctx, account)
	if err != nil {
		return types.Coin{}, sdkerrors.Wrapf(err, "get coin power %s %s-%s", account, creator, symbol)
	}
	denomd := types.CoinDenom(creator, symbol)
	return types.NewCoin(denomd, coins.AmountOf(denomd)), nil
}
GetCoinPower get coin power by account id and coin demon
package keeper
import (
	"errors"
	"github.com/KuChainNetwork/kuchain/x/asset/types"
	sdk "github.com/cosmos/cosmos-sdk/types"
	sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
func (a AssetKeeper) GetCoins(ctx sdk.Context, account types.AccountID) (types.Coins, error) {
	return a.getCoins(ctx, account)
}
func (a AssetKeeper) GetCoin(ctx sdk.Context, account types.AccountID, creator, symbol types.Name) (types.Coin, error) {
	coins, err := a.getCoins(ctx, account)
	if err != nil {
		return types.Coin{}, sdkerrors.Wrapf(err, "get coin %s %s-%s", account, creator, symbol)
	}
	denomd := types.CoinDenom(creator, symbol)
	return types.NewCoin(denomd, coins.AmountOf(denomd)), nil
}
func (a AssetKeeper) GetCoinPowers(ctx sdk.Context, account types.AccountID) types.Coins {
	res, err := a.getCoinsPower(ctx, account)
	if err != nil {
		panic(err)
	}
	return res
}