Skip to content

Commit dce8c41

Browse files
authored
minor undeflow fix in vesting ewallet (#673)
1 parent 77e68d0 commit dce8c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/modules/Wallet/VestingEscrowWallet.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ contract VestingEscrowWallet is VestingEscrowWalletStorage, Wallet {
433433
* @param _toIndex End index of array of beneficiary's addresses
434434
*/
435435
function pushAvailableTokensMulti(uint256 _fromIndex, uint256 _toIndex) public withPerm(OPERATOR) {
436-
require(_toIndex <= beneficiaries.length - 1, "Array out of bound");
436+
require(_toIndex < beneficiaries.length, "Array out of bound");
437437
for (uint256 i = _fromIndex; i <= _toIndex; i++) {
438438
if (schedules[beneficiaries[i]].length !=0)
439439
pushAvailableTokens(beneficiaries[i]);

0 commit comments

Comments
 (0)