Skip to content

Commit

Permalink
chore: correcting comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kupermind committed Jul 5, 2024
1 parent d8d0588 commit 456af63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/VoteWeighting.sol
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ contract VoteWeighting {
/// @dev Allocates voting power for changing pool weights.
/// @param account Address of the nominee the `msg.sender` votes for in bytes32 form.
/// @param chainId Chain Id.
/// @param weight Weight for a nominee in bps (units of 0.01%). Minimal is 0.01%. Ignored if 0.
/// @param weight Weight for a nominee in bps (units of 0.01%). Minimal step is is 0.01% (1 out of 10_000).
function voteForNomineeWeights(bytes32 account, uint256 chainId, uint256 weight) public {
// Get the nominee hash
bytes32 nomineeHash = keccak256(abi.encode(Nominee(account, chainId)));
Expand All @@ -492,7 +492,7 @@ contract VoteWeighting {
revert LockExpired(msg.sender, lockEnd, nextTime);
}

// Check for the weight number
// Check for the weight value
if (weight > MAX_WEIGHT) {
revert Overflow(weight, MAX_WEIGHT);
}
Expand Down

0 comments on commit 456af63

Please sign in to comment.