Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sc rotation update #322

Open
wants to merge 20 commits into
base: sc-rotation
Choose a base branch
from
Open

Sc rotation update #322

wants to merge 20 commits into from

Conversation

yahgwai
Copy link
Collaborator

@yahgwai yahgwai commented Nov 26, 2024

  • checks that new member in rotation is not a nominee in the same way we already check for contender
  • records the address that was rotated to to avoid race conditions in removal/replace

@yahgwai yahgwai requested a review from gzeoneth November 26, 2024 11:58
@yahgwai yahgwai requested a review from godzillaba December 17, 2024 10:59
Copy link
Collaborator

@gzeoneth gzeoneth left a comment

Choose a reason for hiding this comment

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

cherrypicked #328 for ci

function memberRotatedTo(address _member) internal view returns (address) {
if (
rotatedTo[_member] != address(0)
&& !SecurityCouncilMgmtUtils.isInArray(_member, getBothCohorts())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of checking if it is in current cohorts, we can wipe the new member's rotatedTo entry whenever a new member joined. This allow us to have a clean rotatedTo mapping.

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