-
Notifications
You must be signed in to change notification settings - Fork 10
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
Best practices and recommendations from audit #92
Conversation
This makes it clearer that this is a constructor.
Also, switch to `TokenContractV2`.
Otherwise, the values are not checked in a proof and might be invalid.
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! I just had some questions and minor comments.
this.paused.set(Bool(false)) | ||
|
||
this.account.tokenSymbol.set(props.symbol) | ||
this.paused.set(Bool(true)) |
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.
I'm just curious. Do you set the paused flag in the initialized method as well as here in deploy?
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.
It's probably superfluous. We urge people to use an atomic deploy, calling the deploy()
functions of the admin and token contract, as well as initialize()
all in one transaction. But if they don't, we at least want no transactions to happen before initialise()
is called.
No description provided.