Trait common::VestedRewardsPallet
source · pub trait VestedRewardsPallet<AccountId, AssetId> {
// Required methods
fn add_tbc_reward(
account_id: &AccountId,
pswap_amount: Balance
) -> DispatchResult;
fn add_farming_reward(
account_id: &AccountId,
pswap_amount: Balance
) -> DispatchResult;
}
Expand description
Trait to abstract interface of VestedRewards pallet, in order for pallets with rewards sources avoid having dependency issues.
Required Methods§
sourcefn add_tbc_reward(
account_id: &AccountId,
pswap_amount: Balance
) -> DispatchResult
fn add_tbc_reward( account_id: &AccountId, pswap_amount: Balance ) -> DispatchResult
Report that account has received pswap reward for buying from tbc.
sourcefn add_farming_reward(
account_id: &AccountId,
pswap_amount: Balance
) -> DispatchResult
fn add_farming_reward( account_id: &AccountId, pswap_amount: Balance ) -> DispatchResult
Report that account has received farmed pswap reward for providing liquidity on secondary market.