Commit 32bc7a6f by Hao (Alan) Tang Committed by Nicolás Venturo

add an address typecast to this per issue #1457 (#1471)

parent 11865206
...@@ -161,7 +161,7 @@ contract TokenVesting is Ownable { ...@@ -161,7 +161,7 @@ contract TokenVesting is Ownable {
* @param token ERC20 token which is being vested * @param token ERC20 token which is being vested
*/ */
function _vestedAmount(IERC20 token) private view returns (uint256) { function _vestedAmount(IERC20 token) private view returns (uint256) {
uint256 currentBalance = token.balanceOf(this); uint256 currentBalance = token.balanceOf(address(this));
uint256 totalBalance = currentBalance.add(_released[token]); uint256 totalBalance = currentBalance.add(_released[token]);
if (block.timestamp < _cliff) { if (block.timestamp < _cliff) {
......
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