From b8884687dfa4feccea3d26eec189fca7453dbc27 Mon Sep 17 00:00:00 2001 From: Francisco Giordano Date: Sat, 15 Jul 2017 02:44:33 -0300 Subject: [PATCH] fix off by one error in VestedToken --- contracts/token/VestedToken.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/token/VestedToken.sol b/contracts/token/VestedToken.sol index 82ca9875b..5a3087723 100644 --- a/contracts/token/VestedToken.sol +++ b/contracts/token/VestedToken.sol @@ -47,7 +47,7 @@ contract VestedToken is StandardToken, LimitedTransferToken { // Check for date inconsistencies that may cause unexpected behavior require(_cliff >= _start && _vesting >= _cliff); - require(tokenGrantsCount(_to) <= MAX_GRANTS_PER_ADDRESS); // To prevent a user being spammed and have his balance locked (out of gas attack when calculating vesting). + require(tokenGrantsCount(_to) < MAX_GRANTS_PER_ADDRESS); // To prevent a user being spammed and have his balance locked (out of gas attack when calculating vesting). uint256 count = grants[_to].push( TokenGrant(