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

Best practices and recommendations from audit #92

Merged
merged 6 commits into from
Jul 17, 2024

Conversation

kantp
Copy link
Collaborator

@kantp kantp commented Jul 16, 2024

No description provided.

@kantp kantp linked an issue Jul 16, 2024 that may be closed by this pull request
Otherwise, the values are not checked in a proof and might be invalid.
@kantp kantp marked this pull request as ready for review July 17, 2024 09:51
@kantp kantp requested a review from ymekuria July 17, 2024 16:24
Copy link
Collaborator

@ymekuria ymekuria left a 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.

documentation/deploy.md Outdated Show resolved Hide resolved
this.paused.set(Bool(false))

this.account.tokenSymbol.set(props.symbol)
this.paused.set(Bool(true))
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

@kantp kantp added this pull request to the merge queue Jul 17, 2024
Merged via the queue into main with commit a5f8f19 Jul 17, 2024
3 checks passed
@kantp kantp deleted the 74-best-practicesrecommendations branch July 17, 2024 18:59
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.

Best Practices/Recommendations
2 participants