Trait common::EnsureDEXManager
source · 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.