diff --git a/src/cryptonote_config.h b/src/cryptonote_config.h index 9c35b03c3..6f6fc500c 100644 --- a/src/cryptonote_config.h +++ b/src/cryptonote_config.h @@ -178,6 +178,9 @@ constexpr uint8_t MAX_SUPPORTED_TX_VERSION = 2; constexpr uint64_t SAFEX_COMMAND_PROTOCOL_VERSION = 1; //Safex token stake constants +constexpr uint64_t SAFEX_MINIMUM_TOKEN_STAKE_AMOUNT_FAKECHAIN = 10000 * SAFEX_TOKEN; +constexpr uint64_t SAFEX_MINIMUM_TOKEN_STAKE_AMOUNT_TESTNET = 10000 * SAFEX_TOKEN; +constexpr uint64_t SAFEX_MINIMUM_TOKEN_STAKE_AMOUNT_STAGENET = 10000 * SAFEX_TOKEN; constexpr uint64_t SAFEX_MINIMUM_TOKEN_STAKE_AMOUNT = 25000 * SAFEX_TOKEN; constexpr uint64_t SAFEX_DEFAULT_TOKEN_STAKE_EXPIRY_PERIOD = 500000; constexpr uint64_t SAFEX_DEFAULT_INTERVAL_PERIOD_FAKECHAIN = 10; //blocks diff --git a/src/safex/safex_core.h b/src/safex/safex_core.h index 89cba3c13..65d5f00fb 100644 --- a/src/safex/safex_core.h +++ b/src/safex/safex_core.h @@ -279,9 +279,13 @@ namespace safex { switch (nettype) { + case cryptonote::network_type::FAKECHAIN: + return SAFEX_MINIMUM_TOKEN_STAKE_AMOUNT_FAKECHAIN; case cryptonote::network_type::TESTNET: - return SAFEX_MINIMUM_TOKEN_STAKE_AMOUNT; - + return SAFEX_MINIMUM_TOKEN_STAKE_AMOUNT_TESTNET; + case cryptonote::network_type::STAGENET: + return SAFEX_MINIMUM_TOKEN_STAKE_AMOUNT_STAGENET; + case cryptonote::network_type::MAINNET: default: return SAFEX_MINIMUM_TOKEN_STAKE_AMOUNT; }