mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-03 17:31:07 +00:00
asset-conversion pallet: pool's AccountId derivation warn docs (#14811)
* pool_id docs * fmt
This commit is contained in:
1 parent
fde8c1f780
commit
dd5fa9fcbe
3 files changed
+15
-2
No files matched your search
@@ -147,6 +147,9 @@ pub mod pallet {
|
||||
|
||||
/// Type that identifies either the native currency or a token class from `Assets`.
|
||||
/// `Ord` is added because of `get_pool_id`.
|
||||
///
|
||||
/// The pool's `AccountId` is derived from this type. Any changes to the type may
|
||||
/// necessitate a migration.
|
||||
type MultiAssetId: AssetId + Ord + From<Self::AssetId>;
|
||||
|
||||
/// Type to convert an `AssetId` into `MultiAssetId`.
|
||||
@@ -1193,7 +1196,9 @@ pub mod pallet {
|
||||
()
|
||||
);
|
||||
} else {
|
||||
let MultiAssetIdConversionResult::Converted(asset_id) = T::MultiAssetIdConverter::try_convert(asset) else {
|
||||
let MultiAssetIdConversionResult::Converted(asset_id) =
|
||||
T::MultiAssetIdConverter::try_convert(asset)
|
||||
else {
|
||||
return Err(())
|
||||
};
|
||||
let minimal = T::Assets::minimum_balance(asset_id);
|
||||
|
||||
Reference in new issue
Block a user