mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Stub the genesis-liquidity pallet
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user