Skip to content

Conversation

@lucas-manuel
Copy link
Contributor

No description provided.

@linear
Copy link

linear bot commented Jul 29, 2024

Copy link
Contributor

@hexonaut hexonaut 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 stick to using OZ AccessControl as it's a solved problem we don't need to keep re-rolling code to do roles.

In this case we may want multiple addresses for relayer and freezer which is easily made with OZ AccessControl.

Copy link
Contributor

@hexonaut hexonaut left a comment

Choose a reason for hiding this comment

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

I don't really like having both the AccessControl and the wards pattern combined. Thinking some more this upgradable contract thing may be more trouble than it's worth. Replacing this contract with a newly deployed controller is easy enough, so maybe let's do that instead of dealing with upgradability on the contract.

We will need to do things like setup the rate limits and roles again, but upgradability has extra cognitive load as well. Let's drop the upgradability of the contract to simplify things.

/*** Freezer Functions ***/
/**********************************************************************************************/

function setActive(bool active_) external onlyRole("FREEZER") {
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

@github-actions
Copy link

github-actions bot commented Aug 6, 2024

Coverage after merging sc-550-set-up-repo into master will be

100.00%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   L1Controller.sol100%100%100%100%

@lucas-manuel lucas-manuel requested a review from hexonaut August 6, 2024 13:52
Copy link
Contributor

@hexonaut hexonaut left a comment

Choose a reason for hiding this comment

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

As I mentioned some logic like freezer only being able to freeze, but not unfreeze should be made, but just to get the scaffolding done this can be merged as-is.

@lucas-manuel lucas-manuel merged commit 77eedaf into master Aug 6, 2024
@lucas-manuel lucas-manuel deleted the sc-550-set-up-repo branch August 6, 2024 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants