Skip to content

Add Admin support on contract level for Fei Protocol#185

Merged
Joeysantoro merged 1 commit intomasterfrom
feat/addAdminSupport
Sep 23, 2021
Merged

Add Admin support on contract level for Fei Protocol#185
Joeysantoro merged 1 commit intomasterfrom
feat/addAdminSupport

Conversation

@Joeysantoro
Copy link
Contributor

We introduced the concept of a "contract admin" with OA for TribalChief.

This PR adds admin support to contracts throughout the repo following the below general rule of thumb:

  • integer parameters and flags OK
  • Address changes NOT OK

Notable exceptions:

  • CR oracle constituents have admin enabled
  • TribeReserveStabilizer parameters do NOT have admin

NOTE: This PR will not affect any existing on-chain contracts. And future contracts will explicitly need to define an admin role and have this role granted to a multisig timelock through the DAO. By itself these contract changes are effectively a no-op

@eswak
Copy link
Contributor

eswak commented Sep 22, 2021

the code looks ok, do we add tests for this trivial change ?

@Joeysantoro
Copy link
Contributor Author

Joeysantoro commented Sep 22, 2021 via email

Copy link
Contributor

@xklob xklob left a comment

Choose a reason for hiding this comment

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

Approved but see comments in Slack.

@Joeysantoro Joeysantoro merged commit 7d59651 into master Sep 23, 2021
@Joeysantoro Joeysantoro deleted the feat/addAdminSupport branch September 23, 2021 17:39
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.

3 participants

Comments