From c33422aeb6b2489e20b4d086db92462a021c2730 Mon Sep 17 00:00:00 2001 From: doylet Date: Thu, 4 Jul 2024 16:44:39 +1000 Subject: [PATCH] Update deploy script to set contributors in rewards contract not factory --- scripts/deploy-testnet.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/deploy-testnet.js b/scripts/deploy-testnet.js index 0e5a9d9..9dcf8fb 100644 --- a/scripts/deploy-testnet.js +++ b/scripts/deploy-testnet.js @@ -33,7 +33,8 @@ async function main() { serviceNodeRewards = await upgrades.deployProxy(ServiceNodeRewardsMaster,[ await mockERC20.getAddress(), // token address await rewardRatePool.getAddress(), // foundation pool address - 120000000000, // staking requirement + 120_000_000_000, // staking requirement + 10, // max contributors 0, // liquidator reward ratio 0, // pool share of liquidation ratio 1 // recipient ratio @@ -41,7 +42,7 @@ async function main() { await serviceNodeRewards.waitForDeployment(); snContributionContractFactory = await ethers.getContractFactory("ServiceNodeContributionFactory"); - snContributionFactory = await snContributionContractFactory.deploy(serviceNodeRewards, 10); + snContributionFactory = await snContributionContractFactory.deploy(serviceNodeRewards); await snContributionFactory.waitForDeployment();