pub trait NominationPoolsApi<Block: BlockT, AccountId, Balance>: Core<Block>where
AccountId: Codec,
Balance: Codec,{
// Provided methods
fn pending_rewards(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
who: AccountId
) -> Result<Balance, ApiError> { ... }
fn points_to_balance(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
pool_id: PoolId,
points: Balance
) -> Result<Balance, ApiError> { ... }
fn balance_to_points(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
pool_id: PoolId,
new_funds: Balance
) -> Result<Balance, ApiError> { ... }
}
Expand description
Runtime api for accessing information about nomination pools.
Provided Methods§
sourcefn pending_rewards(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
who: AccountId
) -> Result<Balance, ApiError>
fn pending_rewards( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, who: AccountId ) -> Result<Balance, ApiError>
Returns the pending rewards for the member that the AccountId was given for.