Skip to content

Commit f329e7d

Browse files
committed
fix: maci-5: inconsistency in code comment and MAX_VOICE_CREDITS definition
1 parent c49d2eb commit f329e7d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/contracts/contracts/maci/Tally.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ import { IRecipientRegistry } from "../interfaces/IRecipientRegistry.sol";
1616
contract Tally is TallyBase, IPayoutStrategy {
1717
using SafeERC20 for IERC20;
1818

19-
/// @notice The max voice credits (MACI allows 2 ** 32 voice credits max)
19+
/// @notice The max voice credits
20+
/// @dev MACI allows 2 ** 32 voice credits max, but we only need 10 ** 9 here
2021
uint256 private constant MAX_VOICE_CREDITS = 10 ** 9;
2122

2223
/// @notice The alpha precision (needed for allocated amount calculation)

0 commit comments

Comments
 (0)