ETH Price: $3,343.79 (-1.06%)

Token

WHEN Token (WHEN)
 

Overview

Max Total Supply

875,000,000 WHEN

Holders

21,140 (0.00%)

Market

Price

$0.00 @ 0.000000 ETH

Onchain Market Cap

$44,975.00

Circulating Supply Market Cap

$0.00

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
Gemini
Balance
3,000 WHEN

Value
$0.15 ( ~4.48592512211304E-05 Eth) [0.0003%]
0xd24400ae8bfebb18ca49be86258a3c749cf46853
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The WhenHub Interface Network (Patent Pending) is an ecosystem that uses blockchain-based smart contracts to create innovative ways in which independent workers and customers can connect for business transactions.

Market

Volume (24H):$0.49
Market Capitalization:$0.00
Circulating Supply:0.00 WHEN
Market Data Source: Coinmarketcap

ICO Information

ICO Start Date : Mar 19, 2018 
ICO End Date : Sep 19, 2018
Total Cap : $350,000,000
ICO Price  : 0.0005 ETH
Bonus : 5% - 10%
Country : USA

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
WHENToken

Compiler Version
v0.4.18+commit.9cf6e910

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2018-03-18
*/

pragma solidity ^0.4.18;

/************************************************** */
/* WhenHub Token Smart Contract                     */
/* Author: Nik Kalyani  [email protected]             */
/* Copyright (c) 2018 CalendarTree, Inc.            */
/* https://interface.whenhub.com                    */
/************************************************** */
contract WHENToken {
    using SafeMath for uint256;

    mapping(address => uint256) balances;                               // Token balance for each address
    mapping (address => mapping (address => uint256)) internal allowed; // Approval granted to transfer tokens by one address to another address

    /* ERC20 fields */
    string public name;
    string public symbol;
    uint public decimals = 18;
    string public sign = "₩";
    string public logoPng = "https://github.com/WhenHub/WHEN/raw/master/assets/when-token-icon.png";


    /* Each registered user on WhenHub Interface Network has a record in this contract */
    struct User {
        bool isRegistered;                                              // Flag to indicate user was registered 
        uint256 seedJiffys;                                             // Tracks free tokens granted to user       
        uint256 interfaceEscrowJiffys;                                  // Tracks escrow tokens used in Interfaces      
        address referrer;                                               // Tracks who referred this user
    }
 
    // IcoBurnAuthorized is used to determine when remaining ICO tokens should be burned
    struct IcoBurnAuthorized {
        bool contractOwner;                                              // Flag to indicate ContractOwner has authorized
        bool platformManager;                                            // Flag to indicate PlatformManager has authorized
        bool icoOwner;                                                   // Flag to indicate SupportManager has authorized
    }

    // PurchaseCredit is used to track purchases made by USD when user isn't already registered
    struct PurchaseCredit {
        uint256 jiffys;                                                  // Number of jiffys purchased
        uint256 purchaseTimestamp;                                       // Date/time of original purchase
    }

    mapping(address => PurchaseCredit) purchaseCredits;                  // Temporary store for USD-purchased tokens

    uint private constant ONE_WEEK = 604800;
    uint private constant SECONDS_IN_MONTH = 2629743;
    uint256 private constant ICO_START_TIMESTAMP = 1521471600; // 3/19/2018 08:00:00 PDT

    uint private constant BASIS_POINTS_TO_PERCENTAGE = 10000;                         // All fees are expressed in basis points. This makes conversion easier

    /* Token allocations per published WhenHub token economics */
    uint private constant ICO_TOKENS = 350000000;                              // Tokens available for public purchase
    uint private constant PLATFORM_TOKENS = 227500000;                         // Tokens available for network seeding
    uint private constant COMPANY_TOKENS = 262500000;                          // Tokens available to WhenHub for employees and future expansion
    uint private constant PARTNER_TOKENS = 17500000;                           // Tokens available for WhenHub partner inventives
    uint private constant FOUNDATION_TOKENS = 17500000;                        // Tokens available for WhenHub Foundationn charity

    /* Network seeding tokens */
    uint constant INCENTIVE_TOKENS = 150000000;                         // Total pool of seed tokens for incentives
    uint constant REFERRAL_TOKENS = 77500000;                           // Total pool of seed tokens for referral
    uint256 private userSignupJiffys = 0;                                // Number of Jiffys per user who signs up
    uint256 private referralSignupJiffys = 0;                            // Number of Jiffys per user(x2) referrer + referree
   
    uint256 private jiffysMultiplier;                                   // 10 ** decimals
    uint256 private incentiveJiffysBalance;                             // Available balance of Jiffys for incentives
    uint256 private referralJiffysBalance;                              // Available balance of Jiffys for referrals

    /* ICO variables */
    uint256 private bonus20EndTimestamp = 0;                             // End of 20% ICO token bonus timestamp
    uint256 private bonus10EndTimestamp = 0;                             // End of 10% ICO token bonus timestamp
    uint256 private bonus5EndTimestamp = 0;                              // End of 5% ICO token bonus timestamp
    uint private constant BUYER_REFERRER_BOUNTY = 3;                     // Referral bounty percentage

    IcoBurnAuthorized icoBurnAuthorized = IcoBurnAuthorized(false, false, false);

    /* Interface transaction settings */
    bool private operational = true;                                    // Blocks all state changes throughout the contract if false
                                                                        // Change using setOperatingStatus()

    uint256 public winNetworkFeeBasisPoints = 0;                       // Per transaction fee deducted from payment to Expert
                                                                        // Change using setWinNetworkFeeBasisPoints()

    uint256 public weiExchangeRate = 500000000000000;                  // Exchange rate for 1 WHEN Token in Wei ($0.25/₩)
                                                                        // Change using setWeiExchangeRate()

    uint256 public centsExchangeRate = 25;                             // Exchange rate for 1 WHEN Token in cents
                                                                        // Change using setCentsExchangeRate()

    /* State variables */
    address private contractOwner;                                      // Account used to deploy contract
    address private platformManager;                                    // Account used by API for Interface app
    address private icoOwner;                                           // Account from which ICO funds are disbursed
    address private supportManager;                                     // Account used by support team to reimburse users
    address private icoWallet;                                          // Account to which ICO ETH is sent

    mapping(address => User) private users;                             // All registered users   
    mapping(address => uint256) private vestingEscrows;                 // Unvested tokens held in escrow

    mapping(address => uint256) private authorizedContracts;            // Contracts authorized to call this one           

    address[] private registeredUserLookup;                             // Lookup table of registered users     

    /* ERC-20 Contract Events */
    event Approval          // Fired when an account authorizes another account to spend tokens on its behalf
                            (
                                address indexed owner, 
                                address indexed spender, 
                                uint256 value
                            );

    event Transfer          // Fired when tokens are transferred from one account to another
                            (
                                address indexed from, 
                                address indexed to, 
                                uint256 value
                            );


    /* Interface app-specific Events */
    event UserRegister      // Fired when a new user account (wallet) is registered
                            (
                                address indexed user, 
                                uint256 value,
                                uint256 seedJiffys
                            );                                 

    event UserRefer         // Fired when tokens are granted to a user for referring a new user
                            (
                                address indexed user, 
                                address indexed referrer, 
                                uint256 value
                            );                             

    event UserLink          // Fired when a previously existing user is linked to an account in the Interface DB
                            (
                                address indexed user
                            );


    /**
    * @dev Modifier that requires the "operational" boolean variable to be "true"
    *      This is used on all state changing functions to pause the contract in 
    *      the event there is an issue that needs to be fixed
    */
    modifier requireIsOperational() 
    {
        require(operational);
        _;
    }

    /**
    * @dev Modifier that requires the "ContractOwner" account to be the function caller
    */
    modifier requireContractOwner()
    {
        require(msg.sender == contractOwner);
        _;
    }

    /**
    * @dev Modifier that requires the "PlatformManager" account to be the function caller
    */
    modifier requirePlatformManager()
    {
        require(isPlatformManager(msg.sender));
        _;
    }


    /********************************************************************************************/
    /*                                       CONSTRUCTOR                                        */
    /********************************************************************************************/

    /**
    * @dev Contract constructor
    *
    * @param tokenName ERC-20 token name
    * @param tokenSymbol ERC-20 token symbol
    * @param platformAccount Account for making calls from Interface API (i.e. PlatformManager)
    * @param icoAccount Account that holds ICO tokens (i.e. IcoOwner)
    * @param supportAccount Account with limited access to manage Interface user support (i.e. SupportManager)
    *
    */
    function WHENToken
                            ( 
                                string tokenName, 
                                string tokenSymbol, 
                                address platformAccount, 
                                address icoAccount,
                                address supportAccount
                            ) 
                            public 
    {

        name = tokenName;
        symbol = tokenSymbol;

        jiffysMultiplier = 10 ** uint256(decimals);                             // Multiplier used throughout contract
        incentiveJiffysBalance = INCENTIVE_TOKENS.mul(jiffysMultiplier);        // Network seeding tokens
        referralJiffysBalance = REFERRAL_TOKENS.mul(jiffysMultiplier);          // User referral tokens


        contractOwner = msg.sender;                                     // Owner of the contract
        platformManager = platformAccount;                              // API account for Interface
        icoOwner = icoAccount;                                          // Account with ICO tokens for settling Interface transactions
        icoWallet = icoOwner;                                           // Account to which ICO ETH is sent
        supportManager = supportAccount;                                // Support account with limited permissions

                
        // Create user records for accounts
        users[contractOwner] = User(true, 0, 0, address(0));       
        registeredUserLookup.push(contractOwner);

        users[platformManager] = User(true, 0, 0, address(0));   
        registeredUserLookup.push(platformManager);

        users[icoOwner] = User(true, 0, 0, address(0));   
        registeredUserLookup.push(icoOwner);

        users[supportManager] = User(true, 0, 0, address(0));   
        registeredUserLookup.push(supportManager);

    }    

    /**
    * @dev Contract constructor
    *
    * Initialize is to be called immediately after the supporting contracts are deployed.
    *
    * @param dataContract Address of the deployed InterfaceData contract
    * @param appContract Address of the deployed InterfaceApp contract
    * @param vestingContract Address of the deployed TokenVesting contract
    *
    */
    function initialize
                            (
                                address dataContract,
                                address appContract,
                                address vestingContract
                            )
                            external
                            requireContractOwner
    {        
        require(bonus20EndTimestamp == 0);      // Ensures function cannot be called twice
        authorizeContract(dataContract);        // Authorizes InterfaceData contract to make calls to this contract
        authorizeContract(appContract);         // Authorizes InterfaceApp contract to make calls to this contract
        authorizeContract(vestingContract);     // Authorizes TokenVesting contract to make calls to this contract
        
        bonus20EndTimestamp = ICO_START_TIMESTAMP.add(ONE_WEEK);
        bonus10EndTimestamp = bonus20EndTimestamp.add(ONE_WEEK);
        bonus5EndTimestamp = bonus10EndTimestamp.add(ONE_WEEK);

        // ICO tokens are allocated without vesting to ICO account for distribution during sale
        balances[icoOwner] = ICO_TOKENS.mul(jiffysMultiplier);        

        // Platform tokens (a.k.a. network seeding tokens) are allocated without vesting
        balances[platformManager] = balances[platformManager].add(PLATFORM_TOKENS.mul(jiffysMultiplier));        

        // Allocate all other tokens to contract owner without vesting
        // These will be disbursed in initialize()
        balances[contractOwner] = balances[contractOwner].add((COMPANY_TOKENS + PARTNER_TOKENS + FOUNDATION_TOKENS).mul(jiffysMultiplier));

        userSignupJiffys = jiffysMultiplier.mul(500);       // Initial signup incentive
        referralSignupJiffys = jiffysMultiplier.mul(100);   // Initial referral incentive
       
    }

    /**
    * @dev Token allocations for various accounts
    *
    * Called from TokenVesting to grant tokens to each account
    *
    */
    function getTokenAllocations()
                                external
                                view
                                returns(uint256, uint256, uint256)
    {
        return (COMPANY_TOKENS.mul(jiffysMultiplier), PARTNER_TOKENS.mul(jiffysMultiplier), FOUNDATION_TOKENS.mul(jiffysMultiplier));
    }

    /********************************************************************************************/
    /*                                       ERC20 TOKEN                                        */
    /********************************************************************************************/

    /**
    * @dev Total supply of tokens
    */
    function totalSupply() 
                            external 
                            view 
                            returns (uint) 
    {
        uint256 total = ICO_TOKENS.add(PLATFORM_TOKENS).add(COMPANY_TOKENS).add(PARTNER_TOKENS).add(FOUNDATION_TOKENS);
        return total.mul(jiffysMultiplier);
    }

    /**
    * @dev Gets the balance of the calling address.
    *
    * @return An uint256 representing the amount owned by the calling address
    */
    function balance()
                            public 
                            view 
                            returns (uint256) 
    {
        return balanceOf(msg.sender);
    }

    /**
    * @dev Gets the balance of the specified address.
    *
    * @param owner The address to query the balance of
    * @return An uint256 representing the amount owned by the passed address
    */
    function balanceOf
                            (
                                address owner
                            ) 
                            public 
                            view 
                            returns (uint256) 
    {
        return balances[owner];
    }

    /**
    * @dev Transfers token for a specified address
    *
    * Constraints are added to ensure that tokens granted for network
    * seeding and tokens in escrow are not transferable
    *
    * @param to The address to transfer to.
    * @param value The amount to be transferred.
    * @return A bool indicating if the transfer was successful.
    */
    function transfer
                            (
                                address to, 
                                uint256 value
                            ) 
                            public 
                            requireIsOperational 
                            returns (bool) 
    {
        require(to != address(0));
        require(to != msg.sender);
        require(value <= transferableBalanceOf(msg.sender));                                         

        balances[msg.sender] = balances[msg.sender].sub(value);
        balances[to] = balances[to].add(value);
        Transfer(msg.sender, to, value);
        return true;
    }

    /**
    * @dev Transfers tokens from one address to another
    *
    * Constraints are added to ensure that tokens granted for network
    * seeding and tokens in escrow are not transferable
    *
    * @param from address The address which you want to send tokens from
    * @param to address The address which you want to transfer to
    * @param value uint256 the amount of tokens to be transferred
    * @return A bool indicating if the transfer was successful.
    */
    function transferFrom
                            (
                                address from, 
                                address to, 
                                uint256 value
                            ) 
                            public 
                            requireIsOperational 
                            returns (bool) 
    {
        require(from != address(0));
        require(value <= allowed[from][msg.sender]);
        require(value <= transferableBalanceOf(from));                                         
        require(to != address(0));
        require(from != to);

        balances[from] = balances[from].sub(value);
        balances[to] = balances[to].add(value);
        allowed[from][msg.sender] = allowed[from][msg.sender].sub(value);
        Transfer(from, to, value);
        return true;
    }

    /**
    * @dev Checks the amount of tokens that an owner allowed to a spender.
    *
    * @param owner address The address which owns the funds.
    * @param spender address The address which will spend the funds.
    * @return A uint256 specifying the amount of tokens still available for the spender.
    */
    function allowance
                            (
                                address owner, 
                                address spender
                            ) 
                            public 
                            view 
                            returns (uint256) 
    {
        return allowed[owner][spender];
    }

    /**
    * @dev Approves the passed address to spend the specified amount of tokens on behalf of msg.sender.
    *
    * Beware that changing an allowance with this method brings the risk that someone may use both the old
    * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
    * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:
    * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
    * @param spender The address which will spend the funds.
    * @param value The amount of tokens to be spent.
    * @return A bool indicating success (always returns true)
    */
    function approve
                            (
                                address spender, 
                                uint256 value
                            ) 
                            public 
                            requireIsOperational 
                            returns (bool) 
    {
        allowed[msg.sender][spender] = value;
        Approval(msg.sender, spender, value);
        return true;
    }

    /**
    * @dev Gets the balance of the specified address less greater of escrow tokens and free signup tokens.
    *
    * @param account The address to query the the balance of.
    * @return An uint256 representing the transferable amount owned by the passed address.
    */
    function transferableBalanceOf
                            (
                                address account
                            ) 
                            public 
                            view 
                            returns (uint256) 
    {
        require(account != address(0));

        if (users[account].isRegistered) {
            uint256 restrictedJiffys = users[account].interfaceEscrowJiffys >= users[account].seedJiffys ? users[account].interfaceEscrowJiffys : users[account].seedJiffys;
            return balances[account].sub(restrictedJiffys);
        }
        return balances[account];
    }

   /**
    * @dev Gets the balance of the specified address less escrow tokens
    *
    * Since seed tokens can be used to pay for Interface transactions
    * this balance indicates what the user can afford to spend for such
    * "internal" transactions ignoring distinction between paid and signup tokens
    *
    * @param account The address to query the balance of.
    * @return An uint256 representing the spendable amount owned by the passed address.
    */ 
    function spendableBalanceOf
                            (
                                address account
                            ) 
                            public 
                            view 
                            returns(uint256) 
    {

        require(account != address(0));

        if (users[account].isRegistered) {
            return balances[account].sub(users[account].interfaceEscrowJiffys);
        }
        return balances[account];
    }

    /********************************************************************************************/
    /*                                  WHENHUB INTERFACE                                       */
    /********************************************************************************************/


   /**
    * @dev Get operating status of contract
    *
    * @return A bool that is the current operating status
    */      
    function isOperational() 
                            public 
                            view 
                            returns(bool) 
    {
        return operational;
    }

   /**
    * @dev Sets contract operations on/off
    *
    * When operational mode is disabled, all write transactions except for this
    * one will fail
    * @return A bool that is the new operational mode
    */    
    function setOperatingStatus
                            (
                                bool mode
                            ) 
                            external
                            requireContractOwner 
    {
        operational = mode;
    }

   /**
    * @dev Authorizes ICO end and burn of remaining tokens
    *
    * ContractOwner, PlatformManager and IcoOwner must each call this function
    * in any order. The third entity calling the function will cause the
    * icoOwner account balance to be reset to 0.
    */ 
    function authorizeIcoBurn() 
                            external
    {
        require(balances[icoOwner] > 0);
        require((msg.sender == contractOwner) || (msg.sender == platformManager) || (msg.sender == icoOwner));

        if (msg.sender == contractOwner) {
            icoBurnAuthorized.contractOwner = true;
        } else if (msg.sender == platformManager) {
            icoBurnAuthorized.platformManager = true;
        } else if (msg.sender == icoOwner) {
            icoBurnAuthorized.icoOwner = true;
        }

        if (icoBurnAuthorized.contractOwner && icoBurnAuthorized.platformManager && icoBurnAuthorized.icoOwner) {
            balances[icoOwner] = 0;
        }
    }

   /**
    * @dev Sets fee used in Interface transactions
    *
    * A network fee is charged for each transaction represented
    * as a percentage of the total fee payable to Experts. This fee
    * is deducted from the amount paid by Callers to Experts.
    * @param basisPoints The fee percentage expressed as basis points
    */    
    function setWinNetworkFee
                            (
                                uint256 basisPoints
                            ) 
                            external 
                            requireIsOperational 
                            requireContractOwner
    {
        require(basisPoints >= 0);

        winNetworkFeeBasisPoints = basisPoints;
    }

    /**
    * @dev Sets signup tokens allocated for each user (based on availability)
    *
    * @param tokens The number of tokens each user gets
    */    
    function setUserSignupTokens
                            (
                                uint256 tokens
                            ) 
                            external 
                            requireIsOperational 
                            requireContractOwner
    {
        require(tokens <= 10000);

        userSignupJiffys = jiffysMultiplier.mul(tokens);
    }

    /**
    * @dev Sets signup tokens allocated for each user (based on availability)
    *
    * @param tokens The number of tokens each referrer and referree get
    */    
    function setReferralSignupTokens
                            (
                                uint256 tokens
                            ) 
                            external 
                            requireIsOperational 
                            requireContractOwner
    {
        require(tokens <= 10000);

        referralSignupJiffys = jiffysMultiplier.mul(tokens);
    }

    /**
    * @dev Sets wallet to which ICO ETH funds are sent
    *
    * @param account The address to which ETH funds are sent
    */    
    function setIcoWallet
                            (
                                address account
                            ) 
                            external 
                            requireIsOperational 
                            requireContractOwner
    {
        require(account != address(0));

        icoWallet = account;
    }

    /**
    * @dev Authorizes a smart contract to call this contract
    *
    * @param account Address of the calling smart contract
    */
    function authorizeContract
                            (
                                address account
                            ) 
                            public 
                            requireIsOperational 
                            requireContractOwner
    {
        require(account != address(0));

        authorizedContracts[account] = 1;
    }

    /**
    * @dev Deauthorizes a previously authorized smart contract from calling this contract
    *
    * @param account Address of the calling smart contract
    */
    function deauthorizeContract
                            (
                                address account
                            ) 
                            external 
                            requireIsOperational
                            requireContractOwner 
    {
        require(account != address(0));

        delete authorizedContracts[account];
    }

    /**
    * @dev Checks if a contract is authorized to call this contract
    *
    * @param account Address of the calling smart contract
    */
    function isContractAuthorized
                            (
                                address account
                            ) 
                            public 
                            view
                            returns(bool) 
    {
        return authorizedContracts[account] == 1;
    }

    /**
    * @dev Sets the Wei to WHEN exchange rate 
    *
    * @param rate Number of Wei for one WHEN token
    */
    function setWeiExchangeRate
                            (
                                uint256 rate
                            ) 
                            external 
                            requireIsOperational
                            requireContractOwner
    {
        require(rate >= 0); // Cannot set to less than 0.0001 ETH/₩

        weiExchangeRate = rate;
    }

    /**
    * @dev Sets the U.S. cents to WHEN exchange rate 
    *
    * @param rate Number of cents for one WHEN token
    */
    function setCentsExchangeRate
                            (
                                uint256 rate
                            ) 
                            external 
                            requireIsOperational
                            requireContractOwner
    {
        require(rate >= 1);

        centsExchangeRate = rate;
    }

    /**
    * @dev Sets the account that will be used for Platform Manager functions 
    *
    * @param account Account to replace existing Platform Manager
    */
    function setPlatformManager
                            (
                                address account
                            ) 
                            external 
                            requireIsOperational
                            requireContractOwner
    {
        require(account != address(0));
        require(account != platformManager);

        balances[account] = balances[account].add(balances[platformManager]);
        balances[platformManager] = 0;

        if (!users[account].isRegistered) {
            users[account] = User(true, 0, 0, address(0)); 
            registeredUserLookup.push(account);
        }

        platformManager = account; 
    }

    /**
    * @dev Checks if an account is the PlatformManager 
    *
    * @param account Account to check
    */
    function isPlatformManager
                            (
                                address account
                            ) 
                            public
                            view 
                            returns(bool) 
    {
        return account == platformManager;
    }

    /**
    * @dev Checks if an account is the PlatformManager or SupportManager
    *
    * @param account Account to check
    */
    function isPlatformOrSupportManager
                            (
                                address account
                            ) 
                            public
                            view 
                            returns(bool) 
    {
        return (account == platformManager) || (account == supportManager);
    }

    /**
    * @dev Gets address of SupportManager
    *
    */
    function getSupportManager()
                            public
                            view 
                            returns(address) 
    {
        return supportManager;
    }


    /**
    * @dev Checks if referral tokens are available
    *
    * referralSignupTokens is doubled because both referrer
    * and recipient get referral tokens
    *
    * @return A bool indicating if referral tokens are available
    */    
    function isReferralSupported() 
                            public 
                            view 
                            returns(bool) 
    {
        uint256 requiredJiffys = referralSignupJiffys.mul(2);
        return (referralJiffysBalance >= requiredJiffys) && (balances[platformManager] >= requiredJiffys);
    }

    /**
    * @dev Checks if user is a registered user
    *
    * @param account The address which owns the funds.
    * @return A bool indicating if user is a registered user.
    */
    function isUserRegistered
                            (
                                address account
                            ) 
                            public 
                            view 
                            returns(bool) 
    {
        return (account != address(0)) && users[account].isRegistered;
    }

    /**
    * @dev Checks pre-reqs and handles user registration
    *
    * @param account The address which is to be registered
    * @param creditAccount The address which contains token credits from CC purchase
    * @param referrer The address referred the account
    */
    function processRegisterUser
                            (
                                address account, 
                                address creditAccount,
                                address referrer
                            ) 
                            private
    {
        require(account != address(0));                                             // No invalid account
        require(!users[account].isRegistered);                                      // No double registration
        require(referrer == address(0) ? true : users[referrer].isRegistered);      // Referrer, if present, must be a registered user
        require(referrer != account);                                               // User can't refer her/himself

        // Initialize user with restricted jiffys
        users[account] = User(true, 0, 0, referrer);
        registeredUserLookup.push(account);


        if (purchaseCredits[creditAccount].jiffys > 0) {
            processPurchase(creditAccount, account, purchaseCredits[creditAccount].jiffys, purchaseCredits[creditAccount].purchaseTimestamp);
            purchaseCredits[creditAccount].jiffys = 0;
            delete purchaseCredits[creditAccount];
        }

    }

    /**
    * @dev Registers a user wallet with a referrer and deposits any applicable signup tokens
    *
    * @param account The wallet address
    * @param creditAccount The address containing any tokens purchased with USD
    * @param referrer The referring user address
    * @return A uint256 with the user's token balance
    */ 
    function registerUser
                            (
                                address account, 
                                address creditAccount,
                                address referrer
                            ) 
                            public 
                            requireIsOperational 
                            requirePlatformManager 
                            returns(uint256) 
    {
                                    
        processRegisterUser(account, creditAccount, referrer);
        UserRegister(account, balanceOf(account), 0);          // Fire event

        return balanceOf(account);
    }

    /**
    * @dev Registers a user wallet with a referrer and deposits any applicable bonus tokens
    *
    * @param account The wallet address
    * @param creditAccount The address containing any tokens purchased with USD
    * @param referrer The referring user address
    * @return A uint256 with the user's token balance
    */
    function registerUserBonus
                            (
                                address account, 
                                address creditAccount,
                                address referrer
                            ) 
                            external 
                            requireIsOperational 
                            requirePlatformManager 
                            returns(uint256) 
    {
        
        processRegisterUser(account, creditAccount, referrer);

        
        // Allocate if there are any remaining signup tokens
        uint256 jiffys = 0;
        if ((incentiveJiffysBalance >= userSignupJiffys) && (balances[platformManager] >= userSignupJiffys)) {
            incentiveJiffysBalance = incentiveJiffysBalance.sub(userSignupJiffys);
            users[account].seedJiffys = users[account].seedJiffys.add(userSignupJiffys);
            transfer(account, userSignupJiffys);
            jiffys = userSignupJiffys;
        }

        UserRegister(account, balanceOf(account), jiffys);          // Fire event

       // Allocate referral tokens for both user and referrer if available       
       if ((referrer != address(0)) && isReferralSupported()) {
            referralJiffysBalance = referralJiffysBalance.sub(referralSignupJiffys.mul(2));

            // Referal tokens are restricted so it is necessary to update user's account
            transfer(referrer, referralSignupJiffys);
            users[referrer].seedJiffys = users[referrer].seedJiffys.add(referralSignupJiffys);

            transfer(account, referralSignupJiffys);
            users[account].seedJiffys = users[account].seedJiffys.add(referralSignupJiffys);

            UserRefer(account, referrer, referralSignupJiffys);     // Fire event
        }

        return balanceOf(account);
    }

    /**
    * @dev Adds Jiffys to escrow for a user
    *
    * Escrows track the number of Jiffys that the user may owe another user.
    * This function is called by the InterfaceData contract when a caller
    * subscribes to a call.
    *
    * @param account The wallet address
    * @param jiffys The number of Jiffys to put into escrow
    */ 
    function depositEscrow
                            (
                                address account, 
                                uint256 jiffys
                            ) 
                            external 
                            requireIsOperational 
    {
        if (jiffys > 0) {
            require(isContractAuthorized(msg.sender) || isPlatformManager(msg.sender));   
            require(isUserRegistered(account));                                                     
            require(spendableBalanceOf(account) >= jiffys);

            users[account].interfaceEscrowJiffys = users[account].interfaceEscrowJiffys.add(jiffys);
        }
    }

    /**
    * @dev Refunds Jiffys from escrow for a user
    *
    * This function is called by the InterfaceData contract when a caller
    * unsubscribes from a call.
    *
    * @param account The wallet address
    * @param jiffys The number of Jiffys to remove from escrow
    */ 
    function refundEscrow
                            (
                                address account, 
                                uint256 jiffys
                            ) 
                            external 
                            requireIsOperational 
    {
        if (jiffys > 0) {
            require(isContractAuthorized(msg.sender) || isPlatformManager(msg.sender));   
            require(isUserRegistered(account));                                                     
            require(users[account].interfaceEscrowJiffys >= jiffys);

            users[account].interfaceEscrowJiffys = users[account].interfaceEscrowJiffys.sub(jiffys);
        }
    }

    /**
    * @dev Handles payment for an Interface transaction
    *
    * This function is called by the InterfaceData contract when the front-end
    * application makes a settle() call indicating that the transaction is
    * complete and it's time to pay the Expert. To prevent unauthorized use
    * the function is only callable by a previously authorized contract and
    * is limited to paying out funds previously escrowed.
    *
    * @param payer The account paying (i.e. a caller)
    * @param payee The account being paid (i.e. the Expert)
    * @param referrer The account that referred payer to payee
    * @param referralFeeBasisPoints The referral fee payable to referrer
    * @param billableJiffys The number of Jiffys for payment
    * @param escrowJiffys The number of Jiffys held in escrow for Interface being paid
    */ 
    function pay
                            (
                                address payer, 
                                address payee, 
                                address referrer, 
                                uint256 referralFeeBasisPoints, 
                                uint256 billableJiffys,
                                uint256 escrowJiffys
                            ) 
                            external 
                            requireIsOperational 
                            returns(uint256, uint256)
    {
        require(isContractAuthorized(msg.sender));   
        require(billableJiffys >= 0);
        require(users[payer].interfaceEscrowJiffys >= billableJiffys);  // Only payment of Interface escrowed funds is allowed
        require(users[payee].isRegistered);

        // This function may be called if the Expert's surety is
        // being forfeited. In that case, the payment is made to the 
        // Support and then funds will be distributed as appropriate
        // to parties following a grievance process. Since the rules 
        // for forfeiture can get very complex, they are best handled 
        // off-contract. payee == supportManager indicates a forfeiture.


        // First, release Payer escrow
        users[payer].interfaceEscrowJiffys = users[payer].interfaceEscrowJiffys.sub(escrowJiffys);
        uint256 referralFeeJiffys = 0;
        uint256 winNetworkFeeJiffys = 0;

        if (billableJiffys > 0) {

            // Second, pay the payee
            processPayment(payer, payee, billableJiffys);

            // Payee is SupportManager if Expert surety is being forfeited, so skip referral and network fees
            if (payee != supportManager) {

                // Third, Payee pays Referrer and referral fees due
                if ((referralFeeBasisPoints > 0) && (referrer != address(0)) && (users[referrer].isRegistered)) {
                    referralFeeJiffys = billableJiffys.mul(referralFeeBasisPoints).div(BASIS_POINTS_TO_PERCENTAGE); // Basis points to percentage conversion
                    processPayment(payee, referrer, referralFeeJiffys);
                }

                // Finally, Payee pays contract owner WIN network fee
                if (winNetworkFeeBasisPoints > 0) {
                    winNetworkFeeJiffys = billableJiffys.mul(winNetworkFeeBasisPoints).div(BASIS_POINTS_TO_PERCENTAGE); // Basis points to percentage conversion
                    processPayment(payee, contractOwner, winNetworkFeeJiffys);
                }                    
            }
        }

        return(referralFeeJiffys, winNetworkFeeJiffys);
    }
    
    /**
    * @dev Handles actual token transfer for payment
    *
    * @param payer The account paying
    * @param payee The account being paid
    * @param jiffys The number of Jiffys for payment
    */     
    function processPayment
                               (
                                   address payer,
                                   address payee,
                                   uint256 jiffys
                               )
                               private
    {
        require(isUserRegistered(payer));
        require(isUserRegistered(payee));
        require(spendableBalanceOf(payer) >= jiffys);

        balances[payer] = balances[payer].sub(jiffys); 
        balances[payee] = balances[payee].add(jiffys);
        Transfer(payer, payee, jiffys);

        // In the event the payer had received any signup tokens, their value
        // would be stored in the seedJiffys property. When any contract payment
        // is made, we reduce the seedJiffys number. seedJiffys tracks how many
        // tokens are not allowed to be transferred out of an account. As a user
        // makes payments to other users, those tokens have served their purpose
        // of encouraging use of the network and are no longer are restricted.
        if (users[payer].seedJiffys >= jiffys) {
            users[payer].seedJiffys = users[payer].seedJiffys.sub(jiffys);
        } else {
            users[payer].seedJiffys = 0;
        }
           
    }

    /**
    * @dev Handles transfer of tokens for vesting grants
    *
    * This function is called by the TokenVesting contract. To prevent unauthorized 
    * use the function is only callable by a previously authorized contract.
    *
    * @param issuer The account granting tokens
    * @param beneficiary The account being granted tokens
    * @param vestedJiffys The number of vested Jiffys for immediate payment
    * @param unvestedJiffys The number of unvested Jiffys to be placed in escrow
    */     
    function vestingGrant
                            (
                                address issuer, 
                                address beneficiary, 
                                uint256 vestedJiffys,
                                uint256 unvestedJiffys
                            ) 
                            external 
                            requireIsOperational 
    {
        require(isContractAuthorized(msg.sender));   
        require(spendableBalanceOf(issuer) >= unvestedJiffys.add(vestedJiffys));


        // Any vestedJiffys are transferred immediately to the beneficiary
        if (vestedJiffys > 0) {
            balances[issuer] = balances[issuer].sub(vestedJiffys);
            balances[beneficiary] = balances[beneficiary].add(vestedJiffys);
            Transfer(issuer, beneficiary, vestedJiffys);
        }

        // Any unvestedJiffys are removed from the granting account balance
        // A corresponding number of Jiffys is added to the granting account's
        // vesting escrow balance.
        balances[issuer] = balances[issuer].sub(unvestedJiffys);
        vestingEscrows[issuer] = vestingEscrows[issuer].add(unvestedJiffys);
    }


    /**
    * @dev Handles transfer of tokens for vesting revokes and releases
    *
    * This function is called by the TokenVesting contract. To prevent unauthorized 
    * use the function is only callable by a previously authorized contract.
    *
    * @param issuer The account granting tokens
    * @param beneficiary The account being granted tokens
    * @param jiffys The number of Jiffys for release or revoke
    */     
    function vestingTransfer
                            (
                                address issuer, 
                                address beneficiary, 
                                uint256 jiffys
                            ) 
                            external 
                            requireIsOperational 
    {
        require(isContractAuthorized(msg.sender));   
        require(vestingEscrows[issuer] >= jiffys);

        vestingEscrows[issuer] = vestingEscrows[issuer].sub(jiffys);
        balances[beneficiary] = balances[beneficiary].add(jiffys);
        Transfer(issuer, beneficiary, jiffys);
    }


    /**
    * @dev Gets an array of addresses registered with contract
    *
    * This can be used by API to enumerate all users
    */   
    function getRegisteredUsers() 
                                external 
                                view 
                                requirePlatformManager 
                                returns(address[]) 
    {
        return registeredUserLookup;
    }


    /**
    * @dev Gets an array of addresses registered with contract
    *
    * This can be used by API to enumerate all users
    */   
    function getRegisteredUser
                                (
                                    address account
                                ) 
                                external 
                                view 
                                requirePlatformManager                                
                                returns(uint256, uint256, uint256, address) 
    {
        require(users[account].isRegistered);

        return (balances[account], users[account].seedJiffys, users[account].interfaceEscrowJiffys, users[account].referrer);
    }


    /**
    * @dev Returns ICO-related state information for use by API
    */ 
    function getIcoInfo()
                                  public
                                  view
                                  returns(bool, uint256, uint256, uint256, uint256, uint256)
    {
        return (
                    balances[icoOwner] > 0, 
                    weiExchangeRate, 
                    centsExchangeRate, 
                    bonus20EndTimestamp, 
                    bonus10EndTimestamp, 
                    bonus5EndTimestamp
                );
    }

    /********************************************************************************************/
    /*                                       TOKEN SALE                                         */
    /********************************************************************************************/

    /**
    * @dev Fallback function for buying ICO tokens. This is not expected to be called with
    *      default gas as it will most certainly fail.
    *
    */
    function() 
                            external 
                            payable 
    {
        buy(msg.sender);
    }


    /**
    * @dev Buy ICO tokens
    *
    * @param account Account that is buying tokens
    *
    */
    function buy
                            (
                                address account
                            ) 
                            public 
                            payable 
                            requireIsOperational 
    {
        require(balances[icoOwner] > 0);
        require(account != address(0));        
        require(msg.value >= weiExchangeRate);    // Minimum 1 token

        uint256 weiReceived = msg.value;

        // Convert Wei to Jiffys based on the exchange rate
        uint256 buyJiffys = weiReceived.mul(jiffysMultiplier).div(weiExchangeRate);
        processPurchase(icoOwner, account, buyJiffys, now);
        icoWallet.transfer(msg.value);
    }


    /**
    * @dev Buy ICO tokens with USD
    *
    * @param account Account that is buying tokens
    * @param cents Purchase amount in cents
    *
    */    
    function buyUSD
                            (
                                address account,
                                uint256 cents
                            ) 
                            public 
                            requireIsOperational 
                            requirePlatformManager
    {
        require(balances[icoOwner] > 0);
        require(account != address(0));        
        require(cents >= centsExchangeRate);    // Minimum 1 token



        // Convert Cents to Jiffys based on the exchange rate
        uint256 buyJiffys = cents.mul(jiffysMultiplier).div(centsExchangeRate);

        if (users[account].isRegistered) {
            processPurchase(icoOwner, account, buyJiffys, now);
        } else {
            // Purchased credits will be transferred to account when user registers
            // They are kept in a holding area until then. We deduct buy+bonus from 
            // icoOwner because that is the amount that will eventually be credited.
            // However, we store the credit as buyJiffys so that the referral calculation
            // will be against the buy amount and not the buy+bonus amount
            uint256 totalJiffys = buyJiffys.add(calculatePurchaseBonus(buyJiffys, now));
            balances[icoOwner] = balances[icoOwner].sub(totalJiffys);
            balances[account] = balances[account].add(totalJiffys);
            purchaseCredits[account] = PurchaseCredit(buyJiffys, now);
            Transfer(icoOwner, account, buyJiffys);
        }

    }

    /**
    * @dev Process token purchase
    *
    * @param account Account that is buying tokens
    * @param buyJiffys Number of Jiffys purchased
    *
    */    
    function processPurchase
                            (
                                address source,
                                address account,
                                uint256 buyJiffys,
                                uint256 purchaseTimestamp
                            ) 
                            private 
    {

        uint256 totalJiffys = buyJiffys.add(calculatePurchaseBonus(buyJiffys, purchaseTimestamp));


        // Transfer purchased Jiffys to buyer
        require(transferableBalanceOf(source) >= totalJiffys);        
        balances[source] = balances[source].sub(totalJiffys);
        balances[account] = balances[account].add(totalJiffys);            
        Transfer(source, account, totalJiffys);

        // If the buyer has a referrer attached to their profile, then
        // transfer 3% of the purchased Jiffys to the referrer's account
        if (users[account].isRegistered && (users[account].referrer != address(0))) {
            address referrer = users[account].referrer;
            uint256 referralJiffys = (buyJiffys.mul(BUYER_REFERRER_BOUNTY)).div(100);
            if ((referralJiffys > 0) && (transferableBalanceOf(icoOwner) >= referralJiffys)) {
                balances[icoOwner] = balances[icoOwner].sub(referralJiffys);
                balances[referrer] = balances[referrer].add(referralJiffys);  
                Transfer(icoOwner, referrer, referralJiffys);
            }            
        }
    }

    /**
    * @dev Calculates ICO bonus tokens
    *
    * @param buyJiffys Number of Jiffys purchased
    *
    */    
    function calculatePurchaseBonus
                            (
                                uint256 buyJiffys,
                                uint256 purchaseTimestamp
                            ) 
                            private 
                            view
                            returns(uint256)
    {
        uint256 bonusPercentage = 0;

        // Time-based bonus
        if (purchaseTimestamp <= bonus5EndTimestamp) {
            if (purchaseTimestamp <= bonus10EndTimestamp) {
                if (purchaseTimestamp <= bonus20EndTimestamp) {
                    bonusPercentage = 20;
                } else {
                    bonusPercentage = 10;
                }
            } else {
                bonusPercentage = 5;
            }
        }

        return (buyJiffys.mul(bonusPercentage)).div(100);
    }
    

}   

/*
LICENSE FOR SafeMath and TokenVesting

The MIT License (MIT)

Copyright (c) 2016 Smart Contract Solutions, Inc.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/


library SafeMath {
/* Copyright (c) 2016 Smart Contract Solutions, Inc. */
/* See License at end of file                        */

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
        return 0;
        }
        uint256 c = a * b;
        assert(c / a == b);
        return c;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        // assert(b > 0); // Solidity automatically throws when dividing by 0
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold
        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        assert(b <= a);
        return a - b;
    }

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        assert(c >= a);
        return c;
    }
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"tokens","type":"uint256"}],"name":"setReferralSignupTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"},{"name":"cents","type":"uint256"}],"name":"buyUSD","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"spendableBalanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"isContractAuthorized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"mode","type":"bool"}],"name":"setOperatingStatus","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"winNetworkFeeBasisPoints","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"isUserRegistered","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"payer","type":"address"},{"name":"payee","type":"address"},{"name":"referrer","type":"address"},{"name":"referralFeeBasisPoints","type":"uint256"},{"name":"billableJiffys","type":"uint256"},{"name":"escrowJiffys","type":"uint256"}],"name":"pay","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"centsExchangeRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"sign","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"setIcoWallet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isReferralSupported","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getTokenAllocations","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"logoPng","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"tokens","type":"uint256"}],"name":"setUserSignupTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"issuer","type":"address"},{"name":"beneficiary","type":"address"},{"name":"vestedJiffys","type":"uint256"},{"name":"unvestedJiffys","type":"uint256"}],"name":"vestingGrant","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"},{"name":"jiffys","type":"uint256"}],"name":"refundEscrow","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"authorizeContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"setPlatformManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getSupportManager","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"deauthorizeContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getRegisteredUsers","outputs":[{"name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"isPlatformOrSupportManager","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getIcoInfo","outputs":[{"name":"","type":"bool"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"issuer","type":"address"},{"name":"beneficiary","type":"address"},{"name":"jiffys","type":"uint256"}],"name":"vestingTransfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"basisPoints","type":"uint256"}],"name":"setWinNetworkFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"},{"name":"jiffys","type":"uint256"}],"name":"depositEscrow","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"balance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"dataContract","type":"address"},{"name":"appContract","type":"address"},{"name":"vestingContract","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"},{"name":"creditAccount","type":"address"},{"name":"referrer","type":"address"}],"name":"registerUserBonus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"transferableBalanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"authorizeIcoBurn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isOperational","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"rate","type":"uint256"}],"name":"setWeiExchangeRate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"weiExchangeRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"getRegisteredUser","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"},{"name":"creditAccount","type":"address"},{"name":"referrer","type":"address"}],"name":"registerUser","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"buy","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"isPlatformManager","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"rate","type":"uint256"}],"name":"setCentsExchangeRate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"tokenName","type":"string"},{"name":"tokenSymbol","type":"string"},{"name":"platformAccount","type":"address"},{"name":"icoAccount","type":"address"},{"name":"supportAccount","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"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"},{"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":"user","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"seedJiffys","type":"uint256"}],"name":"UserRegister","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":true,"name":"referrer","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"UserRefer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"}],"name":"UserLink","type":"event"}]

6060604052601260045560408051908101604052600381527fefbfa6000000000000000000000000000000000000000000000000000000000060208201526005908051620000529291602001906200060b565b50608060405190810160405280604581526020017f68747470733a2f2f6769746875622e636f6d2f5768656e4875622f5748454e2f81526020017f7261772f6d61737465722f6173736574732f7768656e2d746f6b656e2d69636f81526020017f6e2e706e670000000000000000000000000000000000000000000000000000008152506006908051620000eb9291602001906200060b565b50600060085560006009556000600d556000600e556000600f55606060405190810160409081526000808352602083018190529082015260108151815460ff1916901515178155602082015181549015156101000261ff001990911617815560408201518154901515620100000262ff000019909116179055506011805460ff1916600117905560006012556601c6bf52634000601355601960145534156200019357600080fd5b6040516200339c3803806200339c833981016040528080518201919060200180518201919060200180519190602001805191906020018051915060029050858051620001e49291602001906200060b565b506003848051620001fa9291602001906200060b565b50600454600a90810a9081905562000226906308f0d18090640100000000620025f5620005d182021704565b600b55600a546200024b9063049e8e6090640100000000620025f5620005d182021704565b600c5560158054600160a060020a03338116600160a060020a03199283161790925560168054868416908316179055601780548584169083161790819055601980548316918416919091179055601880549284169290911691909117905560806040519081016040908152600182526000602080840182905282840182905260608401829052601554600160a060020a03168252601a9052208151815460ff1916901515178155602082015181600101556040820151816002015560608201516003919091018054600160a060020a031916600160a060020a0390921691909117905550601d80546001810162000343838262000690565b506000918252602090912060155491018054600160a060020a031916600160a060020a0390921691909117905560806040519081016040908152600182526000602080840182905282840182905260608401829052601654600160a060020a03168252601a9052208151815460ff1916901515178155602082015181600101556040820151816002015560608201516003919091018054600160a060020a031916600160a060020a0390921691909117905550601d8054600181016200040a838262000690565b506000918252602090912060165491018054600160a060020a031916600160a060020a0390921691909117905560806040519081016040908152600182526000602080840182905282840182905260608401829052601754600160a060020a03168252601a9052208151815460ff1916901515178155602082015181600101556040820151816002015560608201516003919091018054600160a060020a031916600160a060020a0390921691909117905550601d805460018101620004d1838262000690565b506000918252602090912060175491018054600160a060020a031916600160a060020a0390921691909117905560806040519081016040908152600182526000602080840182905282840182905260608401829052601854600160a060020a03168252601a9052208151815460ff1916901515178155602082015181600101556040820151816002015560608201516003919091018054600160a060020a031916600160a060020a0390921691909117905550601d80546001810162000598838262000690565b506000918252602090912060185491018054600160a060020a031916600160a060020a0390921691909117905550620006dc9350505050565b600080831515620005e6576000915062000604565b50828202828482811515620005f757fe5b04146200060057fe5b8091505b5092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200064e57805160ff19168380011785556200067e565b828001600101855582156200067e579182015b828111156200067e57825182559160200191906001019062000661565b506200068c929150620006bc565b5090565b815481835581811511620006b757600083815260209020620006b7918101908301620006bc565b505050565b620006d991905b808211156200068c5760008155600101620006c3565b90565b612cb080620006ec6000396000f3006060604052600436106102505763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166305a308fa811461025b57806306fdde0314610271578063095ea7b3146102fb5780630b2140ab146103315780630f8f8b8314610353578063103aeda714610384578063110466ed146103a35780631359844a146103bb578063163f7522146103ce57806318160ddd146103ed57806323b872dd146104005780632a54d313146104285780632aaefa9f146104745780632ca1512214610487578063313ce5671461049a5780633f2e0564146104ad57806345983b24146104cc57806345d78d08146104df5780634d4eeaa814610516578063536aace81461052957806356c38b2e1461053f578063599efa6b1461056a57806367561d931461058c5780636818da44146105ab5780636a327b7d146105ca5780636e861c0e146105f95780637073c0721461061857806370a082311461067e5780637da40b651461069d5780638582ac21146106bc57806395d89b411461070a578063a2db644e1461071d578063a753fd0814610745578063a9059cbb1461075b578063b324e80d1461077d578063b69ef8a81461079f578063c0c53b8b146107b2578063c5405f17146107dd578063c7d9f4d114610808578063cd2cde4814610827578063cd905dff1461083a578063dd62ed3e1461084d578063df22122314610872578063e3ff2f0514610888578063e54a29bb1461089b578063ed1b71ea146108ee578063f088d54714610919578063f5c152371461092d578063fd923a9e1461094c575b61025933610962565b005b341561026657600080fd5b610259600435610a3f565b341561027c57600080fd5b610284610a93565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156102c05780820151838201526020016102a8565b50505050905090810190601f1680156102ed5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561030657600080fd5b61031d600160a060020a0360043516602435610b31565b604051901515815260200160405180910390f35b341561033c57600080fd5b610259600160a060020a0360043516602435610bae565b341561035e57600080fd5b610372600160a060020a0360043516610d8f565b60405190815260200160405180910390f35b341561038f57600080fd5b61031d600160a060020a0360043516610e24565b34156103ae57600080fd5b6102596004351515610e42565b34156103c657600080fd5b610372610e70565b34156103d957600080fd5b61031d600160a060020a0360043516610e76565b34156103f857600080fd5b610372610eae565b341561040b57600080fd5b61031d600160a060020a0360043581169060243516604435610f03565b341561043357600080fd5b61045c600160a060020a036004358116906024358116906044351660643560843560a4356110a1565b60405191825260208201526040908101905180910390f35b341561047f57600080fd5b610372611259565b341561049257600080fd5b61028461125f565b34156104a557600080fd5b6103726112ca565b34156104b857600080fd5b610259600160a060020a03600435166112d0565b34156104d757600080fd5b61031d611333565b34156104ea57600080fd5b6104f261137d565b60405180848152602001838152602001828152602001935050505060405180910390f35b341561052157600080fd5b6102846113d6565b341561053457600080fd5b610259600435611441565b341561054a57600080fd5b610259600160a060020a0360043581169060243516604435606435611495565b341561057557600080fd5b610259600160a060020a0360043516602435611609565b341561059757600080fd5b610259600160a060020a03600435166116d0565b34156105b657600080fd5b610259600160a060020a036004351661172e565b34156105d557600080fd5b6105dd6118dc565b604051600160a060020a03909116815260200160405180910390f35b341561060457600080fd5b610259600160a060020a03600435166118ec565b341561062357600080fd5b61062b611947565b60405160208082528190810183818151815260200191508051906020019060200280838360005b8381101561066a578082015183820152602001610652565b505050509050019250505060405180910390f35b341561068957600080fd5b610372600160a060020a03600435166119c3565b34156106a857600080fd5b61031d600160a060020a03600435166119de565b34156106c757600080fd5b6106cf611a0d565b604051951515865260208601949094526040808601939093526060850191909152608084015260a083019190915260c0909101905180910390f35b341561071557600080fd5b610284611a47565b341561072857600080fd5b610259600160a060020a0360043581169060243516604435611ab2565b341561075057600080fd5b610259600435611bab565b341561076657600080fd5b61031d600160a060020a0360043516602435611bea565b341561078857600080fd5b610259600160a060020a0360043516602435611d0d565b34156107aa57600080fd5b610372611d9f565b34156107bd57600080fd5b610259600160a060020a0360043581169060243581169060443516611daf565b34156107e857600080fd5b610372600160a060020a0360043581169060243581169060443516611f5f565b341561081357600080fd5b610372600160a060020a03600435166121de565b341561083257600080fd5b6102596122d3565b341561084557600080fd5b61031d612414565b341561085857600080fd5b610372600160a060020a036004358116906024351661241d565b341561087d57600080fd5b610259600435612448565b341561089357600080fd5b610372612487565b34156108a657600080fd5b6108ba600160a060020a036004351661248d565b6040519384526020840192909252604080840191909152600160a060020a0390911660608301526080909101905180910390f35b34156108f957600080fd5b610372600160a060020a0360043581169060243581169060443516612511565b610259600160a060020a0360043516610962565b341561093857600080fd5b61031d600160a060020a03600435166125a2565b341561095757600080fd5b6102596004356125b6565b601154600090819060ff16151561097857600080fd5b601754600160a060020a03166000908152602081905260408120541161099d57600080fd5b600160a060020a03831615156109b257600080fd5b6013543410156109c157600080fd5b3491506109eb6013546109df600a54856125f590919063ffffffff16565b9063ffffffff61262b16565b601754909150610a0690600160a060020a0316848342612642565b601954600160a060020a03163480156108fc0290604051600060405180830381858888f193505050501515610a3a57600080fd5b505050565b60115460ff161515610a5057600080fd5b60155433600160a060020a03908116911614610a6b57600080fd5b612710811115610a7a57600080fd5b600a54610a8d908263ffffffff6125f516565b60095550565b60028054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b295780601f10610afe57610100808354040283529160200191610b29565b820191906000526020600020905b815481529060010190602001808311610b0c57829003601f168201915b505050505081565b60115460009060ff161515610b4557600080fd5b600160a060020a03338116600081815260016020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b601154600090819060ff161515610bc457600080fd5b610bcd336125a2565b1515610bd857600080fd5b601754600160a060020a031660009081526020819052604081205411610bfd57600080fd5b600160a060020a0384161515610c1257600080fd5b601454831015610c2157600080fd5b610c3c6014546109df600a54866125f590919063ffffffff16565b600160a060020a0385166000908152601a602052604090205490925060ff1615610c7d57601754610c7890600160a060020a0316858442612642565b610d89565b610c97610c8a8342612881565b839063ffffffff6128cb16565b601754600160a060020a0316600090815260208190526040902054909150610cc5908263ffffffff6128da16565b601754600160a060020a039081166000908152602081905260408082209390935590861681522054610cfd908263ffffffff6128cb16565b600160a060020a03851660009081526020819052604090819020919091558051908101604090815283825242602080840191909152600160a060020a038716600090815260079091522081518155602082015160019091015550601754600160a060020a038086169116600080516020612c658339815191528460405190815260200160405180910390a35b50505050565b6000600160a060020a0382161515610da657600080fd5b600160a060020a0382166000908152601a602052604090205460ff1615610e0457600160a060020a0382166000908152601a60209081526040808320600201549183905290912054610dfd9163ffffffff6128da16565b9050610e1f565b50600160a060020a0381166000908152602081905260409020545b919050565b600160a060020a03166000908152601c602052604090205460011490565b60155433600160a060020a03908116911614610e5d57600080fd5b6011805460ff1916911515919091179055565b60125481565b6000600160a060020a03821615801590610ea85750600160a060020a0382166000908152601a602052604090205460ff165b92915050565b600080610ee563010b0760610ed98181630fa56ea0816314dc9380630d8f5fe063ffffffff6128cb16565b9063ffffffff6128cb16565b9050610efc600a54826125f590919063ffffffff16565b91505b5090565b60115460009060ff161515610f1757600080fd5b600160a060020a0384161515610f2c57600080fd5b600160a060020a0380851660009081526001602090815260408083203390941683529290522054821115610f5f57600080fd5b610f68846121de565b821115610f7457600080fd5b600160a060020a0383161515610f8957600080fd5b600160a060020a038481169084161415610fa257600080fd5b600160a060020a038416600090815260208190526040902054610fcb908363ffffffff6128da16565b600160a060020a038086166000908152602081905260408082209390935590851681522054611000908363ffffffff6128cb16565b600160a060020a0380851660009081526020818152604080832094909455878316825260018152838220339093168252919091522054611046908363ffffffff6128da16565b600160a060020a0380861660008181526001602090815260408083203386168452909152908190209390935590851691600080516020612c658339815191529085905190815260200160405180910390a35060019392505050565b60115460009081908190819060ff1615156110bb57600080fd5b6110c433610e24565b15156110cf57600080fd5b60008610156110dd57600080fd5b600160a060020a038a166000908152601a60205260409020600201548690101561110657600080fd5b600160a060020a0389166000908152601a602052604090205460ff16151561112d57600080fd5b600160a060020a038a166000908152601a6020526040902060020154611159908663ffffffff6128da16565b600160a060020a038b166000908152601a602052604081206002019190915591508190508086111561124a576111908a8a886128ec565b601854600160a060020a038a811691161461124a576000871180156111bd5750600160a060020a03881615155b80156111e15750600160a060020a0388166000908152601a602052604090205460ff165b15611209576111fc6127106109df888a63ffffffff6125f516565b91506112098989846128ec565b6000601254111561124a5761122f6127106109df601254896125f590919063ffffffff16565b60155490915061124a908a90600160a060020a0316836128ec565b90999098509650505050505050565b60145481565b60058054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b295780601f10610afe57610100808354040283529160200191610b29565b60045481565b60115460ff1615156112e157600080fd5b60155433600160a060020a039081169116146112fc57600080fd5b600160a060020a038116151561131157600080fd5b60198054600160a060020a031916600160a060020a0392909216919091179055565b60008061134c60026009546125f590919063ffffffff16565b905080600c5410158015610efc5750601654600160a060020a03166000908152602081905260409020541015919050565b600080600061139b600a54630fa56ea06125f590919063ffffffff16565b600a546113b39063010b07609063ffffffff6125f516565b600a546113cb9063010b07609063ffffffff6125f516565b925092509250909192565b60068054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b295780601f10610afe57610100808354040283529160200191610b29565b60115460ff16151561145257600080fd5b60155433600160a060020a0390811691161461146d57600080fd5b61271081111561147c57600080fd5b600a5461148f908263ffffffff6125f516565b60085550565b60115460ff1615156114a657600080fd5b6114af33610e24565b15156114ba57600080fd5b6114ca818363ffffffff6128cb16565b6114d385610d8f565b10156114de57600080fd5b600082111561158b57600160a060020a038416600090815260208190526040902054611510908363ffffffff6128da16565b600160a060020a038086166000908152602081905260408082209390935590851681522054611545908363ffffffff6128cb16565b600160a060020a0380851660008181526020819052604090819020939093559190861690600080516020612c658339815191529085905190815260200160405180910390a35b600160a060020a0384166000908152602081905260409020546115b4908263ffffffff6128da16565b600160a060020a03851660009081526020818152604080832093909355601b905220546115e7908263ffffffff6128cb16565b600160a060020a039094166000908152601b6020526040902093909355505050565b60115460ff16151561161a57600080fd5b60008111156116cc5761162c33610e24565b8061163b575061163b336125a2565b151561164657600080fd5b61164f82610e76565b151561165a57600080fd5b600160a060020a0382166000908152601a60205260409020600201548190101561168357600080fd5b600160a060020a0382166000908152601a60205260409020600201546116af908263ffffffff6128da16565b600160a060020a0383166000908152601a60205260409020600201555b5050565b60115460ff1615156116e157600080fd5b60155433600160a060020a039081169116146116fc57600080fd5b600160a060020a038116151561171157600080fd5b600160a060020a03166000908152601c6020526040902060019055565b60115460ff16151561173f57600080fd5b60155433600160a060020a0390811691161461175a57600080fd5b600160a060020a038116151561176f57600080fd5b601654600160a060020a038281169116141561178a57600080fd5b601654600160a060020a039081166000908152602081905260408082205492841682529020546117bf9163ffffffff6128cb16565b600160a060020a03808316600081815260208181526040808320959095556016549093168152838120819055908152601a909152205460ff1615156118ba5760806040519081016040908152600182526000602080840182905282840182905260608401829052600160a060020a0385168252601a9052208151815460ff1916901515178155602082015181600101556040820151816002015560608201516003919091018054600160a060020a031916600160a060020a0390921691909117905550601d8054600181016118948382612c14565b5060009182526020909120018054600160a060020a031916600160a060020a0383161790555b60168054600160a060020a031916600160a060020a0392909216919091179055565b601854600160a060020a03165b90565b60115460ff1615156118fd57600080fd5b60155433600160a060020a0390811691161461191857600080fd5b600160a060020a038116151561192d57600080fd5b600160a060020a03166000908152601c6020526040812055565b61194f612c38565b611958336125a2565b151561196357600080fd5b601d8054806020026020016040519081016040528092919081815260200182805480156119b957602002820191906000526020600020905b8154600160a060020a0316815260019091019060200180831161199b575b5050505050905090565b600160a060020a031660009081526020819052604090205490565b601654600090600160a060020a0383811691161480610ea8575050601854600160a060020a0390811691161490565b601754600160a060020a0316600090815260208190526040812054601354601454600d54600e54600f549590941194929391929092939495565b60038054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b295780601f10610afe57610100808354040283529160200191610b29565b60115460ff161515611ac357600080fd5b611acc33610e24565b1515611ad757600080fd5b600160a060020a0383166000908152601b602052604090205481901015611afd57600080fd5b600160a060020a0383166000908152601b6020526040902054611b26908263ffffffff6128da16565b600160a060020a038085166000908152601b60209081526040808320949094559185168152908190522054611b61908263ffffffff6128cb16565b600160a060020a0380841660008181526020819052604090819020939093559190851690600080516020612c658339815191529084905190815260200160405180910390a3505050565b60115460ff161515611bbc57600080fd5b60155433600160a060020a03908116911614611bd757600080fd5b6000811015611be557600080fd5b601255565b60115460009060ff161515611bfe57600080fd5b600160a060020a0383161515611c1357600080fd5b33600160a060020a031683600160a060020a031614151515611c3457600080fd5b611c3d336121de565b821115611c4957600080fd5b600160a060020a033316600090815260208190526040902054611c72908363ffffffff6128da16565b600160a060020a033381166000908152602081905260408082209390935590851681522054611ca7908363ffffffff6128cb16565b60008085600160a060020a0316600160a060020a031681526020019081526020016000208190555082600160a060020a031633600160a060020a0316600080516020612c658339815191528460405190815260200160405180910390a350600192915050565b60115460ff161515611d1e57600080fd5b60008111156116cc57611d3033610e24565b80611d3f5750611d3f336125a2565b1515611d4a57600080fd5b611d5382610e76565b1515611d5e57600080fd5b80611d6883610d8f565b1015611d7357600080fd5b600160a060020a0382166000908152601a60205260409020600201546116af908263ffffffff6128cb16565b6000611daa336119c3565b905090565b60155433600160a060020a03908116911614611dca57600080fd5b600d5415611dd757600080fd5b611de0836116d0565b611de9826116d0565b611df2816116d0565b611e09635aafd07062093a8063ffffffff6128cb16565b600d819055611e219062093a8063ffffffff6128cb16565b600e819055611e399062093a8063ffffffff6128cb16565b600f55600a54611e54906314dc93809063ffffffff6125f516565b601754600160a060020a0316600090815260208190526040902055600a54611eb290611e8b90630d8f5fe09063ffffffff6125f516565b601654600160a060020a03166000908152602081905260409020549063ffffffff6128cb16565b601654600160a060020a0316600090815260208190526040902055600a54611f1090611ee9906311bb7d609063ffffffff6125f516565b601554600160a060020a03166000908152602081905260409020549063ffffffff6128cb16565b601554600160a060020a0316600090815260208190526040902055600a54611f40906101f463ffffffff6125f516565b600855600a54611f5790606463ffffffff6125f516565b600955505050565b601154600090819060ff161515611f7557600080fd5b611f7e336125a2565b1515611f8957600080fd5b611f94858585612a5b565b60009050600854600b5410158015611fc85750600854601654600160a060020a031660009081526020819052604090205410155b1561204357600854600b54611fe29163ffffffff6128da16565b600b55600854600160a060020a0386166000908152601a60205260409020600101546120139163ffffffff6128cb16565b600160a060020a0386166000908152601a602052604090206001015560085461203d908690611bea565b50506008545b84600160a060020a03167f2f5213276c43fb23315923b6721fe88e44be07321c1099243154bf1e8572449d612077876119c3565b8360405191825260208201526040908101905180910390a2600160a060020a038316158015906120aa57506120aa611333565b156121cc576009546120d6906120c790600263ffffffff6125f516565b600c549063ffffffff6128da16565b600c556009546120e7908490611bea565b50600954600160a060020a0384166000908152601a60205260409020600101546121169163ffffffff6128cb16565b600160a060020a0384166000908152601a6020526040902060010155600954612140908690611bea565b50600954600160a060020a0386166000908152601a602052604090206001015461216f9163ffffffff6128cb16565b600160a060020a038087166000818152601a602052604090819020600101939093556009549186169290917f63a6d6b80a0193ada4f20d4e4ebde29156966dddc75414d2b684fa16a6b49641915190815260200160405180910390a35b6121d5856119c3565b95945050505050565b600080600160a060020a03831615156121f657600080fd5b600160a060020a0383166000908152601a602052604090205460ff16156122b157600160a060020a0383166000908152601a602052604090206001810154600290910154101561226157600160a060020a0383166000908152601a602052604090206001015461227e565b600160a060020a0383166000908152601a60205260409020600201545b600160a060020a0384166000908152602081905260409020549091506122aa908263ffffffff6128da16565b91506122cd565b600160a060020a03831660009081526020819052604090205491505b50919050565b601754600160a060020a0316600090815260208190526040812054116122f857600080fd5b60155433600160a060020a0390811691161480612323575060165433600160a060020a039081169116145b8061233c575060175433600160a060020a039081169116145b151561234757600080fd5b60155433600160a060020a0390811691161415612370576010805460ff191660011790556123c4565b60165433600160a060020a039081169116141561239b576010805461ff0019166101001790556123c4565b60175433600160a060020a03908116911614156123c4576010805462ff00001916620100001790555b60105460ff1680156123dd5750601054610100900460ff165b80156123f1575060105462010000900460ff165b1561241257601754600160a060020a03166000908152602081905260408120555b565b60115460ff1690565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b60115460ff16151561245957600080fd5b60155433600160a060020a0390811691161461247457600080fd5b600081101561248257600080fd5b601355565b60135481565b60008060008061249c336125a2565b15156124a757600080fd5b600160a060020a0385166000908152601a602052604090205460ff1615156124ce57600080fd5b50505050600160a060020a0390811660009081526020818152604080832054601a9092529091206001810154600282015460039092015492949093919290911690565b60115460009060ff16151561252557600080fd5b61252e336125a2565b151561253957600080fd5b612544848484612a5b565b83600160a060020a03167f2f5213276c43fb23315923b6721fe88e44be07321c1099243154bf1e8572449d612578866119c3565b600060405191825260208201526040908101905180910390a261259a846119c3565b949350505050565b601654600160a060020a0390811691161490565b60115460ff1615156125c757600080fd5b60155433600160a060020a039081169116146125e257600080fd5b60018110156125f057600080fd5b601455565b6000808315156126085760009150612624565b5082820282848281151561261857fe5b041461262057fe5b8091505b5092915050565b600080828481151561263957fe5b04949350505050565b60008060006126616126548686612881565b869063ffffffff6128cb16565b92508261266d886121de565b101561267857600080fd5b600160a060020a0387166000908152602081905260409020546126a1908463ffffffff6128da16565b600160a060020a0380891660009081526020819052604080822093909355908816815220546126d6908463ffffffff6128cb16565b600160a060020a0380881660008181526020819052604090819020939093559190891690600080516020612c658339815191529086905190815260200160405180910390a3600160a060020a0386166000908152601a602052604090205460ff16801561275f5750600160a060020a038681166000908152601a60205260409020600301541615155b1561287857600160a060020a038087166000908152601a6020526040902060039081015490911692506127a0906064906109df90889063ffffffff6125f516565b90506000811180156127c7575060175481906127c490600160a060020a03166121de565b10155b1561287857601754600160a060020a03166000908152602081905260409020546127f7908263ffffffff6128da16565b601754600160a060020a03908116600090815260208190526040808220939093559084168152205461282f908263ffffffff6128cb16565b600160a060020a0380841660008181526020819052604090819020939093556017549092911690600080516020612c658339815191529084905190815260200160405180910390a35b50505050505050565b600f54600090819083116128b657600e5483116128b257600d5483116128a9575060146128ad565b50600a5b6128b6565b5060055b61259a60646109df868463ffffffff6125f516565b60008282018381101561262057fe5b6000828211156128e657fe5b50900390565b6128f583610e76565b151561290057600080fd5b61290982610e76565b151561291457600080fd5b8061291e84610d8f565b101561292957600080fd5b600160a060020a038316600090815260208190526040902054612952908263ffffffff6128da16565b600160a060020a038085166000908152602081905260408082209390935590841681522054612987908263ffffffff6128cb16565b600160a060020a0380841660008181526020819052604090819020939093559190851690600080516020612c658339815191529084905190815260200160405180910390a3600160a060020a0383166000908152601a6020526040902060010154819010612a3c57600160a060020a0383166000908152601a6020526040902060010154612a1b908263ffffffff6128da16565b600160a060020a0384166000908152601a6020526040902060010155610a3a565b5050600160a060020a03166000908152601a6020526040812060010155565b600160a060020a0383161515612a7057600080fd5b600160a060020a0383166000908152601a602052604090205460ff1615612a9657600080fd5b600160a060020a03811615612ac657600160a060020a0381166000908152601a602052604090205460ff16612ac9565b60015b1515612ad457600080fd5b600160a060020a038181169084161415612aed57600080fd5b608060405190810160409081526001825260006020808401829052828401829052600160a060020a03808616606086015287168252601a9052208151815460ff1916901515178155602082015181600101556040820151816002015560608201516003919091018054600160a060020a031916600160a060020a0390921691909117905550601d805460018101612b848382612c14565b5060009182526020808320919091018054600160a060020a031916600160a060020a0387811691909117909155841682526007905260408120541115610a3a57600160a060020a03821660009081526007602052604090208054600190910154612bf2918491869190612642565b50600160a060020a031660009081526007602052604081208181556001015550565b815481835581811511610a3a57600083815260209020610a3a918101908301612c4a565b60206040519081016040526000815290565b6118e991905b80821115610eff5760008155600101612c505600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a72305820aa1b921e962e4184c65de3b1c612bc3ca0f496fe397cc7fa755b003f2f3cb64a002900000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000b029e80c48e14af4b1f722823431432cb4921ea2000000000000000000000000294fee55fccabdf970e1889fb79675e0937afd23000000000000000000000000dd60feb57cfaf713fd5c19e8d662953e1f5cef40000000000000000000000000000000000000000000000000000000000000000a5748454e20546f6b656e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045748454e00000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6060604052600436106102505763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166305a308fa811461025b57806306fdde0314610271578063095ea7b3146102fb5780630b2140ab146103315780630f8f8b8314610353578063103aeda714610384578063110466ed146103a35780631359844a146103bb578063163f7522146103ce57806318160ddd146103ed57806323b872dd146104005780632a54d313146104285780632aaefa9f146104745780632ca1512214610487578063313ce5671461049a5780633f2e0564146104ad57806345983b24146104cc57806345d78d08146104df5780634d4eeaa814610516578063536aace81461052957806356c38b2e1461053f578063599efa6b1461056a57806367561d931461058c5780636818da44146105ab5780636a327b7d146105ca5780636e861c0e146105f95780637073c0721461061857806370a082311461067e5780637da40b651461069d5780638582ac21146106bc57806395d89b411461070a578063a2db644e1461071d578063a753fd0814610745578063a9059cbb1461075b578063b324e80d1461077d578063b69ef8a81461079f578063c0c53b8b146107b2578063c5405f17146107dd578063c7d9f4d114610808578063cd2cde4814610827578063cd905dff1461083a578063dd62ed3e1461084d578063df22122314610872578063e3ff2f0514610888578063e54a29bb1461089b578063ed1b71ea146108ee578063f088d54714610919578063f5c152371461092d578063fd923a9e1461094c575b61025933610962565b005b341561026657600080fd5b610259600435610a3f565b341561027c57600080fd5b610284610a93565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156102c05780820151838201526020016102a8565b50505050905090810190601f1680156102ed5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561030657600080fd5b61031d600160a060020a0360043516602435610b31565b604051901515815260200160405180910390f35b341561033c57600080fd5b610259600160a060020a0360043516602435610bae565b341561035e57600080fd5b610372600160a060020a0360043516610d8f565b60405190815260200160405180910390f35b341561038f57600080fd5b61031d600160a060020a0360043516610e24565b34156103ae57600080fd5b6102596004351515610e42565b34156103c657600080fd5b610372610e70565b34156103d957600080fd5b61031d600160a060020a0360043516610e76565b34156103f857600080fd5b610372610eae565b341561040b57600080fd5b61031d600160a060020a0360043581169060243516604435610f03565b341561043357600080fd5b61045c600160a060020a036004358116906024358116906044351660643560843560a4356110a1565b60405191825260208201526040908101905180910390f35b341561047f57600080fd5b610372611259565b341561049257600080fd5b61028461125f565b34156104a557600080fd5b6103726112ca565b34156104b857600080fd5b610259600160a060020a03600435166112d0565b34156104d757600080fd5b61031d611333565b34156104ea57600080fd5b6104f261137d565b60405180848152602001838152602001828152602001935050505060405180910390f35b341561052157600080fd5b6102846113d6565b341561053457600080fd5b610259600435611441565b341561054a57600080fd5b610259600160a060020a0360043581169060243516604435606435611495565b341561057557600080fd5b610259600160a060020a0360043516602435611609565b341561059757600080fd5b610259600160a060020a03600435166116d0565b34156105b657600080fd5b610259600160a060020a036004351661172e565b34156105d557600080fd5b6105dd6118dc565b604051600160a060020a03909116815260200160405180910390f35b341561060457600080fd5b610259600160a060020a03600435166118ec565b341561062357600080fd5b61062b611947565b60405160208082528190810183818151815260200191508051906020019060200280838360005b8381101561066a578082015183820152602001610652565b505050509050019250505060405180910390f35b341561068957600080fd5b610372600160a060020a03600435166119c3565b34156106a857600080fd5b61031d600160a060020a03600435166119de565b34156106c757600080fd5b6106cf611a0d565b604051951515865260208601949094526040808601939093526060850191909152608084015260a083019190915260c0909101905180910390f35b341561071557600080fd5b610284611a47565b341561072857600080fd5b610259600160a060020a0360043581169060243516604435611ab2565b341561075057600080fd5b610259600435611bab565b341561076657600080fd5b61031d600160a060020a0360043516602435611bea565b341561078857600080fd5b610259600160a060020a0360043516602435611d0d565b34156107aa57600080fd5b610372611d9f565b34156107bd57600080fd5b610259600160a060020a0360043581169060243581169060443516611daf565b34156107e857600080fd5b610372600160a060020a0360043581169060243581169060443516611f5f565b341561081357600080fd5b610372600160a060020a03600435166121de565b341561083257600080fd5b6102596122d3565b341561084557600080fd5b61031d612414565b341561085857600080fd5b610372600160a060020a036004358116906024351661241d565b341561087d57600080fd5b610259600435612448565b341561089357600080fd5b610372612487565b34156108a657600080fd5b6108ba600160a060020a036004351661248d565b6040519384526020840192909252604080840191909152600160a060020a0390911660608301526080909101905180910390f35b34156108f957600080fd5b610372600160a060020a0360043581169060243581169060443516612511565b610259600160a060020a0360043516610962565b341561093857600080fd5b61031d600160a060020a03600435166125a2565b341561095757600080fd5b6102596004356125b6565b601154600090819060ff16151561097857600080fd5b601754600160a060020a03166000908152602081905260408120541161099d57600080fd5b600160a060020a03831615156109b257600080fd5b6013543410156109c157600080fd5b3491506109eb6013546109df600a54856125f590919063ffffffff16565b9063ffffffff61262b16565b601754909150610a0690600160a060020a0316848342612642565b601954600160a060020a03163480156108fc0290604051600060405180830381858888f193505050501515610a3a57600080fd5b505050565b60115460ff161515610a5057600080fd5b60155433600160a060020a03908116911614610a6b57600080fd5b612710811115610a7a57600080fd5b600a54610a8d908263ffffffff6125f516565b60095550565b60028054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b295780601f10610afe57610100808354040283529160200191610b29565b820191906000526020600020905b815481529060010190602001808311610b0c57829003601f168201915b505050505081565b60115460009060ff161515610b4557600080fd5b600160a060020a03338116600081815260016020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b601154600090819060ff161515610bc457600080fd5b610bcd336125a2565b1515610bd857600080fd5b601754600160a060020a031660009081526020819052604081205411610bfd57600080fd5b600160a060020a0384161515610c1257600080fd5b601454831015610c2157600080fd5b610c3c6014546109df600a54866125f590919063ffffffff16565b600160a060020a0385166000908152601a602052604090205490925060ff1615610c7d57601754610c7890600160a060020a0316858442612642565b610d89565b610c97610c8a8342612881565b839063ffffffff6128cb16565b601754600160a060020a0316600090815260208190526040902054909150610cc5908263ffffffff6128da16565b601754600160a060020a039081166000908152602081905260408082209390935590861681522054610cfd908263ffffffff6128cb16565b600160a060020a03851660009081526020819052604090819020919091558051908101604090815283825242602080840191909152600160a060020a038716600090815260079091522081518155602082015160019091015550601754600160a060020a038086169116600080516020612c658339815191528460405190815260200160405180910390a35b50505050565b6000600160a060020a0382161515610da657600080fd5b600160a060020a0382166000908152601a602052604090205460ff1615610e0457600160a060020a0382166000908152601a60209081526040808320600201549183905290912054610dfd9163ffffffff6128da16565b9050610e1f565b50600160a060020a0381166000908152602081905260409020545b919050565b600160a060020a03166000908152601c602052604090205460011490565b60155433600160a060020a03908116911614610e5d57600080fd5b6011805460ff1916911515919091179055565b60125481565b6000600160a060020a03821615801590610ea85750600160a060020a0382166000908152601a602052604090205460ff165b92915050565b600080610ee563010b0760610ed98181630fa56ea0816314dc9380630d8f5fe063ffffffff6128cb16565b9063ffffffff6128cb16565b9050610efc600a54826125f590919063ffffffff16565b91505b5090565b60115460009060ff161515610f1757600080fd5b600160a060020a0384161515610f2c57600080fd5b600160a060020a0380851660009081526001602090815260408083203390941683529290522054821115610f5f57600080fd5b610f68846121de565b821115610f7457600080fd5b600160a060020a0383161515610f8957600080fd5b600160a060020a038481169084161415610fa257600080fd5b600160a060020a038416600090815260208190526040902054610fcb908363ffffffff6128da16565b600160a060020a038086166000908152602081905260408082209390935590851681522054611000908363ffffffff6128cb16565b600160a060020a0380851660009081526020818152604080832094909455878316825260018152838220339093168252919091522054611046908363ffffffff6128da16565b600160a060020a0380861660008181526001602090815260408083203386168452909152908190209390935590851691600080516020612c658339815191529085905190815260200160405180910390a35060019392505050565b60115460009081908190819060ff1615156110bb57600080fd5b6110c433610e24565b15156110cf57600080fd5b60008610156110dd57600080fd5b600160a060020a038a166000908152601a60205260409020600201548690101561110657600080fd5b600160a060020a0389166000908152601a602052604090205460ff16151561112d57600080fd5b600160a060020a038a166000908152601a6020526040902060020154611159908663ffffffff6128da16565b600160a060020a038b166000908152601a602052604081206002019190915591508190508086111561124a576111908a8a886128ec565b601854600160a060020a038a811691161461124a576000871180156111bd5750600160a060020a03881615155b80156111e15750600160a060020a0388166000908152601a602052604090205460ff165b15611209576111fc6127106109df888a63ffffffff6125f516565b91506112098989846128ec565b6000601254111561124a5761122f6127106109df601254896125f590919063ffffffff16565b60155490915061124a908a90600160a060020a0316836128ec565b90999098509650505050505050565b60145481565b60058054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b295780601f10610afe57610100808354040283529160200191610b29565b60045481565b60115460ff1615156112e157600080fd5b60155433600160a060020a039081169116146112fc57600080fd5b600160a060020a038116151561131157600080fd5b60198054600160a060020a031916600160a060020a0392909216919091179055565b60008061134c60026009546125f590919063ffffffff16565b905080600c5410158015610efc5750601654600160a060020a03166000908152602081905260409020541015919050565b600080600061139b600a54630fa56ea06125f590919063ffffffff16565b600a546113b39063010b07609063ffffffff6125f516565b600a546113cb9063010b07609063ffffffff6125f516565b925092509250909192565b60068054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b295780601f10610afe57610100808354040283529160200191610b29565b60115460ff16151561145257600080fd5b60155433600160a060020a0390811691161461146d57600080fd5b61271081111561147c57600080fd5b600a5461148f908263ffffffff6125f516565b60085550565b60115460ff1615156114a657600080fd5b6114af33610e24565b15156114ba57600080fd5b6114ca818363ffffffff6128cb16565b6114d385610d8f565b10156114de57600080fd5b600082111561158b57600160a060020a038416600090815260208190526040902054611510908363ffffffff6128da16565b600160a060020a038086166000908152602081905260408082209390935590851681522054611545908363ffffffff6128cb16565b600160a060020a0380851660008181526020819052604090819020939093559190861690600080516020612c658339815191529085905190815260200160405180910390a35b600160a060020a0384166000908152602081905260409020546115b4908263ffffffff6128da16565b600160a060020a03851660009081526020818152604080832093909355601b905220546115e7908263ffffffff6128cb16565b600160a060020a039094166000908152601b6020526040902093909355505050565b60115460ff16151561161a57600080fd5b60008111156116cc5761162c33610e24565b8061163b575061163b336125a2565b151561164657600080fd5b61164f82610e76565b151561165a57600080fd5b600160a060020a0382166000908152601a60205260409020600201548190101561168357600080fd5b600160a060020a0382166000908152601a60205260409020600201546116af908263ffffffff6128da16565b600160a060020a0383166000908152601a60205260409020600201555b5050565b60115460ff1615156116e157600080fd5b60155433600160a060020a039081169116146116fc57600080fd5b600160a060020a038116151561171157600080fd5b600160a060020a03166000908152601c6020526040902060019055565b60115460ff16151561173f57600080fd5b60155433600160a060020a0390811691161461175a57600080fd5b600160a060020a038116151561176f57600080fd5b601654600160a060020a038281169116141561178a57600080fd5b601654600160a060020a039081166000908152602081905260408082205492841682529020546117bf9163ffffffff6128cb16565b600160a060020a03808316600081815260208181526040808320959095556016549093168152838120819055908152601a909152205460ff1615156118ba5760806040519081016040908152600182526000602080840182905282840182905260608401829052600160a060020a0385168252601a9052208151815460ff1916901515178155602082015181600101556040820151816002015560608201516003919091018054600160a060020a031916600160a060020a0390921691909117905550601d8054600181016118948382612c14565b5060009182526020909120018054600160a060020a031916600160a060020a0383161790555b60168054600160a060020a031916600160a060020a0392909216919091179055565b601854600160a060020a03165b90565b60115460ff1615156118fd57600080fd5b60155433600160a060020a0390811691161461191857600080fd5b600160a060020a038116151561192d57600080fd5b600160a060020a03166000908152601c6020526040812055565b61194f612c38565b611958336125a2565b151561196357600080fd5b601d8054806020026020016040519081016040528092919081815260200182805480156119b957602002820191906000526020600020905b8154600160a060020a0316815260019091019060200180831161199b575b5050505050905090565b600160a060020a031660009081526020819052604090205490565b601654600090600160a060020a0383811691161480610ea8575050601854600160a060020a0390811691161490565b601754600160a060020a0316600090815260208190526040812054601354601454600d54600e54600f549590941194929391929092939495565b60038054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b295780601f10610afe57610100808354040283529160200191610b29565b60115460ff161515611ac357600080fd5b611acc33610e24565b1515611ad757600080fd5b600160a060020a0383166000908152601b602052604090205481901015611afd57600080fd5b600160a060020a0383166000908152601b6020526040902054611b26908263ffffffff6128da16565b600160a060020a038085166000908152601b60209081526040808320949094559185168152908190522054611b61908263ffffffff6128cb16565b600160a060020a0380841660008181526020819052604090819020939093559190851690600080516020612c658339815191529084905190815260200160405180910390a3505050565b60115460ff161515611bbc57600080fd5b60155433600160a060020a03908116911614611bd757600080fd5b6000811015611be557600080fd5b601255565b60115460009060ff161515611bfe57600080fd5b600160a060020a0383161515611c1357600080fd5b33600160a060020a031683600160a060020a031614151515611c3457600080fd5b611c3d336121de565b821115611c4957600080fd5b600160a060020a033316600090815260208190526040902054611c72908363ffffffff6128da16565b600160a060020a033381166000908152602081905260408082209390935590851681522054611ca7908363ffffffff6128cb16565b60008085600160a060020a0316600160a060020a031681526020019081526020016000208190555082600160a060020a031633600160a060020a0316600080516020612c658339815191528460405190815260200160405180910390a350600192915050565b60115460ff161515611d1e57600080fd5b60008111156116cc57611d3033610e24565b80611d3f5750611d3f336125a2565b1515611d4a57600080fd5b611d5382610e76565b1515611d5e57600080fd5b80611d6883610d8f565b1015611d7357600080fd5b600160a060020a0382166000908152601a60205260409020600201546116af908263ffffffff6128cb16565b6000611daa336119c3565b905090565b60155433600160a060020a03908116911614611dca57600080fd5b600d5415611dd757600080fd5b611de0836116d0565b611de9826116d0565b611df2816116d0565b611e09635aafd07062093a8063ffffffff6128cb16565b600d819055611e219062093a8063ffffffff6128cb16565b600e819055611e399062093a8063ffffffff6128cb16565b600f55600a54611e54906314dc93809063ffffffff6125f516565b601754600160a060020a0316600090815260208190526040902055600a54611eb290611e8b90630d8f5fe09063ffffffff6125f516565b601654600160a060020a03166000908152602081905260409020549063ffffffff6128cb16565b601654600160a060020a0316600090815260208190526040902055600a54611f1090611ee9906311bb7d609063ffffffff6125f516565b601554600160a060020a03166000908152602081905260409020549063ffffffff6128cb16565b601554600160a060020a0316600090815260208190526040902055600a54611f40906101f463ffffffff6125f516565b600855600a54611f5790606463ffffffff6125f516565b600955505050565b601154600090819060ff161515611f7557600080fd5b611f7e336125a2565b1515611f8957600080fd5b611f94858585612a5b565b60009050600854600b5410158015611fc85750600854601654600160a060020a031660009081526020819052604090205410155b1561204357600854600b54611fe29163ffffffff6128da16565b600b55600854600160a060020a0386166000908152601a60205260409020600101546120139163ffffffff6128cb16565b600160a060020a0386166000908152601a602052604090206001015560085461203d908690611bea565b50506008545b84600160a060020a03167f2f5213276c43fb23315923b6721fe88e44be07321c1099243154bf1e8572449d612077876119c3565b8360405191825260208201526040908101905180910390a2600160a060020a038316158015906120aa57506120aa611333565b156121cc576009546120d6906120c790600263ffffffff6125f516565b600c549063ffffffff6128da16565b600c556009546120e7908490611bea565b50600954600160a060020a0384166000908152601a60205260409020600101546121169163ffffffff6128cb16565b600160a060020a0384166000908152601a6020526040902060010155600954612140908690611bea565b50600954600160a060020a0386166000908152601a602052604090206001015461216f9163ffffffff6128cb16565b600160a060020a038087166000818152601a602052604090819020600101939093556009549186169290917f63a6d6b80a0193ada4f20d4e4ebde29156966dddc75414d2b684fa16a6b49641915190815260200160405180910390a35b6121d5856119c3565b95945050505050565b600080600160a060020a03831615156121f657600080fd5b600160a060020a0383166000908152601a602052604090205460ff16156122b157600160a060020a0383166000908152601a602052604090206001810154600290910154101561226157600160a060020a0383166000908152601a602052604090206001015461227e565b600160a060020a0383166000908152601a60205260409020600201545b600160a060020a0384166000908152602081905260409020549091506122aa908263ffffffff6128da16565b91506122cd565b600160a060020a03831660009081526020819052604090205491505b50919050565b601754600160a060020a0316600090815260208190526040812054116122f857600080fd5b60155433600160a060020a0390811691161480612323575060165433600160a060020a039081169116145b8061233c575060175433600160a060020a039081169116145b151561234757600080fd5b60155433600160a060020a0390811691161415612370576010805460ff191660011790556123c4565b60165433600160a060020a039081169116141561239b576010805461ff0019166101001790556123c4565b60175433600160a060020a03908116911614156123c4576010805462ff00001916620100001790555b60105460ff1680156123dd5750601054610100900460ff165b80156123f1575060105462010000900460ff165b1561241257601754600160a060020a03166000908152602081905260408120555b565b60115460ff1690565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b60115460ff16151561245957600080fd5b60155433600160a060020a0390811691161461247457600080fd5b600081101561248257600080fd5b601355565b60135481565b60008060008061249c336125a2565b15156124a757600080fd5b600160a060020a0385166000908152601a602052604090205460ff1615156124ce57600080fd5b50505050600160a060020a0390811660009081526020818152604080832054601a9092529091206001810154600282015460039092015492949093919290911690565b60115460009060ff16151561252557600080fd5b61252e336125a2565b151561253957600080fd5b612544848484612a5b565b83600160a060020a03167f2f5213276c43fb23315923b6721fe88e44be07321c1099243154bf1e8572449d612578866119c3565b600060405191825260208201526040908101905180910390a261259a846119c3565b949350505050565b601654600160a060020a0390811691161490565b60115460ff1615156125c757600080fd5b60155433600160a060020a039081169116146125e257600080fd5b60018110156125f057600080fd5b601455565b6000808315156126085760009150612624565b5082820282848281151561261857fe5b041461262057fe5b8091505b5092915050565b600080828481151561263957fe5b04949350505050565b60008060006126616126548686612881565b869063ffffffff6128cb16565b92508261266d886121de565b101561267857600080fd5b600160a060020a0387166000908152602081905260409020546126a1908463ffffffff6128da16565b600160a060020a0380891660009081526020819052604080822093909355908816815220546126d6908463ffffffff6128cb16565b600160a060020a0380881660008181526020819052604090819020939093559190891690600080516020612c658339815191529086905190815260200160405180910390a3600160a060020a0386166000908152601a602052604090205460ff16801561275f5750600160a060020a038681166000908152601a60205260409020600301541615155b1561287857600160a060020a038087166000908152601a6020526040902060039081015490911692506127a0906064906109df90889063ffffffff6125f516565b90506000811180156127c7575060175481906127c490600160a060020a03166121de565b10155b1561287857601754600160a060020a03166000908152602081905260409020546127f7908263ffffffff6128da16565b601754600160a060020a03908116600090815260208190526040808220939093559084168152205461282f908263ffffffff6128cb16565b600160a060020a0380841660008181526020819052604090819020939093556017549092911690600080516020612c658339815191529084905190815260200160405180910390a35b50505050505050565b600f54600090819083116128b657600e5483116128b257600d5483116128a9575060146128ad565b50600a5b6128b6565b5060055b61259a60646109df868463ffffffff6125f516565b60008282018381101561262057fe5b6000828211156128e657fe5b50900390565b6128f583610e76565b151561290057600080fd5b61290982610e76565b151561291457600080fd5b8061291e84610d8f565b101561292957600080fd5b600160a060020a038316600090815260208190526040902054612952908263ffffffff6128da16565b600160a060020a038085166000908152602081905260408082209390935590841681522054612987908263ffffffff6128cb16565b600160a060020a0380841660008181526020819052604090819020939093559190851690600080516020612c658339815191529084905190815260200160405180910390a3600160a060020a0383166000908152601a6020526040902060010154819010612a3c57600160a060020a0383166000908152601a6020526040902060010154612a1b908263ffffffff6128da16565b600160a060020a0384166000908152601a6020526040902060010155610a3a565b5050600160a060020a03166000908152601a6020526040812060010155565b600160a060020a0383161515612a7057600080fd5b600160a060020a0383166000908152601a602052604090205460ff1615612a9657600080fd5b600160a060020a03811615612ac657600160a060020a0381166000908152601a602052604090205460ff16612ac9565b60015b1515612ad457600080fd5b600160a060020a038181169084161415612aed57600080fd5b608060405190810160409081526001825260006020808401829052828401829052600160a060020a03808616606086015287168252601a9052208151815460ff1916901515178155602082015181600101556040820151816002015560608201516003919091018054600160a060020a031916600160a060020a0390921691909117905550601d805460018101612b848382612c14565b5060009182526020808320919091018054600160a060020a031916600160a060020a0387811691909117909155841682526007905260408120541115610a3a57600160a060020a03821660009081526007602052604090208054600190910154612bf2918491869190612642565b50600160a060020a031660009081526007602052604081208181556001015550565b815481835581811511610a3a57600083815260209020610a3a918101908301612c4a565b60206040519081016040526000815290565b6118e991905b80821115610eff5760008155600101612c505600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a72305820aa1b921e962e4184c65de3b1c612bc3ca0f496fe397cc7fa755b003f2f3cb64a0029

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000b029e80c48e14af4b1f722823431432cb4921ea2000000000000000000000000294fee55fccabdf970e1889fb79675e0937afd23000000000000000000000000dd60feb57cfaf713fd5c19e8d662953e1f5cef40000000000000000000000000000000000000000000000000000000000000000a5748454e20546f6b656e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045748454e00000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : tokenName (string): WHEN Token
Arg [1] : tokenSymbol (string): WHEN
Arg [2] : platformAccount (address): 0xb029e80c48e14AF4B1f722823431432CB4921eA2
Arg [3] : icoAccount (address): 0x294fEE55FCcABdf970E1889Fb79675E0937aFD23
Arg [4] : supportAccount (address): 0xdd60Feb57cfaF713fD5c19E8d662953e1f5cEf40

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 000000000000000000000000b029e80c48e14af4b1f722823431432cb4921ea2
Arg [3] : 000000000000000000000000294fee55fccabdf970e1889fb79675e0937afd23
Arg [4] : 000000000000000000000000dd60feb57cfaf713fd5c19e8d662953e1f5cef40
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [6] : 5748454e20546f6b656e00000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 5748454e00000000000000000000000000000000000000000000000000000000


Swarm Source

bzzr://aa1b921e962e4184c65de3b1c612bc3ca0f496fe397cc7fa755b003f2f3cb64a
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.