From 11e51d6ffce1b8f7e85099f6c6ea228edfe107ec Mon Sep 17 00:00:00 2001 From: doylet Date: Fri, 7 Jun 2024 16:45:49 +1000 Subject: [PATCH 1/2] Update the deploy-local script to use 120 as the staking requirement --- scripts/deploy-local-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deploy-local-test.js b/scripts/deploy-local-test.js index 3926abf..2d74538 100644 --- a/scripts/deploy-local-test.js +++ b/scripts/deploy-local-test.js @@ -33,7 +33,7 @@ async function main() { serviceNodeRewards = await upgrades.deployProxy(ServiceNodeRewardsMaster,[ await mockERC20.getAddress(), // token address await rewardRatePool.getAddress(), // foundation pool address - 100000000000, // staking requirement + 120_000_000_000, // staking requirement 10, // max contributors 0, // liquidator reward ratio 0, // pool share of liquidation ratio From e9793be4be3b8e5f249af33466919e6eabe26d6d Mon Sep 17 00:00:00 2001 From: doylet Date: Fri, 7 Jun 2024 17:28:50 +1000 Subject: [PATCH 2/2] Update the C++ hardcoded staking requirement --- .../service_node_rewards/service_node_rewards_contract.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cpp/include/service_node_rewards/service_node_rewards_contract.hpp b/test/cpp/include/service_node_rewards/service_node_rewards_contract.hpp index 80f8a7c..27b658f 100644 --- a/test/cpp/include/service_node_rewards/service_node_rewards_contract.hpp +++ b/test/cpp/include/service_node_rewards/service_node_rewards_contract.hpp @@ -34,7 +34,7 @@ struct ContractServiceNode { class ServiceNodeRewardsContract { public: // TODO: Taken from scripts/deploy-local-test.js and hardcoded - static constexpr inline uint64_t STAKING_REQUIREMENT = 100'000'000'000; + static constexpr inline uint64_t STAKING_REQUIREMENT = 120'000'000'000; // Method for creating a transaction to add a public key Transaction addBLSPublicKey(const std::string& publicKey, const std::string& sig, const std::string& serviceNodePubkey, const std::string& serviceNodeSignature, uint64_t fee);