mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Localize stake into networks
Sets a stake requirement of 100k for Serai and Monero, as Serai doesn't have stake requirements and Monero isn't expected to see as much volume/institutional support as Bitcoin/Ethereum.
This commit is contained in:
@@ -55,8 +55,15 @@ fn testnet_genesis(
|
||||
},
|
||||
|
||||
validator_sets: ValidatorSetsConfig {
|
||||
stake: Amount(1_000_000 * 10_u64.pow(8)),
|
||||
networks: serai_runtime::primitives::NETWORKS.to_vec(),
|
||||
networks: serai_runtime::primitives::NETWORKS
|
||||
.iter()
|
||||
.map(|network| match network {
|
||||
NetworkId::Serai => (NetworkId::Serai, Amount(100_000 * 10_u64.pow(8))),
|
||||
NetworkId::Bitcoin => (NetworkId::Bitcoin, Amount(1_000_000 * 10_u64.pow(8))),
|
||||
NetworkId::Ethereum => (NetworkId::Bitcoin, Amount(1_000_000 * 10_u64.pow(8))),
|
||||
NetworkId::Monero => (NetworkId::Bitcoin, Amount(100_000 * 10_u64.pow(8))),
|
||||
})
|
||||
.collect(),
|
||||
participants: validators.iter().map(|name| account_from_name(name)).collect(),
|
||||
},
|
||||
session: SessionConfig { keys: validators.iter().map(|name| session_key(*name)).collect() },
|
||||
|
||||
Reference in New Issue
Block a user