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 whitelist mechanism for the new ERC20CustodyContract #295

Closed
lumtis opened this issue Aug 7, 2024 · 0 comments · Fixed by #296
Closed

Add whitelist mechanism for the new ERC20CustodyContract #295

lumtis opened this issue Aug 7, 2024 · 0 comments · Fixed by #296
Assignees
Labels
evm Related to evm smart contract module v2 New smart contract version

Comments

@lumtis
Copy link
Member

lumtis commented Aug 7, 2024

Same as V1, we should for now have a whitelist system for the ERC20s.

The architecture should be similar to v1 except:

  • We should use a WHITELISTER_ROLE for Access Control. To add more flexibility and also grant Admin to whitelister role in addition to the TSS (as for the migration we will manually whitelist token instead of using admin message sending through TSS)
  • For simplicity WHITELISTER_ROLE can both whitelist and unwhitelist
  • Whitelisting should be checked in transferFromToAssetHandler in the gateway contract
@lumtis lumtis added evm Related to evm smart contract module v2 New smart contract version labels Aug 7, 2024
@skosito skosito self-assigned this Aug 7, 2024
@skosito skosito linked a pull request Aug 7, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
evm Related to evm smart contract module v2 New smart contract version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants