Skip to content

Commit

Permalink
[Audit] Fix minor issues from audit
Browse files Browse the repository at this point in the history
  • Loading branch information
movekevin committed Sep 30, 2022
1 parent b7973e3 commit 3e38606
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ module aptos_framework::staking_config {
// This can fail genesis but is necessary so that any misconfigurations can be corrected before genesis succeeds
validate_required_stake(minimum_stake, maximum_stake);

assert!(recurring_lockup_duration_secs > 0, error::invalid_argument(EZERO_LOCKUP_DURATION));
assert!(
rewards_rate_denominator > 0,
error::invalid_argument(EZERO_REWARDS_RATE_DENOMINATOR),
);

assert!(
voting_power_increase_limit > 0 && voting_power_increase_limit <= 50,
error::invalid_argument(EINVALID_VOTING_POWER_INCREASE_LIMIT),
Expand Down

0 comments on commit 3e38606

Please sign in to comment.