pub fn set_asset_status<T: Config>(
internal_asset: T::AssetId,
external_asset: T::AssetId,
status: CircuitBreakerLevel,
)Expand description
Set the circuit breaker per external asset on a PSM instance.
§Dispatch Origin
Must match the PSM instance’s full_admin or emergency_admin; either the
Full or Emergency privilege level may use this call.
§Parameters
internal_asset: The PSM instance to configure.external_asset: The external asset whose status is being updated.status: The new circuit breaker level for that external.
§Errors
Error::AssetNotApproved: Ifexternal_assetis not approved oninternal_asset.
§Events
Event::AssetStatusUpdated: Emitted on a successful update.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::set_asset_status.