Skip to content

Added Deployment and Validation Scripts for RDA and ARD#220

Merged
ElliotFriedman merged 5 commits intomasterfrom
feat/feirari-ard-rda-deploy
Oct 5, 2021
Merged

Added Deployment and Validation Scripts for RDA and ARD#220
ElliotFriedman merged 5 commits intomasterfrom
feat/feirari-ard-rda-deploy

Conversation

@ElliotFriedman
Copy link
Contributor

No description provided.

Copy link
Contributor

@Joeysantoro Joeysantoro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add _setContractAdminRole(keccak256("TRIBAL_CHIEF_ADMIN_ROLE"));
to the ARD too in the constructor

So far looks good other than missing a few checks


/// check that the contracts were wired together properly
expect(await rewardsDistributorAdmin.hasRole(AUTO_REWARDS_DISTRIBUTOR_ROLE, autoRewardsDistributor.address)).to.be.true;
expect(await autoRewardsDistributor.rewardsDistributorAdmin()).to.be.equal(rewardsDistributorAdmin.address);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a check that the OA timelock isContractAdmin() on the RDA
also check the rewardsDistributorContract on RDA is the Delegator

check getNewRewardSpeed() is correct for ARD, should be around 24 TRIBE/block

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tribe per block as calculated in the ARD is 24.193548387096774193 tribe per block
I double checked the math and added an extra test here to ensure this is the correct value and it is.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a check that the OA timelock isContractAdmin() on the RDA
also check the rewardsDistributorContract on RDA is the Delegator

What about these two

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added isContractAdmin check.

I need to add a check for the second one

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last one can prob do without

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a check for it.

Joeysantoro
Joeysantoro previously approved these changes Oct 5, 2021
Joeysantoro
Joeysantoro previously approved these changes Oct 5, 2021
@ElliotFriedman ElliotFriedman merged commit 0468a73 into master Oct 5, 2021
@ElliotFriedman ElliotFriedman deleted the feat/feirari-ard-rda-deploy branch October 5, 2021 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments