I would like to customize POS by staking the asset balance instead of currency balance.
After switching the consensus from PoA to PoS by changing AURA to BABE, I need to change the configuration of pallet_staking.
there are 2 fields in pallet_staking::Config
need to be defined
impl pallet_staking::Config for Runtime {
type Currency = Balances;// -> pallet_pts::Config::Kitty;
type CurrencyBalance = (); -> pallet_potw::Kitty::Balance;
}
Kitty
is defined in runtime : type Kitty = Assets;
and type KittyBalance = AssetBalance;
However the trait of Currency
and Asset
is different, what should I do to able use this asset for staking?