Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pallets/liquidity-mining/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pallet-liquidity-mining"
version = "1.0.1"
version = "1.1.0"
description = "Liquidity mining"
authors = ["GalacticCouncil"]
edition = "2018"
Expand Down
9 changes: 8 additions & 1 deletion pallets/liquidity-mining/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,13 @@ pub mod pallet {
fn on_runtime_upgrade() -> frame_support::weights::Weight {
migration::init_nft_class::<T>()
}

fn integrity_test() {
assert!(
T::NftClass::get() <= T::ReserveClassIdUpTo::get(),
"`NftClass` must be within the range of reserved NFT class IDs"
);
}
}

#[pallet::config]
Expand Down Expand Up @@ -280,7 +287,7 @@ pub mod pallet {
/// The block number provider
type BlockNumberProvider: BlockNumberProvider<BlockNumber = Self::BlockNumber>;

/// NFT class id for liq. mining deposit nfts.
/// NFT class id for liq. mining deposit nfts. Has to be within the range of reserved NFT class IDs.
type NftClass: Get<primitives::ClassId>;

/// Weight information for extrinsic in this module.
Expand Down