Skip to content

Commit

Permalink
Merge pull request #73 from mangata-finance/feature/asset-metadata-xyk
Browse files Browse the repository at this point in the history
[metadata-xyk][mgx-72] add pool creation enabled metadata
  • Loading branch information
vanderian authored Nov 25, 2022
2 parents 8799bec + 0001767 commit b5cdb23
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions primitives/mangata-types/src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ use scale_info::TypeInfo;
pub struct CustomMetadata {
/// XCM-related metadata, optional.
pub xcm: Option<XcmMetadata>,
/// XYK-related metadata, optional
pub xyk: Option<XykMetadata>,
}

#[derive(
Expand All @@ -39,3 +41,22 @@ pub struct XcmMetadata {
/// The fee charged for every second that an XCM message takes to execute.
pub fee_per_second: u128,
}

#[derive(
Clone,
Copy,
Default,
PartialOrd,
Ord,
PartialEq,
Eq,
Debug,
Encode,
Decode,
TypeInfo,
MaxEncodedLen,
)]
pub struct XykMetadata {
/// If the asset can't be used in the xyk operations.
pub operations_disabled: bool,
}

0 comments on commit b5cdb23

Please sign in to comment.