diff --git a/substrate/genesis-liquidity/pallet/Cargo.toml b/substrate/genesis-liquidity/pallet/Cargo.toml index 35551626..873261d9 100644 --- a/substrate/genesis-liquidity/pallet/Cargo.toml +++ b/substrate/genesis-liquidity/pallet/Cargo.toml @@ -36,11 +36,19 @@ genesis-liquidity-primitives = { package = "serai-genesis-liquidity-primitives", [features] std = [ + "scale/std", + "scale-info/std", + "frame-system/std", "frame-support/std", + "sp-std/std", + "coins-pallet/std", "dex-pallet/std", + + "serai-primitives/std", + "genesis-liquidity-primitives/std", ] default = ["std"] \ No newline at end of file diff --git a/substrate/genesis-liquidity/pallet/src/lib.rs b/substrate/genesis-liquidity/pallet/src/lib.rs index 46f31a36..a0386468 100644 --- a/substrate/genesis-liquidity/pallet/src/lib.rs +++ b/substrate/genesis-liquidity/pallet/src/lib.rs @@ -247,9 +247,9 @@ pub mod pallet { Ok(()) } - // Returns the number of blocks since the coin's network reached economic security first time. - // If the network is yet to be reached that threshold 0 is returned, and maximum of - // GENESIS_SRI_TRICKLE_FEED returned. + /// Returns the number of blocks since the coin's network reached economic security first time. + /// If the network is yet to be reached that threshold, 0 is returned. And maximum of + /// `GENESIS_SRI_TRICKLE_FEED` returned. fn blocks_since_ec_security(coin: &Coin) -> u64 { let ec_security_block = EconomicSecurityReached::::get(coin.network()).saturated_into::(); diff --git a/substrate/genesis-liquidity/primitives/src/lib.rs b/substrate/genesis-liquidity/primitives/src/lib.rs index 40c8ecb3..0ce75824 100644 --- a/substrate/genesis-liquidity/primitives/src/lib.rs +++ b/substrate/genesis-liquidity/primitives/src/lib.rs @@ -13,5 +13,5 @@ pub const GENESIS_SRI_TRICKLE_FEED: u64 = 10 * 60 * 24 * 180; // 100 Million SRI pub const GENESIS_SRI: u64 = 100_000_000 * 10_u64.pow(8); -// This is the account which will be the origin for any dispatched `InInstruction`s. +// This is the account to hold and manage the genesis liquidity. pub const GENESIS_LIQUIDITY_ACCOUNT: SeraiAddress = system_address(b"Genesis-liquidity-account");