minor fixes

This commit is contained in:
akildemir
2024-03-29 11:38:48 +03:00
parent 2b32fe90ca
commit 207f2bd28a
3 changed files with 12 additions and 4 deletions

View File

@@ -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"]

View File

@@ -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::<T>::get(coin.network()).saturated_into::<u64>();

View File

@@ -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");