-
Notifications
You must be signed in to change notification settings - Fork 18
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
Problem: control admin in the solidity code is not flexible #195
base: v2.0.0-cronos
Are you sure you want to change the base?
Conversation
533756d
to
241e2f0
Compare
Checked the new changes on admin roles. Looks good to me. See if @brianatcrypto have any comments? |
Yes, I have added the whitelist guard to Whitelist are addresses that are able to relay (submit batches) but we can extend it now to also those who can deploy cosmos erc20. At anytime, the whitelist can be turned off by setting anyoneCanRelay to true I think it can add an extra security to prevent anyone to call this method (from recent bug) and since the address mapping in cronos is already permissioned, there is no use to make it public |
Thanks @thomas-nguy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but I will leave solidity expertise to approve the code.
Currently only the owner can pause/unpause the contract.
We want to make it more flexible so that only some special addresses can have access to those functionalities
( needed for the circuit breaker)