-
Notifications
You must be signed in to change notification settings - Fork 0
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
safe math for contracts #851
Conversation
Pull Request ReviewHey there! 👋 I've summarized the previous results for you. Here's a markdown document for your pull request review: Changes
Suggestions
BugsThe ImprovementsIn the pub fn get_max_user_history_age_blocks(&self) -> u32 {
let env_max_user_history_age_blocks: u32 = Math::add_div_panic(
self.get_max_user_history_age_seconds(),
self.get_block_time() as u32,
1,
);
env_max_user_history_age_blocks
} RatingCode Rating: 7/10 Criteria:
That's it! Feel free to make any necessary changes based on the feedback. Good luck with your pull request! 🚀 |
fixes prosopo/captcha-private#504