Trait pallet_asset_rewards::AssetRewards
source · pub trait AssetRewards<Block: BlockT, Cost: MaybeDisplay + Codec>: Core<Block> {
// Provided method
fn pool_creation_cost(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
) -> Result<Cost, ApiError> { ... }
}
Expand description
The runtime API for the asset rewards pallet.
Provided Methods§
sourcefn pool_creation_cost(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
) -> Result<Cost, ApiError>
fn pool_creation_cost( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, ) -> Result<Cost, ApiError>
Get the cost of creating a pool.
This is especially useful when the cost is dynamic.