ETH Price: $3,014.72 (+4.29%)
Gas: 9 Gwei

Contract

0xB3775fB83F7D12A36E0475aBdD1FCA35c091efBe
 

Overview

ETH Balance

2,283.103720202924994397 ETH

Eth Value

$6,882,908.46 (@ $3,014.72/ETH)

Token Holdings

Multichain Info

1 address found via
Transaction Hash
Method
Block
From
To
Value
0xace910ecbe25720cd53eeda9807528660592ec61e6ed00fa2970555a8a5c5c68Sell(pending)2024-05-15 20:10:2611 mins ago1715803826IN
PowH3D
0 ETH(Pending)(Pending)
0xbd43e2c2d0ef92984d6334c10ef6166494053991169a0bd85549203b2aabf4ebSell(pending)2024-05-15 19:32:0449 mins ago1715801524IN
PowH3D
0 ETH(Pending)(Pending)
0x6eccf35296a9078c1ee9681f39a502a5e764c04dacf2ec91503437b5ccf0f33eReinvest(pending)2024-05-15 19:05:151 hr ago1715799915IN
PowH3D
0 ETH(Pending)(Pending)
0x9d95d0dd5b4baa1de988b8632e3d481b12a9e41f79efc00a20810cae6e3ae9dfReinvest(pending)2024-05-14 13:37:4730 hrs ago1715693867IN
PowH3D
0 ETH(Pending)(Pending)
0x4fda2740cee0cb8c696e96aecc7bf42c9be095bbbee13a51df195be7940bdb4fWithdraw(pending)2024-05-12 7:40:033 days ago1715499603IN
PowH3D
0 ETH(Pending)(Pending)
Exit198547272024-05-12 15:07:233 days ago1715526443IN
PowH3D
0 ETH0.000372626.86827891
Exit198545242024-05-12 14:26:113 days ago1715523971IN
PowH3D
0 ETH0.000449968.29391737
Reinvest198492892024-05-11 20:50:473 days ago1715460647IN
PowH3D
0 ETH0.000209183
Reinvest198369162024-05-10 3:20:235 days ago1715311223IN
PowH3D
0 ETH0.000209183
Buy198367692024-05-10 2:50:595 days ago1715309459IN
PowH3D
0.005 ETH0.000235173.66704589
Reinvest198230572024-05-08 4:47:477 days ago1715143667IN
PowH3D
0 ETH0.00017035.54044899
Withdraw198230572024-05-08 4:47:477 days ago1715143667IN
PowH3D
0 ETH0.000238155.54044899
Reinvest198230572024-05-08 4:47:477 days ago1715143667IN
PowH3D
0 ETH0.000348645
Reinvest198230562024-05-08 4:47:357 days ago1715143655IN
PowH3D
0 ETH0.000400495.74370704
Reinvest198230562024-05-08 4:47:357 days ago1715143655IN
PowH3D
0 ETH0.000400495.74370704
Sell198142732024-05-06 23:18:478 days ago1715037527IN
PowH3D
0 ETH0.000184293.99732197
Exit197697092024-04-30 17:46:4715 days ago1714499207IN
PowH3D
0 ETH0.0009052916.68648242
Withdraw197529162024-04-28 9:27:1117 days ago1714296431IN
PowH3D
0 ETH0.000277816.46329467
Sell197529072024-04-28 9:25:2317 days ago1714296323IN
PowH3D
0 ETH0.000326987.09420301
Withdraw197523132024-04-28 7:25:4717 days ago1714289147IN
PowH3D
0 ETH0.000241345.61479605
Withdraw197511552024-04-28 3:32:5917 days ago1714275179IN
PowH3D
0 ETH0.000251715.85598607
Reinvest197498022024-04-27 22:59:3517 days ago1714258775IN
PowH3D
0 ETH0.000278914
Withdraw197359582024-04-26 0:27:3519 days ago1714091255IN
PowH3D
0 ETH0.000150544.96201566
Withdraw197164112024-04-23 6:49:1122 days ago1713854951IN
PowH3D
0 ETH0.0004397210.22993272
Sell197164072024-04-23 6:48:2322 days ago1713854903IN
PowH3D
0 ETH0.0004623210.02533414
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
198727012024-05-15 3:30:2316 hrs ago1715743823
PowH3D
0.01530962 ETH
198547272024-05-12 15:07:233 days ago1715526443
PowH3D
0.00308754 ETH
198545242024-05-12 14:26:113 days ago1715523971
PowH3D
0.01027212 ETH
198364932024-05-10 1:54:355 days ago1715306075
PowH3D
0.00045887 ETH
198230572024-05-08 4:47:477 days ago1715143667
PowH3D
27 wei
198206762024-05-07 20:48:357 days ago1715114915
PowH3D
1.71448716 ETH
198206602024-05-07 20:45:237 days ago1715114723
PowH3D
0.37223763 ETH
198141992024-05-06 23:03:598 days ago1715036639
PowH3D
0.00000854 ETH
197998072024-05-04 22:45:3510 days ago1714862735
PowH3D
0.03238437 ETH
197706612024-04-30 20:59:1114 days ago1714510751
PowH3D
0.00003344 ETH
197697092024-04-30 17:46:4715 days ago1714499207
PowH3D
0.04229865 ETH
197529162024-04-28 9:27:1117 days ago1714296431
PowH3D
0.00222576 ETH
197523132024-04-28 7:25:4717 days ago1714289147
PowH3D
0.00000098 ETH
197511552024-04-28 3:32:5917 days ago1714275179
PowH3D
0.44243528 ETH
197429402024-04-26 23:56:5918 days ago1714175819
PowH3D
0.0059506 ETH
197308002024-04-25 7:09:5920 days ago1714028999
PowH3D
0.0045 ETH
197274652024-04-24 19:58:3521 days ago1713988715
PowH3D
0.00119951 ETH
197249172024-04-24 11:23:3521 days ago1713957815
PowH3D
0.0045 ETH
197164112024-04-23 6:49:1122 days ago1713854951
PowH3D
4.03380808 ETH
197163912024-04-23 6:45:1122 days ago1713854711
PowH3D
1.09926024 ETH
197133412024-04-22 20:32:1122 days ago1713817931
PowH3D
0.0160965 ETH
197097682024-04-22 8:33:1123 days ago1713774791
PowH3D
0.0131761 ETH
197062522024-04-21 20:45:2323 days ago1713732323
PowH3D
1.04730137 ETH
197059142024-04-21 19:37:3524 days ago1713728255
PowH3D
0.16176114 ETH
197049082024-04-21 16:14:5924 days ago1713716099
PowH3D
0.00010845 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Hourglass

Compiler Version
v0.4.20+commit.3155dd80

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-02-25
*/

pragma solidity ^0.4.20;

/*
* Team JUST presents..
* ====================================*
* _____     _ _ _ _____    ___ ____   * 
*|  _  |___| | | |  |  |  |_  |    \  *
*|   __| . | | | |     |  |_  |  |  | * 
*|__|  |___|_____|__|__|  |___|____/  *
*                                     *
* ====================================*
* -> What?
* The original autonomous pyramid, improved:
* [x] More stable than ever, having withstood severe testnet abuse and attack attempts from our community!.
* [x] Audited, tested, and approved by known community security specialists such as tocsick and Arc.
* [X] New functionality; you can now perform partial sell orders. If you succumb to weak hands, you don't have to dump all of your bags!
* [x] New functionality; you can now transfer tokens between wallets. Trading is now possible from within the contract!
* [x] New Feature: PoS Masternodes! The first implementation of Ethereum Staking in the world! Vitalik is mad.
* [x] Masternodes: Holding 100 PoWH3D Tokens allow you to generate a Masternode link, Masternode links are used as unique entry points to the contract!
* [x] Masternodes: All players who enter the contract through your Masternode have 30% of their 10% dividends fee rerouted from the master-node, to the node-master!
*
* -> What about the last projects?
* Every programming member of the old dev team has been fired and/or killed by 232.
* The new dev team consists of seasoned, professional developers and has been audited by veteran solidity experts.
* Additionally, two independent testnet iterations have been used by hundreds of people; not a single point of failure was found.
* 
* -> Who worked on this project?
* - PonziBot (math/memes/main site/master)
* - Mantso (lead solidity dev/lead web3 dev)
* - swagg (concept design/feedback/management)
* - Anonymous#1 (main site/web3/test cases)
* - Anonymous#2 (math formulae/whitepaper)
*
* -> Who has audited & approved the projected:
* - Arc
* - tocisck
* - sumpunk
*/

contract Hourglass {
    /*=================================
    =            MODIFIERS            =
    =================================*/
    // only people with tokens
    modifier onlyBagholders() {
        require(myTokens() > 0);
        _;
    }
    
    // only people with profits
    modifier onlyStronghands() {
        require(myDividends(true) > 0);
        _;
    }
    
    // administrators can:
    // -> change the name of the contract
    // -> change the name of the token
    // -> change the PoS difficulty (How many tokens it costs to hold a masternode, in case it gets crazy high later)
    // they CANNOT:
    // -> take funds
    // -> disable withdrawals
    // -> kill the contract
    // -> change the price of tokens
    modifier onlyAdministrator(){
        address _customerAddress = msg.sender;
        require(administrators[keccak256(_customerAddress)]);
        _;
    }
    
    
    // ensures that the first tokens in the contract will be equally distributed
    // meaning, no divine dump will be ever possible
    // result: healthy longevity.
    modifier antiEarlyWhale(uint256 _amountOfEthereum){
        address _customerAddress = msg.sender;
        
        // are we still in the vulnerable phase?
        // if so, enact anti early whale protocol 
        if( onlyAmbassadors && ((totalEthereumBalance() - _amountOfEthereum) <= ambassadorQuota_ )){
            require(
                // is the customer in the ambassador list?
                ambassadors_[_customerAddress] == true &&
                
                // does the customer purchase exceed the max ambassador quota?
                (ambassadorAccumulatedQuota_[_customerAddress] + _amountOfEthereum) <= ambassadorMaxPurchase_
                
            );
            
            // updated the accumulated quota    
            ambassadorAccumulatedQuota_[_customerAddress] = SafeMath.add(ambassadorAccumulatedQuota_[_customerAddress], _amountOfEthereum);
        
            // execute
            _;
        } else {
            // in case the ether count drops low, the ambassador phase won't reinitiate
            onlyAmbassadors = false;
            _;    
        }
        
    }
    
    
    /*==============================
    =            EVENTS            =
    ==============================*/
    event onTokenPurchase(
        address indexed customerAddress,
        uint256 incomingEthereum,
        uint256 tokensMinted,
        address indexed referredBy
    );
    
    event onTokenSell(
        address indexed customerAddress,
        uint256 tokensBurned,
        uint256 ethereumEarned
    );
    
    event onReinvestment(
        address indexed customerAddress,
        uint256 ethereumReinvested,
        uint256 tokensMinted
    );
    
    event onWithdraw(
        address indexed customerAddress,
        uint256 ethereumWithdrawn
    );
    
    // ERC20
    event Transfer(
        address indexed from,
        address indexed to,
        uint256 tokens
    );
    
    
    /*=====================================
    =            CONFIGURABLES            =
    =====================================*/
    string public name = "PowH3D";
    string public symbol = "P3D";
    uint8 constant public decimals = 18;
    uint8 constant internal dividendFee_ = 10;
    uint256 constant internal tokenPriceInitial_ = 0.0000001 ether;
    uint256 constant internal tokenPriceIncremental_ = 0.00000001 ether;
    uint256 constant internal magnitude = 2**64;
    
    // proof of stake (defaults at 100 tokens)
    uint256 public stakingRequirement = 100e18;
    
    // ambassador program
    mapping(address => bool) internal ambassadors_;
    uint256 constant internal ambassadorMaxPurchase_ = 1 ether;
    uint256 constant internal ambassadorQuota_ = 20 ether;
    
    
    
   /*================================
    =            DATASETS            =
    ================================*/
    // amount of shares for each address (scaled number)
    mapping(address => uint256) internal tokenBalanceLedger_;
    mapping(address => uint256) internal referralBalance_;
    mapping(address => int256) internal payoutsTo_;
    mapping(address => uint256) internal ambassadorAccumulatedQuota_;
    uint256 internal tokenSupply_ = 0;
    uint256 internal profitPerShare_;
    
    // administrator list (see above on what they can do)
    mapping(bytes32 => bool) public administrators;
    
    // when this is set to true, only ambassadors can purchase tokens (this prevents a whale premine, it ensures a fairly distributed upper pyramid)
    bool public onlyAmbassadors = true;
    


    /*=======================================
    =            PUBLIC FUNCTIONS            =
    =======================================*/
    /*
    * -- APPLICATION ENTRY POINTS --  
    */
    function Hourglass()
        public
    {
        // add administrators here
        administrators[0xdd8bb99b13fe33e1c32254dfb8fff3e71193f6b730a89dd33bfe5dedc6d83002] = true;
        
        // add the ambassadors here.
        // mantso - lead solidity dev & lead web dev. 
        ambassadors_[0x8b4DA1827932D71759687f925D17F81Fc94e3A9D] = true;
        
        // ponzibot - mathematics & website, and undisputed meme god.
        ambassadors_[0x8e0d985f3Ec1857BEc39B76aAabDEa6B31B67d53] = true;
        
        // swagg - concept design, feedback, management.
        ambassadors_[0x7563A35d5610eE7c9CD330E255Da0e779a644C19] = true;
        
        // k-dawgz - shilling machine, meme maestro, bizman.
        ambassadors_[0x215e3C713BADb158A457e61f99325bBB5d278E57] = true;
        
        // elmojo - all those pretty .GIFs & memes you see? you can thank this man for that.
        ambassadors_[0xaFF8B5CDCB339eEf5e1100597740a394C7B9c6cA] = true;
        
        // capex - community moderator.
        ambassadors_[0x8dc6569c28521560EAF1890bC41b2F3FC2010E1b] = true;
        
        // jörmungandr - pentests & twitter trendsetter.
        ambassadors_[0xf14BE3662FE4c9215c27698166759Db6967De94f] = true;
        
        // inventor - the source behind the non-intrusive referral model.
        ambassadors_[0x18E90Fc6F70344f53EBd4f6070bf6Aa23e2D748C] = true;
        
        // tocsick - pentesting, contract auditing.
        ambassadors_[0x49Aae4D923207e80Fc91E626BCb6532502264dfC] = true;
        
        // arc - pentesting, contract auditing.
        ambassadors_[0x3a0cca1A832644B60730E5D4c27947C5De609d62] = true;
        
        // sumpunk - contract auditing.
        ambassadors_[0x7ac74Fcc1a71b106F12c55ee8F802C9F672Ce40C] = true;
        
        // randall - charts & sheets, data dissector, advisor.
        ambassadors_[0x2b219C2178f099dE4E9A3667d5cCc2cc64da0763] = true;
        
        // ambius - 3d chart visualization.
        ambassadors_[0x2A04C7335f90a6bd4e9c4F713DD792200e27F2E6] = true;
        
        // contributors that need to remain private out of security concerns.
        ambassadors_[0x35668818ba8F768D4C21787a6f45C86C69394dfD] = true; //dp
        ambassadors_[0xa3120da52e604aC3Fc80A63813Ef15476e0B6AbD] = true; //tc
        ambassadors_[0x924E71bA600372e2410285423F1Fe66799b717EC] = true; //ja
        ambassadors_[0x6Ed450e062C20F929CB7Ee72fCc53e9697980a18] = true; //sf
        ambassadors_[0x18864A6682c8EB79EEA5B899F11bC94ef9a85ADb] = true; //tb
        ambassadors_[0x9cC1BdC994b7a847705D19106287C0BF94EF04B5] = true; //sm
        ambassadors_[0x6926572813ec1438088963f208C61847df435a74] = true; //mc
        ambassadors_[0xE16Ab764a02Ae03681E351Ac58FE79717c0eE8C6] = true; //et
        ambassadors_[0x276F4a79F22D1BfC51Bd8dc5b27Bfd934C823932] = true; //sn
        ambassadors_[0xA2b4ed3E2f4beF09FB35101B76Ef4cB9D3eeCaCf] = true; //bt
        ambassadors_[0x147fc6b04c95BCE47D013c8d7a200ee434323669] = true; //al
        

    }
    
     
    /**
     * Converts all incoming ethereum to tokens for the caller, and passes down the referral addy (if any)
     */
    function buy(address _referredBy)
        public
        payable
        returns(uint256)
    {
        purchaseTokens(msg.value, _referredBy);
    }
    
    /**
     * Fallback function to handle ethereum that was send straight to the contract
     * Unfortunately we cannot use a referral address this way.
     */
    function()
        payable
        public
    {
        purchaseTokens(msg.value, 0x0);
    }
    
    /**
     * Converts all of caller's dividends to tokens.
     */
    function reinvest()
        onlyStronghands()
        public
    {
        // fetch dividends
        uint256 _dividends = myDividends(false); // retrieve ref. bonus later in the code
        
        // pay out the dividends virtually
        address _customerAddress = msg.sender;
        payoutsTo_[_customerAddress] +=  (int256) (_dividends * magnitude);
        
        // retrieve ref. bonus
        _dividends += referralBalance_[_customerAddress];
        referralBalance_[_customerAddress] = 0;
        
        // dispatch a buy order with the virtualized "withdrawn dividends"
        uint256 _tokens = purchaseTokens(_dividends, 0x0);
        
        // fire event
        onReinvestment(_customerAddress, _dividends, _tokens);
    }
    
    /**
     * Alias of sell() and withdraw().
     */
    function exit()
        public
    {
        // get token count for caller & sell them all
        address _customerAddress = msg.sender;
        uint256 _tokens = tokenBalanceLedger_[_customerAddress];
        if(_tokens > 0) sell(_tokens);
        
        // lambo delivery service
        withdraw();
    }

    /**
     * Withdraws all of the callers earnings.
     */
    function withdraw()
        onlyStronghands()
        public
    {
        // setup data
        address _customerAddress = msg.sender;
        uint256 _dividends = myDividends(false); // get ref. bonus later in the code
        
        // update dividend tracker
        payoutsTo_[_customerAddress] +=  (int256) (_dividends * magnitude);
        
        // add ref. bonus
        _dividends += referralBalance_[_customerAddress];
        referralBalance_[_customerAddress] = 0;
        
        // lambo delivery service
        _customerAddress.transfer(_dividends);
        
        // fire event
        onWithdraw(_customerAddress, _dividends);
    }
    
    /**
     * Liquifies tokens to ethereum.
     */
    function sell(uint256 _amountOfTokens)
        onlyBagholders()
        public
    {
        // setup data
        address _customerAddress = msg.sender;
        // russian hackers BTFO
        require(_amountOfTokens <= tokenBalanceLedger_[_customerAddress]);
        uint256 _tokens = _amountOfTokens;
        uint256 _ethereum = tokensToEthereum_(_tokens);
        uint256 _dividends = SafeMath.div(_ethereum, dividendFee_);
        uint256 _taxedEthereum = SafeMath.sub(_ethereum, _dividends);
        
        // burn the sold tokens
        tokenSupply_ = SafeMath.sub(tokenSupply_, _tokens);
        tokenBalanceLedger_[_customerAddress] = SafeMath.sub(tokenBalanceLedger_[_customerAddress], _tokens);
        
        // update dividends tracker
        int256 _updatedPayouts = (int256) (profitPerShare_ * _tokens + (_taxedEthereum * magnitude));
        payoutsTo_[_customerAddress] -= _updatedPayouts;       
        
        // dividing by zero is a bad idea
        if (tokenSupply_ > 0) {
            // update the amount of dividends per token
            profitPerShare_ = SafeMath.add(profitPerShare_, (_dividends * magnitude) / tokenSupply_);
        }
        
        // fire event
        onTokenSell(_customerAddress, _tokens, _taxedEthereum);
    }
    
    
    /**
     * Transfer tokens from the caller to a new holder.
     * Remember, there's a 10% fee here as well.
     */
    function transfer(address _toAddress, uint256 _amountOfTokens)
        onlyBagholders()
        public
        returns(bool)
    {
        // setup
        address _customerAddress = msg.sender;
        
        // make sure we have the requested tokens
        // also disables transfers until ambassador phase is over
        // ( we dont want whale premines )
        require(!onlyAmbassadors && _amountOfTokens <= tokenBalanceLedger_[_customerAddress]);
        
        // withdraw all outstanding dividends first
        if(myDividends(true) > 0) withdraw();
        
        // liquify 10% of the tokens that are transfered
        // these are dispersed to shareholders
        uint256 _tokenFee = SafeMath.div(_amountOfTokens, dividendFee_);
        uint256 _taxedTokens = SafeMath.sub(_amountOfTokens, _tokenFee);
        uint256 _dividends = tokensToEthereum_(_tokenFee);
  
        // burn the fee tokens
        tokenSupply_ = SafeMath.sub(tokenSupply_, _tokenFee);

        // exchange tokens
        tokenBalanceLedger_[_customerAddress] = SafeMath.sub(tokenBalanceLedger_[_customerAddress], _amountOfTokens);
        tokenBalanceLedger_[_toAddress] = SafeMath.add(tokenBalanceLedger_[_toAddress], _taxedTokens);
        
        // update dividend trackers
        payoutsTo_[_customerAddress] -= (int256) (profitPerShare_ * _amountOfTokens);
        payoutsTo_[_toAddress] += (int256) (profitPerShare_ * _taxedTokens);
        
        // disperse dividends among holders
        profitPerShare_ = SafeMath.add(profitPerShare_, (_dividends * magnitude) / tokenSupply_);
        
        // fire event
        Transfer(_customerAddress, _toAddress, _taxedTokens);
        
        // ERC20
        return true;
       
    }
    
    /*----------  ADMINISTRATOR ONLY FUNCTIONS  ----------*/
    /**
     * In case the amassador quota is not met, the administrator can manually disable the ambassador phase.
     */
    function disableInitialStage()
        onlyAdministrator()
        public
    {
        onlyAmbassadors = false;
    }
    
    /**
     * In case one of us dies, we need to replace ourselves.
     */
    function setAdministrator(bytes32 _identifier, bool _status)
        onlyAdministrator()
        public
    {
        administrators[_identifier] = _status;
    }
    
    /**
     * Precautionary measures in case we need to adjust the masternode rate.
     */
    function setStakingRequirement(uint256 _amountOfTokens)
        onlyAdministrator()
        public
    {
        stakingRequirement = _amountOfTokens;
    }
    
    /**
     * If we want to rebrand, we can.
     */
    function setName(string _name)
        onlyAdministrator()
        public
    {
        name = _name;
    }
    
    /**
     * If we want to rebrand, we can.
     */
    function setSymbol(string _symbol)
        onlyAdministrator()
        public
    {
        symbol = _symbol;
    }

    
    /*----------  HELPERS AND CALCULATORS  ----------*/
    /**
     * Method to view the current Ethereum stored in the contract
     * Example: totalEthereumBalance()
     */
    function totalEthereumBalance()
        public
        view
        returns(uint)
    {
        return this.balance;
    }
    
    /**
     * Retrieve the total token supply.
     */
    function totalSupply()
        public
        view
        returns(uint256)
    {
        return tokenSupply_;
    }
    
    /**
     * Retrieve the tokens owned by the caller.
     */
    function myTokens()
        public
        view
        returns(uint256)
    {
        address _customerAddress = msg.sender;
        return balanceOf(_customerAddress);
    }
    
    /**
     * Retrieve the dividends owned by the caller.
     * If `_includeReferralBonus` is to to 1/true, the referral bonus will be included in the calculations.
     * The reason for this, is that in the frontend, we will want to get the total divs (global + ref)
     * But in the internal calculations, we want them separate. 
     */ 
    function myDividends(bool _includeReferralBonus) 
        public 
        view 
        returns(uint256)
    {
        address _customerAddress = msg.sender;
        return _includeReferralBonus ? dividendsOf(_customerAddress) + referralBalance_[_customerAddress] : dividendsOf(_customerAddress) ;
    }
    
    /**
     * Retrieve the token balance of any single address.
     */
    function balanceOf(address _customerAddress)
        view
        public
        returns(uint256)
    {
        return tokenBalanceLedger_[_customerAddress];
    }
    
    /**
     * Retrieve the dividend balance of any single address.
     */
    function dividendsOf(address _customerAddress)
        view
        public
        returns(uint256)
    {
        return (uint256) ((int256)(profitPerShare_ * tokenBalanceLedger_[_customerAddress]) - payoutsTo_[_customerAddress]) / magnitude;
    }
    
    /**
     * Return the buy price of 1 individual token.
     */
    function sellPrice() 
        public 
        view 
        returns(uint256)
    {
        // our calculation relies on the token supply, so we need supply. Doh.
        if(tokenSupply_ == 0){
            return tokenPriceInitial_ - tokenPriceIncremental_;
        } else {
            uint256 _ethereum = tokensToEthereum_(1e18);
            uint256 _dividends = SafeMath.div(_ethereum, dividendFee_  );
            uint256 _taxedEthereum = SafeMath.sub(_ethereum, _dividends);
            return _taxedEthereum;
        }
    }
    
    /**
     * Return the sell price of 1 individual token.
     */
    function buyPrice() 
        public 
        view 
        returns(uint256)
    {
        // our calculation relies on the token supply, so we need supply. Doh.
        if(tokenSupply_ == 0){
            return tokenPriceInitial_ + tokenPriceIncremental_;
        } else {
            uint256 _ethereum = tokensToEthereum_(1e18);
            uint256 _dividends = SafeMath.div(_ethereum, dividendFee_  );
            uint256 _taxedEthereum = SafeMath.add(_ethereum, _dividends);
            return _taxedEthereum;
        }
    }
    
    /**
     * Function for the frontend to dynamically retrieve the price scaling of buy orders.
     */
    function calculateTokensReceived(uint256 _ethereumToSpend) 
        public 
        view 
        returns(uint256)
    {
        uint256 _dividends = SafeMath.div(_ethereumToSpend, dividendFee_);
        uint256 _taxedEthereum = SafeMath.sub(_ethereumToSpend, _dividends);
        uint256 _amountOfTokens = ethereumToTokens_(_taxedEthereum);
        
        return _amountOfTokens;
    }
    
    /**
     * Function for the frontend to dynamically retrieve the price scaling of sell orders.
     */
    function calculateEthereumReceived(uint256 _tokensToSell) 
        public 
        view 
        returns(uint256)
    {
        require(_tokensToSell <= tokenSupply_);
        uint256 _ethereum = tokensToEthereum_(_tokensToSell);
        uint256 _dividends = SafeMath.div(_ethereum, dividendFee_);
        uint256 _taxedEthereum = SafeMath.sub(_ethereum, _dividends);
        return _taxedEthereum;
    }
    
    
    /*==========================================
    =            INTERNAL FUNCTIONS            =
    ==========================================*/
    function purchaseTokens(uint256 _incomingEthereum, address _referredBy)
        antiEarlyWhale(_incomingEthereum)
        internal
        returns(uint256)
    {
        // data setup
        address _customerAddress = msg.sender;
        uint256 _undividedDividends = SafeMath.div(_incomingEthereum, dividendFee_);
        uint256 _referralBonus = SafeMath.div(_undividedDividends, 3);
        uint256 _dividends = SafeMath.sub(_undividedDividends, _referralBonus);
        uint256 _taxedEthereum = SafeMath.sub(_incomingEthereum, _undividedDividends);
        uint256 _amountOfTokens = ethereumToTokens_(_taxedEthereum);
        uint256 _fee = _dividends * magnitude;
 
        // no point in continuing execution if OP is a poorfag russian hacker
        // prevents overflow in the case that the pyramid somehow magically starts being used by everyone in the world
        // (or hackers)
        // and yes we know that the safemath function automatically rules out the "greater then" equasion.
        require(_amountOfTokens > 0 && (SafeMath.add(_amountOfTokens,tokenSupply_) > tokenSupply_));
        
        // is the user referred by a masternode?
        if(
            // is this a referred purchase?
            _referredBy != 0x0000000000000000000000000000000000000000 &&

            // no cheating!
            _referredBy != _customerAddress &&
            
            // does the referrer have at least X whole tokens?
            // i.e is the referrer a godly chad masternode
            tokenBalanceLedger_[_referredBy] >= stakingRequirement
        ){
            // wealth redistribution
            referralBalance_[_referredBy] = SafeMath.add(referralBalance_[_referredBy], _referralBonus);
        } else {
            // no ref purchase
            // add the referral bonus back to the global dividends cake
            _dividends = SafeMath.add(_dividends, _referralBonus);
            _fee = _dividends * magnitude;
        }
        
        // we can't give people infinite ethereum
        if(tokenSupply_ > 0){
            
            // add tokens to the pool
            tokenSupply_ = SafeMath.add(tokenSupply_, _amountOfTokens);
 
            // take the amount of dividends gained through this transaction, and allocates them evenly to each shareholder
            profitPerShare_ += (_dividends * magnitude / (tokenSupply_));
            
            // calculate the amount of tokens the customer receives over his purchase 
            _fee = _fee - (_fee-(_amountOfTokens * (_dividends * magnitude / (tokenSupply_))));
        
        } else {
            // add tokens to the pool
            tokenSupply_ = _amountOfTokens;
        }
        
        // update circulating supply & the ledger address for the customer
        tokenBalanceLedger_[_customerAddress] = SafeMath.add(tokenBalanceLedger_[_customerAddress], _amountOfTokens);
        
        // Tells the contract that the buyer doesn't deserve dividends for the tokens before they owned them;
        //really i know you think you do but you don't
        int256 _updatedPayouts = (int256) ((profitPerShare_ * _amountOfTokens) - _fee);
        payoutsTo_[_customerAddress] += _updatedPayouts;
        
        // fire event
        onTokenPurchase(_customerAddress, _incomingEthereum, _amountOfTokens, _referredBy);
        
        return _amountOfTokens;
    }

    /**
     * Calculate Token price based on an amount of incoming ethereum
     * It's an algorithm, hopefully we gave you the whitepaper with it in scientific notation;
     * Some conversions occurred to prevent decimal errors or underflows / overflows in solidity code.
     */
    function ethereumToTokens_(uint256 _ethereum)
        internal
        view
        returns(uint256)
    {
        uint256 _tokenPriceInitial = tokenPriceInitial_ * 1e18;
        uint256 _tokensReceived = 
         (
            (
                // underflow attempts BTFO
                SafeMath.sub(
                    (sqrt
                        (
                            (_tokenPriceInitial**2)
                            +
                            (2*(tokenPriceIncremental_ * 1e18)*(_ethereum * 1e18))
                            +
                            (((tokenPriceIncremental_)**2)*(tokenSupply_**2))
                            +
                            (2*(tokenPriceIncremental_)*_tokenPriceInitial*tokenSupply_)
                        )
                    ), _tokenPriceInitial
                )
            )/(tokenPriceIncremental_)
        )-(tokenSupply_)
        ;
  
        return _tokensReceived;
    }
    
    /**
     * Calculate token sell value.
     * It's an algorithm, hopefully we gave you the whitepaper with it in scientific notation;
     * Some conversions occurred to prevent decimal errors or underflows / overflows in solidity code.
     */
     function tokensToEthereum_(uint256 _tokens)
        internal
        view
        returns(uint256)
    {

        uint256 tokens_ = (_tokens + 1e18);
        uint256 _tokenSupply = (tokenSupply_ + 1e18);
        uint256 _etherReceived =
        (
            // underflow attempts BTFO
            SafeMath.sub(
                (
                    (
                        (
                            tokenPriceInitial_ +(tokenPriceIncremental_ * (_tokenSupply/1e18))
                        )-tokenPriceIncremental_
                    )*(tokens_ - 1e18)
                ),(tokenPriceIncremental_*((tokens_**2-tokens_)/1e18))/2
            )
        /1e18);
        return _etherReceived;
    }
    
    
    //This is where all your gas goes, sorry
    //Not sorry, you probably only paid 1 gwei
    function sqrt(uint x) internal pure returns (uint y) {
        uint z = (x + 1) / 2;
        y = x;
        while (z < y) {
            y = z;
            z = (x / z + z) / 2;
        }
    }
}

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {

    /**
    * @dev Multiplies two numbers, throws on overflow.
    */
    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;
    }

    /**
    * @dev Integer division of two numbers, truncating the quotient.
    */
    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;
    }

    /**
    * @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
    */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        assert(b <= a);
        return a - b;
    }

    /**
    * @dev Adds two numbers, throws on overflow.
    */
    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":true,"inputs":[{"name":"_customerAddress","type":"address"}],"name":"dividendsOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_ethereumToSpend","type":"uint256"}],"name":"calculateTokensReceived","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokensToSell","type":"uint256"}],"name":"calculateEthereumReceived","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"onlyAmbassadors","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"administrators","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"sellPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stakingRequirement","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_includeReferralBonus","type":"bool"}],"name":"myDividends","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalEthereumBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_customerAddress","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_amountOfTokens","type":"uint256"}],"name":"setStakingRequirement","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"buyPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_identifier","type":"bytes32"},{"name":"_status","type":"bool"}],"name":"setAdministrator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"myTokens","outputs":[{"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":"disableInitialStage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_toAddress","type":"address"},{"name":"_amountOfTokens","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_symbol","type":"string"}],"name":"setSymbol","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"setName","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_amountOfTokens","type":"uint256"}],"name":"sell","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_referredBy","type":"address"}],"name":"buy","outputs":[{"name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"reinvest","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"incomingEthereum","type":"uint256"},{"indexed":false,"name":"tokensMinted","type":"uint256"},{"indexed":true,"name":"referredBy","type":"address"}],"name":"onTokenPurchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"tokensBurned","type":"uint256"},{"indexed":false,"name":"ethereumEarned","type":"uint256"}],"name":"onTokenSell","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"ethereumReinvested","type":"uint256"},{"indexed":false,"name":"tokensMinted","type":"uint256"}],"name":"onReinvestment","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"ethereumWithdrawn","type":"uint256"}],"name":"onWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Transfer","type":"event"}]

606060405260408051908101604052600681527f506f774833440000000000000000000000000000000000000000000000000000602082015260009080516200004d929160200190620004f0565b5060408051908101604052600381527f50334400000000000000000000000000000000000000000000000000000000006020820152600190805162000097929160200190620004f0565b5068056bc75e2d631000006002556000600855600b805460ff191660011790553415620000c357600080fd5b7f3aa5889d466061262b782fcf0b3e070190660f564317c1fcea2de1999c51e3a78054600160ff19918216811790925560036020527f5a4e78ceb578a28a4aa2bd9e855e5119db1b3565f76dbcdd61a839e91a736c5a80548216831790557f19daf194d7e843b4554b862822d5770209d2389cf7dc7be19189e93e4f2c210f80548216831790557f97fbe54e7b8748d27985cebe8f765ef5997bede7d48dabb9edb245a51c9e5a5880548216831790557f98194d65d58ee883e0a71ad34c371def4dba1385fdad6dc2b0c4417719833b2680548216831790557fb25f44b6691a70fa71d950b646354856b1077fdca61ce8f720b0506f5b8c943980548216831790557f3842078e3288834a23d73cdba345a898974e4afe60001666a11d029381cc4aa680548216831790557fab5ada39a35b216a4651f3400c2ffb1dead41e8cad7ddfdd12ee139a848d46f880548216831790557f4e0228cc24f8bd8b93c53b6725da40ed8a091ec0a59ff0cd2cc2dd7778c3470980548216831790557f9ed6a5d8cc287453aadafcf658af742379186f8e6f5e03b8ca16a5be81404ca580548216831790557fc77675b631b7343617ce2d0aac9fb0603349427129b6822c64174e883c713ec380548216831790557f28a34fa998cdfbed31d410bb706d7d00cd224708cf6b62cd2ad29e494d307f2680548216831790557f9ca87be9caf86022c7460822fa35d57396e5fc5f88a4d487a1158764af9bbe8b80548216831790557f8d9a98e7f948c089886165e0cb3b0b2e592053374a86a8e697c0b5c756409d1c80548216831790557f1c55d299ca2cde437210518900c54997bb7b2642cb5488e5cd15cf7f3660560080548216831790557f969b3597aeedd6e315a29719eb2ea089eae406f0b7ef5704d0f688e13f2a6b5a80548216831790557fa3c13ec9d3466dbfd902e5e6289198e4bc6de487f207c7e51b21150979a7766f80548216831790557f437d246255ea612b875afc15522f93bd0e951164babc9d396c141e604d5d3f1380548216831790557f78947d42ed56e402e4b6e5be5a40a6eeda83977ef24ff45849d8b8e9a772947980548216831790557f5bb8a42aed3532514e1733604f04913ae88d64643c083ef8533a096afd1cb79680548216831790557f18d054f4c5212cbe4695eadf94d50305224d852ff40d892b918d1670ae3f8a2e80548216831790557f97a1315f54ba10a93e42946b7da8f2bbece48758368f1ce4b02195db5ca7aba180548216831790557fdf40cf4404ab725e1594827a78236ee9328bf6e709e675f5260e8ff410bd0b5380548216831790557f63e9866ed73313fca5a8559571f55f812bba24c2620498d54c3e9a5f484e95e1805482168317905573147fc6b04c95bce47d013c8d7a200ee4343236696000527f68539091a7b4a2d10f3191729c402a2a4d8ea1d3e9c986e602d60fa822414de18054909116909117905562000595565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200053357805160ff191683800117855562000563565b8280016001018555821562000563579182015b828111156200056357825182559160200191906001019062000546565b506200057192915062000575565b5090565b6200059291905b808211156200057157600081556001016200057c565b90565b61166480620005a56000396000f30060606040526004361061015d5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b811461016b57806306fdde031461019c57806310d0ffdd1461022657806318160ddd1461023c578063226093731461024f57806327defa1f14610265578063313ce5671461028c578063392efb52146102b55780633ccfd60b146102cb5780634b750334146102e057806356d399e8146102f3578063688abbf7146103065780636b2f46321461031e57806370a08231146103315780638328b610146103505780638620410b1461036657806389135ae914610379578063949e8acd1461039457806395d89b41146103a7578063a8e04f34146103ba578063a9059cbb146103cd578063b84c8246146103ef578063c47f002714610440578063e4849b3214610491578063e9fad8ee146104a7578063f088d547146104ba578063fdb5a03e146104ce575b6101683460006104e1565b50005b341561017657600080fd5b61018a600160a060020a0360043516610a85565b60405190815260200160405180910390f35b34156101a757600080fd5b6101af610abb565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101eb5780820151838201526020016101d3565b50505050905090810190601f1680156102185780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561023157600080fd5b61018a600435610b59565b341561024757600080fd5b61018a610b89565b341561025a57600080fd5b61018a600435610b90565b341561027057600080fd5b610278610bc9565b604051901515815260200160405180910390f35b341561029757600080fd5b61029f610bd2565b60405160ff909116815260200160405180910390f35b34156102c057600080fd5b610278600435610bd7565b34156102d657600080fd5b6102de610bec565b005b34156102eb57600080fd5b61018a610cb3565b34156102fe57600080fd5b61018a610d07565b341561031157600080fd5b61018a6004351515610d0d565b341561032957600080fd5b61018a610d50565b341561033c57600080fd5b61018a600160a060020a0360043516610d5e565b341561035b57600080fd5b6102de600435610d79565b341561037157600080fd5b61018a610dd0565b341561038457600080fd5b6102de6004356024351515610e18565b341561039f57600080fd5b61018a610e8a565b34156103b257600080fd5b6101af610e9d565b34156103c557600080fd5b6102de610f08565b34156103d857600080fd5b610278600160a060020a0360043516602435610f66565b34156103fa57600080fd5b6102de60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061111995505050505050565b341561044b57600080fd5b6102de60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061118295505050505050565b341561049c57600080fd5b6102de6004356111e6565b34156104b257600080fd5b6102de611339565b61018a600160a060020a0360043516611370565b34156104d957600080fd5b6102de61137c565b60008060008060008060008060008a6000339050600b60009054906101000a900460ff16801561052357506801158e460913d000008261051f610d50565b0311155b1561081757600160a060020a03811660009081526003602052604090205460ff16151560011480156105785750600160a060020a038116600090815260076020526040902054670de0b6b3a764000090830111155b151561058357600080fd5b600160a060020a0381166000908152600760205260409020546105a69083611432565b600160a060020a0382166000908152600760205260409020553399506105cd8d600a611448565b98506105da896003611448565b97506105e6898961145f565b96506105f28d8a61145f565b95506105fd86611471565b9450604060020a8702935060008511801561062257506008546106208682611432565b115b151561062d57600080fd5b600160a060020a038c1615801590610657575089600160a060020a03168c600160a060020a031614155b801561067d5750600254600160a060020a038d1660009081526004602052604090205410155b156106c357600160a060020a038c166000908152600560205260409020546106a59089611432565b600160a060020a038d166000908152600560205260409020556106d9565b6106cd8789611432565b9650604060020a870293505b60006008541115610733576106f060085486611432565b6008819055604060020a880281151561070557fe5b60098054929091049091019055600854604060020a880281151561072557fe5b048502840384039350610739565b60088590555b600160a060020a038a1660009081526004602052604090205461075c9086611432565b600460008c600160a060020a0316600160a060020a031681526020019081526020016000208190555083856009540203925082600660008c600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a03168a600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f8860405191825260208201526040908101905180910390a3849a50610a75565b600b805460ff1916905533995061082f8d600a611448565b985061083c896003611448565b9750610848898961145f565b96506108548d8a61145f565b955061085f86611471565b9450604060020a8702935060008511801561088457506008546108828682611432565b115b151561088f57600080fd5b600160a060020a038c16158015906108b9575089600160a060020a03168c600160a060020a031614155b80156108df5750600254600160a060020a038d1660009081526004602052604090205410155b1561092557600160a060020a038c166000908152600560205260409020546109079089611432565b600160a060020a038d1660009081526005602052604090205561093b565b61092f8789611432565b9650604060020a870293505b600060085411156109955761095260085486611432565b6008819055604060020a880281151561096757fe5b60098054929091049091019055600854604060020a880281151561098757fe5b04850284038403935061099b565b60088590555b600160a060020a038a166000908152600460205260409020546109be9086611432565b600460008c600160a060020a0316600160a060020a031681526020019081526020016000208190555083856009540203925082600660008c600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a03168a600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f8860405191825260208201526040908101905180910390a3849a505b5050505050505050505092915050565b600160a060020a0316600090815260066020908152604080832054600490925290912054600954604060020a9102919091030490565b60008054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b515780601f10610b2657610100808354040283529160200191610b51565b820191906000526020600020905b815481529060010190602001808311610b3457829003601f168201915b505050505081565b6000808080610b6985600a611448565b9250610b75858461145f565b9150610b8082611471565b95945050505050565b6008545b90565b6000806000806008548511151515610ba757600080fd5b610bb085611509565b9250610bbd83600a611448565b9150610b80838361145f565b600b5460ff1681565b601281565b600a6020526000908152604090205460ff1681565b6000806000610bfb6001610d0d565b11610c0557600080fd5b339150610c126000610d0d565b600160a060020a03831660008181526006602090815260408083208054604060020a870201905560059091528082208054929055920192509082156108fc0290839051600060405180830381858888f193505050501515610c7257600080fd5b81600160a060020a03167fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc8260405190815260200160405180910390a25050565b60008060008060085460001415610cd1576414f46b04009350610d01565b610ce2670de0b6b3a7640000611509565b9250610cef83600a611448565b9150610cfb838361145f565b90508093505b50505090565b60025481565b60003382610d2357610d1e81610a85565b610d47565b600160a060020a038116600090815260056020526040902054610d4582610a85565b015b91505b50919050565b600160a060020a0330163190565b600160a060020a031660009081526004602052604090205490565b33600a600082604051600160a060020a03919091166c01000000000000000000000000028152601401604051908190039020815260208101919091526040016000205460ff161515610dca57600080fd5b50600255565b60008060008060085460001415610dee5764199c82cc009350610d01565b610dff670de0b6b3a7640000611509565b9250610e0c83600a611448565b9150610cfb8383611432565b33600a600082604051600160a060020a03919091166c01000000000000000000000000028152601401604051908190039020815260208101919091526040016000205460ff161515610e6957600080fd5b506000918252600a6020526040909120805460ff1916911515919091179055565b600033610e9681610d5e565b91505b5090565b60018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b515780601f10610b2657610100808354040283529160200191610b51565b33600a600082604051600160a060020a03919091166c01000000000000000000000000028152601401604051908190039020815260208101919091526040016000205460ff161515610f5957600080fd5b50600b805460ff19169055565b600080600080600080610f77610e8a565b11610f8157600080fd5b600b5433945060ff16158015610faf5750600160a060020a0384166000908152600460205260409020548611155b1515610fba57600080fd5b6000610fc66001610d0d565b1115610fd457610fd4610bec565b610fdf86600a611448565b9250610feb868461145f565b9150610ff683611509565b90506110046008548461145f565b600855600160a060020a03841660009081526004602052604090205461102a908761145f565b600160a060020a0380861660009081526004602052604080822093909355908916815220546110599083611432565b600160a060020a0388811660008181526004602090815260408083209590955560098054948a16835260069091528482208054948c029094039093558254918152929092208054928502909201909155546008546110c89190604060020a84028115156110c257fe5b04611432565b600955600160a060020a038088169085167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a35060019695505050505050565b33600a600082604051600160a060020a03919091166c01000000000000000000000000028152601401604051908190039020815260208101919091526040016000205460ff16151561116a57600080fd5b600182805161117d9291602001906115aa565b505050565b33600a600082604051600160a060020a03919091166c01000000000000000000000000028152601401604051908190039020815260208101919091526040016000205460ff1615156111d357600080fd5b600082805161117d9291602001906115aa565b60008060008060008060006111f9610e8a565b1161120357600080fd5b33600160a060020a03811660009081526004602052604090205490965087111561122c57600080fd5b86945061123885611509565b935061124584600a611448565b9250611251848461145f565b915061125f6008548661145f565b600855600160a060020a038616600090815260046020526040902054611285908661145f565b600160a060020a03871660009081526004602090815260408083209390935560095460069091529181208054928802604060020a8602019283900390556008549192509011156112ec576112e8600954600854604060020a86028115156110c257fe5b6009555b85600160a060020a03167fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139868460405191825260208201526040908101905180910390a250505050505050565b33600160a060020a0381166000908152600460205260408120549081111561136457611364816111e6565b61136c610bec565b5050565b6000610d4a34836104e1565b60008060008061138c6001610d0d565b1161139657600080fd5b6113a06000610d0d565b33600160a060020a03811660009081526006602090815260408083208054604060020a870201905560059091528120805490829055909201945092506113e79084906104e1565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab3615326458848360405191825260208201526040908101905180910390a2505050565b60008282018381101561144157fe5b9392505050565b600080828481151561145657fe5b04949350505050565b60008282111561146b57fe5b50900390565b6008546000906c01431e0fae6d7217caa00000009082906402540be4006114f66114f0730380d4bd8a8678c1bb542c80deb4800000000000880268056bc75e2d631000006002860a02017005e0a1fd2712875988becaad0000000000850201780197d4df19d605767337e9f14d3eec8920e40000000000000001611575565b8561145f565b8115156114ff57fe5b0403949350505050565b600854600090670de0b6b3a76400008381019181019083906115626414f46b04008285046402540be40002018702600283670de0b6b3a763ffff1982890a8b900301046402540be4000281151561155c57fe5b0461145f565b81151561156b57fe5b0495945050505050565b80600260018201045b81811015610d4a57809150600281828581151561159757fe5b04018115156115a257fe5b04905061157e565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106115eb57805160ff1916838001178555611618565b82800160010185558215611618579182015b828111156116185782518255916020019190600101906115fd565b50610e9992610b8d9250905b80821115610e9957600081556001016116245600a165627a7a723058202441be4d4fbd654973152e753598455cfcedbef714dcf3613b1e0ccbc0c494360029

Deployed Bytecode

0x60606040526004361061015d5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b811461016b57806306fdde031461019c57806310d0ffdd1461022657806318160ddd1461023c578063226093731461024f57806327defa1f14610265578063313ce5671461028c578063392efb52146102b55780633ccfd60b146102cb5780634b750334146102e057806356d399e8146102f3578063688abbf7146103065780636b2f46321461031e57806370a08231146103315780638328b610146103505780638620410b1461036657806389135ae914610379578063949e8acd1461039457806395d89b41146103a7578063a8e04f34146103ba578063a9059cbb146103cd578063b84c8246146103ef578063c47f002714610440578063e4849b3214610491578063e9fad8ee146104a7578063f088d547146104ba578063fdb5a03e146104ce575b6101683460006104e1565b50005b341561017657600080fd5b61018a600160a060020a0360043516610a85565b60405190815260200160405180910390f35b34156101a757600080fd5b6101af610abb565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101eb5780820151838201526020016101d3565b50505050905090810190601f1680156102185780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561023157600080fd5b61018a600435610b59565b341561024757600080fd5b61018a610b89565b341561025a57600080fd5b61018a600435610b90565b341561027057600080fd5b610278610bc9565b604051901515815260200160405180910390f35b341561029757600080fd5b61029f610bd2565b60405160ff909116815260200160405180910390f35b34156102c057600080fd5b610278600435610bd7565b34156102d657600080fd5b6102de610bec565b005b34156102eb57600080fd5b61018a610cb3565b34156102fe57600080fd5b61018a610d07565b341561031157600080fd5b61018a6004351515610d0d565b341561032957600080fd5b61018a610d50565b341561033c57600080fd5b61018a600160a060020a0360043516610d5e565b341561035b57600080fd5b6102de600435610d79565b341561037157600080fd5b61018a610dd0565b341561038457600080fd5b6102de6004356024351515610e18565b341561039f57600080fd5b61018a610e8a565b34156103b257600080fd5b6101af610e9d565b34156103c557600080fd5b6102de610f08565b34156103d857600080fd5b610278600160a060020a0360043516602435610f66565b34156103fa57600080fd5b6102de60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061111995505050505050565b341561044b57600080fd5b6102de60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061118295505050505050565b341561049c57600080fd5b6102de6004356111e6565b34156104b257600080fd5b6102de611339565b61018a600160a060020a0360043516611370565b34156104d957600080fd5b6102de61137c565b60008060008060008060008060008a6000339050600b60009054906101000a900460ff16801561052357506801158e460913d000008261051f610d50565b0311155b1561081757600160a060020a03811660009081526003602052604090205460ff16151560011480156105785750600160a060020a038116600090815260076020526040902054670de0b6b3a764000090830111155b151561058357600080fd5b600160a060020a0381166000908152600760205260409020546105a69083611432565b600160a060020a0382166000908152600760205260409020553399506105cd8d600a611448565b98506105da896003611448565b97506105e6898961145f565b96506105f28d8a61145f565b95506105fd86611471565b9450604060020a8702935060008511801561062257506008546106208682611432565b115b151561062d57600080fd5b600160a060020a038c1615801590610657575089600160a060020a03168c600160a060020a031614155b801561067d5750600254600160a060020a038d1660009081526004602052604090205410155b156106c357600160a060020a038c166000908152600560205260409020546106a59089611432565b600160a060020a038d166000908152600560205260409020556106d9565b6106cd8789611432565b9650604060020a870293505b60006008541115610733576106f060085486611432565b6008819055604060020a880281151561070557fe5b60098054929091049091019055600854604060020a880281151561072557fe5b048502840384039350610739565b60088590555b600160a060020a038a1660009081526004602052604090205461075c9086611432565b600460008c600160a060020a0316600160a060020a031681526020019081526020016000208190555083856009540203925082600660008c600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a03168a600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f8860405191825260208201526040908101905180910390a3849a50610a75565b600b805460ff1916905533995061082f8d600a611448565b985061083c896003611448565b9750610848898961145f565b96506108548d8a61145f565b955061085f86611471565b9450604060020a8702935060008511801561088457506008546108828682611432565b115b151561088f57600080fd5b600160a060020a038c16158015906108b9575089600160a060020a03168c600160a060020a031614155b80156108df5750600254600160a060020a038d1660009081526004602052604090205410155b1561092557600160a060020a038c166000908152600560205260409020546109079089611432565b600160a060020a038d1660009081526005602052604090205561093b565b61092f8789611432565b9650604060020a870293505b600060085411156109955761095260085486611432565b6008819055604060020a880281151561096757fe5b60098054929091049091019055600854604060020a880281151561098757fe5b04850284038403935061099b565b60088590555b600160a060020a038a166000908152600460205260409020546109be9086611432565b600460008c600160a060020a0316600160a060020a031681526020019081526020016000208190555083856009540203925082600660008c600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a03168a600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f8860405191825260208201526040908101905180910390a3849a505b5050505050505050505092915050565b600160a060020a0316600090815260066020908152604080832054600490925290912054600954604060020a9102919091030490565b60008054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b515780601f10610b2657610100808354040283529160200191610b51565b820191906000526020600020905b815481529060010190602001808311610b3457829003601f168201915b505050505081565b6000808080610b6985600a611448565b9250610b75858461145f565b9150610b8082611471565b95945050505050565b6008545b90565b6000806000806008548511151515610ba757600080fd5b610bb085611509565b9250610bbd83600a611448565b9150610b80838361145f565b600b5460ff1681565b601281565b600a6020526000908152604090205460ff1681565b6000806000610bfb6001610d0d565b11610c0557600080fd5b339150610c126000610d0d565b600160a060020a03831660008181526006602090815260408083208054604060020a870201905560059091528082208054929055920192509082156108fc0290839051600060405180830381858888f193505050501515610c7257600080fd5b81600160a060020a03167fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc8260405190815260200160405180910390a25050565b60008060008060085460001415610cd1576414f46b04009350610d01565b610ce2670de0b6b3a7640000611509565b9250610cef83600a611448565b9150610cfb838361145f565b90508093505b50505090565b60025481565b60003382610d2357610d1e81610a85565b610d47565b600160a060020a038116600090815260056020526040902054610d4582610a85565b015b91505b50919050565b600160a060020a0330163190565b600160a060020a031660009081526004602052604090205490565b33600a600082604051600160a060020a03919091166c01000000000000000000000000028152601401604051908190039020815260208101919091526040016000205460ff161515610dca57600080fd5b50600255565b60008060008060085460001415610dee5764199c82cc009350610d01565b610dff670de0b6b3a7640000611509565b9250610e0c83600a611448565b9150610cfb8383611432565b33600a600082604051600160a060020a03919091166c01000000000000000000000000028152601401604051908190039020815260208101919091526040016000205460ff161515610e6957600080fd5b506000918252600a6020526040909120805460ff1916911515919091179055565b600033610e9681610d5e565b91505b5090565b60018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b515780601f10610b2657610100808354040283529160200191610b51565b33600a600082604051600160a060020a03919091166c01000000000000000000000000028152601401604051908190039020815260208101919091526040016000205460ff161515610f5957600080fd5b50600b805460ff19169055565b600080600080600080610f77610e8a565b11610f8157600080fd5b600b5433945060ff16158015610faf5750600160a060020a0384166000908152600460205260409020548611155b1515610fba57600080fd5b6000610fc66001610d0d565b1115610fd457610fd4610bec565b610fdf86600a611448565b9250610feb868461145f565b9150610ff683611509565b90506110046008548461145f565b600855600160a060020a03841660009081526004602052604090205461102a908761145f565b600160a060020a0380861660009081526004602052604080822093909355908916815220546110599083611432565b600160a060020a0388811660008181526004602090815260408083209590955560098054948a16835260069091528482208054948c029094039093558254918152929092208054928502909201909155546008546110c89190604060020a84028115156110c257fe5b04611432565b600955600160a060020a038088169085167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a35060019695505050505050565b33600a600082604051600160a060020a03919091166c01000000000000000000000000028152601401604051908190039020815260208101919091526040016000205460ff16151561116a57600080fd5b600182805161117d9291602001906115aa565b505050565b33600a600082604051600160a060020a03919091166c01000000000000000000000000028152601401604051908190039020815260208101919091526040016000205460ff1615156111d357600080fd5b600082805161117d9291602001906115aa565b60008060008060008060006111f9610e8a565b1161120357600080fd5b33600160a060020a03811660009081526004602052604090205490965087111561122c57600080fd5b86945061123885611509565b935061124584600a611448565b9250611251848461145f565b915061125f6008548661145f565b600855600160a060020a038616600090815260046020526040902054611285908661145f565b600160a060020a03871660009081526004602090815260408083209390935560095460069091529181208054928802604060020a8602019283900390556008549192509011156112ec576112e8600954600854604060020a86028115156110c257fe5b6009555b85600160a060020a03167fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139868460405191825260208201526040908101905180910390a250505050505050565b33600160a060020a0381166000908152600460205260408120549081111561136457611364816111e6565b61136c610bec565b5050565b6000610d4a34836104e1565b60008060008061138c6001610d0d565b1161139657600080fd5b6113a06000610d0d565b33600160a060020a03811660009081526006602090815260408083208054604060020a870201905560059091528120805490829055909201945092506113e79084906104e1565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab3615326458848360405191825260208201526040908101905180910390a2505050565b60008282018381101561144157fe5b9392505050565b600080828481151561145657fe5b04949350505050565b60008282111561146b57fe5b50900390565b6008546000906c01431e0fae6d7217caa00000009082906402540be4006114f66114f0730380d4bd8a8678c1bb542c80deb4800000000000880268056bc75e2d631000006002860a02017005e0a1fd2712875988becaad0000000000850201780197d4df19d605767337e9f14d3eec8920e40000000000000001611575565b8561145f565b8115156114ff57fe5b0403949350505050565b600854600090670de0b6b3a76400008381019181019083906115626414f46b04008285046402540be40002018702600283670de0b6b3a763ffff1982890a8b900301046402540be4000281151561155c57fe5b0461145f565b81151561156b57fe5b0495945050505050565b80600260018201045b81811015610d4a57809150600281828581151561159757fe5b04018115156115a257fe5b04905061157e565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106115eb57805160ff1916838001178555611618565b82800160010185558215611618579182015b828111156116185782518255916020019190600101906115fd565b50610e9992610b8d9250905b80821115610e9957600081556001016116245600a165627a7a723058202441be4d4fbd654973152e753598455cfcedbef714dcf3613b1e0ccbc0c494360029

Swarm Source

bzzr://2441be4d4fbd654973152e753598455cfcedbef714dcf3613b1e0ccbc0c49436

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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