pub fn set_asset_ceiling_weight<T: Config>(
internal_asset: T::AssetId,
external_asset: T::AssetId,
weight: Permill,
)Expand description
Set the ceiling weight per external asset on a PSM instance.
Weights are normalised against the sum of weights within the same instance:
max_asset_debt = (weight / sum_of_weights) * info.max_debt.
§Dispatch Origin
Must match the PSM instance’s full_admin; only the Full privilege level may use
this call.
§Parameters
internal_asset: The PSM instance to configure.external_asset: The external asset whose ceiling weight is being updated.weight: The new ceiling weight. Zero disables minting for this external.
§Errors
Error::InsufficientPrivilege: If the origin level cannot set ceiling weights.Error::AssetNotApproved: Ifexternal_assetis not approved oninternal_asset.
§Events
Event::AssetCeilingWeightUpdated: Emitted with old and new values.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::set_asset_ceiling_weight.