|
|
@ -2,6 +2,7 @@ pragma solidity ^0.4.11; |
|
|
|
|
|
|
|
|
|
|
|
import "./Ownable.sol"; |
|
|
|
import "./Ownable.sol"; |
|
|
|
import "../token/ERC20Basic.sol"; |
|
|
|
import "../token/ERC20Basic.sol"; |
|
|
|
|
|
|
|
import "../token/SafeERC20.sol"; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @title Contracts that should be able to recover tokens |
|
|
|
* @title Contracts that should be able to recover tokens |
|
|
@ -10,6 +11,7 @@ import "../token/ERC20Basic.sol"; |
|
|
|
* This will prevent any accidental loss of tokens. |
|
|
|
* This will prevent any accidental loss of tokens. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
contract CanReclaimToken is Ownable { |
|
|
|
contract CanReclaimToken is Ownable { |
|
|
|
|
|
|
|
using SafeERC20 for ERC20Basic; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @dev Reclaim all ERC20Basic compatible tokens |
|
|
|
* @dev Reclaim all ERC20Basic compatible tokens |
|
|
@ -17,7 +19,7 @@ contract CanReclaimToken is Ownable { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function reclaimToken(ERC20Basic token) external onlyOwner { |
|
|
|
function reclaimToken(ERC20Basic token) external onlyOwner { |
|
|
|
uint256 balance = token.balanceOf(this); |
|
|
|
uint256 balance = token.balanceOf(this); |
|
|
|
token.transfer(owner, balance); |
|
|
|
token.safeTransfer(owner, balance); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |