pub trait EnsureDEXManager<DEXId, AccountId, Error> {
    // Required method
    fn ensure_can_manage<OuterOrigin>(
        dex_id: &DEXId,
        origin: OuterOrigin,
        mode: ManagementMode
    ) -> Result<Option<AccountId>, Error>
       where OuterOrigin: Into<Result<RawOrigin<AccountId>, OuterOrigin>>;
}
Expand description

Check on origin that it is a DEX owner.

Required Methods§

source

fn ensure_can_manage<OuterOrigin>( dex_id: &DEXId, origin: OuterOrigin, mode: ManagementMode ) -> Result<Option<AccountId>, Error>where OuterOrigin: Into<Result<RawOrigin<AccountId>, OuterOrigin>>,

Implementations on Foreign Types§

source§

impl<DEXId, AccountId> EnsureDEXManager<DEXId, AccountId, DispatchError> for ()

source§

fn ensure_can_manage<OuterOrigin>( _dex_id: &DEXId, origin: OuterOrigin, _mode: ManagementMode ) -> Result<Option<AccountId>, DispatchError>where OuterOrigin: Into<Result<RawOrigin<AccountId>, OuterOrigin>>,

Implementors§