Commit b60e434e by Martín Triay

[TokenVesting] Add missing safemath ops

parent 39d6c920
...@@ -106,10 +106,10 @@ contract TokenVesting is Ownable { ...@@ -106,10 +106,10 @@ contract TokenVesting is Ownable {
if (now < cliff) { if (now < cliff) {
return 0; return 0;
} else if (now >= start + duration || revoked[token]) { } else if (now >= start.add(duration) || revoked[token]) {
return totalBalance; return totalBalance;
} else { } else {
return totalBalance.mul(now - start).div(duration); return totalBalance.mul(now.sub(start)).div(duration);
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment