ETH Price: $2,216.27 (+1.10%)
Gas: 0.72 Gwei

Contract

0xB81321E9Bbab21C676831Af3d031340D72e7277D
 

Overview

ETH Balance

0.492941567276960343 ETH

Eth Value

$1,092.49 (@ $2,216.27/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw214507602024-12-21 12:03:2369 days ago1734782603IN
0xB81321E9...D72e7277D
0 ETH0.000354128.27500764
Exit84172082019-08-25 4:37:432014 days ago1566707863IN
0xB81321E9...D72e7277D
0 ETH0.000109932
Withdraw64649352018-10-06 15:37:502337 days ago1538840270IN
0xB81321E9...D72e7277D
0 ETH0.000043521.0005
Sell64648212018-10-06 15:12:012337 days ago1538838721IN
0xB81321E9...D72e7277D
0 ETH0.000053041.100001
Withdraw63225792018-09-13 6:24:342360 days ago1536819874IN
0xB81321E9...D72e7277D
0 ETH0.000304527
Sell63225742018-09-13 6:23:252360 days ago1536819805IN
0xB81321E9...D72e7277D
0 ETH0.000337547
Withdraw62818262018-09-06 10:45:202367 days ago1536230720IN
0xB81321E9...D72e7277D
0 ETH0.0007395517
Sell62818192018-09-06 10:43:472367 days ago1536230627IN
0xB81321E9...D72e7277D
0 ETH0.000433989
Withdraw62773622018-09-05 16:46:382368 days ago1536165998IN
0xB81321E9...D72e7277D
0 ETH0.000100052.3
Sell62773442018-09-05 16:44:072368 days ago1536165847IN
0xB81321E9...D72e7277D
0 ETH0.000110612.3
Withdraw62742422018-09-05 4:19:012368 days ago1536121141IN
0xB81321E9...D72e7277D
0 ETH0.000261016
Sell62742372018-09-05 4:18:252368 days ago1536121105IN
0xB81321E9...D72e7277D
0 ETH0.000288936
Withdraw62737802018-09-05 2:26:342368 days ago1536114394IN
0xB81321E9...D72e7277D
0 ETH0.000100922.32
Sell62737692018-09-05 2:23:172368 days ago1536114197IN
0xB81321E9...D72e7277D
0 ETH0.000111872.32
Withdraw62731822018-09-05 0:04:572369 days ago1536105897IN
0xB81321E9...D72e7277D
0 ETH0.000261016
Sell62731772018-09-05 0:04:042369 days ago1536105844IN
0xB81321E9...D72e7277D
0 ETH0.000288936
Withdraw62731762018-09-05 0:03:582369 days ago1536105838IN
0xB81321E9...D72e7277D
0 ETH0.000261016
Withdraw62728912018-09-04 22:51:472369 days ago1536101507IN
0xB81321E9...D72e7277D
0 ETH0.000217515
Withdraw62726142018-09-04 21:45:382369 days ago1536097538IN
0xB81321E9...D72e7277D
0 ETH0.00008553
Withdraw62726082018-09-04 21:44:302369 days ago1536097470IN
0xB81321E9...D72e7277D
0 ETH0.000174014
Sell62726062018-09-04 21:43:552369 days ago1536097435IN
0xB81321E9...D72e7277D
0 ETH0.000240465
Sell62726032018-09-04 21:42:412369 days ago1536097361IN
0xB81321E9...D72e7277D
0 ETH0.000240785
Withdraw62725572018-09-04 21:32:382369 days ago1536096758IN
0xB81321E9...D72e7277D
0 ETH0.00010442.4
Sell62725492018-09-04 21:31:232369 days ago1536096683IN
0xB81321E9...D72e7277D
0 ETH0.000159333.3
Withdraw62724042018-09-04 20:54:372369 days ago1536094477IN
0xB81321E9...D72e7277D
0 ETH0.000348028
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
214507602024-12-21 12:03:2369 days ago1734782603
0xB81321E9...D72e7277D
0.02561251 ETH
84172082019-08-25 4:37:432014 days ago1566707863
0xB81321E9...D72e7277D
0.00015187 ETH
64649352018-10-06 15:37:502337 days ago1538840270
0xB81321E9...D72e7277D
0.01568732 ETH
63225792018-09-13 6:24:342360 days ago1536819874
0xB81321E9...D72e7277D
0.63113595 ETH
62818262018-09-06 10:45:202367 days ago1536230720
0xB81321E9...D72e7277D
0.02073816 ETH
62773622018-09-05 16:46:382368 days ago1536165998
0xB81321E9...D72e7277D
0.00282768 ETH
62742422018-09-05 4:19:012368 days ago1536121141
0xB81321E9...D72e7277D
0.19377347 ETH
62737802018-09-05 2:26:342368 days ago1536114394
0xB81321E9...D72e7277D
0.00360401 ETH
62731822018-09-05 0:04:572369 days ago1536105897
0xB81321E9...D72e7277D
0.03617411 ETH
62731762018-09-05 0:03:582369 days ago1536105838
0xB81321E9...D72e7277D
0.00226301 ETH
62728912018-09-04 22:51:472369 days ago1536101507
0xB81321E9...D72e7277D
0.01421763 ETH
62726142018-09-04 21:45:382369 days ago1536097538
0xB81321E9...D72e7277D
0.01798803 ETH
62726082018-09-04 21:44:302369 days ago1536097470
0xB81321E9...D72e7277D
0.49946285 ETH
62725572018-09-04 21:32:382369 days ago1536096758
0xB81321E9...D72e7277D
0.02352078 ETH
62724042018-09-04 20:54:372369 days ago1536094477
0xB81321E9...D72e7277D
0.11083445 ETH
62723822018-09-04 20:49:582369 days ago1536094198
0xB81321E9...D72e7277D
0.03448226 ETH
62719182018-09-04 19:03:232369 days ago1536087803
0xB81321E9...D72e7277D
0.01415708 ETH
62715972018-09-04 17:48:072369 days ago1536083287
0xB81321E9...D72e7277D
2.31945708 ETH
62715192018-09-04 17:29:422369 days ago1536082182
0xB81321E9...D72e7277D
0.02423694 ETH
62714912018-09-04 17:23:402369 days ago1536081820
0xB81321E9...D72e7277D
0.05257378 ETH
62713822018-09-04 16:57:442369 days ago1536080264
0xB81321E9...D72e7277D
0.67882204 ETH
62711952018-09-04 16:14:282369 days ago1536077668
0xB81321E9...D72e7277D
0.18365389 ETH
62704242018-09-04 13:01:132369 days ago1536066073
0xB81321E9...D72e7277D
2.76332075 ETH
62683222018-09-04 4:29:312369 days ago1536035371
0xB81321E9...D72e7277D
0.04203114 ETH
62667682018-09-03 22:16:312370 days ago1536012991
0xB81321E9...D72e7277D
0.00161427 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BlackPearlETH

Compiler Version
v0.4.23+commit.124ca40d

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.20;
/*

ETC Version:
https://etherhub.io/addr/0xc2dc5e825faeb9bd274b61a2993f4f8949af4a21

*/

contract BlackPearlETH {
    /*=================================
    =            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[_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 = "Black Pearl ETH";
    string public symbol = "MEDA";
    uint8 constant public decimals = 18;
    uint8 constant internal entryFee_ = 20; // 20% Entry fee
    uint8 constant internal refferalFee_ = 15; // 15% Referral
    uint8 constant internal exitFee_ = 10; // 10% exit fee
    uint256 constant internal tokenPriceInitial_ = 0.0000001 ether;
    uint256 constant internal tokenPriceIncremental_ = 0.00000001 ether;
    uint256 constant internal magnitude = 2**64;

    // 250 Medaillions required for activation masternode
    uint256 public stakingRequirement = 250e18;

    // ambassador program
    mapping(address => bool) internal ambassadors_;
    uint256 constant internal ambassadorMaxPurchase_ = 50 ether;
    uint256 constant internal ambassadorQuota_ = 300 ether;

    // referral program
    mapping(address => uint256) internal referrals;
    mapping(address => bool) internal isUser;
    address[] public usersAddresses;

   /*================================
    =            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(address => 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 BlackPearlETH()
        public
    {

  		// N.O.T
		ambassadors_[0x9d71d8743f41987597e2ae3663cca36ca71024f4] = true;
		// T.T.U
		ambassadors_[0xC6D4a4A0bf0507749D4a23C9550A826207b5D94b] = true;
		// C.A
		ambassadors_[0x008ca4f1ba79d1a265617c6206d7884ee8108a78] = true;
	    // R.A
		ambassadors_[0x41a21b264F9ebF6cF571D4543a5b3AB1c6bEd98C] = true;
	    // J.K
		ambassadors_[0xc7F15d0238d207e19cce6bd6C0B85f343896F046] = true;
	    // C.G
		ambassadors_[0xee54d208f62368b4effe176cb548a317dcae963f] = true;
	    // P.X
		ambassadors_[0x074f21a36217d7615d0202faa926aefebb5a9999] = true;
	    // S.Z
		ambassadors_[0x8c8F39b851ABF4455CFE5832a09B5E5ccEBD320f] = true;



		// Deployer
		administrators[msg.sender] = true;
		ambassadors_[msg.sender] = 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(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
        onTokenSell(_customerAddress, _tokens, _taxedEthereum);
    }


    /* Transfer tokens from the caller to a new holder. * No fee! */
    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();

        // 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
        Transfer(_customerAddress, _toAddress, _amountOfTokens);

        // 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(address _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);
    }

    function referralsOf(address _customerAddress)
        public
        view
        returns(uint256)
    {
        return referrals[_customerAddress];
    }

    function totalUsers()
        public
        view
        returns(uint256)
    {
        return usersAddresses.length;
    }

    /**
     * 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(SafeMath.mul(_ethereum, exitFee_), 100);
            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(SafeMath.mul(_ethereum, entryFee_), 100);
            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(SafeMath.mul(_ethereumToSpend, entryFee_), 100);
        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(SafeMath.mul(_ethereum, exitFee_), 100);
        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(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 Kekly chad masternode
            tokenBalanceLedger_[_referredBy] >= stakingRequirement
        ){
            // wealth redistribution
            referralBalance_[_referredBy] = SafeMath.add(referralBalance_[_referredBy], _referralBonus);

            if (isUser[_customerAddress] == false) {
            	referrals[_referredBy]++;
            }     

        } else {
            // no ref purchase
            // add the referral bonus back to the global dividends cake
            _dividends = SafeMath.add(_dividends, _referralBonus);
            _fee = _dividends * magnitude;
        }

        if (isUser[_customerAddress] == false ) {
        	isUser[_customerAddress] = true;
        	usersAddresses.push(_customerAddress);
        }

        // 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

API
[{"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":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":true,"inputs":[{"name":"","type":"uint256"}],"name":"usersAddresses","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"administrators","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_customerAddress","type":"address"}],"name":"referralsOf","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":"address"},{"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":true,"inputs":[],"name":"totalUsers","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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"}]

60c0604052600f60808190527f426c61636b20506561726c20455448000000000000000000000000000000000060a09081526200004091600091906200023e565b506040805180820190915260048082527f4d45444100000000000000000000000000000000000000000000000000000000602090920191825262000087916001916200023e565b50680d8d726b7177a800006002556000600b55600e805460ff19166001179055348015620000b457600080fd5b507fb133a40e33a5a6f0319658ad9a388569826a157de8de53b40e36454d1813d7178054600160ff1991821681179092557fc465f33915248c84e1431684bc15f22eb50903c555788192016ada077c952bbb80548216831790557f8b0d0a5fb1987d1b6d034774c7fd732379dc9551fe5c2625e78a9cfaa4031d3a80548216831790557fedc4f950587f9c6326f2c4b3af1ab1f6e16eab90897b54ff51995965fc5d334180548216831790557f8b9ae427d79e4c2d0f0b1129956c08d4c9893efcb38d12683e3f8dfba7e8d5eb80548216831790557f6fc381a7c8d1391df7214457713ad32723010aefd1bb15b96c8fc12cf017adc280548216831790557fa1b908924e9161488ad4deebcb400852fc7aa3e750b80ede8419e91d60a8882980548216831790557f9053474e2a25727af7aa898a5a1ef32639a39371d5ea2e37e57e7ee9195e45f68054821683179055600160a060020a0333166000908152600d6020908152604080832080548516861790556003909152902080549091169091179055620002e3565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200028157805160ff1916838001178555620002b1565b82800160010185558215620002b1579182015b82811115620002b157825182559160200191906001019062000294565b50620002bf929150620002c3565b5090565b620002e091905b80821115620002bf5760008155600101620002ca565b90565b61188880620002f36000396000f30060806040526004361061017e5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b811461018c57806306fdde03146101bf57806310d0ffdd1461024957806318160ddd14610261578063226093731461027657806327defa1f1461028e578063313ce567146102b75780633ccfd60b146102e25780634b750334146102f957806356d399e81461030e578063688abbf7146103235780636b2f46321461033d57806370a0823114610352578063733380811461037357806376be1585146103a7578063831aba43146103c85780638328b610146103e95780638620410b1461040157806387c9505814610416578063949e8acd1461043c57806395d89b4114610451578063a8e04f3414610466578063a9059cbb1461047b578063b84c82461461049f578063bff1f9e1146104f8578063c47f00271461050d578063e4849b3214610566578063e9fad8ee1461057e578063f088d54714610593578063fdb5a03e146105a7575b6101893460006105bc565b50005b34801561019857600080fd5b506101ad600160a060020a0360043516610d48565b60408051918252519081900360200190f35b3480156101cb57600080fd5b506101d4610d83565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561020e5781810151838201526020016101f6565b50505050905090810190601f16801561023b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561025557600080fd5b506101ad600435610e11565b34801561026d57600080fd5b506101ad610e44565b34801561028257600080fd5b506101ad600435610e4b565b34801561029a57600080fd5b506102a3610e87565b604080519115158252519081900360200190f35b3480156102c357600080fd5b506102cc610e90565b6040805160ff9092168252519081900360200190f35b3480156102ee57600080fd5b506102f7610e95565b005b34801561030557600080fd5b506101ad610f68565b34801561031a57600080fd5b506101ad610fbf565b34801561032f57600080fd5b506101ad6004351515610fc5565b34801561034957600080fd5b506101ad611008565b34801561035e57600080fd5b506101ad600160a060020a0360043516611016565b34801561037f57600080fd5b5061038b600435611031565b60408051600160a060020a039092168252519081900360200190f35b3480156103b357600080fd5b506102a3600160a060020a0360043516611059565b3480156103d457600080fd5b506101ad600160a060020a036004351661106e565b3480156103f557600080fd5b506102f7600435611089565b34801561040d57600080fd5b506101ad6110b7565b34801561042257600080fd5b506102f7600160a060020a03600435166024351515611102565b34801561044857600080fd5b506101ad611156565b34801561045d57600080fd5b506101d4611169565b34801561047257600080fd5b506102f76111c3565b34801561048757600080fd5b506102a3600160a060020a03600435166024356111f8565b3480156104ab57600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526102f79436949293602493928401919081908401838280828437509497506113439650505050505050565b34801561050457600080fd5b506101ad611383565b34801561051957600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526102f79436949293602493928401919081908401838280828437509497506113899650505050505050565b34801561057257600080fd5b506102f76004356113c4565b34801561058a57600080fd5b506102f7611528565b6101ad600160a060020a036004351661155f565b3480156105b357600080fd5b506102f761156b565b60008060008060008060008060008a6000339050600e60009054906101000a900460ff1680156105fe5750681043561a8829300000826105fa611008565b0311155b156109ea57600160a060020a03811660009081526003602052604090205460ff16151560011480156106545750600160a060020a0381166000908152600a60205260409020546802b5e3af16b188000090830111155b151561065f57600080fd5b600160a060020a0381166000908152600a6020526040902054610682908361162b565b600160a060020a0382166000908152600a60205260409020553399506106b36106ac8e6014611641565b606461166c565b98506106c36106ac8a600f611641565b97506106cf8989611683565b96506106db8d8a611683565b95506106e686611695565b945068010000000000000000870293506000851180156107105750600b5461070e868261162b565b115b151561071b57600080fd5b600160a060020a038c1615801590610745575089600160a060020a03168c600160a060020a031614155b801561076b5750600254600160a060020a038d1660009081526007602052604090205410155b156107ed57600160a060020a038c16600090815260086020526040902054610793908961162b565b600160a060020a03808e16600090815260086020908152604080832094909455918d1681526005909152205460ff1615156107e857600160a060020a038c166000908152600460205260409020805460010190555b610808565b6107f7878961162b565b965068010000000000000000870293505b600160a060020a038a1660009081526005602052604090205460ff16151561089d57600160a060020a038a166000818152600560205260408120805460ff191660019081179091556006805491820181559091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f01805473ffffffffffffffffffffffffffffffffffffffff191690911790555b6000600b541115610901576108b4600b548661162b565b600b8190556801000000000000000088028115156108ce57fe5b600c8054929091049091019055600b546801000000000000000088028115156108f357fe5b048502840384039350610907565b600b8590555b600160a060020a038a1660009081526007602052604090205461092a908661162b565b600760008c600160a060020a0316600160a060020a03168152602001908152602001600020819055508385600c540203925082600960008c600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a03168a600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f88604051808381526020018281526020019250505060405180910390a3849a50610d38565b600e805460ff19169055339950610a056106ac8e6014611641565b9850610a156106ac8a600f611641565b9750610a218989611683565b9650610a2d8d8a611683565b9550610a3886611695565b94506801000000000000000087029350600085118015610a625750600b54610a60868261162b565b115b1515610a6d57600080fd5b600160a060020a038c1615801590610a97575089600160a060020a03168c600160a060020a031614155b8015610abd5750600254600160a060020a038d1660009081526007602052604090205410155b15610b3f57600160a060020a038c16600090815260086020526040902054610ae5908961162b565b600160a060020a03808e16600090815260086020908152604080832094909455918d1681526005909152205460ff161515610b3a57600160a060020a038c166000908152600460205260409020805460010190555b610b5a565b610b49878961162b565b965068010000000000000000870293505b600160a060020a038a1660009081526005602052604090205460ff161515610bef57600160a060020a038a166000818152600560205260408120805460ff191660019081179091556006805491820181559091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f01805473ffffffffffffffffffffffffffffffffffffffff191690911790555b6000600b541115610c5357610c06600b548661162b565b600b819055680100000000000000008802811515610c2057fe5b600c8054929091049091019055600b54680100000000000000008802811515610c4557fe5b048502840384039350610c59565b600b8590555b600160a060020a038a16600090815260076020526040902054610c7c908661162b565b600760008c600160a060020a0316600160a060020a03168152602001908152602001600020819055508385600c540203925082600960008c600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a03168a600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f88604051808381526020018281526020019250505060405180910390a3849a505b5050505050505050505092915050565b600160a060020a0316600090815260096020908152604080832054600790925290912054600c54680100000000000000009102919091030490565b6000805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610e095780601f10610dde57610100808354040283529160200191610e09565b820191906000526020600020905b815481529060010190602001808311610dec57829003601f168201915b505050505081565b6000808080610e246106ac866014611641565b9250610e308584611683565b9150610e3b82611695565b95945050505050565b600b545b90565b600080600080600b548511151515610e6257600080fd5b610e6b8561172d565b9250610e7b6106ac84600a611641565b9150610e3b8383611683565b600e5460ff1681565b601281565b6000806000610ea46001610fc5565b11610eae57600080fd5b339150610ebb6000610fc5565b600160a060020a038316600081815260096020908152604080832080546801000000000000000087020190556008909152808220805490839055905193019350909183156108fc0291849190818181858888f19350505050158015610f24573d6000803e3d6000fd5b50604080518281529051600160a060020a038416917fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc919081900360200190a25050565b600080600080600b5460001415610f86576414f46b04009350610fb9565b610f97670de0b6b3a764000061172d565b9250610fa76106ac84600a611641565b9150610fb38383611683565b90508093505b50505090565b60025481565b60003382610fdb57610fd681610d48565b610fff565b600160a060020a038116600090815260086020526040902054610ffd82610d48565b015b91505b50919050565b600160a060020a0330163190565b600160a060020a031660009081526007602052604090205490565b600680548290811061103f57fe5b600091825260209091200154600160a060020a0316905081565b600d6020526000908152604090205460ff1681565b600160a060020a031660009081526004602052604090205490565b33600160a060020a0381166000908152600d602052604090205460ff1615156110b157600080fd5b50600255565b600080600080600b54600014156110d55764199c82cc009350610fb9565b6110e6670de0b6b3a764000061172d565b92506110f66106ac846014611641565b9150610fb3838361162b565b33600160a060020a0381166000908152600d602052604090205460ff16151561112a57600080fd5b50600160a060020a03919091166000908152600d60205260409020805460ff1916911515919091179055565b60003361116281611016565b91505b5090565b60018054604080516020600284861615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610e095780601f10610dde57610100808354040283529160200191610e09565b33600160a060020a0381166000908152600d602052604090205460ff1615156111eb57600080fd5b50600e805460ff19169055565b6000806000611205611156565b1161120f57600080fd5b50600e54339060ff1615801561123d5750600160a060020a0381166000908152600760205260409020548311155b151561124857600080fd5b60006112546001610fc5565b111561126257611262610e95565b600160a060020a0381166000908152600760205260409020546112859084611683565b600160a060020a0380831660009081526007602052604080822093909355908616815220546112b4908461162b565b600160a060020a03858116600081815260076020908152604080832095909555600c8054948716808452600983528684208054968b02909603909555548383529185902080549289029092019091558351878152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3600191505b5092915050565b33600160a060020a0381166000908152600d602052604090205460ff16151561136b57600080fd5b815161137e9060019060208501906117ce565b505050565b60065490565b33600160a060020a0381166000908152600d602052604090205460ff1615156113b157600080fd5b815161137e9060009060208501906117ce565b60008060008060008060006113d7611156565b116113e157600080fd5b33600160a060020a03811660009081526007602052604090205490965087111561140a57600080fd5b8694506114168561172d565b93506114266106ac85600a611641565b92506114328484611683565b9150611440600b5486611683565b600b55600160a060020a0386166000908152600760205260409020546114669086611683565b600160a060020a038716600090815260076020908152604080832093909355600c546009909152918120805492880268010000000000000000860201928390039055600b5491925010156114dc576114d8600c54600b546801000000000000000086028115156114d257fe5b0461162b565b600c555b60408051868152602081018490528151600160a060020a038916927fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139928290030190a250505050505050565b33600160a060020a0381166000908152600760205260408120549081111561155357611553816113c4565b61155b610e95565b5050565b600061100234836105bc565b60008060008061157b6001610fc5565b1161158557600080fd5b61158f6000610fc5565b33600160a060020a0381166000908152600960209081526040808320805468010000000000000000870201905560089091528120805490829055909201945092506115db9084906105bc565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab36153264588483604051808381526020018281526020019250505060405180910390a2505050565b60008282018381101561163a57fe5b9392505050565b600080831515611654576000915061133c565b5082820282848281151561166457fe5b041461163a57fe5b600080828481151561167a57fe5b04949350505050565b60008282111561168f57fe5b50900390565b600b546000906c01431e0fae6d7217caa00000009082906402540be40061171a611714730380d4bd8a8678c1bb542c80deb4800000000000880268056bc75e2d631000006002860a02017005e0a1fd2712875988becaad0000000000850201780197d4df19d605767337e9f14d3eec8920e40000000000000001611799565b85611683565b81151561172357fe5b0403949350505050565b600b54600090670de0b6b3a76400008381019181019083906117866414f46b04008285046402540be40002018702600283670de0b6b3a763ffff1982890a8b900301046402540be4000281151561178057fe5b04611683565b81151561178f57fe5b0495945050505050565b80600260018201045b818110156110025780915060028182858115156117bb57fe5b04018115156117c657fe5b0490506117a2565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061180f57805160ff191683800117855561183c565b8280016001018555821561183c579182015b8281111561183c578251825591602001919060010190611821565b5061116592610e489250905b8082111561116557600081556001016118485600a165627a7a7230582047f6ac20d30a7c0d99e85d8b27b3cd2e3c970b6dc4c5d5afd96a3041a790abb10029

Deployed Bytecode

0x60806040526004361061017e5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b811461018c57806306fdde03146101bf57806310d0ffdd1461024957806318160ddd14610261578063226093731461027657806327defa1f1461028e578063313ce567146102b75780633ccfd60b146102e25780634b750334146102f957806356d399e81461030e578063688abbf7146103235780636b2f46321461033d57806370a0823114610352578063733380811461037357806376be1585146103a7578063831aba43146103c85780638328b610146103e95780638620410b1461040157806387c9505814610416578063949e8acd1461043c57806395d89b4114610451578063a8e04f3414610466578063a9059cbb1461047b578063b84c82461461049f578063bff1f9e1146104f8578063c47f00271461050d578063e4849b3214610566578063e9fad8ee1461057e578063f088d54714610593578063fdb5a03e146105a7575b6101893460006105bc565b50005b34801561019857600080fd5b506101ad600160a060020a0360043516610d48565b60408051918252519081900360200190f35b3480156101cb57600080fd5b506101d4610d83565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561020e5781810151838201526020016101f6565b50505050905090810190601f16801561023b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561025557600080fd5b506101ad600435610e11565b34801561026d57600080fd5b506101ad610e44565b34801561028257600080fd5b506101ad600435610e4b565b34801561029a57600080fd5b506102a3610e87565b604080519115158252519081900360200190f35b3480156102c357600080fd5b506102cc610e90565b6040805160ff9092168252519081900360200190f35b3480156102ee57600080fd5b506102f7610e95565b005b34801561030557600080fd5b506101ad610f68565b34801561031a57600080fd5b506101ad610fbf565b34801561032f57600080fd5b506101ad6004351515610fc5565b34801561034957600080fd5b506101ad611008565b34801561035e57600080fd5b506101ad600160a060020a0360043516611016565b34801561037f57600080fd5b5061038b600435611031565b60408051600160a060020a039092168252519081900360200190f35b3480156103b357600080fd5b506102a3600160a060020a0360043516611059565b3480156103d457600080fd5b506101ad600160a060020a036004351661106e565b3480156103f557600080fd5b506102f7600435611089565b34801561040d57600080fd5b506101ad6110b7565b34801561042257600080fd5b506102f7600160a060020a03600435166024351515611102565b34801561044857600080fd5b506101ad611156565b34801561045d57600080fd5b506101d4611169565b34801561047257600080fd5b506102f76111c3565b34801561048757600080fd5b506102a3600160a060020a03600435166024356111f8565b3480156104ab57600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526102f79436949293602493928401919081908401838280828437509497506113439650505050505050565b34801561050457600080fd5b506101ad611383565b34801561051957600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526102f79436949293602493928401919081908401838280828437509497506113899650505050505050565b34801561057257600080fd5b506102f76004356113c4565b34801561058a57600080fd5b506102f7611528565b6101ad600160a060020a036004351661155f565b3480156105b357600080fd5b506102f761156b565b60008060008060008060008060008a6000339050600e60009054906101000a900460ff1680156105fe5750681043561a8829300000826105fa611008565b0311155b156109ea57600160a060020a03811660009081526003602052604090205460ff16151560011480156106545750600160a060020a0381166000908152600a60205260409020546802b5e3af16b188000090830111155b151561065f57600080fd5b600160a060020a0381166000908152600a6020526040902054610682908361162b565b600160a060020a0382166000908152600a60205260409020553399506106b36106ac8e6014611641565b606461166c565b98506106c36106ac8a600f611641565b97506106cf8989611683565b96506106db8d8a611683565b95506106e686611695565b945068010000000000000000870293506000851180156107105750600b5461070e868261162b565b115b151561071b57600080fd5b600160a060020a038c1615801590610745575089600160a060020a03168c600160a060020a031614155b801561076b5750600254600160a060020a038d1660009081526007602052604090205410155b156107ed57600160a060020a038c16600090815260086020526040902054610793908961162b565b600160a060020a03808e16600090815260086020908152604080832094909455918d1681526005909152205460ff1615156107e857600160a060020a038c166000908152600460205260409020805460010190555b610808565b6107f7878961162b565b965068010000000000000000870293505b600160a060020a038a1660009081526005602052604090205460ff16151561089d57600160a060020a038a166000818152600560205260408120805460ff191660019081179091556006805491820181559091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f01805473ffffffffffffffffffffffffffffffffffffffff191690911790555b6000600b541115610901576108b4600b548661162b565b600b8190556801000000000000000088028115156108ce57fe5b600c8054929091049091019055600b546801000000000000000088028115156108f357fe5b048502840384039350610907565b600b8590555b600160a060020a038a1660009081526007602052604090205461092a908661162b565b600760008c600160a060020a0316600160a060020a03168152602001908152602001600020819055508385600c540203925082600960008c600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a03168a600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f88604051808381526020018281526020019250505060405180910390a3849a50610d38565b600e805460ff19169055339950610a056106ac8e6014611641565b9850610a156106ac8a600f611641565b9750610a218989611683565b9650610a2d8d8a611683565b9550610a3886611695565b94506801000000000000000087029350600085118015610a625750600b54610a60868261162b565b115b1515610a6d57600080fd5b600160a060020a038c1615801590610a97575089600160a060020a03168c600160a060020a031614155b8015610abd5750600254600160a060020a038d1660009081526007602052604090205410155b15610b3f57600160a060020a038c16600090815260086020526040902054610ae5908961162b565b600160a060020a03808e16600090815260086020908152604080832094909455918d1681526005909152205460ff161515610b3a57600160a060020a038c166000908152600460205260409020805460010190555b610b5a565b610b49878961162b565b965068010000000000000000870293505b600160a060020a038a1660009081526005602052604090205460ff161515610bef57600160a060020a038a166000818152600560205260408120805460ff191660019081179091556006805491820181559091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f01805473ffffffffffffffffffffffffffffffffffffffff191690911790555b6000600b541115610c5357610c06600b548661162b565b600b819055680100000000000000008802811515610c2057fe5b600c8054929091049091019055600b54680100000000000000008802811515610c4557fe5b048502840384039350610c59565b600b8590555b600160a060020a038a16600090815260076020526040902054610c7c908661162b565b600760008c600160a060020a0316600160a060020a03168152602001908152602001600020819055508385600c540203925082600960008c600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a03168a600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f88604051808381526020018281526020019250505060405180910390a3849a505b5050505050505050505092915050565b600160a060020a0316600090815260096020908152604080832054600790925290912054600c54680100000000000000009102919091030490565b6000805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610e095780601f10610dde57610100808354040283529160200191610e09565b820191906000526020600020905b815481529060010190602001808311610dec57829003601f168201915b505050505081565b6000808080610e246106ac866014611641565b9250610e308584611683565b9150610e3b82611695565b95945050505050565b600b545b90565b600080600080600b548511151515610e6257600080fd5b610e6b8561172d565b9250610e7b6106ac84600a611641565b9150610e3b8383611683565b600e5460ff1681565b601281565b6000806000610ea46001610fc5565b11610eae57600080fd5b339150610ebb6000610fc5565b600160a060020a038316600081815260096020908152604080832080546801000000000000000087020190556008909152808220805490839055905193019350909183156108fc0291849190818181858888f19350505050158015610f24573d6000803e3d6000fd5b50604080518281529051600160a060020a038416917fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc919081900360200190a25050565b600080600080600b5460001415610f86576414f46b04009350610fb9565b610f97670de0b6b3a764000061172d565b9250610fa76106ac84600a611641565b9150610fb38383611683565b90508093505b50505090565b60025481565b60003382610fdb57610fd681610d48565b610fff565b600160a060020a038116600090815260086020526040902054610ffd82610d48565b015b91505b50919050565b600160a060020a0330163190565b600160a060020a031660009081526007602052604090205490565b600680548290811061103f57fe5b600091825260209091200154600160a060020a0316905081565b600d6020526000908152604090205460ff1681565b600160a060020a031660009081526004602052604090205490565b33600160a060020a0381166000908152600d602052604090205460ff1615156110b157600080fd5b50600255565b600080600080600b54600014156110d55764199c82cc009350610fb9565b6110e6670de0b6b3a764000061172d565b92506110f66106ac846014611641565b9150610fb3838361162b565b33600160a060020a0381166000908152600d602052604090205460ff16151561112a57600080fd5b50600160a060020a03919091166000908152600d60205260409020805460ff1916911515919091179055565b60003361116281611016565b91505b5090565b60018054604080516020600284861615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610e095780601f10610dde57610100808354040283529160200191610e09565b33600160a060020a0381166000908152600d602052604090205460ff1615156111eb57600080fd5b50600e805460ff19169055565b6000806000611205611156565b1161120f57600080fd5b50600e54339060ff1615801561123d5750600160a060020a0381166000908152600760205260409020548311155b151561124857600080fd5b60006112546001610fc5565b111561126257611262610e95565b600160a060020a0381166000908152600760205260409020546112859084611683565b600160a060020a0380831660009081526007602052604080822093909355908616815220546112b4908461162b565b600160a060020a03858116600081815260076020908152604080832095909555600c8054948716808452600983528684208054968b02909603909555548383529185902080549289029092019091558351878152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3600191505b5092915050565b33600160a060020a0381166000908152600d602052604090205460ff16151561136b57600080fd5b815161137e9060019060208501906117ce565b505050565b60065490565b33600160a060020a0381166000908152600d602052604090205460ff1615156113b157600080fd5b815161137e9060009060208501906117ce565b60008060008060008060006113d7611156565b116113e157600080fd5b33600160a060020a03811660009081526007602052604090205490965087111561140a57600080fd5b8694506114168561172d565b93506114266106ac85600a611641565b92506114328484611683565b9150611440600b5486611683565b600b55600160a060020a0386166000908152600760205260409020546114669086611683565b600160a060020a038716600090815260076020908152604080832093909355600c546009909152918120805492880268010000000000000000860201928390039055600b5491925010156114dc576114d8600c54600b546801000000000000000086028115156114d257fe5b0461162b565b600c555b60408051868152602081018490528151600160a060020a038916927fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139928290030190a250505050505050565b33600160a060020a0381166000908152600760205260408120549081111561155357611553816113c4565b61155b610e95565b5050565b600061100234836105bc565b60008060008061157b6001610fc5565b1161158557600080fd5b61158f6000610fc5565b33600160a060020a0381166000908152600960209081526040808320805468010000000000000000870201905560089091528120805490829055909201945092506115db9084906105bc565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab36153264588483604051808381526020018281526020019250505060405180910390a2505050565b60008282018381101561163a57fe5b9392505050565b600080831515611654576000915061133c565b5082820282848281151561166457fe5b041461163a57fe5b600080828481151561167a57fe5b04949350505050565b60008282111561168f57fe5b50900390565b600b546000906c01431e0fae6d7217caa00000009082906402540be40061171a611714730380d4bd8a8678c1bb542c80deb4800000000000880268056bc75e2d631000006002860a02017005e0a1fd2712875988becaad0000000000850201780197d4df19d605767337e9f14d3eec8920e40000000000000001611799565b85611683565b81151561172357fe5b0403949350505050565b600b54600090670de0b6b3a76400008381019181019083906117866414f46b04008285046402540be40002018702600283670de0b6b3a763ffff1982890a8b900301046402540be4000281151561178057fe5b04611683565b81151561178f57fe5b0495945050505050565b80600260018201045b818110156110025780915060028182858115156117bb57fe5b04018115156117c657fe5b0490506117a2565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061180f57805160ff191683800117855561183c565b8280016001018555821561183c579182015b8281111561183c578251825591602001919060010190611821565b5061116592610e489250905b8082111561116557600081556001016118485600a165627a7a7230582047f6ac20d30a7c0d99e85d8b27b3cd2e3c970b6dc4c5d5afd96a3041a790abb10029

Swarm Source

bzzr://47f6ac20d30a7c0d99e85d8b27b3cd2e3c970b6dc4c5d5afd96a3041a790abb1

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.