Stub the genesis-liquidity pallet

This commit is contained in:
Luke Parker
2025-12-02 16:24:17 -05:00
parent af74c318aa
commit eb04f873d5
12 changed files with 180 additions and 479 deletions

View File

@@ -12,6 +12,9 @@ rust-version = "1.85"
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[package.metadata.cargo-machete]
ignored = ["scale"]
[lints]
workspace = true
@@ -23,8 +26,6 @@ sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", default-fea
frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", default-features = false }
frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", default-features = false }
substrate-median = { path = "../median", default-features = false }
serai-abi = { path = "../abi", default-features = false, features = ["substrate"] }
serai-core-pallet = { path = "../core", default-features = false }
serai-coins-pallet = { path = "../coins", default-features = false }
@@ -45,8 +46,6 @@ std = [
"frame-system/std",
"frame-support/std",
"substrate-median/std",
"serai-abi/std",
"serai-core-pallet/std",
"serai-coins-pallet/std",

View File

@@ -78,6 +78,10 @@ mod pallet {
}
}
/// The minimum amount of liquidity allowed to be initially added.
///
/// This should be sufficiently low it isn't inaccessible, yet sufficiently high that future
/// additions can be reasonably grained when their share of the new supply is calculated.
const MINIMUM_LIQUIDITY: u64 = 1 << 16;
#[pallet::call]