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

Disallow duplicate tenderizers for the same validator #74

Merged
merged 2 commits into from
Jan 4, 2024

Conversation

kyriediculous
Copy link
Member

@kyriediculous kyriediculous commented Jan 4, 2024

Currently there is nothing to prevent creation of duplicate tenderizers for the same asset/validator

  • Added a double mapping in storage tenderizers, asset=>validator=>tenderizer
  • Added a check in registerTenderizer that checks if value in the tenderizers mapping for asset and validator does not exist, throw TenderizerAlreadyExists error otherwise
  • Added a getter function to get the tenderizer by providing asset and validator

@kyriediculous kyriediculous merged commit c09b988 into main Jan 4, 2024
2 of 3 checks passed
@kyriediculous kyriediculous deleted the nv/registry-fix branch January 4, 2024 13:14
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.

1 participant