pub fn set_asset_status<T: Config>(
asset_id: T::AssetId,
status: CircuitBreakerLevel,
)Expand description
Set the circuit breaker status for a specific external asset.
§Dispatch Origin
Must be Config::ManagerOrigin.
§Details
Controls which operations are allowed for this asset:
CircuitBreakerLevel::AllEnabled: All swaps allowedCircuitBreakerLevel::MintingDisabled: Only redemptions allowed (useful for draining debt)CircuitBreakerLevel::AllDisabled: No swaps allowed
§Parameters
asset_id: The external stablecoin to configurestatus: The new circuit breaker level for this asset
§Errors
Error::AssetNotApproved: If the asset is not in the approved list
§Events
Event::AssetStatusUpdated: Emitted with the asset ID and new status
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::set_asset_status.