Skip to content

Commit

Permalink
Update deploy script to set contributors in rewards contract not factory
Browse files Browse the repository at this point in the history
  • Loading branch information
Doy-lee committed Jul 4, 2024
1 parent c1020ea commit c33422a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/deploy-testnet.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,16 @@ 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
]);
await serviceNodeRewards.waitForDeployment();

snContributionContractFactory = await ethers.getContractFactory("ServiceNodeContributionFactory");
snContributionFactory = await snContributionContractFactory.deploy(serviceNodeRewards, 10);
snContributionFactory = await snContributionContractFactory.deploy(serviceNodeRewards);

await snContributionFactory.waitForDeployment();

Expand Down

0 comments on commit c33422a

Please sign in to comment.