mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-11 21:49:26 +00:00
minor fixes
This commit is contained in:
@@ -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"]
|
||||
@@ -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>();
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user