Trait cfg_traits::PoolNAV
source · pub trait PoolNAV<PoolId, Amount> {
type ClassId;
type RuntimeOrigin;
// Required methods
fn nav(pool_id: PoolId) -> Option<(Amount, u64)>;
fn update_nav(pool_id: PoolId) -> Result<Amount, DispatchError>;
fn initialise(
origin: Self::RuntimeOrigin,
pool_id: PoolId,
class_id: Self::ClassId
) -> DispatchResult;
}
Expand description
A trait that can be used to fetch the nav and update nav for a given pool
Required Associated Types§
type ClassId
type RuntimeOrigin
Required Methods§
fn initialise( origin: Self::RuntimeOrigin, pool_id: PoolId, class_id: Self::ClassId ) -> DispatchResult
Object Safety§
This trait is not object safe.