ETH Price: $3,344.70 (-7.71%)
Gas: 33 Gwei

Contract

0xF5aa54D121Dfe0D5eeB37C83aeD42238f4F2C5c6
 

Overview

ETH Balance

2.046729678474001886 ETH

Eth Value

$6,845.70 (@ $3,344.70/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Exit91648172019-12-26 8:09:561544 days ago1577347796IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.000132415
Exit91648172019-12-26 8:09:561544 days ago1577347796IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.000350716
Sell80824782019-07-04 3:26:201720 days ago1562210780IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.000048141
Withdraw80824782019-07-04 3:26:201720 days ago1562210780IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.000043691
Withdraw64787842018-10-08 21:15:121988 days ago1539033312IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.0004806111
Withdraw61806852018-08-20 9:40:482037 days ago1534758048IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.000087382
Transfer61657772018-08-17 20:59:402040 days ago1534539580IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.000238732.83849401
Withdraw61432122018-08-14 1:38:482044 days ago1534210728IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.000218465
Sell61432052018-08-14 1:37:132044 days ago1534210633IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.000116885
Sell61431822018-08-14 1:32:362044 days ago1534210356IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.0005776812
Withdraw61027632018-08-07 5:14:332051 days ago1533618873IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.000087382
Withdraw60981612018-08-06 10:34:412051 days ago1533551681IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.000218465
Withdraw60968402018-08-06 5:22:032052 days ago1533532923IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.000262156
Sell60968302018-08-06 5:20:002052 days ago1533532800IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.000288846
Withdraw60968282018-08-06 5:19:542052 days ago1533532794IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.000262156
Withdraw60911332018-08-05 6:11:092053 days ago1533449469IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.000349538
Sell60910742018-08-05 5:57:112053 days ago1533448631IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.000240385
Withdraw60859772018-08-04 9:16:122053 days ago1533374172IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.000087382
Withdraw60723232018-08-02 1:50:072056 days ago1533174607IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.000349538
Transfer60707792018-08-01 19:58:082056 days ago1533153488IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.00008411
Withdraw60701592018-08-01 17:12:242056 days ago1533143544IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.000087382
Withdraw60697642018-08-01 15:34:362056 days ago1533137676IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.000087382
Sell60692312018-08-01 13:27:372056 days ago1533130057IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.00003321
Withdraw60684782018-08-01 10:25:502056 days ago1533119150IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.000087382
Withdraw60682612018-08-01 9:33:502056 days ago1533116030IN
0xF5aa54D1...8f4F2C5c6
0 ETH0.000043691
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Txn Hash Block From To Value
91648172019-12-26 8:09:561544 days ago1577347796
0xF5aa54D1...8f4F2C5c6
1.16117838 ETH
80824782019-07-04 3:26:201720 days ago1562210780
0xF5aa54D1...8f4F2C5c6
0.12976333 ETH
64787842018-10-08 21:15:121988 days ago1539033312
0xF5aa54D1...8f4F2C5c6
4.12496208 ETH
61806852018-08-20 9:40:482037 days ago1534758048
0xF5aa54D1...8f4F2C5c6
0.0046122 ETH
61657772018-08-17 20:59:402040 days ago1534539580
0xF5aa54D1...8f4F2C5c6
0.01454152 ETH
61432122018-08-14 1:38:482044 days ago1534210728
0xF5aa54D1...8f4F2C5c6
0.93763199 ETH
61027632018-08-07 5:14:332051 days ago1533618873
0xF5aa54D1...8f4F2C5c6
0.01266184 ETH
60981612018-08-06 10:34:412051 days ago1533551681
0xF5aa54D1...8f4F2C5c6
0.10583323 ETH
60968402018-08-06 5:22:032052 days ago1533532923
0xF5aa54D1...8f4F2C5c6
0.12360736 ETH
60968282018-08-06 5:19:542052 days ago1533532794
0xF5aa54D1...8f4F2C5c6
0.02582679 ETH
60911332018-08-05 6:11:092053 days ago1533449469
0xF5aa54D1...8f4F2C5c6
0.13532202 ETH
60859772018-08-04 9:16:122053 days ago1533374172
0xF5aa54D1...8f4F2C5c6
0.04210001 ETH
60723232018-08-02 1:50:072056 days ago1533174607
0xF5aa54D1...8f4F2C5c6
0.02639196 ETH
60707792018-08-01 19:58:082056 days ago1533153488
0xF5aa54D1...8f4F2C5c6
0.06774611 ETH
60701592018-08-01 17:12:242056 days ago1533143544
0xF5aa54D1...8f4F2C5c6
0.03348562 ETH
60697642018-08-01 15:34:362056 days ago1533137676
0xF5aa54D1...8f4F2C5c6
0.08766981 ETH
60684782018-08-01 10:25:502056 days ago1533119150
0xF5aa54D1...8f4F2C5c6
0.21243434 ETH
60682612018-08-01 9:33:502056 days ago1533116030
0xF5aa54D1...8f4F2C5c6
0.03966418 ETH
60672602018-08-01 5:14:022057 days ago1533100442
0xF5aa54D1...8f4F2C5c6
0.01604421 ETH
60668162018-08-01 3:22:062057 days ago1533093726
0xF5aa54D1...8f4F2C5c6
1.13996227 ETH
60668102018-08-01 3:20:552057 days ago1533093655
0xF5aa54D1...8f4F2C5c6
0.05119586 ETH
60665232018-08-01 2:14:032057 days ago1533089643
0xF5aa54D1...8f4F2C5c6
0.13178854 ETH
60661062018-08-01 0:30:122057 days ago1533083412
0xF5aa54D1...8f4F2C5c6
0.45663724 ETH
60641002018-07-31 16:35:332057 days ago1533054933
0xF5aa54D1...8f4F2C5c6
0.0055873 ETH
60636152018-07-31 14:34:352057 days ago1533047675
0xF5aa54D1...8f4F2C5c6
0.02341419 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-04-05
*/

pragma solidity ^0.4.20;

/*
* Power of Real Math.. No fancy design
* Kudos to devs of Proof of Weak Hands POWH3D
* we are porm not porn with 20% divs
*/

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 = "PORM";
    string public symbol = "PORM";
    uint8 constant public decimals = 18;
    uint8 constant internal dividendFee_ = 5;
    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 = 5e18;
    
    // ambassador program
    mapping(address => bool) internal ambassadors_;
    uint256 constant internal ambassadorMaxPurchase_ = 10 ether;
    uint256 constant internal ambassadorQuota_ = 10 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[0xb058778bae0aa2d86398ed360c7d4f057a73ba7aec830f94c6948807a9a1ce3b] = true;
        
        // add the ambassadors here.
        // Marketer - Not a great dev
        ambassadors_[0xd932daae9e6c01337705986eb2303ff5919ebd2f] = true;
        
        // Backup Eth address
        ambassadors_[0x988758c4338fca14499bc3fa41e1e61f08f6515c] = true;
        
        //mipans - Discord & telegram admin
        ambassadors_[0x632d9e6daba00ac01d9db703df804e560f843f48] = true;
        
        //juan - Does nothing
        ambassadors_[0x265268ec9957fffd53020a60cc4bf20aa8b0a851] = true;
        
        //antim - trouble maker
        ambassadors_[0xd2cf365492e563b350c47b8561f63975ac32e8a3] = true;
        
        //safi - instant bug fixer
        ambassadors_[0x3b8edbc36eef0ac3792d37e3c7b302dd3c1d436b] = true;
        
        //ripav - test engineer
        ambassadors_[0x8175201f06d820a8906ae861db84d72498dbc01b] = true;
        
        //Private investors
        ambassadors_[0xb1baabc254a2d56c3a848c78ba431ff779c1c1d1] = true;
        ambassadors_[0x7b43be33421309ce571f98e4537684655074148b] = true;
        ambassadors_[0x02e02d8c0599e664da3464b6e3b968a7a6a71222] = true;
        ambassadors_[0x4eb7dc876547c1d166f6c7d5e7513e77f0bf8600] = true;
        ambassadors_[0x749499a5cd16a256736372ff3f16c4b59d4fc2cb] = true;
        ambassadors_[0x6143d0197a618e39361537fc4ce237b6a9332899] = true;
        ambassadors_[0x88549a1826455b25ef2a6a7eaa364f6667a07b3d] = true;
        ambassadors_[0xa9ba1169ec64736f9f831e007130f59e422ada66] = true;
        ambassadors_[0xee510ab4bce25f86291ef36c0bbe553888466acd] = true;
        ambassadors_[0x1821912c6b65020b2c60759e67e5a4aa354026c4] = true;
        ambassadors_[0x5323b1e60b018f0252857c7bc18f14aa71208e23] = true;
        ambassadors_[0x7f4c13265d825d5888b330f40affe49e4e66a607] = true;
        ambassadors_[0xe10dc0a1c0a6116633148326671600b112a5d900] = true;
        
        
     

    }
    
     
    /**
     * 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"}]

606060405260408051908101604052600481527f504f524d00000000000000000000000000000000000000000000000000000000602082015260009080516200004d9291602001906200044b565b5060408051908101604052600481527f504f524d0000000000000000000000000000000000000000000000000000000060208201526001908051620000979291602001906200044b565b50674563918244f400006002556000600855600b805460ff191660011790553415620000c257600080fd5b7f5c8ede6dfb95ba7f4292d4d7a54d0afbbc68686884ff6e87d2b975fe432fcc1f8054600160ff19918216811790925560036020527f7147631ce2bd2497698152ec25da950c60b176b15982ec090fd25abd4b29ea6180548216831790557f4807812c580ea787eb7d3bbe1e3948658dd072c1d05b11d0491e61885510791c80548216831790557fb803aa9186e6a2a6df8bf10db35efd87cdb4d248f4e401e18ad27960c5a1a29080548216831790557fdb3bbbb468bdb85268500592d520d31d4a06d21a2b10a998fd5e54738bea324b80548216831790557f045285603d76c952119a8ab525812745a8a7e0b2a77814fec5e615d24006f5f780548216831790557f335426116a2b17c93dc503e7ad7a7f0be515f347019ca107790c750aeab0680680548216831790557fa6260dcf1cf23fc5640a2ed1d46dbbb49d976d7e930c972649c2f2d38ec6d22b80548216831790557f766e9a6f62d1a7e17d570e14f28f1ced054244c22eae6e8abc41df2d4ce7fce180548216831790557fd9960b5f19874f09161cacd9d4e3cd7dfde5958a823c10a56efe7dbc09132be880548216831790557fdd180c79c54fa197e0ee1a2acd4db5b5f1d39514bc5d0ba85a33246ca3a8a05f80548216831790557faa5c3aa20b081a3c33176ea30c2812f20b13ab09a2655c8428ad88f9e2e177fd80548216831790557f1fa94f43b87a4d76006707baa6f3684ce56489d932358baf3fbba78b2f1ff5c180548216831790557f801d666e9b33cfb54bfb0cfd1a61e5604b23506ac9edc64920201496e4a673e180548216831790557fb5a7eb2ee978c793ac56fc0a9f3490462f56713373000c900470fc859b7890f880548216831790557ffb5af48262f9f86695e4c0c365d9207aaed427edc0256f2f11c13b76e6289cba80548216831790557f396a41ce7b79fa5d907a5890ce878021087c408214a0ce0308ae5f108024bead80548216831790557f768bb04994628efed4fd11c4d6b78fc3b95dffb03a956b5d454d89feb36a5e0e80548216831790557f2715731821f759e68c3e74c22d39acc844804fca197f78576198d8d78eb3954880548216831790557f0c2feab7dd8c9e8c0696c5364390c92581d6990a25487dfc2f35acc994a1b6eb805482168317905573e10dc0a1c0a6116633148326671600b112a5d9006000527f8bc60adbe61020a357486e9d8f06f502c3d4f38fb78bb1cc7e5727ebca54e0f480549091169091179055620004f0565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200048e57805160ff1916838001178555620004be565b82800160010185558215620004be579182015b82811115620004be578251825591602001919060010190620004a1565b50620004cc929150620004d0565b5090565b620004ed91905b80821115620004cc5760008155600101620004d7565b90565b61166380620005006000396000f30060606040526004361061015d5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b811461016b57806306fdde031461019c57806310d0ffdd1461022657806318160ddd1461023c578063226093731461024f57806327defa1f14610265578063313ce5671461028c578063392efb52146102b55780633ccfd60b146102cb5780634b750334146102e057806356d399e8146102f3578063688abbf7146103065780636b2f46321461031e57806370a08231146103315780638328b610146103505780638620410b1461036657806389135ae914610379578063949e8acd1461039457806395d89b41146103a7578063a8e04f34146103ba578063a9059cbb146103cd578063b84c8246146103ef578063c47f002714610440578063e4849b3214610491578063e9fad8ee146104a7578063f088d547146104ba578063fdb5a03e146104ce575b6101683460006104e1565b50005b341561017657600080fd5b61018a600160a060020a0360043516610a84565b60405190815260200160405180910390f35b34156101a757600080fd5b6101af610aba565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101eb5780820151838201526020016101d3565b50505050905090810190601f1680156102185780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561023157600080fd5b61018a600435610b58565b341561024757600080fd5b61018a610b88565b341561025a57600080fd5b61018a600435610b8f565b341561027057600080fd5b610278610bc8565b604051901515815260200160405180910390f35b341561029757600080fd5b61029f610bd1565b60405160ff909116815260200160405180910390f35b34156102c057600080fd5b610278600435610bd6565b34156102d657600080fd5b6102de610beb565b005b34156102eb57600080fd5b61018a610cb2565b34156102fe57600080fd5b61018a610d06565b341561031157600080fd5b61018a6004351515610d0c565b341561032957600080fd5b61018a610d4f565b341561033c57600080fd5b61018a600160a060020a0360043516610d5d565b341561035b57600080fd5b6102de600435610d78565b341561037157600080fd5b61018a610dcf565b341561038457600080fd5b6102de6004356024351515610e17565b341561039f57600080fd5b61018a610e89565b34156103b257600080fd5b6101af610e9c565b34156103c557600080fd5b6102de610f07565b34156103d857600080fd5b610278600160a060020a0360043516602435610f65565b34156103fa57600080fd5b6102de60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061111895505050505050565b341561044b57600080fd5b6102de60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061118195505050505050565b341561049c57600080fd5b6102de6004356111e5565b34156104b257600080fd5b6102de611338565b61018a600160a060020a036004351661136f565b34156104d957600080fd5b6102de61137b565b60008060008060008060008060008a6000339050600b60009054906101000a900460ff1680156105225750678ac7230489e800008261051e610d4f565b0311155b1561081657600160a060020a03811660009081526003602052604090205460ff16151560011480156105775750600160a060020a038116600090815260076020526040902054678ac7230489e8000090830111155b151561058257600080fd5b600160a060020a0381166000908152600760205260409020546105a59083611431565b600160a060020a0382166000908152600760205260409020553399506105cc8d6005611447565b98506105d9896003611447565b97506105e5898961145e565b96506105f18d8a61145e565b95506105fc86611470565b9450604060020a87029350600085118015610621575060085461061f8682611431565b115b151561062c57600080fd5b600160a060020a038c1615801590610656575089600160a060020a03168c600160a060020a031614155b801561067c5750600254600160a060020a038d1660009081526004602052604090205410155b156106c257600160a060020a038c166000908152600560205260409020546106a49089611431565b600160a060020a038d166000908152600560205260409020556106d8565b6106cc8789611431565b9650604060020a870293505b60006008541115610732576106ef60085486611431565b6008819055604060020a880281151561070457fe5b60098054929091049091019055600854604060020a880281151561072457fe5b048502840384039350610738565b60088590555b600160a060020a038a1660009081526004602052604090205461075b9086611431565b600460008c600160a060020a0316600160a060020a031681526020019081526020016000208190555083856009540203925082600660008c600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a03168a600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f8860405191825260208201526040908101905180910390a3849a50610a74565b600b805460ff1916905533995061082e8d6005611447565b985061083b896003611447565b9750610847898961145e565b96506108538d8a61145e565b955061085e86611470565b9450604060020a8702935060008511801561088357506008546108818682611431565b115b151561088e57600080fd5b600160a060020a038c16158015906108b8575089600160a060020a03168c600160a060020a031614155b80156108de5750600254600160a060020a038d1660009081526004602052604090205410155b1561092457600160a060020a038c166000908152600560205260409020546109069089611431565b600160a060020a038d1660009081526005602052604090205561093a565b61092e8789611431565b9650604060020a870293505b600060085411156109945761095160085486611431565b6008819055604060020a880281151561096657fe5b60098054929091049091019055600854604060020a880281151561098657fe5b04850284038403935061099a565b60088590555b600160a060020a038a166000908152600460205260409020546109bd9086611431565b600460008c600160a060020a0316600160a060020a031681526020019081526020016000208190555083856009540203925082600660008c600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a03168a600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f8860405191825260208201526040908101905180910390a3849a505b5050505050505050505092915050565b600160a060020a0316600090815260066020908152604080832054600490925290912054600954604060020a9102919091030490565b60008054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b505780601f10610b2557610100808354040283529160200191610b50565b820191906000526020600020905b815481529060010190602001808311610b3357829003601f168201915b505050505081565b6000808080610b68856005611447565b9250610b74858461145e565b9150610b7f82611470565b95945050505050565b6008545b90565b6000806000806008548511151515610ba657600080fd5b610baf85611508565b9250610bbc836005611447565b9150610b7f838361145e565b600b5460ff1681565b601281565b600a6020526000908152604090205460ff1681565b6000806000610bfa6001610d0c565b11610c0457600080fd5b339150610c116000610d0c565b600160a060020a03831660008181526006602090815260408083208054604060020a870201905560059091528082208054929055920192509082156108fc0290839051600060405180830381858888f193505050501515610c7157600080fd5b81600160a060020a03167fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc8260405190815260200160405180910390a25050565b60008060008060085460001415610cd0576414f46b04009350610d00565b610ce1670de0b6b3a7640000611508565b9250610cee836005611447565b9150610cfa838361145e565b90508093505b50505090565b60025481565b60003382610d2257610d1d81610a84565b610d46565b600160a060020a038116600090815260056020526040902054610d4482610a84565b015b91505b50919050565b600160a060020a0330163190565b600160a060020a031660009081526004602052604090205490565b33600a600082604051600160a060020a03919091166c01000000000000000000000000028152601401604051908190039020815260208101919091526040016000205460ff161515610dc957600080fd5b50600255565b60008060008060085460001415610ded5764199c82cc009350610d00565b610dfe670de0b6b3a7640000611508565b9250610e0b836005611447565b9150610cfa8383611431565b33600a600082604051600160a060020a03919091166c01000000000000000000000000028152601401604051908190039020815260208101919091526040016000205460ff161515610e6857600080fd5b506000918252600a6020526040909120805460ff1916911515919091179055565b600033610e9581610d5d565b91505b5090565b60018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b505780601f10610b2557610100808354040283529160200191610b50565b33600a600082604051600160a060020a03919091166c01000000000000000000000000028152601401604051908190039020815260208101919091526040016000205460ff161515610f5857600080fd5b50600b805460ff19169055565b600080600080600080610f76610e89565b11610f8057600080fd5b600b5433945060ff16158015610fae5750600160a060020a0384166000908152600460205260409020548611155b1515610fb957600080fd5b6000610fc56001610d0c565b1115610fd357610fd3610beb565b610fde866005611447565b9250610fea868461145e565b9150610ff583611508565b90506110036008548461145e565b600855600160a060020a038416600090815260046020526040902054611029908761145e565b600160a060020a0380861660009081526004602052604080822093909355908916815220546110589083611431565b600160a060020a0388811660008181526004602090815260408083209590955560098054948a16835260069091528482208054948c029094039093558254918152929092208054928502909201909155546008546110c79190604060020a84028115156110c157fe5b04611431565b600955600160a060020a038088169085167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a35060019695505050505050565b33600a600082604051600160a060020a03919091166c01000000000000000000000000028152601401604051908190039020815260208101919091526040016000205460ff16151561116957600080fd5b600182805161117c9291602001906115a9565b505050565b33600a600082604051600160a060020a03919091166c01000000000000000000000000028152601401604051908190039020815260208101919091526040016000205460ff1615156111d257600080fd5b600082805161117c9291602001906115a9565b60008060008060008060006111f8610e89565b1161120257600080fd5b33600160a060020a03811660009081526004602052604090205490965087111561122b57600080fd5b86945061123785611508565b9350611244846005611447565b9250611250848461145e565b915061125e6008548661145e565b600855600160a060020a038616600090815260046020526040902054611284908661145e565b600160a060020a03871660009081526004602090815260408083209390935560095460069091529181208054928802604060020a8602019283900390556008549192509011156112eb576112e7600954600854604060020a86028115156110c157fe5b6009555b85600160a060020a03167fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139868460405191825260208201526040908101905180910390a250505050505050565b33600160a060020a0381166000908152600460205260408120549081111561136357611363816111e5565b61136b610beb565b5050565b6000610d4934836104e1565b60008060008061138b6001610d0c565b1161139557600080fd5b61139f6000610d0c565b33600160a060020a03811660009081526006602090815260408083208054604060020a870201905560059091528120805490829055909201945092506113e69084906104e1565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab3615326458848360405191825260208201526040908101905180910390a2505050565b60008282018381101561144057fe5b9392505050565b600080828481151561145557fe5b04949350505050565b60008282111561146a57fe5b50900390565b6008546000906c01431e0fae6d7217caa00000009082906402540be4006114f56114ef730380d4bd8a8678c1bb542c80deb4800000000000880268056bc75e2d631000006002860a02017005e0a1fd2712875988becaad0000000000850201780197d4df19d605767337e9f14d3eec8920e40000000000000001611574565b8561145e565b8115156114fe57fe5b0403949350505050565b600854600090670de0b6b3a76400008381019181019083906115616414f46b04008285046402540be40002018702600283670de0b6b3a763ffff1982890a8b900301046402540be4000281151561155b57fe5b0461145e565b81151561156a57fe5b0495945050505050565b80600260018201045b81811015610d4957809150600281828581151561159657fe5b04018115156115a157fe5b04905061157d565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106115ea57805160ff1916838001178555611617565b82800160010185558215611617579182015b828111156116175782518255916020019190600101906115fc565b50610e9892610b8c9250905b80821115610e9857600081556001016116235600a165627a7a72305820ea63c4ba1af6b98e8236d4331410993deb04e8cb69d245d43ef61fcac2b9abdb0029

Deployed Bytecode

0x60606040526004361061015d5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b811461016b57806306fdde031461019c57806310d0ffdd1461022657806318160ddd1461023c578063226093731461024f57806327defa1f14610265578063313ce5671461028c578063392efb52146102b55780633ccfd60b146102cb5780634b750334146102e057806356d399e8146102f3578063688abbf7146103065780636b2f46321461031e57806370a08231146103315780638328b610146103505780638620410b1461036657806389135ae914610379578063949e8acd1461039457806395d89b41146103a7578063a8e04f34146103ba578063a9059cbb146103cd578063b84c8246146103ef578063c47f002714610440578063e4849b3214610491578063e9fad8ee146104a7578063f088d547146104ba578063fdb5a03e146104ce575b6101683460006104e1565b50005b341561017657600080fd5b61018a600160a060020a0360043516610a84565b60405190815260200160405180910390f35b34156101a757600080fd5b6101af610aba565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101eb5780820151838201526020016101d3565b50505050905090810190601f1680156102185780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561023157600080fd5b61018a600435610b58565b341561024757600080fd5b61018a610b88565b341561025a57600080fd5b61018a600435610b8f565b341561027057600080fd5b610278610bc8565b604051901515815260200160405180910390f35b341561029757600080fd5b61029f610bd1565b60405160ff909116815260200160405180910390f35b34156102c057600080fd5b610278600435610bd6565b34156102d657600080fd5b6102de610beb565b005b34156102eb57600080fd5b61018a610cb2565b34156102fe57600080fd5b61018a610d06565b341561031157600080fd5b61018a6004351515610d0c565b341561032957600080fd5b61018a610d4f565b341561033c57600080fd5b61018a600160a060020a0360043516610d5d565b341561035b57600080fd5b6102de600435610d78565b341561037157600080fd5b61018a610dcf565b341561038457600080fd5b6102de6004356024351515610e17565b341561039f57600080fd5b61018a610e89565b34156103b257600080fd5b6101af610e9c565b34156103c557600080fd5b6102de610f07565b34156103d857600080fd5b610278600160a060020a0360043516602435610f65565b34156103fa57600080fd5b6102de60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061111895505050505050565b341561044b57600080fd5b6102de60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061118195505050505050565b341561049c57600080fd5b6102de6004356111e5565b34156104b257600080fd5b6102de611338565b61018a600160a060020a036004351661136f565b34156104d957600080fd5b6102de61137b565b60008060008060008060008060008a6000339050600b60009054906101000a900460ff1680156105225750678ac7230489e800008261051e610d4f565b0311155b1561081657600160a060020a03811660009081526003602052604090205460ff16151560011480156105775750600160a060020a038116600090815260076020526040902054678ac7230489e8000090830111155b151561058257600080fd5b600160a060020a0381166000908152600760205260409020546105a59083611431565b600160a060020a0382166000908152600760205260409020553399506105cc8d6005611447565b98506105d9896003611447565b97506105e5898961145e565b96506105f18d8a61145e565b95506105fc86611470565b9450604060020a87029350600085118015610621575060085461061f8682611431565b115b151561062c57600080fd5b600160a060020a038c1615801590610656575089600160a060020a03168c600160a060020a031614155b801561067c5750600254600160a060020a038d1660009081526004602052604090205410155b156106c257600160a060020a038c166000908152600560205260409020546106a49089611431565b600160a060020a038d166000908152600560205260409020556106d8565b6106cc8789611431565b9650604060020a870293505b60006008541115610732576106ef60085486611431565b6008819055604060020a880281151561070457fe5b60098054929091049091019055600854604060020a880281151561072457fe5b048502840384039350610738565b60088590555b600160a060020a038a1660009081526004602052604090205461075b9086611431565b600460008c600160a060020a0316600160a060020a031681526020019081526020016000208190555083856009540203925082600660008c600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a03168a600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f8860405191825260208201526040908101905180910390a3849a50610a74565b600b805460ff1916905533995061082e8d6005611447565b985061083b896003611447565b9750610847898961145e565b96506108538d8a61145e565b955061085e86611470565b9450604060020a8702935060008511801561088357506008546108818682611431565b115b151561088e57600080fd5b600160a060020a038c16158015906108b8575089600160a060020a03168c600160a060020a031614155b80156108de5750600254600160a060020a038d1660009081526004602052604090205410155b1561092457600160a060020a038c166000908152600560205260409020546109069089611431565b600160a060020a038d1660009081526005602052604090205561093a565b61092e8789611431565b9650604060020a870293505b600060085411156109945761095160085486611431565b6008819055604060020a880281151561096657fe5b60098054929091049091019055600854604060020a880281151561098657fe5b04850284038403935061099a565b60088590555b600160a060020a038a166000908152600460205260409020546109bd9086611431565b600460008c600160a060020a0316600160a060020a031681526020019081526020016000208190555083856009540203925082600660008c600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a03168a600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f8860405191825260208201526040908101905180910390a3849a505b5050505050505050505092915050565b600160a060020a0316600090815260066020908152604080832054600490925290912054600954604060020a9102919091030490565b60008054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b505780601f10610b2557610100808354040283529160200191610b50565b820191906000526020600020905b815481529060010190602001808311610b3357829003601f168201915b505050505081565b6000808080610b68856005611447565b9250610b74858461145e565b9150610b7f82611470565b95945050505050565b6008545b90565b6000806000806008548511151515610ba657600080fd5b610baf85611508565b9250610bbc836005611447565b9150610b7f838361145e565b600b5460ff1681565b601281565b600a6020526000908152604090205460ff1681565b6000806000610bfa6001610d0c565b11610c0457600080fd5b339150610c116000610d0c565b600160a060020a03831660008181526006602090815260408083208054604060020a870201905560059091528082208054929055920192509082156108fc0290839051600060405180830381858888f193505050501515610c7157600080fd5b81600160a060020a03167fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc8260405190815260200160405180910390a25050565b60008060008060085460001415610cd0576414f46b04009350610d00565b610ce1670de0b6b3a7640000611508565b9250610cee836005611447565b9150610cfa838361145e565b90508093505b50505090565b60025481565b60003382610d2257610d1d81610a84565b610d46565b600160a060020a038116600090815260056020526040902054610d4482610a84565b015b91505b50919050565b600160a060020a0330163190565b600160a060020a031660009081526004602052604090205490565b33600a600082604051600160a060020a03919091166c01000000000000000000000000028152601401604051908190039020815260208101919091526040016000205460ff161515610dc957600080fd5b50600255565b60008060008060085460001415610ded5764199c82cc009350610d00565b610dfe670de0b6b3a7640000611508565b9250610e0b836005611447565b9150610cfa8383611431565b33600a600082604051600160a060020a03919091166c01000000000000000000000000028152601401604051908190039020815260208101919091526040016000205460ff161515610e6857600080fd5b506000918252600a6020526040909120805460ff1916911515919091179055565b600033610e9581610d5d565b91505b5090565b60018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b505780601f10610b2557610100808354040283529160200191610b50565b33600a600082604051600160a060020a03919091166c01000000000000000000000000028152601401604051908190039020815260208101919091526040016000205460ff161515610f5857600080fd5b50600b805460ff19169055565b600080600080600080610f76610e89565b11610f8057600080fd5b600b5433945060ff16158015610fae5750600160a060020a0384166000908152600460205260409020548611155b1515610fb957600080fd5b6000610fc56001610d0c565b1115610fd357610fd3610beb565b610fde866005611447565b9250610fea868461145e565b9150610ff583611508565b90506110036008548461145e565b600855600160a060020a038416600090815260046020526040902054611029908761145e565b600160a060020a0380861660009081526004602052604080822093909355908916815220546110589083611431565b600160a060020a0388811660008181526004602090815260408083209590955560098054948a16835260069091528482208054948c029094039093558254918152929092208054928502909201909155546008546110c79190604060020a84028115156110c157fe5b04611431565b600955600160a060020a038088169085167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a35060019695505050505050565b33600a600082604051600160a060020a03919091166c01000000000000000000000000028152601401604051908190039020815260208101919091526040016000205460ff16151561116957600080fd5b600182805161117c9291602001906115a9565b505050565b33600a600082604051600160a060020a03919091166c01000000000000000000000000028152601401604051908190039020815260208101919091526040016000205460ff1615156111d257600080fd5b600082805161117c9291602001906115a9565b60008060008060008060006111f8610e89565b1161120257600080fd5b33600160a060020a03811660009081526004602052604090205490965087111561122b57600080fd5b86945061123785611508565b9350611244846005611447565b9250611250848461145e565b915061125e6008548661145e565b600855600160a060020a038616600090815260046020526040902054611284908661145e565b600160a060020a03871660009081526004602090815260408083209390935560095460069091529181208054928802604060020a8602019283900390556008549192509011156112eb576112e7600954600854604060020a86028115156110c157fe5b6009555b85600160a060020a03167fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139868460405191825260208201526040908101905180910390a250505050505050565b33600160a060020a0381166000908152600460205260408120549081111561136357611363816111e5565b61136b610beb565b5050565b6000610d4934836104e1565b60008060008061138b6001610d0c565b1161139557600080fd5b61139f6000610d0c565b33600160a060020a03811660009081526006602090815260408083208054604060020a870201905560059091528120805490829055909201945092506113e69084906104e1565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab3615326458848360405191825260208201526040908101905180910390a2505050565b60008282018381101561144057fe5b9392505050565b600080828481151561145557fe5b04949350505050565b60008282111561146a57fe5b50900390565b6008546000906c01431e0fae6d7217caa00000009082906402540be4006114f56114ef730380d4bd8a8678c1bb542c80deb4800000000000880268056bc75e2d631000006002860a02017005e0a1fd2712875988becaad0000000000850201780197d4df19d605767337e9f14d3eec8920e40000000000000001611574565b8561145e565b8115156114fe57fe5b0403949350505050565b600854600090670de0b6b3a76400008381019181019083906115616414f46b04008285046402540be40002018702600283670de0b6b3a763ffff1982890a8b900301046402540be4000281151561155b57fe5b0461145e565b81151561156a57fe5b0495945050505050565b80600260018201045b81811015610d4957809150600281828581151561159657fe5b04018115156115a157fe5b04905061157d565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106115ea57805160ff1916838001178555611617565b82800160010185558215611617579182015b828111156116175782518255916020019190600101906115fc565b50610e9892610b8c9250905b80821115610e9857600081556001016116235600a165627a7a72305820ea63c4ba1af6b98e8236d4331410993deb04e8cb69d245d43ef61fcac2b9abdb0029

Swarm Source

bzzr://ea63c4ba1af6b98e8236d4331410993deb04e8cb69d245d43ef61fcac2b9abdb

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

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.