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

Add snapshot user registry #709

Closed
wants to merge 8 commits into from
Closed

Conversation

yuetloo
Copy link
Collaborator

@yuetloo yuetloo commented Aug 19, 2023

This user registry will add users who can be verified by the proof of token ownership at a snapshot block.

@yuetloo yuetloo self-assigned this Aug 21, 2023
* @dev Reject user
* @param _user user account address
*/
function rejectUser(address _user) external onlyOwner {
Copy link
Member

Choose a reason for hiding this comment

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

What are the purposes of rejectUser and resetUser?
How do we envision them being used in practice, @yuetloo?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was thinking to let the coordinator reject sybil accounts. But, you're right that in practice, it's too late as once the user is added, they would've contributed and in the round.

}
})

describe('Add user', function () {
Copy link
Member

Choose a reason for hiding this comment

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

Would be good to add tests for users that currently meet the requirements, but did not at the snapshot block, and for users who do not currently meet the requirements, but did at the snapshot block.

@yuetloo
Copy link
Collaborator Author

yuetloo commented Aug 24, 2023

Closing this PR as changes have been merged to #711

@yuetloo yuetloo closed this Aug 24, 2023
@yuetloo yuetloo deleted the feat/snapshot-user-registry branch August 29, 2023 14:49
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