Skip to content

Commit 421ed4f

Browse files
committed
fix references to max and min functions
1 parent 0b1f080 commit 421ed4f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

contracts/token/VestedToken.sol

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
pragma solidity ^0.4.11;
22

3+
import "../math/Math.sol";
34
import "./StandardToken.sol";
45
import "./LimitedTransferToken.sol";
56

@@ -121,7 +122,7 @@ contract VestedToken is StandardToken, LimitedTransferToken {
121122

122123
// Return the minimum of how many vested can transfer and other value
123124
// in case there are other limiting transferability factors (default is balanceOf)
124-
return SafeMath.min256(vestedTransferable, super.transferableTokens(holder, time));
125+
return Math.min256(vestedTransferable, super.transferableTokens(holder, time));
125126
}
126127

127128
/**
@@ -241,7 +242,7 @@ contract VestedToken is StandardToken, LimitedTransferToken {
241242
date = uint64(now);
242243
uint256 grantIndex = grants[holder].length;
243244
for (uint256 i = 0; i < grantIndex; i++) {
244-
date = SafeMath.max64(grants[holder][i].vesting, date);
245+
date = Math.max64(grants[holder][i].vesting, date);
245246
}
246247
}
247248
}

0 commit comments

Comments
 (0)