Commit 56735a70 by Roman Storm Committed by Nicolás Venturo

Use address(this) instead of this (#1134)

* Use address(this) instead of this

It's preferred to use `address(this)` vs `this`

* Change to address(this) vs this
parent 27653502
...@@ -41,7 +41,7 @@ contract TokenTimelock { ...@@ -41,7 +41,7 @@ contract TokenTimelock {
// solium-disable-next-line security/no-block-members // solium-disable-next-line security/no-block-members
require(block.timestamp >= releaseTime); require(block.timestamp >= releaseTime);
uint256 amount = token.balanceOf(this); uint256 amount = token.balanceOf(address(this));
require(amount > 0); require(amount > 0);
token.safeTransfer(beneficiary, amount); token.safeTransfer(beneficiary, amount);
......
...@@ -87,7 +87,7 @@ contract TokenVesting is Ownable { ...@@ -87,7 +87,7 @@ contract TokenVesting is Ownable {
require(revocable); require(revocable);
require(!revoked[_token]); require(!revoked[_token]);
uint256 balance = _token.balanceOf(this); uint256 balance = _token.balanceOf(address(this));
uint256 unreleased = releasableAmount(_token); uint256 unreleased = releasableAmount(_token);
uint256 refund = balance.sub(unreleased); uint256 refund = balance.sub(unreleased);
...@@ -112,7 +112,7 @@ contract TokenVesting is Ownable { ...@@ -112,7 +112,7 @@ contract TokenVesting is Ownable {
* @param _token ERC20 token which is being vested * @param _token ERC20 token which is being vested
*/ */
function vestedAmount(ERC20Basic _token) public view returns (uint256) { function vestedAmount(ERC20Basic _token) public 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