ETH Price: $3,473.96 (+2.15%)

Contract

0x4BEa1b5De7e3F09f6131408BC306b1de411A3957
 

Overview

ETH Balance

0.886847132180633961 ETH

Eth Value

$3,080.88 (@ $3,473.96/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw70235662019-01-07 3:35:372179 days ago1546832137IN
0x4BEa1b5D...e411A3957
0 ETH0.000127762.9375
Withdraw68202962018-12-03 19:49:062213 days ago1543866546IN
0x4BEa1b5D...e411A3957
0 ETH0.000217475
Withdraw66675732018-11-08 17:37:302238 days ago1541698650IN
0x4BEa1b5D...e411A3957
0 ETH0.0005219412
Sell66675702018-11-08 17:35:582238 days ago1541698558IN
0x4BEa1b5D...e411A3957
0 ETH0.0005561911
Withdraw66497422018-11-05 19:31:492241 days ago1541446309IN
0x4BEa1b5D...e411A3957
0 ETH0.000182918
Withdraw66493312018-11-05 17:54:432241 days ago1541440483IN
0x4BEa1b5D...e411A3957
0 ETH0.000160047
Withdraw66311072018-11-02 18:13:292244 days ago1541182409IN
0x4BEa1b5D...e411A3957
0 ETH0.000260976
Exit66089952018-10-30 2:57:142248 days ago1540868234IN
0x4BEa1b5D...e411A3957
0 ETH0.000343726
Withdraw66045602018-10-29 9:30:292249 days ago1540805429IN
0x4BEa1b5D...e411A3957
0 ETH0.000173984
Exit66027052018-10-29 2:18:092249 days ago1540779489IN
0x4BEa1b5D...e411A3957
0 ETH0.0004017
Sell66026552018-10-29 2:05:572249 days ago1540778757IN
0x4BEa1b5D...e411A3957
0 ETH0.000353947
Reinvest66023032018-10-29 0:36:262249 days ago1540773386IN
0x4BEa1b5D...e411A3957
0 ETH0.000249723
Withdraw65970192018-10-28 3:51:152250 days ago1540698675IN
0x4BEa1b5D...e411A3957
0 ETH0.000260976
Withdraw65966202018-10-28 2:20:062250 days ago1540693206IN
0x4BEa1b5D...e411A3957
0 ETH0.000173984
Withdraw65965682018-10-28 2:06:342250 days ago1540692394IN
0x4BEa1b5D...e411A3957
0 ETH0.0004784411
Withdraw65917212018-10-27 7:02:342251 days ago1540623754IN
0x4BEa1b5D...e411A3957
0 ETH0.0013048530
Sell65917052018-10-27 6:58:462251 days ago1540623526IN
0x4BEa1b5D...e411A3957
0 ETH0.0015226530
Withdraw65911802018-10-27 4:51:462251 days ago1540615906IN
0x4BEa1b5D...e411A3957
0 ETH0.000068593
Withdraw65906962018-10-27 2:57:372251 days ago1540609057IN
0x4BEa1b5D...e411A3957
0 ETH0.000068593
Withdraw65839562018-10-26 0:32:342252 days ago1540513954IN
0x4BEa1b5D...e411A3957
0 ETH0.000130483
Withdraw65759392018-10-24 17:08:102253 days ago1540400890IN
0x4BEa1b5D...e411A3957
0 ETH0.000260976
Withdraw65714692018-10-23 23:36:382254 days ago1540337798IN
0x4BEa1b5D...e411A3957
0 ETH0.000173984
Exit65685292018-10-23 12:05:272255 days ago1540296327IN
0x4BEa1b5D...e411A3957
0 ETH0.0011858420.7
Withdraw65675702018-10-23 8:20:112255 days ago1540282811IN
0x4BEa1b5D...e411A3957
0 ETH0.0004784411
Withdraw65674242018-10-23 7:44:572255 days ago1540280697IN
0x4BEa1b5D...e411A3957
0 ETH0.000173984
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
70235662019-01-07 3:35:372179 days ago1546832137
0x4BEa1b5D...e411A3957
0.10308187 ETH
68202962018-12-03 19:49:062213 days ago1543866546
0x4BEa1b5D...e411A3957
0.00032539 ETH
66675732018-11-08 17:37:302238 days ago1541698650
0x4BEa1b5D...e411A3957
0.03092669 ETH
66311072018-11-02 18:13:292244 days ago1541182409
0x4BEa1b5D...e411A3957
0.01200137 ETH
66089952018-10-30 2:57:142248 days ago1540868234
0x4BEa1b5D...e411A3957
0.14674745 ETH
66045602018-10-29 9:30:292249 days ago1540805429
0x4BEa1b5D...e411A3957
0.01351499 ETH
66027052018-10-29 2:18:092249 days ago1540779489
0x4BEa1b5D...e411A3957
0.92628287 ETH
65970192018-10-28 3:51:152250 days ago1540698675
0x4BEa1b5D...e411A3957
0.34080019 ETH
65966202018-10-28 2:20:062250 days ago1540693206
0x4BEa1b5D...e411A3957
0.04040086 ETH
65965682018-10-28 2:06:342250 days ago1540692394
0x4BEa1b5D...e411A3957
0.04496476 ETH
65917212018-10-27 7:02:342251 days ago1540623754
0x4BEa1b5D...e411A3957
2.03561324 ETH
65839562018-10-26 0:32:342252 days ago1540513954
0x4BEa1b5D...e411A3957
0.03760089 ETH
65759392018-10-24 17:08:102253 days ago1540400890
0x4BEa1b5D...e411A3957
0.00541197 ETH
65714692018-10-23 23:36:382254 days ago1540337798
0x4BEa1b5D...e411A3957
0.01923331 ETH
65685292018-10-23 12:05:272255 days ago1540296327
0x4BEa1b5D...e411A3957
0.05339243 ETH
65675702018-10-23 8:20:112255 days ago1540282811
0x4BEa1b5D...e411A3957
0.02174002 ETH
65674242018-10-23 7:44:572255 days ago1540280697
0x4BEa1b5D...e411A3957
0.01048862 ETH
65659272018-10-23 1:56:452255 days ago1540259805
0x4BEa1b5D...e411A3957
0.00259647 ETH
65654492018-10-23 0:12:282255 days ago1540253548
0x4BEa1b5D...e411A3957
0.63424527 ETH
65644262018-10-22 20:12:062255 days ago1540239126
0x4BEa1b5D...e411A3957
0.11545191 ETH
65639342018-10-22 18:22:482255 days ago1540232568
0x4BEa1b5D...e411A3957
1.50640652 ETH
65636132018-10-22 17:05:272255 days ago1540227927
0x4BEa1b5D...e411A3957
0.20574962 ETH
65549702018-10-21 6:57:132257 days ago1540105033
0x4BEa1b5D...e411A3957
0.03381093 ETH
65428022018-10-19 7:09:262259 days ago1539932966
0x4BEa1b5D...e411A3957
0.20644417 ETH
65414932018-10-19 2:04:282259 days ago1539914668
0x4BEa1b5D...e411A3957
0.04717983 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
apexTWO

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.24;

/***
 * http://apexTWO.online
 * https://discord.gg/vbWkKPv
 * this contract has administrators and developers. So did the other one. I don't know why it said it didnt.
 * If you would like Premine tokens in exchange for helping out, PM Revenge of the Synth in the discord
 * 
 * 12 % entry fee
 * 12 % of entry fee to masternode referrals
 * 0 % transfer fee
 * Exit fee starts at 60% from contract start
 * Exit fee decreases over 30 days  until 12%
 * Stays at 12% forever.
 */
contract apexTWO {

    /*=================================
    =            MODIFIERS            =
    =================================*/

    /// @dev Only people with tokens
    modifier onlyBagholders {
        require(myTokens() > 0);
        _;
    }

    /// @dev Only people with profits
    modifier onlyStronghands {
        require(myDividends(true) > 0);
        _;
    }

    /// @dev notGasbag
    modifier notGasbag() {
      require(tx.gasprice < 200999999999);
      _;
    }

    /// @dev Preventing unstable dumping and limit ambassador mine
    modifier antiEarlyWhale {
        if (address(this).balance  -msg.value < whaleBalanceLimit){
          require(msg.value <= maxEarlyStake);
        }
        if (depositCount_ == 0){
          require(ambassadors_[msg.sender] && msg.value == 0.25 ether);
        }else
        if (depositCount_ < 6){
          require(ambassadors_[msg.sender] && msg.value == 0.75 ether);
        }else
        if (depositCount_ == 6 || depositCount_==7){
          require(ambassadors_[msg.sender] && msg.value == 1 ether);
        }
        _;
    }

    /// @dev notGasbag
    modifier isControlled() {
      require(isPremine() || isStarted());
      _;
    }

    /*==============================
    =            EVENTS            =
    ==============================*/

    event onTokenPurchase(
        address indexed customerAddress,
        uint256 incomingEthereum,
        uint256 tokensMinted,
        address indexed referredBy,
        uint timestamp,
        uint256 price
    );

    event onTokenSell(
        address indexed customerAddress,
        uint256 tokensBurned,
        uint256 ethereumEarned,
        uint timestamp,
        uint256 price
    );

    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 = "apexTWO Token";
    string public symbol = "APX2";
    uint8 constant public decimals = 18;

    /// @dev 12% dividends for token purchase
    uint8 constant internal entryFee_ = 12;

    /// @dev 60% dividends for token selling
    uint8 constant internal startExitFee_ = 60;

    /// @dev 12% dividends for token selling after step
    uint8 constant internal finalExitFee_ = 12;

    /// @dev Exit fee falls over period of 30 days
    uint256 constant internal exitFeeFallDuration_ = 30 days;

    /// @dev 12% masternode
    uint8 constant internal refferalFee_ = 12;

    /// @dev P3D pricing
    uint256 constant internal tokenPriceInitial_ = 0.0000001 ether;
    uint256 constant internal tokenPriceIncremental_ = 0.00000001 ether;

    uint256 constant internal magnitude = 2 ** 64;

    /// @dev 100 needed for masternode activation
    uint256 public stakingRequirement = 100e18;

    /// @dev anti-early-whale
    uint256 public maxEarlyStake = 5 ether;
    uint256 public whaleBalanceLimit = 20 ether;

    /// @dev apex starting gun
    address public apex;

    /// @dev starting
    uint256 public startTime = 0; //  January 1, 1970 12:00:00

   /*=================================
    =            DATASETS            =
    ================================*/

    // amount of shares for each address (scaled number)
    mapping(address => uint256) internal tokenBalanceLedger_;
    mapping(address => uint256) internal referralBalance_;
    mapping(address => uint256) internal bonusBalance_;
    mapping(address => int256) internal payoutsTo_;
    uint256 internal tokenSupply_;
    uint256 internal profitPerShare_;
    uint256 public depositCount_;

    mapping(address => bool) internal ambassadors_;

    /*=======================================
    =            CONSTRUCTOR                =
    =======================================*/

   constructor () public {

     //Community Promotional Fund
     ambassadors_[msg.sender]=true;
     //1
     ambassadors_[0xaf9c025ce6322a23ac00301c714f4f42895c9818]=true;
     //2
     ambassadors_[0x44503314c43422764582502e59a6b2905f999d04]=true;
     //3
     ambassadors_[0x7b705c83c8c270745955cc3ca5f80fb3acf75d83]=true;
     //4
     ambassadors_[0xe25903c5078d01bbea64c01dc1107f40f44141a3]=true;
     //5
     ambassadors_[0xe6f43c670cc8a366bbcf6677f43b02754bfb5855]=true;
     //6
     ambassadors_[0xe467e0d26344fcc2d64883958ffe27372c84beaa]=true;
     apex = msg.sender;
   }

    /*=======================================
    =            PUBLIC FUNCTIONS           =
    =======================================*/

    // @dev Function setting the start time of the system
    function setStartTime(uint256 _startTime) public {
      require(msg.sender==apex && !isStarted() && now < _startTime);
      startTime = _startTime;
    }

    /// @dev Converts all incoming ethereum to tokens for the caller, and passes down the referral addy (if any)
    function buy(address _referredBy) antiEarlyWhale notGasbag isControlled public payable  returns (uint256) {
        purchaseTokens(msg.value, _referredBy , msg.sender);
    }

    /// @dev Converts to tokens on behalf of the customer - this allows gifting and integration with other systems
    function buyFor(address _referredBy, address _customerAddress) antiEarlyWhale notGasbag isControlled public payable returns (uint256) {
        purchaseTokens(msg.value, _referredBy , _customerAddress);
    }

    /**
     * @dev Fallback function to handle ethereum that was send straight to the contract
     *  Unfortunately we cannot use a referral address this way.
     */
    function() antiEarlyWhale notGasbag isControlled payable public {
        purchaseTokens(msg.value, 0x0 , msg.sender);
    }

    /// @dev 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 , _customerAddress);

        // fire event
        emit onReinvestment(_customerAddress, _dividends, _tokens);
    }

    /// @dev 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);

        // capitulation
        withdraw();
    }

    /// @dev 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
        emit onWithdraw(_customerAddress, _dividends);
    }

    /// @dev 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(SafeMath.mul(_ethereum, exitFee()), 100);
        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
        emit onTokenSell(_customerAddress, _tokens, _taxedEthereum, now, buyPrice());
    }


    /**
     * @dev Transfer tokens from the caller to a new holder.
     */
    function transfer(address _toAddress, uint256 _amountOfTokens) onlyBagholders public returns (bool) {
        // setup
        address _customerAddress = msg.sender;

        // make sure we have the requested tokens
        require(_amountOfTokens <= tokenBalanceLedger_[_customerAddress]);

        // withdraw all outstanding dividends first
        if (myDividends(true) > 0) {
            withdraw();
        }

        // exchange tokens
        tokenBalanceLedger_[_customerAddress] = SafeMath.sub(tokenBalanceLedger_[_customerAddress], _amountOfTokens);
        tokenBalanceLedger_[_toAddress] = SafeMath.add(tokenBalanceLedger_[_toAddress], _amountOfTokens);

        // update dividend trackers
        payoutsTo_[_customerAddress] -= (int256) (profitPerShare_ * _amountOfTokens);
        payoutsTo_[_toAddress] += (int256) (profitPerShare_ * _amountOfTokens);

        // fire event
        emit Transfer(_customerAddress, _toAddress, _amountOfTokens);

        // ERC20
        return true;
    }


    /*=====================================
    =      HELPERS AND CALCULATORS        =
    =====================================*/

    /**
     * @dev Method to view the current Ethereum stored in the contract
     *  Example: totalEthereumBalance()
     */
    function totalEthereumBalance() public view returns (uint256) {
        return address(this).balance;
    }

    /// @dev Retrieve the total token supply.
    function totalSupply() public view returns (uint256) {
        return tokenSupply_;
    }

    /// @dev Retrieve the tokens owned by the caller.
    function myTokens() public view returns (uint256) {
        address _customerAddress = msg.sender;
        return balanceOf(_customerAddress);
    }

    /**
     * @dev 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) ;
    }

    /// @dev Retrieve the token balance of any single address.
    function balanceOf(address _customerAddress) public view returns (uint256) {
        return tokenBalanceLedger_[_customerAddress];
    }

    /// @dev Retrieve the dividend balance of any single address.
    function dividendsOf(address _customerAddress) public view returns (uint256) {
        return (uint256) ((int256) (profitPerShare_ * tokenBalanceLedger_[_customerAddress]) - payoutsTo_[_customerAddress]) / magnitude;
    }

    /// @dev Return the sell 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(SafeMath.mul(_ethereum, exitFee()), 100);
            uint256 _taxedEthereum = SafeMath.sub(_ethereum, _dividends);

            return _taxedEthereum;
        }
    }

    /// @dev Return the buy 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(SafeMath.mul(_ethereum, entryFee_), 100);
            uint256 _taxedEthereum = SafeMath.add(_ethereum, _dividends);

            return _taxedEthereum;
        }
    }

    /// @dev 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(SafeMath.mul(_ethereumToSpend, entryFee_), 100);
        uint256 _taxedEthereum = SafeMath.sub(_ethereumToSpend, _dividends);
        uint256 _amountOfTokens = ethereumToTokens_(_taxedEthereum);
        return _amountOfTokens;
    }

    /// @dev 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(SafeMath.mul(_ethereum, exitFee()), 100);
        uint256 _taxedEthereum = SafeMath.sub(_ethereum, _dividends);
        return _taxedEthereum;
    }

    /// @dev Function for the frontend to get untaxed receivable ethereum.
    function calculateUntaxedEthereumReceived(uint256 _tokensToSell) public view returns (uint256) {
        require(_tokensToSell <= tokenSupply_);
        uint256 _ethereum = tokensToEthereum_(_tokensToSell);
        //uint256 _dividends = SafeMath.div(SafeMath.mul(_ethereum, exitFee()), 100);
        //uint256 _taxedEthereum = SafeMath.sub(_ethereum, _dividends);
        return _ethereum;
    }


    /// @dev Function for getting the current exitFee
    function exitFee() public view returns (uint8) {
        if (startTime==0){
           return startExitFee_;
        }
        if ( now < startTime) {
          return 0;
        }
        uint256 secondsPassed = now - startTime;
        if (secondsPassed >= exitFeeFallDuration_) {
            return finalExitFee_;
        }
        uint8 totalChange = startExitFee_ - finalExitFee_;
        uint8 currentChange = uint8(totalChange * secondsPassed / exitFeeFallDuration_);
        uint8 currentFee = startExitFee_- currentChange;
        return currentFee;
    }

    // @dev Function for find if premine
    function isPremine() public view returns (bool) {
      return depositCount_<=7;
    }

    // @dev Function for find if premine
    function isStarted() public view returns (bool) {
      return startTime!=0 && now > startTime;
    }

    /*==========================================
    =            INTERNAL FUNCTIONS            =
    ==========================================*/

    /// @dev Internal function to actually purchase the tokens.
    function purchaseTokens(uint256 _incomingEthereum, address _referredBy , address _customerAddress) internal returns (uint256) {
        // data setup
        uint256 _undividedDividends = SafeMath.div(SafeMath.mul(_incomingEthereum, entryFee_), 100);
        uint256 _referralBonus = SafeMath.div(SafeMath.mul(_undividedDividends, refferalFee_), 100);
        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
        emit onTokenPurchase(_customerAddress, _incomingEthereum, _amountOfTokens, _referredBy, now, buyPrice());

        // Keep track
        depositCount_++;
        return _amountOfTokens;
    }

    /**
     * @dev 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;
    }

    /**
     * @dev 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;
    }

    /// @dev This is where all your gas goes.
    function sqrt(uint256 x) internal pure returns (uint256 y) {
        uint256 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":"_tokensToSell","type":"uint256"}],"name":"calculateUntaxedEthereumReceived","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_startTime","type":"uint256"}],"name":"setStartTime","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":"isStarted","outputs":[{"name":"","type":"bool"}],"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":"maxEarlyStake","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"exitFee","outputs":[{"name":"","type":"uint8"}],"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":true,"inputs":[],"name":"startTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"buyPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"whaleBalanceLimit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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":"_toAddress","type":"address"},{"name":"_amountOfTokens","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_referredBy","type":"address"},{"name":"_customerAddress","type":"address"}],"name":"buyFor","outputs":[{"name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"isPremine","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"depositCount_","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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"},{"constant":true,"inputs":[],"name":"apex","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","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"},{"indexed":false,"name":"timestamp","type":"uint256"},{"indexed":false,"name":"price","type":"uint256"}],"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"},{"indexed":false,"name":"timestamp","type":"uint256"},{"indexed":false,"name":"price","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"}]

60c0604052600d60808190527f6170657854574f20546f6b656e0000000000000000000000000000000000000060a090815262000040916000919062000206565b506040805180820190915260048082527f41505832000000000000000000000000000000000000000000000000000000006020909201918252620000879160019162000206565b5068056bc75e2d63100000600255674563918244f400006003556801158e460913d000006004556000600655348015620000c057600080fd5b50336000818152600e602052604081208054600160ff1991821681179092557fdfc8b5c7b9102c157e9f988ebf85cceee99b09ecba1a375b2f38edf197d3a38580548216831790557f1ed8dfe991a39406725b204e91947d4f6cdec8542019e72c16d5dc219d77a23980548216831790557f4f4d02f52e8c8210ee35edb926b897c2707df04bc64412938e42e80c7c14705580548216831790557f730d525301a40ddfcb8e0f8badfbbe4a75673006a250760a9591adb84c12499d80548216831790557f0da0e2e632392c399302aa4447251211181409ce616d15e2d3f7547366896d9c805482168317905573e467e0d26344fcc2d64883958ffe27372c84beaa9092527fad15652a9d5812963c409881a814908f00a72b4bf0d4bd851b7ed82116c9d29d805490921617905560058054600160a060020a0319169091179055620002ab565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200024957805160ff191683800117855562000279565b8280016001018555821562000279579182015b82811115620002795782518255916020019190600101906200025c565b50620002879291506200028b565b5090565b620002a891905b8082111562000287576000815560010162000292565b90565b6114de80620002bb6000396000f3006080604052600436106101895763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b81146102a757806306fdde03146102da57806310d0ffdd1461036457806318160ddd1461037c578063226093731461039157806323b3b704146103a9578063313ce567146103c15780633ccfd60b146103ec5780633e0a322d146104035780634b7503341461041b578063544736e61461043057806356d399e814610459578063585bc2811461046e5780636284ae4114610483578063688abbf7146104985780636b2f4632146104b257806370a08231146104c757806378e97925146104e85780638620410b146104fd57806391e3310714610512578063949e8acd1461052757806395d89b411461053c578063a9059cbb14610551578063caa877e714610575578063d6dda33d1461058f578063da7af32d146105a4578063e4849b32146105b9578063e9fad8ee146105d1578063f088d547146105e6578063fdb5a03e146105fa578063ff295c5d1461060f575b6004543430310310156101a5576003543411156101a557600080fd5b600d5415156101e457336000908152600e602052604090205460ff1680156101d45750346703782dace9d90000145b15156101df57600080fd5b610266565b6006600d54101561021d57336000908152600e602052604090205460ff1680156101d45750670a688906bd8b000034146101df57600080fd5b600d54600614806102305750600d546007145b1561026657336000908152600e602052604090205460ff16801561025b575034670de0b6b3a7640000145b151561026657600080fd5b642ecc8899ff3a1061027757600080fd5b61027f610640565b8061028d575061028d61064a565b151561029857600080fd5b6102a434600033610665565b50005b3480156102b357600080fd5b506102c8600160a060020a03600435166108cf565b60408051918252519081900360200190f35b3480156102e657600080fd5b506102ef61090a565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610329578181015183820152602001610311565b50505050905090810190601f1680156103565780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561037057600080fd5b506102c8600435610998565b34801561038857600080fd5b506102c86109cb565b34801561039d57600080fd5b506102c86004356109d1565b3480156103b557600080fd5b506102c8600435610a16565b3480156103cd57600080fd5b506103d6610a3f565b6040805160ff9092168252519081900360200190f35b3480156103f857600080fd5b50610401610a44565b005b34801561040f57600080fd5b50610401600435610b17565b34801561042757600080fd5b506102c8610b51565b34801561043c57600080fd5b5061044561064a565b604080519115158252519081900360200190f35b34801561046557600080fd5b506102c8610ba9565b34801561047a57600080fd5b506102c8610baf565b34801561048f57600080fd5b506103d6610bb5565b3480156104a457600080fd5b506102c86004351515610c1d565b3480156104be57600080fd5b506102c8610c5e565b3480156104d357600080fd5b506102c8600160a060020a0360043516610c63565b3480156104f457600080fd5b506102c8610c7e565b34801561050957600080fd5b506102c8610c84565b34801561051e57600080fd5b506102c8610ccf565b34801561053357600080fd5b506102c8610cd5565b34801561054857600080fd5b506102ef610ce7565b34801561055d57600080fd5b50610445600160a060020a0360043516602435610d41565b6102c8600160a060020a0360043581169060243516610e70565b34801561059b57600080fd5b50610445610640565b3480156105b057600080fd5b506102c8610f8d565b3480156105c557600080fd5b50610401600435610f93565b3480156105dd57600080fd5b50610401611106565b6102c8600160a060020a0360043516611133565b34801561060657600080fd5b50610401611250565b34801561061b57600080fd5b50610624611307565b60408051600160a060020a039092168252519081900360200190f35b600d546007101590565b6000600654600014158015610660575060065442115b905090565b60008080808080808061068361067c8c600c611316565b6064611341565b965061069361067c88600c611316565b955061069f8787611358565b94506106ab8b88611358565b93506106b68461136a565b925068010000000000000000850291506000831180156106e05750600b546106de8482611402565b115b15156106eb57600080fd5b600160a060020a038a1615801590610715575088600160a060020a03168a600160a060020a031614155b801561073b5750600254600160a060020a038b1660009081526007602052604090205410155b1561078157600160a060020a038a166000908152600860205260409020546107639087611402565b600160a060020a038b1660009081526008602052604090205561079c565b61078b8587611402565b945068010000000000000000850291505b6000600b541115610800576107b3600b5484611402565b600b8190556801000000000000000086028115156107cd57fe5b600c8054929091049091019055600b546801000000000000000086028115156107f257fe5b048302820382039150610806565b600b8390555b600160a060020a0389166000908152600760205260409020546108299084611402565b600160a060020a03808b16600081815260076020908152604080832095909555600c54600a909152939020805493870286900393840190559192508b16907f8032875b28d82ddbd303a9e4e5529d047a14ecb6290f80012a81b7e6227ff1ab8d8642610893610c84565b604080519485526020850193909352838301919091526060830152519081900360800190a35050600d8054600101905598975050505050505050565b600160a060020a03166000908152600a6020908152604080832054600790925290912054600c54680100000000000000009102919091030490565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109905780601f1061096557610100808354040283529160200191610990565b820191906000526020600020905b81548152906001019060200180831161097357829003601f168201915b505050505081565b60008080806109ab61067c86600c611316565b92506109b78584611358565b91506109c28261136a565b95945050505050565b600b5490565b600080600080600b5485111515156109e857600080fd5b6109f185611411565b9250610a0a61067c84610a02610bb5565b60ff16611316565b91506109c28383611358565b600080600b548311151515610a2a57600080fd5b610a3383611411565b90508091505b50919050565b601281565b6000806000610a536001610c1d565b11610a5d57600080fd5b339150610a6a6000610c1d565b600160a060020a0383166000818152600a6020908152604080832080546801000000000000000087020190556008909152808220805490839055905193019350909183156108fc0291849190818181858888f19350505050158015610ad3573d6000803e3d6000fd5b50604080518281529051600160a060020a038416917fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc919081900360200190a25050565b600554600160a060020a031633148015610b365750610b3461064a565b155b8015610b4157508042105b1515610b4c57600080fd5b600655565b600080600080600b5460001415610b6f576414f46b04009350610ba3565b610b80670de0b6b3a7640000611411565b9250610b9161067c84610a02610bb5565b9150610b9d8383611358565b90508093505b50505090565b60025481565b60035481565b600080600080600060065460001415610bd157603c9450610c16565b600654421015610be45760009450610c16565b6006544203935062278d008410610bfe57600c9450610c16565b6030925062278d0084840204915081603c0390508094505b5050505090565b60003382610c3357610c2e816108cf565b610c57565b600160a060020a038116600090815260086020526040902054610c55826108cf565b015b9392505050565b303190565b600160a060020a031660009081526007602052604090205490565b60065481565b600080600080600b5460001415610ca25764199c82cc009350610ba3565b610cb3670de0b6b3a7640000611411565b9250610cc361067c84600c611316565b9150610b9d8383611402565b60045481565b600033610ce181610c63565b91505090565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109905780601f1061096557610100808354040283529160200191610990565b6000806000610d4e610cd5565b11610d5857600080fd5b5033600081815260076020526040902054831115610d7557600080fd5b6000610d816001610c1d565b1115610d8f57610d8f610a44565b600160a060020a038116600090815260076020526040902054610db29084611358565b600160a060020a038083166000908152600760205260408082209390935590861681522054610de19084611402565b600160a060020a03858116600081815260076020908152604080832095909555600c8054948716808452600a83528684208054968b02909603909555548383529185902080549289029092019091558351878152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3600191505b5092915050565b600454600090343031031015610e8f57600354341115610e8f57600080fd5b600d541515610ece57336000908152600e602052604090205460ff168015610ebe5750346703782dace9d90000145b1515610ec957600080fd5b610f50565b6006600d541015610f0757336000908152600e602052604090205460ff168015610ebe5750670a688906bd8b00003414610ec957600080fd5b600d5460061480610f1a5750600d546007145b15610f5057336000908152600e602052604090205460ff168015610f45575034670de0b6b3a7640000145b1515610f5057600080fd5b642ecc8899ff3a10610f6157600080fd5b610f69610640565b80610f775750610f7761064a565b1515610f8257600080fd5b610e69348484610665565b600d5481565b6000806000806000806000610fa6610cd5565b11610fb057600080fd5b33600081815260076020526040902054909650871115610fcf57600080fd5b869450610fdb85611411565b9350610fec61067c85610a02610bb5565b9250610ff88484611358565b9150611006600b5486611358565b600b55600160a060020a03861660009081526007602052604090205461102c9086611358565b600160a060020a038716600090815260076020908152604080832093909355600c54600a909152918120805492880268010000000000000000860201928390039055600b5491925010156110a25761109e600c54600b5468010000000000000000860281151561109857fe5b04611402565b600c555b85600160a060020a03167f8d3a0130073dbd54ab6ac632c05946df540553d3b514c9f8165b4ab7f2b1805e8684426110d8610c84565b604080519485526020850193909352838301919091526060830152519081900360800190a250505050505050565b33600081815260076020526040812054908111156111275761112781610f93565b61112f610a44565b5050565b6004546000903430310310156111525760035434111561115257600080fd5b600d54151561119157336000908152600e602052604090205460ff1680156111815750346703782dace9d90000145b151561118c57600080fd5b611213565b6006600d5410156111ca57336000908152600e602052604090205460ff1680156111815750670a688906bd8b0000341461118c57600080fd5b600d54600614806111dd5750600d546007145b1561121357336000908152600e602052604090205460ff168015611208575034670de0b6b3a7640000145b151561121357600080fd5b642ecc8899ff3a1061122457600080fd5b61122c610640565b8061123a575061123a61064a565b151561124557600080fd5b610a39348333610665565b6000806000806112606001610c1d565b1161126a57600080fd5b6112746000610c1d565b336000818152600a60209081526040808320805468010000000000000000870201905560089091528120805490829055909201945092506112b790849084610665565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab36153264588483604051808381526020018281526020019250505060405180910390a2505050565b600554600160a060020a031681565b6000808315156113295760009150610e69565b5082820282848281151561133957fe5b0414610c5757fe5b600080828481151561134f57fe5b04949350505050565b60008282111561136457fe5b50900390565b600b546000906c01431e0fae6d7217caa00000009082906402540be4006113ef6113e9730380d4bd8a8678c1bb542c80deb4800000000000880268056bc75e2d631000006002860a02017005e0a1fd2712875988becaad0000000000850201780197d4df19d605767337e9f14d3eec8920e4000000000000000161147d565b85611358565b8115156113f857fe5b0403949350505050565b600082820183811015610c5757fe5b600b54600090670de0b6b3a764000083810191810190839061146a6414f46b04008285046402540be40002018702600283670de0b6b3a763ffff1982890a8b900301046402540be4000281151561146457fe5b04611358565b81151561147357fe5b0495945050505050565b80600260018201045b81811015610a3957809150600281828581151561149f57fe5b04018115156114aa57fe5b0490506114865600a165627a7a7230582090f7e847c9b49497e4f8da6bb13e09670f936ba98b6b3865dfe58fbc430930470029

Deployed Bytecode

0x6080604052600436106101895763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b81146102a757806306fdde03146102da57806310d0ffdd1461036457806318160ddd1461037c578063226093731461039157806323b3b704146103a9578063313ce567146103c15780633ccfd60b146103ec5780633e0a322d146104035780634b7503341461041b578063544736e61461043057806356d399e814610459578063585bc2811461046e5780636284ae4114610483578063688abbf7146104985780636b2f4632146104b257806370a08231146104c757806378e97925146104e85780638620410b146104fd57806391e3310714610512578063949e8acd1461052757806395d89b411461053c578063a9059cbb14610551578063caa877e714610575578063d6dda33d1461058f578063da7af32d146105a4578063e4849b32146105b9578063e9fad8ee146105d1578063f088d547146105e6578063fdb5a03e146105fa578063ff295c5d1461060f575b6004543430310310156101a5576003543411156101a557600080fd5b600d5415156101e457336000908152600e602052604090205460ff1680156101d45750346703782dace9d90000145b15156101df57600080fd5b610266565b6006600d54101561021d57336000908152600e602052604090205460ff1680156101d45750670a688906bd8b000034146101df57600080fd5b600d54600614806102305750600d546007145b1561026657336000908152600e602052604090205460ff16801561025b575034670de0b6b3a7640000145b151561026657600080fd5b642ecc8899ff3a1061027757600080fd5b61027f610640565b8061028d575061028d61064a565b151561029857600080fd5b6102a434600033610665565b50005b3480156102b357600080fd5b506102c8600160a060020a03600435166108cf565b60408051918252519081900360200190f35b3480156102e657600080fd5b506102ef61090a565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610329578181015183820152602001610311565b50505050905090810190601f1680156103565780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561037057600080fd5b506102c8600435610998565b34801561038857600080fd5b506102c86109cb565b34801561039d57600080fd5b506102c86004356109d1565b3480156103b557600080fd5b506102c8600435610a16565b3480156103cd57600080fd5b506103d6610a3f565b6040805160ff9092168252519081900360200190f35b3480156103f857600080fd5b50610401610a44565b005b34801561040f57600080fd5b50610401600435610b17565b34801561042757600080fd5b506102c8610b51565b34801561043c57600080fd5b5061044561064a565b604080519115158252519081900360200190f35b34801561046557600080fd5b506102c8610ba9565b34801561047a57600080fd5b506102c8610baf565b34801561048f57600080fd5b506103d6610bb5565b3480156104a457600080fd5b506102c86004351515610c1d565b3480156104be57600080fd5b506102c8610c5e565b3480156104d357600080fd5b506102c8600160a060020a0360043516610c63565b3480156104f457600080fd5b506102c8610c7e565b34801561050957600080fd5b506102c8610c84565b34801561051e57600080fd5b506102c8610ccf565b34801561053357600080fd5b506102c8610cd5565b34801561054857600080fd5b506102ef610ce7565b34801561055d57600080fd5b50610445600160a060020a0360043516602435610d41565b6102c8600160a060020a0360043581169060243516610e70565b34801561059b57600080fd5b50610445610640565b3480156105b057600080fd5b506102c8610f8d565b3480156105c557600080fd5b50610401600435610f93565b3480156105dd57600080fd5b50610401611106565b6102c8600160a060020a0360043516611133565b34801561060657600080fd5b50610401611250565b34801561061b57600080fd5b50610624611307565b60408051600160a060020a039092168252519081900360200190f35b600d546007101590565b6000600654600014158015610660575060065442115b905090565b60008080808080808061068361067c8c600c611316565b6064611341565b965061069361067c88600c611316565b955061069f8787611358565b94506106ab8b88611358565b93506106b68461136a565b925068010000000000000000850291506000831180156106e05750600b546106de8482611402565b115b15156106eb57600080fd5b600160a060020a038a1615801590610715575088600160a060020a03168a600160a060020a031614155b801561073b5750600254600160a060020a038b1660009081526007602052604090205410155b1561078157600160a060020a038a166000908152600860205260409020546107639087611402565b600160a060020a038b1660009081526008602052604090205561079c565b61078b8587611402565b945068010000000000000000850291505b6000600b541115610800576107b3600b5484611402565b600b8190556801000000000000000086028115156107cd57fe5b600c8054929091049091019055600b546801000000000000000086028115156107f257fe5b048302820382039150610806565b600b8390555b600160a060020a0389166000908152600760205260409020546108299084611402565b600160a060020a03808b16600081815260076020908152604080832095909555600c54600a909152939020805493870286900393840190559192508b16907f8032875b28d82ddbd303a9e4e5529d047a14ecb6290f80012a81b7e6227ff1ab8d8642610893610c84565b604080519485526020850193909352838301919091526060830152519081900360800190a35050600d8054600101905598975050505050505050565b600160a060020a03166000908152600a6020908152604080832054600790925290912054600c54680100000000000000009102919091030490565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109905780601f1061096557610100808354040283529160200191610990565b820191906000526020600020905b81548152906001019060200180831161097357829003601f168201915b505050505081565b60008080806109ab61067c86600c611316565b92506109b78584611358565b91506109c28261136a565b95945050505050565b600b5490565b600080600080600b5485111515156109e857600080fd5b6109f185611411565b9250610a0a61067c84610a02610bb5565b60ff16611316565b91506109c28383611358565b600080600b548311151515610a2a57600080fd5b610a3383611411565b90508091505b50919050565b601281565b6000806000610a536001610c1d565b11610a5d57600080fd5b339150610a6a6000610c1d565b600160a060020a0383166000818152600a6020908152604080832080546801000000000000000087020190556008909152808220805490839055905193019350909183156108fc0291849190818181858888f19350505050158015610ad3573d6000803e3d6000fd5b50604080518281529051600160a060020a038416917fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc919081900360200190a25050565b600554600160a060020a031633148015610b365750610b3461064a565b155b8015610b4157508042105b1515610b4c57600080fd5b600655565b600080600080600b5460001415610b6f576414f46b04009350610ba3565b610b80670de0b6b3a7640000611411565b9250610b9161067c84610a02610bb5565b9150610b9d8383611358565b90508093505b50505090565b60025481565b60035481565b600080600080600060065460001415610bd157603c9450610c16565b600654421015610be45760009450610c16565b6006544203935062278d008410610bfe57600c9450610c16565b6030925062278d0084840204915081603c0390508094505b5050505090565b60003382610c3357610c2e816108cf565b610c57565b600160a060020a038116600090815260086020526040902054610c55826108cf565b015b9392505050565b303190565b600160a060020a031660009081526007602052604090205490565b60065481565b600080600080600b5460001415610ca25764199c82cc009350610ba3565b610cb3670de0b6b3a7640000611411565b9250610cc361067c84600c611316565b9150610b9d8383611402565b60045481565b600033610ce181610c63565b91505090565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109905780601f1061096557610100808354040283529160200191610990565b6000806000610d4e610cd5565b11610d5857600080fd5b5033600081815260076020526040902054831115610d7557600080fd5b6000610d816001610c1d565b1115610d8f57610d8f610a44565b600160a060020a038116600090815260076020526040902054610db29084611358565b600160a060020a038083166000908152600760205260408082209390935590861681522054610de19084611402565b600160a060020a03858116600081815260076020908152604080832095909555600c8054948716808452600a83528684208054968b02909603909555548383529185902080549289029092019091558351878152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3600191505b5092915050565b600454600090343031031015610e8f57600354341115610e8f57600080fd5b600d541515610ece57336000908152600e602052604090205460ff168015610ebe5750346703782dace9d90000145b1515610ec957600080fd5b610f50565b6006600d541015610f0757336000908152600e602052604090205460ff168015610ebe5750670a688906bd8b00003414610ec957600080fd5b600d5460061480610f1a5750600d546007145b15610f5057336000908152600e602052604090205460ff168015610f45575034670de0b6b3a7640000145b1515610f5057600080fd5b642ecc8899ff3a10610f6157600080fd5b610f69610640565b80610f775750610f7761064a565b1515610f8257600080fd5b610e69348484610665565b600d5481565b6000806000806000806000610fa6610cd5565b11610fb057600080fd5b33600081815260076020526040902054909650871115610fcf57600080fd5b869450610fdb85611411565b9350610fec61067c85610a02610bb5565b9250610ff88484611358565b9150611006600b5486611358565b600b55600160a060020a03861660009081526007602052604090205461102c9086611358565b600160a060020a038716600090815260076020908152604080832093909355600c54600a909152918120805492880268010000000000000000860201928390039055600b5491925010156110a25761109e600c54600b5468010000000000000000860281151561109857fe5b04611402565b600c555b85600160a060020a03167f8d3a0130073dbd54ab6ac632c05946df540553d3b514c9f8165b4ab7f2b1805e8684426110d8610c84565b604080519485526020850193909352838301919091526060830152519081900360800190a250505050505050565b33600081815260076020526040812054908111156111275761112781610f93565b61112f610a44565b5050565b6004546000903430310310156111525760035434111561115257600080fd5b600d54151561119157336000908152600e602052604090205460ff1680156111815750346703782dace9d90000145b151561118c57600080fd5b611213565b6006600d5410156111ca57336000908152600e602052604090205460ff1680156111815750670a688906bd8b0000341461118c57600080fd5b600d54600614806111dd5750600d546007145b1561121357336000908152600e602052604090205460ff168015611208575034670de0b6b3a7640000145b151561121357600080fd5b642ecc8899ff3a1061122457600080fd5b61122c610640565b8061123a575061123a61064a565b151561124557600080fd5b610a39348333610665565b6000806000806112606001610c1d565b1161126a57600080fd5b6112746000610c1d565b336000818152600a60209081526040808320805468010000000000000000870201905560089091528120805490829055909201945092506112b790849084610665565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab36153264588483604051808381526020018281526020019250505060405180910390a2505050565b600554600160a060020a031681565b6000808315156113295760009150610e69565b5082820282848281151561133957fe5b0414610c5757fe5b600080828481151561134f57fe5b04949350505050565b60008282111561136457fe5b50900390565b600b546000906c01431e0fae6d7217caa00000009082906402540be4006113ef6113e9730380d4bd8a8678c1bb542c80deb4800000000000880268056bc75e2d631000006002860a02017005e0a1fd2712875988becaad0000000000850201780197d4df19d605767337e9f14d3eec8920e4000000000000000161147d565b85611358565b8115156113f857fe5b0403949350505050565b600082820183811015610c5757fe5b600b54600090670de0b6b3a764000083810191810190839061146a6414f46b04008285046402540be40002018702600283670de0b6b3a763ffff1982890a8b900301046402540be4000281151561146457fe5b04611358565b81151561147357fe5b0495945050505050565b80600260018201045b81811015610a3957809150600281828581151561149f57fe5b04018115156114aa57fe5b0490506114865600a165627a7a7230582090f7e847c9b49497e4f8da6bb13e09670f936ba98b6b3865dfe58fbc430930470029

Swarm Source

bzzr://90f7e847c9b49497e4f8da6bb13e09670f936ba98b6b3865dfe58fbc43093047

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.