ETH Price: $2,694.70 (+4.67%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Destroy Tokens43351612017-10-04 4:29:272680 days ago1507091367IN
Genaro Network: Old Token
0 ETH0.001797321
Destroy Tokens43351592017-10-04 4:27:482680 days ago1507091268IN
Genaro Network: Old Token
0 ETH0.0013620821
Destroy Tokens43351592017-10-04 4:27:482680 days ago1507091268IN
Genaro Network: Old Token
0 ETH0.0017959621
Destroy Tokens43351572017-10-04 4:27:272680 days ago1507091247IN
Genaro Network: Old Token
0 ETH0.0017946121
Destroy Tokens43351562017-10-04 4:27:022680 days ago1507091222IN
Genaro Network: Old Token
0 ETH0.0017959621
Destroy Tokens43351492017-10-04 4:22:302680 days ago1507090950IN
Genaro Network: Old Token
0 ETH0.0017946121
Destroy Tokens43351442017-10-04 4:20:382680 days ago1507090838IN
Genaro Network: Old Token
0 ETH0.001797321
Destroy Tokens43351422017-10-04 4:19:382680 days ago1507090778IN
Genaro Network: Old Token
0 ETH0.001797321
Destroy Tokens43351392017-10-04 4:17:512680 days ago1507090671IN
Genaro Network: Old Token
0 ETH0.0017959621
Destroy Tokens43351352017-10-04 4:16:442680 days ago1507090604IN
Genaro Network: Old Token
0 ETH0.0017959621
Destroy Tokens43351312017-10-04 4:15:202680 days ago1507090520IN
Genaro Network: Old Token
0 ETH0.0017959621
Destroy Tokens43351292017-10-04 4:13:502680 days ago1507090430IN
Genaro Network: Old Token
0 ETH0.0017959621
Destroy Tokens43351252017-10-04 4:11:312680 days ago1507090291IN
Genaro Network: Old Token
0 ETH0.0017946121
Destroy Tokens43351232017-10-04 4:09:412680 days ago1507090181IN
Genaro Network: Old Token
0 ETH0.001797321
Destroy Tokens43351222017-10-04 4:09:372680 days ago1507090177IN
Genaro Network: Old Token
0 ETH0.001797321
Destroy Tokens43351202017-10-04 4:09:082680 days ago1507090148IN
Genaro Network: Old Token
0 ETH0.0017959621
Destroy Tokens43351182017-10-04 4:07:032680 days ago1507090023IN
Genaro Network: Old Token
0 ETH0.0016312821
Destroy Tokens43351152017-10-04 4:06:182680 days ago1507089978IN
Genaro Network: Old Token
0 ETH0.0017959621
Destroy Tokens43351132017-10-04 4:02:522680 days ago1507089772IN
Genaro Network: Old Token
0 ETH0.0017959621
Destroy Tokens43351102017-10-04 4:02:062680 days ago1507089726IN
Genaro Network: Old Token
0 ETH0.0017959621
Destroy Tokens43351052017-10-04 4:00:192680 days ago1507089619IN
Genaro Network: Old Token
0 ETH0.001797321
Destroy Tokens43351012017-10-04 3:59:052680 days ago1507089545IN
Genaro Network: Old Token
0 ETH0.0017959621
Destroy Tokens43350992017-10-04 3:56:382680 days ago1507089398IN
Genaro Network: Old Token
0 ETH0.001797321
Destroy Tokens43350972017-10-04 3:56:062680 days ago1507089366IN
Genaro Network: Old Token
0 ETH0.001797321
Destroy Tokens43350942017-10-04 3:54:252680 days ago1507089265IN
Genaro Network: Old Token
0 ETH0.0016344921
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GNR

Compiler Version
v0.4.13+commit.fb4cb1a

Optimization Enabled:
Yes with 0 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2017-08-20
*/

pragma solidity ^0.4.13;

/**
 * Math operations with safety checks
 */
contract SafeMath {
  function safeMul(uint a, uint b) internal returns (uint) {
    uint c = a * b;
    assert(a == 0 || c / a == b);
    return c;
  }

  function safeDiv(uint a, uint b) internal returns (uint) {
    assert(b > 0);
    uint c = a / b;
    assert(a == b * c + a % b);
    return c;
  }

  function safeSub(uint a, uint b) internal returns (uint) {
    assert(b <= a);
    return a - b;
  }

  function safeAdd(uint a, uint b) internal returns (uint) {
    uint c = a + b;
    assert(c>=a && c>=b);
    return c;
  }

  function max64(uint64 a, uint64 b) internal constant returns (uint64) {
    return a >= b ? a : b;
  }

  function min64(uint64 a, uint64 b) internal constant returns (uint64) {
    return a < b ? a : b;
  }

  function max256(uint256 a, uint256 b) internal constant returns (uint256) {
    return a >= b ? a : b;
  }

  function min256(uint256 a, uint256 b) internal constant returns (uint256) {
    return a < b ? a : b;
  }

  function assert(bool assertion) internal {
    require(assertion);
  }
}

// inspired by Zeppelin's Vested Token deriving MiniMeToken

contract Controlled {
    /// @notice The address of the controller is the only address that can call
    ///  a function with this modifier
    modifier onlyController{ require(msg.sender==controller); _; }


    address public controller;

    function Controlled() { controller = msg.sender;}

    /// @notice Changes the controller of the contract
    /// @param _newController The new controller of the contract
    function changeController(address _newController) onlyController {
        controller = _newController;
    }
}

/// @dev The token controller contract must implement these functions
contract Controller {
    /// @notice Called when `_owner` sends ether to the MiniMe Token contract
    /// @param _owner The address that sent the ether to create tokens
    /// @return True if the ether is accepted, false if it throws
    function proxyPayment(address _owner) payable returns(bool);

    /// @notice Notifies the controller about a token transfer allowing the
    ///  controller to react if desired
    /// @param _from The origin of the transfer
    /// @param _to The destination of the transfer
    /// @param _amount The amount of the transfer
    /// @return False if the controller does not authorize the transfer
    function onTransfer(address _from, address _to, uint _amount) returns(bool);

    /// @notice Notifies the controller about an approval allowing the
    ///  controller to react if desired
    /// @param _owner The address that calls `approve()`
    /// @param _spender The spender in the `approve()` call
    /// @param _amount The amount in the `approve()` call
    /// @return False if the controller does not authorize the approval
    function onApprove(address _owner, address _spender, uint _amount)
        returns(bool);
}

contract ApproveAndCallReceiver {
    function receiveApproval(address _from, uint256 _amount, address _token, bytes _data);
}

/*
 * ERC20 interface
 * see https://github.com/ethereum/EIPs/issues/20
 */
contract ERC20 {
  function totalSupply() constant returns (uint);
  function balanceOf(address who) constant returns (uint);
  function allowance(address owner, address spender) constant returns (uint);

  function transfer(address to, uint value) returns (bool ok);
  function transferFrom(address from, address to, uint value) returns (bool ok);
  function approve(address spender, uint value) returns (bool ok);
  event Transfer(address indexed from, address indexed to, uint value);
  event Approval(address indexed owner, address indexed spender, uint value);
}

contract MiniMeToken is ERC20, Controlled {
    string public name;                //The Token's name: e.g. DigixDAO Tokens
    uint8 public decimals;             //Number of decimals of the smallest unit
    string public symbol;              //An identifier: e.g. REP
    string public version = 'MMT_0.1'; //An arbitrary versioning scheme


    /// @dev `Checkpoint` is the structure that attaches a block number to a
    ///  given value, the block number attached is the one that last changed the
    ///  value
    struct  Checkpoint {

        // `fromBlock` is the block number that the value was generated from
        uint128 fromBlock;

        // `value` is the amount of tokens at a specific block number
        uint128 value;
    }

    // `parentToken` is the Token address that was cloned to produce this token;
    //  it will be 0x0 for a token that was not cloned
    MiniMeToken public parentToken;

    // `parentSnapShotBlock` is the block number from the Parent Token that was
    //  used to determine the initial distribution of the Clone Token
    uint public parentSnapShotBlock;

    // `creationBlock` is the block number that the Clone Token was created
    uint public creationBlock;

    // `balances` is the map that tracks the balance of each address, in this
    //  contract when the balance changes the block number that the change
    //  occurred is also included in the map
    mapping (address => Checkpoint[]) balances;

    // `allowed` tracks any extra transfer rights as in all ERC20 tokens
    mapping (address => mapping (address => uint256)) allowed;

    // Tracks the history of the `totalSupply` of the token
    Checkpoint[] totalSupplyHistory;

    // Flag that determines if the token is transferable or not.
    bool public transfersEnabled;

    // The factory used to create new clone tokens
    MiniMeTokenFactory public tokenFactory;

////////////////
// Constructor
////////////////

    /// @notice Constructor to create a MiniMeToken
    /// @param _tokenFactory The address of the MiniMeTokenFactory contract that
    ///  will create the Clone token contracts, the token factory needs to be
    ///  deployed first
    /// @param _parentToken Address of the parent token, set to 0x0 if it is a
    ///  new token
    /// @param _parentSnapShotBlock Block of the parent token that will
    ///  determine the initial distribution of the clone token, set to 0 if it
    ///  is a new token
    /// @param _tokenName Name of the new token
    /// @param _decimalUnits Number of decimals of the new token
    /// @param _tokenSymbol Token Symbol for the new token
    /// @param _transfersEnabled If true, tokens will be able to be transferred
    function MiniMeToken(
        address _tokenFactory,
        address _parentToken,
        uint _parentSnapShotBlock,
        string _tokenName,
        uint8 _decimalUnits,
        string _tokenSymbol,
        bool _transfersEnabled
    ) {
        tokenFactory = MiniMeTokenFactory(_tokenFactory);
        name = _tokenName;                                 // Set the name
        decimals = _decimalUnits;                          // Set the decimals
        symbol = _tokenSymbol;                             // Set the symbol
        parentToken = MiniMeToken(_parentToken);
        parentSnapShotBlock = _parentSnapShotBlock;
        transfersEnabled = _transfersEnabled;
        creationBlock = block.number;
    }


///////////////////
// ERC20 Methods
///////////////////

    /// @notice Send `_amount` tokens to `_to` from `msg.sender`
    /// @param _to The address of the recipient
    /// @param _amount The amount of tokens to be transferred
    /// @return Whether the transfer was successful or not
    function transfer(address _to, uint256 _amount) returns (bool success) {
        require (transfersEnabled);
    ////if (!transfersEnabled) throw;
        return doTransfer(msg.sender, _to, _amount);
    }

    /// @notice Send `_amount` tokens to `_to` from `_from` on the condition it
    ///  is approved by `_from`
    /// @param _from The address holding the tokens being transferred
    /// @param _to The address of the recipient
    /// @param _amount The amount of tokens to be transferred
    /// @return True if the transfer was successful
    function transferFrom(address _from, address _to, uint256 _amount
    ) returns (bool success) {

        // The controller of this contract can move tokens around at will,
        //  this is important to recognize! Confirm that you trust the
        //  controller of this contract, which in most situations should be
        //  another open source smart contract or 0x0
        if (msg.sender != controller) {
            require (transfersEnabled);

            ////if (!transfersEnabled) throw;

            // The standard ERC 20 transferFrom functionality
            assert (allowed[_from][msg.sender]>=_amount);

            ////if (allowed[_from][msg.sender] < _amount) throw;
            allowed[_from][msg.sender] -= _amount;
        }
        return doTransfer(_from, _to, _amount);
    }

    /// @dev This is the actual transfer function in the token contract, it can
    ///  only be called by other functions in this contract.
    /// @param _from The address holding the tokens being transferred
    /// @param _to The address of the recipient
    /// @param _amount The amount of tokens to be transferred
    /// @return True if the transfer was successful
    function doTransfer(address _from, address _to, uint _amount
    ) internal returns(bool) {
           if (_amount == 0) {
               return true;
           }

           // Do not allow transfer to 0x0 or the token contract itself
           require((_to>0)&&(_to!=address(this)));

           //// if ((_to == 0) || (_to == address(this))) throw;

           // If the amount being transfered is more than the balance of the
           //  account the transfer returns false
           var previousBalanceFrom = balanceOfAt(_from, block.number);
           assert(previousBalanceFrom >= _amount);

           // Alerts the token controller of the transfer
           if (isContract(controller)) {
               assert(Controller(controller).onTransfer(_from,_to,_amount));

           }

           // First update the balance array with the new value for the address
           //  sending the tokens
           updateValueAtNow(balances[_from], previousBalanceFrom - _amount);

           // Then update the balance array with the new value for the address
           //  receiving the tokens
           var previousBalanceTo = balanceOfAt(_to, block.number);
           assert(previousBalanceTo+_amount>=previousBalanceTo); 
           
           //// if (previousBalanceTo + _amount < previousBalanceTo) throw; // Check for overflow
           updateValueAtNow(balances[_to], previousBalanceTo + _amount);

           // An event to make the transfer easy to find on the blockchain
           Transfer(_from, _to, _amount);

           return true;
    }

    /// @param _owner The address that's balance is being requested
    /// @return The balance of `_owner` at the current block
    function balanceOf(address _owner) constant returns (uint256 balance) {
        return balanceOfAt(_owner, block.number);
    }

    /// @notice `msg.sender` approves `_spender` to spend `_amount` tokens on
    ///  its behalf. This is a modified version of the ERC20 approve function
    ///  to be a little bit safer
    /// @param _spender The address of the account able to transfer the tokens
    /// @param _amount The amount of tokens to be approved for transfer
    /// @return True if the approval was successful
    function approve(address _spender, uint256 _amount) returns (bool success) {
        require(transfersEnabled);

        // To change the approve amount you first have to reduce the addresses´
        //  allowance to zero by calling `approve(_spender,0)` if it is not
        //  already 0 to mitigate the race condition described here:
        //  https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
        require((_amount==0)||(allowed[msg.sender][_spender]==0));

        // Alerts the token controller of the approve function call
        if (isContract(controller)) {
            assert(Controller(controller).onApprove(msg.sender,_spender,_amount));

            //  if (!Controller(controller).onApprove(msg.sender, _spender, _amount))
            //        throw;
        }

        allowed[msg.sender][_spender] = _amount;
        Approval(msg.sender, _spender, _amount);
        return true;
    }

    /// @dev This function makes it easy to read the `allowed[]` map
    /// @param _owner The address of the account that owns the token
    /// @param _spender The address of the account able to transfer the tokens
    /// @return Amount of remaining tokens of _owner that _spender is allowed
    ///  to spend
    function allowance(address _owner, address _spender
    ) constant returns (uint256 remaining) {
        return allowed[_owner][_spender];
    }

    /// @notice `msg.sender` approves `_spender` to send `_amount` tokens on
    ///  its behalf, and then a function is triggered in the contract that is
    ///  being approved, `_spender`. This allows users to use their tokens to
    ///  interact with contracts in one function call instead of two
    /// @param _spender The address of the contract able to transfer the tokens
    /// @param _amount The amount of tokens to be approved for transfer
    /// @return True if the function call was successful
    function approveAndCall(address _spender, uint256 _amount, bytes _extraData
    ) returns (bool success) {
        approve(_spender, _amount);

        // This portion is copied from ConsenSys's Standard Token Contract. It
        //  calls the receiveApproval function that is part of the contract that
        //  is being approved (`_spender`). The function should look like:
        //  `receiveApproval(address _from, uint256 _amount, address
        //  _tokenContract, bytes _extraData)` It is assumed that the call
        //  *should* succeed, otherwise the plain vanilla approve would be used
        ApproveAndCallReceiver(_spender).receiveApproval(
           msg.sender,
           _amount,
           this,
           _extraData
        );
        return true;
    }

    /// @dev This function makes it easy to get the total number of tokens
    /// @return The total number of tokens
    function totalSupply() constant returns (uint) {
        return totalSupplyAt(block.number);
    }


////////////////
// Query balance and totalSupply in History
////////////////

    /// @dev Queries the balance of `_owner` at a specific `_blockNumber`
    /// @param _owner The address from which the balance will be retrieved
    /// @param _blockNumber The block number when the balance is queried
    /// @return The balance at `_blockNumber`
    function balanceOfAt(address _owner, uint _blockNumber) constant
        returns (uint) {

        // These next few lines are used when the balance of the token is
        //  requested before a check point was ever created for this token, it
        //  requires that the `parentToken.balanceOfAt` be queried at the
        //  genesis block for that token as this contains initial balance of
        //  this token
        if ((balances[_owner].length == 0)
            || (balances[_owner][0].fromBlock > _blockNumber)) {
            if (address(parentToken) != 0) {
                return parentToken.balanceOfAt(_owner, min(_blockNumber, parentSnapShotBlock));
            } else {
                // Has no parent
                return 0;
            }

        // This will return the expected balance during normal situations
        } else {
            return getValueAt(balances[_owner], _blockNumber);
        }
    }

    /// @notice Total amount of tokens at a specific `_blockNumber`.
    /// @param _blockNumber The block number when the totalSupply is queried
    /// @return The total amount of tokens at `_blockNumber`
    function totalSupplyAt(uint _blockNumber) constant returns(uint) {

        // These next few lines are used when the totalSupply of the token is
        //  requested before a check point was ever created for this token, it
        //  requires that the `parentToken.totalSupplyAt` be queried at the
        //  genesis block for this token as that contains totalSupply of this
        //  token at this block number.
        if ((totalSupplyHistory.length == 0)
            || (totalSupplyHistory[0].fromBlock > _blockNumber)) {
            if (address(parentToken) != 0) {
                return parentToken.totalSupplyAt(min(_blockNumber, parentSnapShotBlock));
            } else {
                return 0;
            }

        // This will return the expected totalSupply during normal situations
        } else {
            return getValueAt(totalSupplyHistory, _blockNumber);
        }
    }

    function min(uint a, uint b) internal returns (uint) {
      return a < b ? a : b;
    }

////////////////
// Clone Token Method
////////////////

    /// @notice Creates a new clone token with the initial distribution being
    ///  this token at `_snapshotBlock`
    /// @param _cloneTokenName Name of the clone token
    /// @param _cloneDecimalUnits Number of decimals of the smallest unit
    /// @param _cloneTokenSymbol Symbol of the clone token
    /// @param _snapshotBlock Block when the distribution of the parent token is
    ///  copied to set the initial distribution of the new clone token;
    ///  if the block is higher than the actual block, the current block is used
    /// @param _transfersEnabled True if transfers are allowed in the clone
    /// @return The address of the new MiniMeToken Contract
    function createCloneToken(
        string _cloneTokenName,
        uint8 _cloneDecimalUnits,
        string _cloneTokenSymbol,
        uint _snapshotBlock,
        bool _transfersEnabled
        ) returns(address) {
        if (_snapshotBlock > block.number) _snapshotBlock = block.number;
        MiniMeToken cloneToken = tokenFactory.createCloneToken(
            this,
            _snapshotBlock,
            _cloneTokenName,
            _cloneDecimalUnits,
            _cloneTokenSymbol,
            _transfersEnabled
            );

        cloneToken.changeController(msg.sender);

        // An event to make the token easy to find on the blockchain
        NewCloneToken(address(cloneToken), _snapshotBlock);
        return address(cloneToken);
    }

////////////////
// Generate and destroy tokens
////////////////

    /// @notice Generates `_amount` tokens that are assigned to `_owner`
    /// @param _owner The address that will be assigned the new tokens
    /// @param _amount The quantity of tokens generated
    /// @return True if the tokens are generated correctly
    function generateTokens(address _owner, uint _amount
    ) onlyController returns (bool) {
        uint curTotalSupply = getValueAt(totalSupplyHistory, block.number);
        assert(curTotalSupply+_amount>=curTotalSupply);
        updateValueAtNow(totalSupplyHistory, curTotalSupply + _amount);
        var previousBalanceTo = balanceOf(_owner);
        assert(previousBalanceTo+_amount>=previousBalanceTo);
        updateValueAtNow(balances[_owner], previousBalanceTo + _amount);
        Transfer(0, _owner, _amount);
        return true;
    }


    /// @notice Burns `_amount` tokens from `_owner`
    /// @param _owner The address that will lose the tokens
    /// @param _amount The quantity of tokens to burn
    /// @return True if the tokens are burned correctly
    function destroyTokens(address _owner, uint _amount
    ) onlyController returns (bool) {
        uint curTotalSupply = getValueAt(totalSupplyHistory, block.number);
        assert(curTotalSupply >= _amount);
        
        //// if (curTotalSupply < _amount) throw;

        updateValueAtNow(totalSupplyHistory, curTotalSupply - _amount);
        var previousBalanceFrom = balanceOf(_owner);
        assert(previousBalanceFrom >=_amount);

        //// if (previousBalanceFrom < _amount) throw;
        updateValueAtNow(balances[_owner], previousBalanceFrom - _amount);
        Transfer(_owner, 0, _amount);
        return true;
    }

////////////////
// Enable tokens transfers
////////////////


    /// @notice Enables token holders to transfer their tokens freely if true
    /// @param _transfersEnabled True if transfers are allowed in the clone
    function enableTransfers(bool _transfersEnabled) onlyController {
        transfersEnabled = _transfersEnabled;
    }

////////////////
// Internal helper functions to query and set a value in a snapshot array
////////////////

    /// @dev `getValueAt` retrieves the number of tokens at a given block number
    /// @param checkpoints The history of values being queried
    /// @param _block The block number to retrieve the value at
    /// @return The number of tokens being queried
    function getValueAt(Checkpoint[] storage checkpoints, uint _block
    ) constant internal returns (uint) {
        if (checkpoints.length == 0) return 0;

        // Shortcut for the actual value
        if (_block >= checkpoints[checkpoints.length-1].fromBlock)
            return checkpoints[checkpoints.length-1].value;
        if (_block < checkpoints[0].fromBlock) return 0;

        // Binary search of the value in the array
        uint min = 0;
        uint max = checkpoints.length-1;
        while (max > min) {
            uint mid = (max + min + 1)/ 2;
            if (checkpoints[mid].fromBlock<=_block) {
                min = mid;
            } else {
                max = mid-1;
            }
        }
        return checkpoints[min].value;
    }

    /// @dev `updateValueAtNow` used to update the `balances` map and the
    ///  `totalSupplyHistory`
    /// @param checkpoints The history of data being updated
    /// @param _value The new number of tokens
    function updateValueAtNow(Checkpoint[] storage checkpoints, uint _value
    ) internal  {
        if ((checkpoints.length == 0)
        || (checkpoints[checkpoints.length -1].fromBlock < block.number)) {
               Checkpoint storage newCheckPoint = checkpoints[ checkpoints.length++ ];
               newCheckPoint.fromBlock =  uint128(block.number);
               newCheckPoint.value = uint128(_value);
           } else {
               Checkpoint storage oldCheckPoint = checkpoints[checkpoints.length-1];
               oldCheckPoint.value = uint128(_value);
           }
    }

    /// @dev Internal function to determine if an address is a contract
    /// @param _addr The address being queried
    /// @return True if `_addr` is a contract
    function isContract(address _addr) constant internal returns(bool) {
        uint size;
        if (_addr == 0) return false;
        assembly {
            size := extcodesize(_addr)
        }
        return size>0;
    }

    /// @notice The fallback function: If the contract's controller has not been
    ///  set to 0, then the `proxyPayment` method is called which relays the
    ///  ether and creates tokens as described in the token controller contract
    function ()  payable {
        require(isContract(controller));
        assert(Controller(controller).proxyPayment.value(msg.value)(msg.sender));
    }


////////////////
// Events
////////////////
    event NewCloneToken(address indexed _cloneToken, uint _snapshotBlock);
}


////////////////
// MiniMeTokenFactory
////////////////

/// @dev This contract is used to generate clone contracts from a contract.
///  In solidity this is the way to create a contract from a contract of the
///  same class
contract MiniMeTokenFactory {

    /// @notice Update the DApp by creating a new token with new functionalities
    ///  the msg.sender becomes the controller of this clone token
    /// @param _parentToken Address of the token being cloned
    /// @param _snapshotBlock Block of the parent token that will
    ///  determine the initial distribution of the clone token
    /// @param _tokenName Name of the new token
    /// @param _decimalUnits Number of decimals of the new token
    /// @param _tokenSymbol Token Symbol for the new token
    /// @param _transfersEnabled If true, tokens will be able to be transferred
    /// @return The address of the new token contract
    function createCloneToken(
        address _parentToken,
        uint _snapshotBlock,
        string _tokenName,
        uint8 _decimalUnits,
        string _tokenSymbol,
        bool _transfersEnabled
    ) returns (MiniMeToken) {
        MiniMeToken newToken = new MiniMeToken(
            this,
            _parentToken,
            _snapshotBlock,
            _tokenName,
            _decimalUnits,
            _tokenSymbol,
            _transfersEnabled
            );

        newToken.changeController(msg.sender);
        return newToken;
    }
}


// @dev MiniMeIrrevocableVestedToken is a derived version of MiniMeToken adding the
// ability to createTokenGrants which are basically a transfer that limits the
// receiver of the tokens.


contract MiniMeIrrevocableVestedToken is MiniMeToken, SafeMath {

  uint256 MAX_GRANTS_PER_ADDRESS = 20;

  // Keep the struct at 3 sstores ( total value  20+32+24 =76 bytes)
  struct TokenGrant {
    address granter;  // 20 bytes
    uint256 value;    // 32 bytes
    uint64 cliff;
    uint64 vesting;
    uint64 start;     // 3*8 =24 bytes
  }

  event NewTokenGrant(address indexed from, address indexed to, uint256 value, uint64 start, uint64 cliff, uint64 vesting);

  mapping (address => TokenGrant[]) public grants;

  mapping (address => bool) canCreateGrants;
  address vestingWhitelister;

  modifier canTransfer(address _sender, uint _value) {
    require(_value<=spendableBalanceOf(_sender));
    _;
  }

  modifier onlyVestingWhitelister {
    require(msg.sender==vestingWhitelister);
    _;
  }

  function MiniMeIrrevocableVestedToken (
      address _tokenFactory,
      address _parentToken,
      uint _parentSnapShotBlock,
      string _tokenName,
      uint8 _decimalUnits,
      string _tokenSymbol,
      bool _transfersEnabled
  ) MiniMeToken(_tokenFactory, _parentToken, _parentSnapShotBlock, _tokenName, _decimalUnits, _tokenSymbol, _transfersEnabled) {
    vestingWhitelister = msg.sender;
    doSetCanCreateGrants(vestingWhitelister, true);
  }

  // @dev Checks modifier and allows transfer if tokens are not locked.
  function transfer(address _to, uint _value)
           canTransfer(msg.sender, _value)
           public
           returns (bool success) {
    return super.transfer(_to, _value);
  }

  function transferFrom(address _from, address _to, uint _value)
           canTransfer(_from, _value)
           public
           returns (bool success) {
    return super.transferFrom(_from, _to, _value);
  }

  function spendableBalanceOf(address _holder) constant public returns (uint) {
    return transferableTokens(_holder, uint64(now));
  }

  // main func for token grant

  function grantVestedTokens(
    address _to,
    uint256 _value,
    uint64 _start,
    uint64 _cliff,
    uint64 _vesting) public {

    // Check start, cliff and vesting are properly order to ensure correct functionality of the formula.
    require(_cliff >= _start && _vesting >= _cliff);
    require(tokenGrantsCount(_to)<=MAX_GRANTS_PER_ADDRESS); //// To prevent a user being spammed and have his balance locked (out of gas attack when calculating vesting).

    assert(canCreateGrants[msg.sender]);


    TokenGrant memory grant = TokenGrant(msg.sender, _value, _cliff, _vesting, _start);
    grants[_to].push(grant);

    assert(transfer(_to,_value));

    NewTokenGrant(msg.sender, _to, _value, _cliff, _vesting, _start);
  }

  function setCanCreateGrants(address _addr, bool _allowed)
           onlyVestingWhitelister public {
    doSetCanCreateGrants(_addr, _allowed);
  }

  function doSetCanCreateGrants(address _addr, bool _allowed)
           internal {
    canCreateGrants[_addr] = _allowed;
  }

  function changeVestingWhitelister(address _newWhitelister) onlyVestingWhitelister public {
    doSetCanCreateGrants(vestingWhitelister, false);
    vestingWhitelister = _newWhitelister;
    doSetCanCreateGrants(vestingWhitelister, true);
  }

  function tokenGrantsCount(address _holder) constant public returns (uint index) {
    return grants[_holder].length;
  }

  function tokenGrant(address _holder, uint _grantId) constant public returns (address granter, uint256 value, uint256 vested, uint64 start, uint64 cliff, uint64 vesting) {
    TokenGrant storage grant = grants[_holder][_grantId];

    granter = grant.granter;
    value = grant.value;
    start = grant.start;
    cliff = grant.cliff;
    vesting = grant.vesting;

    vested = vestedTokens(grant, uint64(now));
  }

  function vestedTokens(TokenGrant grant, uint64 time) internal constant returns (uint256) {
    return calculateVestedTokens(
      grant.value,
      uint256(time),
      uint256(grant.start),
      uint256(grant.cliff),
      uint256(grant.vesting)
    );
  }

  //  transferableTokens
  //   |                         _/--------   NonVestedTokens
  //   |                       _/
  //   |                     _/
  //   |                   _/
  //   |                 _/
  //   |                /
  //   |              .|
  //   |            .  |
  //   |          .    |
  //   |        .      |
  //   |      .        |
  //   |    .          |
  //   +===+===========+---------+----------> time
  //      Start       Cliff    Vesting

  function calculateVestedTokens(
    uint256 tokens,
    uint256 time,
    uint256 start,
    uint256 cliff,
    uint256 vesting) internal constant returns (uint256)
    {

    // Shortcuts for before cliff and after vesting cases.
    if (time < cliff) return 0;
    if (time >= vesting) return tokens;

    // Interpolate all vested tokens.
    // As before cliff the shortcut returns 0, we can use just this function to
    // calculate it.

    // vestedTokens = tokens * (time - start) / (vesting - start)
    uint256 vestedTokens = safeDiv(
                                  safeMul(
                                    tokens,
                                    safeSub(time, start)
                                    ),
                                  safeSub(vesting, start)
                                  );

    return vestedTokens;
  }

  function nonVestedTokens(TokenGrant grant, uint64 time) internal constant returns (uint256) {
    return safeSub(grant.value, vestedTokens(grant, time));
  }

  // @dev The date in which all tokens are transferable for the holder
  // Useful for displaying purposes (not used in any logic calculations)
  function lastTokenIsTransferableDate(address holder) constant public returns (uint64 date) {
    date = uint64(now);
    uint256 grantIndex = tokenGrantsCount(holder);
    for (uint256 i = 0; i < grantIndex; i++) {
      date = max64(grants[holder][i].vesting, date);
    }
    return date;
  }

  // @dev How many tokens can a holder transfer at a point in time
  function transferableTokens(address holder, uint64 time) constant public returns (uint256) {
    uint256 grantIndex = tokenGrantsCount(holder);

    if (grantIndex == 0) return balanceOf(holder); // shortcut for holder without grants

    // Iterate through all the grants the holder has, and add all non-vested tokens
    uint256 nonVested = 0;
    for (uint256 i = 0; i < grantIndex; i++) {
      nonVested = safeAdd(nonVested, nonVestedTokens(grants[holder][i], time));
    }

    // Balance - totalNonVested is the amount of tokens a holder can transfer at any given time
    return safeSub(balanceOf(holder), nonVested);
  }
}

contract GNR is MiniMeIrrevocableVestedToken {
  // @dev GNR constructor just parametrizes the MiniMeIrrevocableVestedToken constructor
  function GNR(
    address _tokenFactory
  ) MiniMeIrrevocableVestedToken(
    _tokenFactory,
    0x0,                    // no parent token
    0,                      // no snapshot block number from parent
    "Genaro Network Token", // Token name
    9,                     // Decimals
    "GNR",                  // Symbol
    true                    // Enable transfers
    ) {}
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"},{"name":"_start","type":"uint64"},{"name":"_cliff","type":"uint64"},{"name":"_vesting","type":"uint64"}],"name":"grantVestedTokens","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_holder","type":"address"}],"name":"tokenGrantsCount","outputs":[{"name":"index","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_holder","type":"address"}],"name":"spendableBalanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"creationBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_addr","type":"address"},{"name":"_allowed","type":"bool"}],"name":"setCanCreateGrants","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"uint256"}],"name":"grants","outputs":[{"name":"granter","type":"address"},{"name":"value","type":"uint256"},{"name":"cliff","type":"uint64"},{"name":"vesting","type":"uint64"},{"name":"start","type":"uint64"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newController","type":"address"}],"name":"changeController","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_blockNumber","type":"uint256"}],"name":"balanceOfAt","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_holder","type":"address"},{"name":"_grantId","type":"uint256"}],"name":"tokenGrant","outputs":[{"name":"granter","type":"address"},{"name":"value","type":"uint256"},{"name":"vested","type":"uint256"},{"name":"start","type":"uint64"},{"name":"cliff","type":"uint64"},{"name":"vesting","type":"uint64"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_cloneTokenName","type":"string"},{"name":"_cloneDecimalUnits","type":"uint8"},{"name":"_cloneTokenSymbol","type":"string"},{"name":"_snapshotBlock","type":"uint256"},{"name":"_transfersEnabled","type":"bool"}],"name":"createCloneToken","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"holder","type":"address"}],"name":"lastTokenIsTransferableDate","outputs":[{"name":"date","type":"uint64"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"parentToken","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"},{"name":"_amount","type":"uint256"}],"name":"generateTokens","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_blockNumber","type":"uint256"}],"name":"totalSupplyAt","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"transfersEnabled","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"parentSnapShotBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"holder","type":"address"},{"name":"time","type":"uint64"}],"name":"transferableTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"},{"name":"_amount","type":"uint256"}],"name":"destroyTokens","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenFactory","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_transfersEnabled","type":"bool"}],"name":"enableTransfers","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"controller","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newWhitelister","type":"address"}],"name":"changeVestingWhitelister","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"_tokenFactory","type":"address"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"start","type":"uint64"},{"indexed":false,"name":"cliff","type":"uint64"},{"indexed":false,"name":"vesting","type":"uint64"}],"name":"NewTokenGrant","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_cloneToken","type":"address"},{"indexed":false,"name":"_snapshotBlock","type":"uint256"}],"name":"NewCloneToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"}]

606060405260408051908101604052600781527f4d4d545f302e3100000000000000000000000000000000000000000000000000602082015260049080516200004d9291602001906200021e565b506014600c5534156200005f57600080fd5b60405160208062002705833981016040528080519150505b806000806040805190810160405280601481526020017f47656e61726f204e6574776f726b20546f6b656e000000000000000000000000815250600960408051908101604052600381527f474e520000000000000000000000000000000000000000000000000000000000602082015260015b868686868686865b5b60008054600160a060020a03191633600160a060020a03161790555b600b805461010060a860020a031916610100600160a060020a038a16021790556001848051620001449291602001906200021e565b506002805460ff191660ff85161790556003828051620001699291602001906200021e565b5060058054600160a060020a031916600160a060020a0388161790556006859055600b805460ff1916821515179055436007555b5050600f8054600160a060020a03191633600160a060020a039081169190911791829055620001e596501693506001925050640100000000620001f5810262001c5a17049050565b5b505050505050505b50620002c8565b600160a060020a0382166000908152600e60205260409020805460ff19168215151790555b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200026157805160ff191683800117855562000291565b8280016001018555821562000291579182015b828111156200029157825182559160200191906001019062000274565b5b50620002a0929150620002a4565b5090565b620002c591905b80821115620002a05760008155600101620002ab565b5090565b90565b61242d80620002d86000396000f300606060405236156101845763ffffffff60e060020a600035041662e1986d811461022d57806302a72a4c1461026957806306fdde031461029a578063095ea7b3146103255780630f8f8b831461035b578063176345141461038c57806318160ddd146103b15780631f9a391c146103d657806323b872dd146103fc5780632c71e60a14610438578063313ce567146104a25780633cebb823146104cb5780634ee2cd7e146104ec57806354fd4d5014610520578063600e85b7146105ab5780636638c0871461061b5780636c182e99146106df57806370a082311461071a57806380a540011461074b578063827f32c01461077a57806395d89b41146107b0578063981b24d01461083b578063a9059cbb14610863578063bef97c8714610899578063c5bcc4f1146108c0578063cae9ca51146108e5578063d347c2051461095e578063d3ce77fe1461099b578063dd62ed3e146109d1578063e77772fe14610a08578063f41e60c514610a37578063f77c479114610a51578063fb13a70714610a80575b61022b5b60005461019d90600160a060020a0316610aa1565b15156101a857600080fd5b60008054600160a060020a03169063f48c305490349033906040516020015260405160e060020a63ffffffff8516028152600160a060020a0390911660048201526024016020604051808303818588803b151561020457600080fd5b6125ee5a03f1151561021557600080fd5b5050505060405180519050151561022857fe5b5b565b005b341561023857600080fd5b61022b600160a060020a03600435166024356001604060020a0360443581169060643581169060843516610ace565b005b341561027457600080fd5b610288600160a060020a0360043516610cfb565b60405190815260200160405180910390f35b34156102a557600080fd5b6102ad610d1a565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156102ea5780820151818401525b6020016102d1565b50505050905090810190601f1680156103175780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561033057600080fd5b610347600160a060020a0360043516602435610db8565b604051901515815260200160405180910390f35b341561036657600080fd5b610288600160a060020a0360043516610f1f565b60405190815260200160405180910390f35b341561039757600080fd5b610288610f33565b60405190815260200160405180910390f35b34156103bc57600080fd5b610288610f39565b60405190815260200160405180910390f35b34156103e157600080fd5b61022b600160a060020a03600435166024351515610f4a565b005b341561040757600080fd5b610347600160a060020a0360043581169060243516604435610f75565b604051901515815260200160405180910390f35b341561044357600080fd5b61045a600160a060020a0360043516602435610fa6565b604051600160a060020a03909516855260208501939093526001604060020a0391821660408086019190915290821660608501529116608083015260a0909101905180910390f35b34156104ad57600080fd5b6104b5611012565b60405160ff909116815260200160405180910390f35b34156104d657600080fd5b61022b600160a060020a036004351661101b565b005b34156104f757600080fd5b610288600160a060020a0360043516602435611056565b60405190815260200160405180910390f35b341561052b57600080fd5b6102ad61119c565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156102ea5780820151818401525b6020016102d1565b50505050905090810190601f1680156103175780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156105b657600080fd5b6105cd600160a060020a036004351660243561123a565b604051600160a060020a03909616865260208601949094526040808601939093526001604060020a039182166060860152811660808501529190911660a083015260c0909101905180910390f35b341561062657600080fd5b6106c360046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803560ff1690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052818152929190602084018383808284375094965050843594602001351515935061132d92505050565b604051600160a060020a03909116815260200160405180910390f35b34156106ea57600080fd5b6106fe600160a060020a036004351661155e565b6040516001604060020a03909116815260200160405180910390f35b341561072557600080fd5b610288600160a060020a03600435166115e2565b60405190815260200160405180910390f35b341561075657600080fd5b6106c36115f6565b604051600160a060020a03909116815260200160405180910390f35b341561078557600080fd5b610347600160a060020a0360043516602435611605565b604051901515815260200160405180910390f35b34156107bb57600080fd5b6102ad6116c3565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156102ea5780820151818401525b6020016102d1565b50505050905090810190601f1680156103175780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561084657600080fd5b610288600435611761565b60405190815260200160405180910390f35b341561086e57600080fd5b610347600160a060020a0360043516602435611859565b604051901515815260200160405180910390f35b34156108a457600080fd5b610347611888565b604051901515815260200160405180910390f35b34156108cb57600080fd5b610288611891565b60405190815260200160405180910390f35b34156108f057600080fd5b61034760048035600160a060020a03169060248035919060649060443590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061189795505050505050565b604051901515815260200160405180910390f35b341561096957600080fd5b610288600160a060020a03600435166001604060020a03602435166119ab565b60405190815260200160405180910390f35b34156109a657600080fd5b610347600160a060020a0360043516602435611ab0565b604051901515815260200160405180910390f35b34156109dc57600080fd5b610288600160a060020a0360043581169060243516611b68565b60405190815260200160405180910390f35b3415610a1357600080fd5b6106c3611b95565b604051600160a060020a03909116815260200160405180910390f35b3415610a4257600080fd5b61022b6004351515611ba9565b005b3415610a5c57600080fd5b6106c3611bd7565b604051600160a060020a03909116815260200160405180910390f35b3415610a8b57600080fd5b61022b600160a060020a0360043516611be6565b005b600080600160a060020a0383161515610abd5760009150610ac8565b823b90506000811191505b50919050565b610ad66122f2565b836001604060020a0316836001604060020a031610158015610b0a5750826001604060020a0316826001604060020a031610155b1515610b1557600080fd5b600c54610b2187610cfb565b1115610b2c57600080fd5b600160a060020a0333166000908152600e6020526040902054610b519060ff16611c4a565b60a06040519081016040908152600160a060020a03338116835260208084018990526001604060020a03808816848601528681166060860152881660808501529089166000908152600d9091522080549192509060018101610bb38382612320565b916000526020600020906003020160005b50829081518154600160a060020a031916600160a060020a03919091161781556020820151816001015560408201516002820180546001604060020a0319166001604060020a039290921691909117905560608201518160020160086101000a8154816001604060020a0302191690836001604060020a0316021790555060808201518160020160106101000a8154816001604060020a0302191690836001604060020a03160217905550505050610c84610c7f8787611859565b611c4a565b85600160a060020a031633600160a060020a03167f9e12d725ade130ef3f3727e13815b3fcf01a631419ce8142bafb0752a61121e8878686896040519384526001604060020a039283166020850152908216604080850191909152911660608301526080909101905180910390a35b505050505050565b600160a060020a0381166000908152600d60205260409020545b919050565b60018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610db05780601f10610d8557610100808354040283529160200191610db0565b820191906000526020600020905b815481529060010190602001808311610d9357829003601f168201915b505050505081565b600b5460009060ff161515610dcc57600080fd5b811580610dfc5750600160a060020a03338116600090815260096020908152604080832093871683529290522054155b1515610e0757600080fd5b600054610e1c90600160a060020a0316610aa1565b15610eb45760008054600160a060020a03169063da682aeb903390869086906040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b1515610e9157600080fd5b6102c65a03f11515610ea257600080fd5b505050604051805190501515610eb457fe5b5b600160a060020a03338116600081815260096020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b6000610f2b82426119ab565b90505b919050565b60075481565b6000610f4443611761565b90505b90565b600f5433600160a060020a03908116911614610f6557600080fd5b610f6f8282611c5a565b5b5b5050565b60008382610f8282610f1f565b811115610f8e57600080fd5b610f99868686611c83565b92505b5b50509392505050565b600d60205281600052604060002081815481101515610fc157fe5b906000526020600020906003020160005b5080546001820154600290920154600160a060020a0390911693509091506001604060020a0380821691604060020a8104821691608060020a9091041685565b60025460ff1681565b60005433600160a060020a0390811691161461103657600080fd5b60008054600160a060020a031916600160a060020a0383161790555b5b50565b600160a060020a03821660009081526008602052604081205415806110b65750600160a060020a03831660009081526008602052604081208054849290811061109b57fe5b906000526020600020900160005b50546001608060020a0316115b1561116c57600554600160a060020a03161561115f57600554600654600160a060020a0390911690634ee2cd7e9085906110f1908690611d1f565b60006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561113d57600080fd5b6102c65a03f1151561114e57600080fd5b505050604051805190509050610f19565b506000610f19565b610f19565b600160a060020a038316600090815260086020526040902061118e9083611d39565b9050610f19565b5b92915050565b60048054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610db05780601f10610d8557610100808354040283529160200191610db0565b820191906000526020600020905b815481529060010190602001808311610d9357829003601f168201915b505050505081565b600160a060020a0382166000908152600d6020526040812080548291829182918291829182918990811061126a57fe5b906000526020600020906003020160005b50805460018201546002830154600160a060020a03909216995097506001604060020a03608060020a8204811696508082169550604060020a909104169250905061131f8160a060405190810160409081528254600160a060020a03168252600183015460208301526002909201546001604060020a0380821693830193909352604060020a810483166060830152608060020a9004909116608082015242611e93565b94505b509295509295509295565b6000804384111561133c574393505b600b546101009004600160a060020a0316635b7b72c130868a8a8a8960006040516020015260405160e060020a63ffffffff8916028152600160a060020a038716600482019081526024820187905260ff8516606483015282151560a483015260c0604483019081529091608481019060c40187818151815260200191508051906020019080838360005b838110156113e05780820151818401525b6020016113c7565b50505050905090810190601f16801561140d5780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b838110156114445780820151818401525b60200161142b565b50505050905090810190601f1680156114715780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b151561149557600080fd5b6102c65a03f115156114a657600080fd5b5050506040518051915050600160a060020a038116633cebb8233360405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b15156114ff57600080fd5b6102c65a03f1151561151057600080fd5b50505080600160a060020a03167f086c875b377f900b07ce03575813022f05dd10ed7640b5282cf6d3c3fc352ade8560405190815260200160405180910390a28091505b5095945050505050565b4260008061156b84610cfb565b9150600090505b818110156115da57600160a060020a0384166000908152600d6020526040902080546115cf9190839081106115a357fe5b906000526020600020906003020160005b5060020154604060020a90046001604060020a031684611edf565b92505b600101611572565b5b5050919050565b6000610f2b8243611056565b90505b919050565b600554600160a060020a031681565b600080548190819033600160a060020a0390811691161461162557600080fd5b611630600a43611d39565b91508382018290101561163f57fe5b61164c600a858401611f0c565b611655856115e2565b90508381018190101561166457fe5b600160a060020a038516600090815260086020526040902061168890828601611f0c565b84600160a060020a031660006000805160206123e28339815191528660405190815260200160405180910390a3600192505b5b505092915050565b60038054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610db05780601f10610d8557610100808354040283529160200191610db0565b820191906000526020600020905b815481529060010190602001808311610d9357829003601f168201915b505050505081565b600a54600090158061179a575081600a600081548110151561177f57fe5b906000526020600020900160005b50546001608060020a0316115b1561184157600554600160a060020a03161561183457600554600654600160a060020a039091169063981b24d0906117d3908590611d1f565b60006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561181257600080fd5b6102c65a03f1151561182357600080fd5b505050604051805190509050610d15565b506000610d15565b610d15565b61184c600a83611d39565b9050610d15565b5b919050565b6000338261186682610f1f565b81111561187257600080fd5b61187c8585611fec565b92505b5b505092915050565b600b5460ff1681565b60065481565b60006118a38484610db8565b5083600160a060020a0316638f4ffcb1338530866040518563ffffffff1660e060020a0281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561193d5780820151818401525b602001611924565b50505050905090810190601f16801561196a5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b151561198b57600080fd5b6102c65a03f1151561199c57600080fd5b505050600190505b9392505050565b6000806000806119ba86610cfb565b92508215156119d3576119cc866115e2565b9350611aa7565b5060009050805b82811015611a9257600160a060020a0386166000908152600d602052604090208054611a87918491611a82919085908110611a1157fe5b906000526020600020906003020160005b5060a060405190810160409081528254600160a060020a03168252600183015460208301526002909201546001604060020a0380821693830193909352604060020a810483166060830152608060020a9004909116608082015288612014565b612036565b91505b6001016119da565b611aa4611a9e876115e2565b8361205e565b93505b50505092915050565b600080548190819033600160a060020a03908116911614611ad057600080fd5b611adb600a43611d39565b915083821015611ae757fe5b611af4600a858403611f0c565b611afd856115e2565b905083811015611b0957fe5b600160a060020a0385166000908152600860205260409020611b2d90858303611f0c565b600085600160a060020a03166000805160206123e28339815191528660405190815260200160405180910390a3600192505b5b505092915050565b600160a060020a038083166000908152600960209081526040808320938516835292905220545b92915050565b600b546101009004600160a060020a031681565b60005433600160a060020a03908116911614611bc457600080fd5b600b805460ff19168215151790555b5b50565b600054600160a060020a031681565b600f5433600160a060020a03908116911614611c0157600080fd5b600f54611c1890600160a060020a03166000611c5a565b600f8054600160a060020a031916600160a060020a03838116919091179182905561105291166001611c5a565b5b5b50565b80151561105257600080fd5b5b50565b600160a060020a0382166000908152600e60205260409020805460ff19168215151790555b5050565b6000805433600160a060020a03908116911614611d0a57600b5460ff161515611cab57600080fd5b600160a060020a038085166000908152600960209081526040808320339094168352929052205482901015611cdc57fe5b600160a060020a03808516600090815260096020908152604080832033909416835292905220805483900390555b611d15848484612077565b90505b9392505050565b6000818310611d2e5781611d30565b825b90505b92915050565b600080600080858054905060001415611d555760009350611aa7565b855486906000198101908110611d6757fe5b906000526020600020900160005b50546001608060020a03168510611dbf57855486906000198101908110611d9857fe5b906000526020600020900160005b5054608060020a90046001608060020a03169350611aa7565b856000815481101515611dce57fe5b906000526020600020900160005b50546001608060020a0316851015611df75760009350611aa7565b8554600093506000190191505b82821115611e595760026001838501015b049050848682815481101515611e2757fe5b906000526020600020900160005b50546001608060020a031611611e4d57809250611e54565b6001810391505b611e04565b8583815481101515611e6757fe5b906000526020600020900160005b5054608060020a90046001608060020a031693505b50505092915050565b6000611d308360200151836001604060020a031685608001516001604060020a031686604001516001604060020a031687606001516001604060020a0316612229565b90505b92915050565b6000816001604060020a0316836001604060020a03161015611d2e5781611d30565b825b90505b92915050565b815460009081901580611f4957508354439085906000198101908110611f2e57fe5b906000526020600020900160005b50546001608060020a0316105b15611fa95783548490611f5f8260018301612352565b81548110611f6957fe5b906000526020600020900160005b5080546001608060020a03858116608060020a024382166001608060020a031990931692909217161781559150611fe5565b835484906000198101908110611fbb57fe5b906000526020600020900160005b5080546001608060020a03808616608060020a02911617815590505b5b50505050565b600b5460009060ff16151561200057600080fd5b611d30338484612077565b90505b92915050565b6000611d3083602001516120288585611e93565b61205e565b90505b92915050565b6000828201612053848210801590610c7f5750838210155b611c4a565b8091505b5092915050565b600061206c83831115611c4a565b508082035b92915050565b6000808083151561208b5760019250610f9c565b600085600160a060020a03161180156120b6575030600160a060020a031685600160a060020a031614155b15156120c157600080fd5b6120cb8643611056565b9150838210156120d757fe5b6000546120ec90600160a060020a0316610aa1565b156121845760008054600160a060020a031690634a393149908890889088906040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b151561216157600080fd5b6102c65a03f1151561217257600080fd5b50505060405180519050151561218457fe5b5b600160a060020a03861660009081526008602052604090206121a990858403611f0c565b6121b38543611056565b9050838101819010156121c257fe5b600160a060020a03851660009081526008602052604090206121e690828601611f0c565b84600160a060020a031686600160a060020a03166000805160206123e28339815191528660405190815260200160405180910390a3600192505b50509392505050565b6000808386101561223d5760009150611554565b82861061224c57869150611554565b6122716122628861225d898961205e565b612281565b61226c858861205e565b6122b0565b90508091505b5095945050505050565b6000828202612053841580610c7f575083858381151561229d57fe5b04145b611c4a565b8091505b5092915050565b6000806122bf60008411611c4a565b82848115156122ca57fe5b04905061205383858115156122db57fe5b06828502018514611c4a565b8091505b5092915050565b60a0604051908101604090815260008083526020830181905290820181905260608201819052608082015290565b81548183558181151161234c5760030281600302836000526020600020918201910161234c919061237c565b5b505050565b81548183558181151161234c5760008381526020902061234c9181019083016123c0565b5b505050565b610f4791905b808211156123b9578054600160a060020a031916815560006001820155600281018054600160c060020a0319169055600301612382565b5090565b90565b610f4791905b808211156123b957600081556001016123c6565b5090565b905600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a723058202b78139d0e7f422ccee5887173069190d0e9e785005eb4c5c833b09ba7cc76a30029000000000000000000000000af5b37a3f0947c5eee60909ef0b60d1caf54b971

Deployed Bytecode

0x606060405236156101845763ffffffff60e060020a600035041662e1986d811461022d57806302a72a4c1461026957806306fdde031461029a578063095ea7b3146103255780630f8f8b831461035b578063176345141461038c57806318160ddd146103b15780631f9a391c146103d657806323b872dd146103fc5780632c71e60a14610438578063313ce567146104a25780633cebb823146104cb5780634ee2cd7e146104ec57806354fd4d5014610520578063600e85b7146105ab5780636638c0871461061b5780636c182e99146106df57806370a082311461071a57806380a540011461074b578063827f32c01461077a57806395d89b41146107b0578063981b24d01461083b578063a9059cbb14610863578063bef97c8714610899578063c5bcc4f1146108c0578063cae9ca51146108e5578063d347c2051461095e578063d3ce77fe1461099b578063dd62ed3e146109d1578063e77772fe14610a08578063f41e60c514610a37578063f77c479114610a51578063fb13a70714610a80575b61022b5b60005461019d90600160a060020a0316610aa1565b15156101a857600080fd5b60008054600160a060020a03169063f48c305490349033906040516020015260405160e060020a63ffffffff8516028152600160a060020a0390911660048201526024016020604051808303818588803b151561020457600080fd5b6125ee5a03f1151561021557600080fd5b5050505060405180519050151561022857fe5b5b565b005b341561023857600080fd5b61022b600160a060020a03600435166024356001604060020a0360443581169060643581169060843516610ace565b005b341561027457600080fd5b610288600160a060020a0360043516610cfb565b60405190815260200160405180910390f35b34156102a557600080fd5b6102ad610d1a565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156102ea5780820151818401525b6020016102d1565b50505050905090810190601f1680156103175780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561033057600080fd5b610347600160a060020a0360043516602435610db8565b604051901515815260200160405180910390f35b341561036657600080fd5b610288600160a060020a0360043516610f1f565b60405190815260200160405180910390f35b341561039757600080fd5b610288610f33565b60405190815260200160405180910390f35b34156103bc57600080fd5b610288610f39565b60405190815260200160405180910390f35b34156103e157600080fd5b61022b600160a060020a03600435166024351515610f4a565b005b341561040757600080fd5b610347600160a060020a0360043581169060243516604435610f75565b604051901515815260200160405180910390f35b341561044357600080fd5b61045a600160a060020a0360043516602435610fa6565b604051600160a060020a03909516855260208501939093526001604060020a0391821660408086019190915290821660608501529116608083015260a0909101905180910390f35b34156104ad57600080fd5b6104b5611012565b60405160ff909116815260200160405180910390f35b34156104d657600080fd5b61022b600160a060020a036004351661101b565b005b34156104f757600080fd5b610288600160a060020a0360043516602435611056565b60405190815260200160405180910390f35b341561052b57600080fd5b6102ad61119c565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156102ea5780820151818401525b6020016102d1565b50505050905090810190601f1680156103175780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156105b657600080fd5b6105cd600160a060020a036004351660243561123a565b604051600160a060020a03909616865260208601949094526040808601939093526001604060020a039182166060860152811660808501529190911660a083015260c0909101905180910390f35b341561062657600080fd5b6106c360046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803560ff1690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052818152929190602084018383808284375094965050843594602001351515935061132d92505050565b604051600160a060020a03909116815260200160405180910390f35b34156106ea57600080fd5b6106fe600160a060020a036004351661155e565b6040516001604060020a03909116815260200160405180910390f35b341561072557600080fd5b610288600160a060020a03600435166115e2565b60405190815260200160405180910390f35b341561075657600080fd5b6106c36115f6565b604051600160a060020a03909116815260200160405180910390f35b341561078557600080fd5b610347600160a060020a0360043516602435611605565b604051901515815260200160405180910390f35b34156107bb57600080fd5b6102ad6116c3565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156102ea5780820151818401525b6020016102d1565b50505050905090810190601f1680156103175780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561084657600080fd5b610288600435611761565b60405190815260200160405180910390f35b341561086e57600080fd5b610347600160a060020a0360043516602435611859565b604051901515815260200160405180910390f35b34156108a457600080fd5b610347611888565b604051901515815260200160405180910390f35b34156108cb57600080fd5b610288611891565b60405190815260200160405180910390f35b34156108f057600080fd5b61034760048035600160a060020a03169060248035919060649060443590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061189795505050505050565b604051901515815260200160405180910390f35b341561096957600080fd5b610288600160a060020a03600435166001604060020a03602435166119ab565b60405190815260200160405180910390f35b34156109a657600080fd5b610347600160a060020a0360043516602435611ab0565b604051901515815260200160405180910390f35b34156109dc57600080fd5b610288600160a060020a0360043581169060243516611b68565b60405190815260200160405180910390f35b3415610a1357600080fd5b6106c3611b95565b604051600160a060020a03909116815260200160405180910390f35b3415610a4257600080fd5b61022b6004351515611ba9565b005b3415610a5c57600080fd5b6106c3611bd7565b604051600160a060020a03909116815260200160405180910390f35b3415610a8b57600080fd5b61022b600160a060020a0360043516611be6565b005b600080600160a060020a0383161515610abd5760009150610ac8565b823b90506000811191505b50919050565b610ad66122f2565b836001604060020a0316836001604060020a031610158015610b0a5750826001604060020a0316826001604060020a031610155b1515610b1557600080fd5b600c54610b2187610cfb565b1115610b2c57600080fd5b600160a060020a0333166000908152600e6020526040902054610b519060ff16611c4a565b60a06040519081016040908152600160a060020a03338116835260208084018990526001604060020a03808816848601528681166060860152881660808501529089166000908152600d9091522080549192509060018101610bb38382612320565b916000526020600020906003020160005b50829081518154600160a060020a031916600160a060020a03919091161781556020820151816001015560408201516002820180546001604060020a0319166001604060020a039290921691909117905560608201518160020160086101000a8154816001604060020a0302191690836001604060020a0316021790555060808201518160020160106101000a8154816001604060020a0302191690836001604060020a03160217905550505050610c84610c7f8787611859565b611c4a565b85600160a060020a031633600160a060020a03167f9e12d725ade130ef3f3727e13815b3fcf01a631419ce8142bafb0752a61121e8878686896040519384526001604060020a039283166020850152908216604080850191909152911660608301526080909101905180910390a35b505050505050565b600160a060020a0381166000908152600d60205260409020545b919050565b60018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610db05780601f10610d8557610100808354040283529160200191610db0565b820191906000526020600020905b815481529060010190602001808311610d9357829003601f168201915b505050505081565b600b5460009060ff161515610dcc57600080fd5b811580610dfc5750600160a060020a03338116600090815260096020908152604080832093871683529290522054155b1515610e0757600080fd5b600054610e1c90600160a060020a0316610aa1565b15610eb45760008054600160a060020a03169063da682aeb903390869086906040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b1515610e9157600080fd5b6102c65a03f11515610ea257600080fd5b505050604051805190501515610eb457fe5b5b600160a060020a03338116600081815260096020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b6000610f2b82426119ab565b90505b919050565b60075481565b6000610f4443611761565b90505b90565b600f5433600160a060020a03908116911614610f6557600080fd5b610f6f8282611c5a565b5b5b5050565b60008382610f8282610f1f565b811115610f8e57600080fd5b610f99868686611c83565b92505b5b50509392505050565b600d60205281600052604060002081815481101515610fc157fe5b906000526020600020906003020160005b5080546001820154600290920154600160a060020a0390911693509091506001604060020a0380821691604060020a8104821691608060020a9091041685565b60025460ff1681565b60005433600160a060020a0390811691161461103657600080fd5b60008054600160a060020a031916600160a060020a0383161790555b5b50565b600160a060020a03821660009081526008602052604081205415806110b65750600160a060020a03831660009081526008602052604081208054849290811061109b57fe5b906000526020600020900160005b50546001608060020a0316115b1561116c57600554600160a060020a03161561115f57600554600654600160a060020a0390911690634ee2cd7e9085906110f1908690611d1f565b60006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561113d57600080fd5b6102c65a03f1151561114e57600080fd5b505050604051805190509050610f19565b506000610f19565b610f19565b600160a060020a038316600090815260086020526040902061118e9083611d39565b9050610f19565b5b92915050565b60048054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610db05780601f10610d8557610100808354040283529160200191610db0565b820191906000526020600020905b815481529060010190602001808311610d9357829003601f168201915b505050505081565b600160a060020a0382166000908152600d6020526040812080548291829182918291829182918990811061126a57fe5b906000526020600020906003020160005b50805460018201546002830154600160a060020a03909216995097506001604060020a03608060020a8204811696508082169550604060020a909104169250905061131f8160a060405190810160409081528254600160a060020a03168252600183015460208301526002909201546001604060020a0380821693830193909352604060020a810483166060830152608060020a9004909116608082015242611e93565b94505b509295509295509295565b6000804384111561133c574393505b600b546101009004600160a060020a0316635b7b72c130868a8a8a8960006040516020015260405160e060020a63ffffffff8916028152600160a060020a038716600482019081526024820187905260ff8516606483015282151560a483015260c0604483019081529091608481019060c40187818151815260200191508051906020019080838360005b838110156113e05780820151818401525b6020016113c7565b50505050905090810190601f16801561140d5780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b838110156114445780820151818401525b60200161142b565b50505050905090810190601f1680156114715780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b151561149557600080fd5b6102c65a03f115156114a657600080fd5b5050506040518051915050600160a060020a038116633cebb8233360405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b15156114ff57600080fd5b6102c65a03f1151561151057600080fd5b50505080600160a060020a03167f086c875b377f900b07ce03575813022f05dd10ed7640b5282cf6d3c3fc352ade8560405190815260200160405180910390a28091505b5095945050505050565b4260008061156b84610cfb565b9150600090505b818110156115da57600160a060020a0384166000908152600d6020526040902080546115cf9190839081106115a357fe5b906000526020600020906003020160005b5060020154604060020a90046001604060020a031684611edf565b92505b600101611572565b5b5050919050565b6000610f2b8243611056565b90505b919050565b600554600160a060020a031681565b600080548190819033600160a060020a0390811691161461162557600080fd5b611630600a43611d39565b91508382018290101561163f57fe5b61164c600a858401611f0c565b611655856115e2565b90508381018190101561166457fe5b600160a060020a038516600090815260086020526040902061168890828601611f0c565b84600160a060020a031660006000805160206123e28339815191528660405190815260200160405180910390a3600192505b5b505092915050565b60038054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610db05780601f10610d8557610100808354040283529160200191610db0565b820191906000526020600020905b815481529060010190602001808311610d9357829003601f168201915b505050505081565b600a54600090158061179a575081600a600081548110151561177f57fe5b906000526020600020900160005b50546001608060020a0316115b1561184157600554600160a060020a03161561183457600554600654600160a060020a039091169063981b24d0906117d3908590611d1f565b60006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561181257600080fd5b6102c65a03f1151561182357600080fd5b505050604051805190509050610d15565b506000610d15565b610d15565b61184c600a83611d39565b9050610d15565b5b919050565b6000338261186682610f1f565b81111561187257600080fd5b61187c8585611fec565b92505b5b505092915050565b600b5460ff1681565b60065481565b60006118a38484610db8565b5083600160a060020a0316638f4ffcb1338530866040518563ffffffff1660e060020a0281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561193d5780820151818401525b602001611924565b50505050905090810190601f16801561196a5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b151561198b57600080fd5b6102c65a03f1151561199c57600080fd5b505050600190505b9392505050565b6000806000806119ba86610cfb565b92508215156119d3576119cc866115e2565b9350611aa7565b5060009050805b82811015611a9257600160a060020a0386166000908152600d602052604090208054611a87918491611a82919085908110611a1157fe5b906000526020600020906003020160005b5060a060405190810160409081528254600160a060020a03168252600183015460208301526002909201546001604060020a0380821693830193909352604060020a810483166060830152608060020a9004909116608082015288612014565b612036565b91505b6001016119da565b611aa4611a9e876115e2565b8361205e565b93505b50505092915050565b600080548190819033600160a060020a03908116911614611ad057600080fd5b611adb600a43611d39565b915083821015611ae757fe5b611af4600a858403611f0c565b611afd856115e2565b905083811015611b0957fe5b600160a060020a0385166000908152600860205260409020611b2d90858303611f0c565b600085600160a060020a03166000805160206123e28339815191528660405190815260200160405180910390a3600192505b5b505092915050565b600160a060020a038083166000908152600960209081526040808320938516835292905220545b92915050565b600b546101009004600160a060020a031681565b60005433600160a060020a03908116911614611bc457600080fd5b600b805460ff19168215151790555b5b50565b600054600160a060020a031681565b600f5433600160a060020a03908116911614611c0157600080fd5b600f54611c1890600160a060020a03166000611c5a565b600f8054600160a060020a031916600160a060020a03838116919091179182905561105291166001611c5a565b5b5b50565b80151561105257600080fd5b5b50565b600160a060020a0382166000908152600e60205260409020805460ff19168215151790555b5050565b6000805433600160a060020a03908116911614611d0a57600b5460ff161515611cab57600080fd5b600160a060020a038085166000908152600960209081526040808320339094168352929052205482901015611cdc57fe5b600160a060020a03808516600090815260096020908152604080832033909416835292905220805483900390555b611d15848484612077565b90505b9392505050565b6000818310611d2e5781611d30565b825b90505b92915050565b600080600080858054905060001415611d555760009350611aa7565b855486906000198101908110611d6757fe5b906000526020600020900160005b50546001608060020a03168510611dbf57855486906000198101908110611d9857fe5b906000526020600020900160005b5054608060020a90046001608060020a03169350611aa7565b856000815481101515611dce57fe5b906000526020600020900160005b50546001608060020a0316851015611df75760009350611aa7565b8554600093506000190191505b82821115611e595760026001838501015b049050848682815481101515611e2757fe5b906000526020600020900160005b50546001608060020a031611611e4d57809250611e54565b6001810391505b611e04565b8583815481101515611e6757fe5b906000526020600020900160005b5054608060020a90046001608060020a031693505b50505092915050565b6000611d308360200151836001604060020a031685608001516001604060020a031686604001516001604060020a031687606001516001604060020a0316612229565b90505b92915050565b6000816001604060020a0316836001604060020a03161015611d2e5781611d30565b825b90505b92915050565b815460009081901580611f4957508354439085906000198101908110611f2e57fe5b906000526020600020900160005b50546001608060020a0316105b15611fa95783548490611f5f8260018301612352565b81548110611f6957fe5b906000526020600020900160005b5080546001608060020a03858116608060020a024382166001608060020a031990931692909217161781559150611fe5565b835484906000198101908110611fbb57fe5b906000526020600020900160005b5080546001608060020a03808616608060020a02911617815590505b5b50505050565b600b5460009060ff16151561200057600080fd5b611d30338484612077565b90505b92915050565b6000611d3083602001516120288585611e93565b61205e565b90505b92915050565b6000828201612053848210801590610c7f5750838210155b611c4a565b8091505b5092915050565b600061206c83831115611c4a565b508082035b92915050565b6000808083151561208b5760019250610f9c565b600085600160a060020a03161180156120b6575030600160a060020a031685600160a060020a031614155b15156120c157600080fd5b6120cb8643611056565b9150838210156120d757fe5b6000546120ec90600160a060020a0316610aa1565b156121845760008054600160a060020a031690634a393149908890889088906040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b151561216157600080fd5b6102c65a03f1151561217257600080fd5b50505060405180519050151561218457fe5b5b600160a060020a03861660009081526008602052604090206121a990858403611f0c565b6121b38543611056565b9050838101819010156121c257fe5b600160a060020a03851660009081526008602052604090206121e690828601611f0c565b84600160a060020a031686600160a060020a03166000805160206123e28339815191528660405190815260200160405180910390a3600192505b50509392505050565b6000808386101561223d5760009150611554565b82861061224c57869150611554565b6122716122628861225d898961205e565b612281565b61226c858861205e565b6122b0565b90508091505b5095945050505050565b6000828202612053841580610c7f575083858381151561229d57fe5b04145b611c4a565b8091505b5092915050565b6000806122bf60008411611c4a565b82848115156122ca57fe5b04905061205383858115156122db57fe5b06828502018514611c4a565b8091505b5092915050565b60a0604051908101604090815260008083526020830181905290820181905260608201819052608082015290565b81548183558181151161234c5760030281600302836000526020600020918201910161234c919061237c565b5b505050565b81548183558181151161234c5760008381526020902061234c9181019083016123c0565b5b505050565b610f4791905b808211156123b9578054600160a060020a031916815560006001820155600281018054600160c060020a0319169055600301612382565b5090565b90565b610f4791905b808211156123b957600081556001016123c6565b5090565b905600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a723058202b78139d0e7f422ccee5887173069190d0e9e785005eb4c5c833b09ba7cc76a30029

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000Af5b37a3F0947C5EeE60909Ef0b60D1cAf54b971

-----Decoded View---------------
Arg [0] : _tokenFactory (address): 0xAf5b37a3F0947C5EeE60909Ef0b60D1cAf54b971

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000Af5b37a3F0947C5EeE60909Ef0b60D1cAf54b971


Swarm Source

bzzr://2b78139d0e7f422ccee5887173069190d0e9e785005eb4c5c833b09ba7cc76a3

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.