ETH Price: $2,139.98 (+7.85%)

Transaction Decoder

Block:
8920460 at Nov-12-2019 12:42:59 PM +UTC
Transaction Fee:
0.0001769761488 ETH $0.38
Gas Used:
55,402 Gas / 3.1944 Gwei

Emitted Events:

153 CentralityToken.Transfer( from=[Sender] 0xef006d26a82af612f8f31f809bc67a63655af169, to=[Receiver] CENNZReward, value=3000000000000000000000 )

Account State Difference:

  Address   Before After State Difference Code
0x1122B6a0...943855c1F
0x5d5c127c...BDc7daCd6
(MiningPoolHub: Old Address)
8,704.212437512362239776 Eth8,704.212614488511039776 Eth0.0001769761488
0xEF006d26...3655aF169
0.001167647296 Eth
Nonce: 1
0.0009906711472 Eth
Nonce: 2
0.0001769761488

Execution Trace

CENNZReward.deposit( amount=3000000000000000000000, referrer=0x35aE37c0cB3D21f08160d3b59B4E6BCc17C9C2D6 )
  • CentralityToken.transferFrom( _from=0xEF006d26A82AF612F8f31F809bC67a63655aF169, _to=0x5d5c127cDE3f0ef4E63e3C579182857BDc7daCd6, _value=3000000000000000000000 ) => ( success=True )
    File 1 of 2: CENNZReward
    {"CENNZReward.sol":{"content":"pragma solidity ^0.5.0;\n\nimport \"./IERC20.sol\";\nimport \"./ERC20Mintable.sol\";\nimport \"./SafeMath.sol\";\n\ncontract CENNZReward {\n  using SafeMath for uint256;\n\n  address public cennzContract;\n  address public cpayContract;\n  address public manager;\n\n  bool public finished;\n  uint public finishedBlockNumber;\n  uint public earnRatePerBlock;\n\n  mapping(address =\u003e uint256) public balances;\n  mapping(address =\u003e uint) public blockNumbers;\n\n  /**\n   * All methods tagged by this can only be called by the manager account\n   */\n  modifier restricted() {\n    require((msg.sender == manager), \"No permission\");\n      _;\n  }\n\n  /**\n   * Init\n   */\n  constructor () public {\n    manager = 0x62C9BBbb7c295c15801B2Bd5aBaD44B01952545E;\n    finished = false;\n\n    uint256 base = 1 ether;\n    earnRatePerBlock = base.div(10).div(365 * 24 * 60 * 60).mul(15);\n  }\n\n  /**\n   * Setting cennzContractAddress and cpayContractAddress\n   */\n  function changeContractAddress(address cennzContractAddress, address cpayContractAddress)\n    public\n    restricted()\n  {\n    cennzContract = cennzContractAddress;\n    cpayContract = cpayContractAddress;\n  }\n\n  function cennzContractAddress()\n    public\n    view\n    returns (address)\n  {\n    return cennzContract;\n  }\n\n  function cpayContractAddress()\n    public\n    view\n    returns (address)\n  {\n    return cpayContract;\n  }\n\n  function finish()\n    public\n    restricted()\n  {\n    finished = true;\n    finishedBlockNumber = block.number;\n  }\n\n  /**\n   * Transfering tokens from sender\u0027s account to manager\u0027s account\n   */\n  function transferAnyERC20Token(address tokenAddress, uint amount)\n    public\n    restricted()\n    returns (bool success)\n  {\n    return ERC20(tokenAddress).transfer(manager, amount);\n  }\n\n  /**\n   * If the reward progress is not finished\n   * and the message sender never get deposited before,\n   * depositing CENNZ from the message sender\u0027s account to this contract.\n   */\n  function deposit(uint256 amount, address referrer) public {\n    require((balances[msg.sender] == 0), \"Account exist\");\n    require(!finished, \"Deposit not enabled\");\n\n    IERC20 CENNZ = IERC20(cennzContract);\n    require(CENNZ.transferFrom(msg.sender, address(this), amount), \"Transfer failed\");\n\n    balances[msg.sender] = amount;\n    blockNumbers[msg.sender] = block.number;\n  }\n\n  /**\n   * If the reward progress is not finished,\n   * withdrawing CENNZ from the message sender\u0027s account\n   * and giving CPay as reward to message sender.\n   */\n  function withdraw() public {\n    require(finished, \"Withdraw not enabled\");\n\n    uint256 balance = balances[msg.sender];\n    uint256 reward = getEarning(msg.sender);\n\n    require((balance \u003e 0), \"Invalid balance\");\n\n    IERC20 CENNZ = IERC20(cennzContract);\n    ERC20Mintable CPay = ERC20Mintable(cpayContract);\n\n    require(CENNZ.transfer(msg.sender, balance), \"Transfer failed\");\n    require(CPay.mint(msg.sender, reward), \"Reward mint failed\");\n\n    balances[msg.sender] = 0;\n  }\n\n  function balanceOf(address user)\n    public\n    view\n    returns (uint256)\n  {\n    return balances[user];\n  }\n\n  function depositBlockNumberOf(address user)\n    public\n    view\n    returns (uint)\n  {\n    return blockNumbers[user];\n  }\n\n  function getEarnRatePerBlock()\n    public\n    view\n    returns (uint)\n  {\n    return earnRatePerBlock;\n  }\n\n  /**\n   * Getting amount of token earned by the user\n   */\n  function getEarning(address user)\n    public\n    view\n    returns (uint)\n  {\n    uint256 balance = balances[user];\n    uint depositBlockNumber = blockNumbers[user];\n    uint duration;\n\n    if (finished \u0026\u0026 finishedBlockNumber \u003e 0) {\n      duration = finishedBlockNumber - depositBlockNumber;\n    } else {\n      duration = block.number - depositBlockNumber;\n    }\n\n    if (duration \u003c 0) {\n      duration = 0;\n    }\n\n    uint256 earning = balance.div(1 ether).mul(duration.mul(earnRatePerBlock));\n    return earning;\n  }\n}\n"},"ERC20.sol":{"content":"pragma solidity ^0.5.0;\n\nimport \"./IERC20.sol\";\nimport \"./SafeMath.sol\";\n\n/**\n * @dev Implementation of the `IERC20` interface.\n *\n * This implementation is agnostic to the way tokens are created. This means\n * that a supply mechanism has to be added in a derived contract using `_mint`.\n * For a generic mechanism see `ERC20Mintable`.\n *\n * *For a detailed writeup see our guide [How to implement supply\n * mechanisms](https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226).*\n *\n * We have followed general OpenZeppelin guidelines: functions revert instead\n * of returning `false` on failure. This behavior is nonetheless conventional\n * and does not conflict with the expectations of ERC20 applications.\n *\n * Additionally, an `Approval` event is emitted on calls to `transferFrom`.\n * This allows applications to reconstruct the allowance for all accounts just\n * by listening to said events. Other implementations of the EIP may not emit\n * these events, as it isn\u0027t required by the specification.\n *\n * Finally, the non-standard `decreaseAllowance` and `increaseAllowance`\n * functions have been added to mitigate the well-known issues around setting\n * allowances. See `IERC20.approve`.\n */\ncontract ERC20 is IERC20 {\n    using SafeMath for uint256;\n\n    mapping (address =\u003e uint256) private _balances;\n\n    mapping (address =\u003e mapping (address =\u003e uint256)) private _allowances;\n\n    uint256 private _totalSupply;\n\n    /**\n     * @dev See `IERC20.totalSupply`.\n     */\n    function totalSupply() public view returns (uint256) {\n        return _totalSupply;\n    }\n\n    /**\n     * @dev See `IERC20.balanceOf`.\n     */\n    function balanceOf(address account) public view returns (uint256) {\n        return _balances[account];\n    }\n\n    /**\n     * @dev See `IERC20.transfer`.\n     *\n     * Requirements:\n     *\n     * - `recipient` cannot be the zero address.\n     * - the caller must have a balance of at least `amount`.\n     */\n    function transfer(address recipient, uint256 amount) public returns (bool) {\n        _transfer(msg.sender, recipient, amount);\n        return true;\n    }\n\n    /**\n     * @dev See `IERC20.allowance`.\n     */\n    function allowance(address owner, address spender) public view returns (uint256) {\n        return _allowances[owner][spender];\n    }\n\n    /**\n     * @dev See `IERC20.approve`.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     */\n    function approve(address spender, uint256 value) public returns (bool) {\n        _approve(msg.sender, spender, value);\n        return true;\n    }\n\n    /**\n     * @dev See `IERC20.transferFrom`.\n     *\n     * Emits an `Approval` event indicating the updated allowance. This is not\n     * required by the EIP. See the note at the beginning of `ERC20`;\n     *\n     * Requirements:\n     * - `sender` and `recipient` cannot be the zero address.\n     * - `sender` must have a balance of at least `value`.\n     * - the caller must have allowance for `sender`\u0027s tokens of at least\n     * `amount`.\n     */\n    function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {\n        _transfer(sender, recipient, amount);\n        _approve(sender, msg.sender, _allowances[sender][msg.sender].sub(amount));\n        return true;\n    }\n\n    /**\n     * @dev Atomically increases the allowance granted to `spender` by the caller.\n     *\n     * This is an alternative to `approve` that can be used as a mitigation for\n     * problems described in `IERC20.approve`.\n     *\n     * Emits an `Approval` event indicating the updated allowance.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     */\n    function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {\n        _approve(msg.sender, spender, _allowances[msg.sender][spender].add(addedValue));\n        return true;\n    }\n\n    /**\n     * @dev Atomically decreases the allowance granted to `spender` by the caller.\n     *\n     * This is an alternative to `approve` that can be used as a mitigation for\n     * problems described in `IERC20.approve`.\n     *\n     * Emits an `Approval` event indicating the updated allowance.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     * - `spender` must have allowance for the caller of at least\n     * `subtractedValue`.\n     */\n    function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {\n        _approve(msg.sender, spender, _allowances[msg.sender][spender].sub(subtractedValue));\n        return true;\n    }\n\n    /**\n     * @dev Moves tokens `amount` from `sender` to `recipient`.\n     *\n     * This is internal function is equivalent to `transfer`, and can be used to\n     * e.g. implement automatic token fees, slashing mechanisms, etc.\n     *\n     * Emits a `Transfer` event.\n     *\n     * Requirements:\n     *\n     * - `sender` cannot be the zero address.\n     * - `recipient` cannot be the zero address.\n     * - `sender` must have a balance of at least `amount`.\n     */\n    function _transfer(address sender, address recipient, uint256 amount) internal {\n        require(sender != address(0), \"ERC20: transfer from the zero address\");\n        require(recipient != address(0), \"ERC20: transfer to the zero address\");\n\n        _balances[sender] = _balances[sender].sub(amount);\n        _balances[recipient] = _balances[recipient].add(amount);\n        emit Transfer(sender, recipient, amount);\n    }\n\n    /** @dev Creates `amount` tokens and assigns them to `account`, increasing\n     * the total supply.\n     *\n     * Emits a `Transfer` event with `from` set to the zero address.\n     *\n     * Requirements\n     *\n     * - `to` cannot be the zero address.\n     */\n    function _mint(address account, uint256 amount) internal {\n        require(account != address(0), \"ERC20: mint to the zero address\");\n\n        _totalSupply = _totalSupply.add(amount);\n        _balances[account] = _balances[account].add(amount);\n        emit Transfer(address(0), account, amount);\n    }\n\n     /**\n     * @dev Destroys `amount` tokens from `account`, reducing the\n     * total supply.\n     *\n     * Emits a `Transfer` event with `to` set to the zero address.\n     *\n     * Requirements\n     *\n     * - `account` cannot be the zero address.\n     * - `account` must have at least `amount` tokens.\n     */\n    function _burn(address account, uint256 value) internal {\n        require(account != address(0), \"ERC20: burn from the zero address\");\n\n        _totalSupply = _totalSupply.sub(value);\n        _balances[account] = _balances[account].sub(value);\n        emit Transfer(account, address(0), value);\n    }\n\n    /**\n     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.\n     *\n     * This is internal function is equivalent to `approve`, and can be used to\n     * e.g. set automatic allowances for certain subsystems, etc.\n     *\n     * Emits an `Approval` event.\n     *\n     * Requirements:\n     *\n     * - `owner` cannot be the zero address.\n     * - `spender` cannot be the zero address.\n     */\n    function _approve(address owner, address spender, uint256 value) internal {\n        require(owner != address(0), \"ERC20: approve from the zero address\");\n        require(spender != address(0), \"ERC20: approve to the zero address\");\n\n        _allowances[owner][spender] = value;\n        emit Approval(owner, spender, value);\n    }\n\n    /**\n     * @dev Destoys `amount` tokens from `account`.`amount` is then deducted\n     * from the caller\u0027s allowance.\n     *\n     * See `_burn` and `_approve`.\n     */\n    function _burnFrom(address account, uint256 amount) internal {\n        _burn(account, amount);\n        _approve(account, msg.sender, _allowances[account][msg.sender].sub(amount));\n    }\n}\n"},"ERC20Mintable.sol":{"content":"pragma solidity ^0.5.0;\n\nimport \"./ERC20.sol\";\nimport \"./MinterRole.sol\";\n\n/**\n * @dev Extension of `ERC20` that adds a set of accounts with the `MinterRole`,\n * which have permission to mint (create) new tokens as they see fit.\n *\n * At construction, the deployer of the contract is the only minter.\n */\ncontract ERC20Mintable is ERC20, MinterRole {\n    /**\n     * @dev See `ERC20._mint`.\n     *\n     * Requirements:\n     *\n     * - the caller must have the `MinterRole`.\n     */\n    function mint(address account, uint256 amount) public onlyMinter returns (bool) {\n        _mint(account, amount);\n        return true;\n    }\n}\n"},"IERC20.sol":{"content":"pragma solidity ^0.5.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP. Does not include\n * the optional functions; to access them see `ERC20Detailed`.\n */\ninterface IERC20 {\n    /**\n     * @dev Returns the amount of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the amount of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves `amount` tokens from the caller\u0027s account to `recipient`.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a `Transfer` event.\n     */\n    function transfer(address recipient, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Returns the remaining number of tokens that `spender` will be\n     * allowed to spend on behalf of `owner` through `transferFrom`. This is\n     * zero by default.\n     *\n     * This value changes when `approve` or `transferFrom` are called.\n     */\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /**\n     * @dev Sets `amount` as the allowance of `spender` over the caller\u0027s tokens.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * \u003e Beware that changing an allowance with this method brings the risk\n     * that someone may use both the old and the new allowance by unfortunate\n     * transaction ordering. One possible solution to mitigate this race\n     * condition is to first reduce the spender\u0027s allowance to 0 and set the\n     * desired value afterwards:\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n     *\n     * Emits an `Approval` event.\n     */\n    function approve(address spender, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Moves `amount` tokens from `sender` to `recipient` using the\n     * allowance mechanism. `amount` is then deducted from the caller\u0027s\n     * allowance.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a `Transfer` event.\n     */\n    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\n     * another (`to`).\n     *\n     * Note that `value` may be zero.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /**\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n     * a call to `approve`. `value` is the new allowance.\n     */\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n}\n"},"MinterRole.sol":{"content":"pragma solidity ^0.5.0;\n\nimport \"./Roles.sol\";\n\ncontract MinterRole {\n    using Roles for Roles.Role;\n\n    event MinterAdded(address indexed account);\n    event MinterRemoved(address indexed account);\n\n    Roles.Role private _minters;\n\n    constructor () internal {\n        _addMinter(msg.sender);\n    }\n\n    modifier onlyMinter() {\n        require(isMinter(msg.sender), \"MinterRole: caller does not have the Minter role\");\n        _;\n    }\n\n    function isMinter(address account) public view returns (bool) {\n        return _minters.has(account);\n    }\n\n    function addMinter(address account) public onlyMinter {\n        _addMinter(account);\n    }\n\n    function renounceMinter() public {\n        _removeMinter(msg.sender);\n    }\n\n    function _addMinter(address account) internal {\n        _minters.add(account);\n        emit MinterAdded(account);\n    }\n\n    function _removeMinter(address account) internal {\n        _minters.remove(account);\n        emit MinterRemoved(account);\n    }\n}\n"},"Roles.sol":{"content":"pragma solidity ^0.5.0;\n\n/**\n * @title Roles\n * @dev Library for managing addresses assigned to a Role.\n */\nlibrary Roles {\n    struct Role {\n        mapping (address =\u003e bool) bearer;\n    }\n\n    /**\n     * @dev Give an account access to this role.\n     */\n    function add(Role storage role, address account) internal {\n        require(!has(role, account), \"Roles: account already has role\");\n        role.bearer[account] = true;\n    }\n\n    /**\n     * @dev Remove an account\u0027s access to this role.\n     */\n    function remove(Role storage role, address account) internal {\n        require(has(role, account), \"Roles: account does not have role\");\n        role.bearer[account] = false;\n    }\n\n    /**\n     * @dev Check if an account has this role.\n     * @return bool\n     */\n    function has(Role storage role, address account) internal view returns (bool) {\n        require(account != address(0), \"Roles: account is the zero address\");\n        return role.bearer[account];\n    }\n}\n"},"SafeMath.sol":{"content":"pragma solidity ^0.5.0;\n\n/**\n * @dev Wrappers over Solidity\u0027s arithmetic operations with added overflow\n * checks.\n *\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\n * in bugs, because programmers usually assume that an overflow raises an\n * error, which is the standard behavior in high level programming languages.\n * `SafeMath` restores this intuition by reverting the transaction when an\n * operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it\u0027s recommended to use it always.\n */\nlibrary SafeMath {\n    /**\n     * @dev Returns the addition of two unsigned integers, reverting on\n     * overflow.\n     *\n     * Counterpart to Solidity\u0027s `+` operator.\n     *\n     * Requirements:\n     * - Addition cannot overflow.\n     */\n    function add(uint256 a, uint256 b) internal pure returns (uint256) {\n        uint256 c = a + b;\n        require(c \u003e= a, \"SafeMath: addition overflow\");\n\n        return c;\n    }\n\n    /**\n     * @dev Returns the subtraction of two unsigned integers, reverting on\n     * overflow (when the result is negative).\n     *\n     * Counterpart to Solidity\u0027s `-` operator.\n     *\n     * Requirements:\n     * - Subtraction cannot overflow.\n     */\n    function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n        require(b \u003c= a, \"SafeMath: subtraction overflow\");\n        uint256 c = a - b;\n\n        return c;\n    }\n\n    /**\n     * @dev Returns the multiplication of two unsigned integers, reverting on\n     * overflow.\n     *\n     * Counterpart to Solidity\u0027s `*` operator.\n     *\n     * Requirements:\n     * - Multiplication cannot overflow.\n     */\n    function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n        // Gas optimization: this is cheaper than requiring \u0027a\u0027 not being zero, but the\n        // benefit is lost if \u0027b\u0027 is also tested.\n        // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522\n        if (a == 0) {\n            return 0;\n        }\n\n        uint256 c = a * b;\n        require(c / a == b, \"SafeMath: multiplication overflow\");\n\n        return c;\n    }\n\n    /**\n     * @dev Returns the integer division of two unsigned integers. Reverts on\n     * division by zero. The result is rounded towards zero.\n     *\n     * Counterpart to Solidity\u0027s `/` operator. Note: this function uses a\n     * `revert` opcode (which leaves remaining gas untouched) while Solidity\n     * uses an invalid opcode to revert (consuming all remaining gas).\n     *\n     * Requirements:\n     * - The divisor cannot be zero.\n     */\n    function div(uint256 a, uint256 b) internal pure returns (uint256) {\n        // Solidity only automatically asserts when dividing by 0\n        require(b \u003e 0, \"SafeMath: division by zero\");\n        uint256 c = a / b;\n        // assert(a == b * c + a % b); // There is no case in which this doesn\u0027t hold\n\n        return c;\n    }\n\n    /**\n     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\n     * Reverts when dividing by zero.\n     *\n     * Counterpart to Solidity\u0027s `%` operator. This function uses a `revert`\n     * opcode (which leaves remaining gas untouched) while Solidity uses an\n     * invalid opcode to revert (consuming all remaining gas).\n     *\n     * Requirements:\n     * - The divisor cannot be zero.\n     */\n    function mod(uint256 a, uint256 b) internal pure returns (uint256) {\n        require(b != 0, \"SafeMath: modulo by zero\");\n        return a % b;\n    }\n}\n"}}

    File 2 of 2: CentralityToken
    pragma solidity ^0.4.15;
    
    contract Ownable {
        address public owner;
    
        function Ownable() public {
            owner = msg.sender;
        }
    
        modifier onlyOwner() {
            if (msg.sender != owner) {
                revert();
            }
            _;
        }
    
        function transferOwnership(address newOwner) public onlyOwner {
            if (newOwner != address(0)) {
                owner = newOwner;
            }
        }
    
    }
    
    contract SafeMath {
        function safeSub(uint a, uint b) pure internal returns (uint) {
            sAssert(b <= a);
            return a - b;
        }
    
        function safeAdd(uint a, uint b) pure internal returns (uint) {
            uint c = a + b;
            sAssert(c>=a && c>=b);
            return c;
        }
    
        function sAssert(bool assertion) pure internal {
            if (!assertion) {
                revert();
            }
        }
    }
    
    contract ERC20 {
        uint public totalSupply;
        function balanceOf(address who) public constant returns (uint);
        function allowance(address owner, address spender) public constant returns (uint);
    
        function transfer(address to, uint value) public returns (bool ok);
        function transferFrom(address from, address to, uint value) public returns (bool ok);
        function approve(address spender, uint value) public returns (bool ok);
        event Transfer(address indexed from, address indexed to, uint value);
        event Approval(address indexed owner, address indexed spender, uint value);
    }
    
    contract StandardToken is ERC20, SafeMath {
        mapping(address => uint) balances;
        mapping (address => mapping (address => uint)) allowed;
    
        function transfer(address _to, uint _value) public returns (bool success) {
            balances[msg.sender] = safeSub(balances[msg.sender], _value);
            balances[_to] = safeAdd(balances[_to], _value);
            Transfer(msg.sender, _to, _value);
            return true;
        }
    
        function transferFrom(address _from, address _to, uint _value) public returns (bool success) {
            var _allowance = allowed[_from][msg.sender];
    
            balances[_to] = safeAdd(balances[_to], _value);
            balances[_from] = safeSub(balances[_from], _value);
            allowed[_from][msg.sender] = safeSub(_allowance, _value);
            Transfer(_from, _to, _value);
            return true;
        }
    
        function balanceOf(address _owner) public constant returns (uint balance) {
            return balances[_owner];
        }
    
        function approve(address _spender, uint _value) public returns (bool success) {
            allowed[msg.sender][_spender] = _value;
            Approval(msg.sender, _spender, _value);
            return true;
        }
    
        function allowance(address _owner, address _spender) public constant returns (uint remaining) {
            return allowed[_owner][_spender];
        }
    }
    
    contract CentralityToken is Ownable, StandardToken {
        string public name = "Centrality Token";
        string public symbol = "CENNZ";
        uint public decimals = 18;
    
        uint public totalSupply = 1200 * (10**6) * (10**18); // 1.20 Billion
    
        function CentralityToken() {
            balances[msg.sender] = 717 * (10**6) * (10**18);                                    //Public
            balances[0xF62baac232D5AbFc6463637E5D64E49F2Da5aCae] = 60 * (10**6) * (10**18);     //Partner
            balances[0xABBBb643a33144fFB7D3bc77158b2d8F3EaD9A16] = 63 * (10**6) * (10**18);     //Partner
            balances[0xcFD9eBf37820D9144bF02785Dff6F1b024c8e088] = 240 * (10**6) * (10**18);    //Founders
            balances[0xa434Bff1D1F15bc6Da70BE104D233684C603cF85] = 60 * (10**6) * (10**18);     //Foundation
            balances[0x4Aa26b234743D30aC2e72D1dA738fdCE4a8fF7E2] = 60 * (10**6) * (10**18);     //Developers
        }
    
        function () public {
        }
    
        function transferOwnership(address _newOwner) public onlyOwner {
            balances[_newOwner] = safeAdd(balances[owner], balances[_newOwner]);
            balances[owner] = 0;
            Ownable.transferOwnership(_newOwner);
        }
    
        function transferAnyERC20Token(address tokenAddress, uint amount) public onlyOwner returns (bool success) {
            return ERC20(tokenAddress).transfer(owner, amount);
        }
    }