ETH Price: $3,179.91 (-2.71%)

Token

Etheropoly (OPOLY)
 

Overview

Max Total Supply

19,162.854647454521198305 OPOLY

Holders

95

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0.213767727959690023 OPOLY

Value
$0.00
0x334ffb622819c610670211cc9e6f1951dcec5a97
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Etheropoly

Compiler Version
v0.4.21+commit.dfe3193c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2018-05-19
*/

pragma solidity ^0.4.21;


/*


******************** ETHEROPOLY *********************
* [x] What is new?
* [x] REVOLUTIONARY 0% TRANSFER FEES, Now you can send Etheropoly tokens to all your family, no charge
* [X] 15% DIVIDENDS AND MASTERNODES! We know you all love your divies :D
* [x] Removed charity fee. Giving to charity is a great thing but that is something that should be optional for you all.
* [x] DAPP INTEROPERABILITY, games and other dAPPs can incorporate Etheropoly tokens!
*
* Official website is https://etheropoly.co/
* Official discord is https://discord.gg/cQqRbev
*/


/**
 * Definition of contract accepting Etheropoly tokens
 * Games, casinos, anything can reuse this contract to support Etheropoly tokens
 */
contract AcceptsEtheropoly {
    Etheropoly public tokenContract;

    function AcceptsEtheropoly(address _tokenContract) public {
        tokenContract = Etheropoly(_tokenContract);
    }

    modifier onlyTokenContract {
        require(msg.sender == address(tokenContract));
        _;
    }

    /**
    * @dev Standard ERC677 function that will handle incoming token transfers.
    *
    * @param _from  Token sender address.
    * @param _value Amount of tokens.
    * @param _data  Transaction metadata.
    */
    function tokenFallback(address _from, uint256 _value, bytes _data) external returns (bool);
}


contract Etheropoly {
    /*=================================
    =            MODIFIERS            =
    =================================*/
    // only people with tokens
    modifier onlyBagholders() {
        require(myTokens() > 0);
        _;
    }

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

    modifier notContract() {
      require (msg.sender == tx.origin);
      _;
    }

    // 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 = "Etheropoly";
    string public symbol = "OPOLY";
    uint8 constant public decimals = 18;
    uint8 constant internal dividendFee_ = 15; // 15% dividend fee on each buy and sell
    uint8 constant internal charityFee_ = 0; // 0% charity fee on each buy and sell
    uint256 constant internal tokenPriceInitial_ = 0.00000001 ether;
    uint256 constant internal tokenPriceIncremental_ = 0.000000001 ether;
    uint256 constant internal magnitude = 2**64;

    // Address to send the charity  ! :)
    //  https://giveth.io/
    // https://etherscan.io/address/0x5ADF43DD006c6C36506e2b2DFA352E60002d22Dc
    address constant public giveEthCharityAddress = 0x5ADF43DD006c6C36506e2b2DFA352E60002d22Dc;
    uint256 public totalEthCharityRecieved; // total ETH charity recieved from this contract
    uint256 public totalEthCharityCollected; // total ETH charity collected in this contract

    // proof of stake (defaults at 100 tokens)
    uint256 public stakingRequirement = 100e18;

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



   /*================================
    =            DATASETS            =
    ================================*/
    // amount of shares for each address (scaled number)
    mapping(address => uint256) internal tokenBalanceLedger_;
    mapping(address => uint256) internal referralBalance_;
    mapping(address => int256) internal payoutsTo_;
    mapping(address => uint256) internal ambassadorAccumulatedQuota_;
    uint256 internal tokenSupply_ = 0;
    uint256 internal profitPerShare_;

    // administrator list (see above on what they can do)
    mapping(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;

    // Special Etheropoly Platform control from scam game contracts on Etheropoly platform
    mapping(address => bool) public canAcceptTokens_; // contracts, which can accept Etheropoly tokens



    /*=======================================
    =            PUBLIC FUNCTIONS            =
    =======================================*/
    /*
    * -- APPLICATION ENTRY POINTS --
    */
    function Etheropoly()
        public
    {
        // add administrators here
        administrators[0x85abE8E3bed0d4891ba201Af1e212FE50bb65a26] = true;

        // add the ambassadors here.
        ambassadors_[0x85abE8E3bed0d4891ba201Af1e212FE50bb65a26] = true;
        //ambassador S
        ambassadors_[0x87A7e71D145187eE9aAdc86954d39cf0e9446751] = true;
        //ambassador F
        ambassadors_[0x11756491343b18cb3db47e9734f20096b4f64234] = true;
        //ambassador W
        ambassadors_[0x4ffE17a2A72bC7422CB176bC71c04EE6D87cE329] = true;
        //ambassador J
        ambassadors_[0xfE8D614431E5fea2329B05839f29B553b1Cb99A2] = true;
        //ambassador T
        
        
    }


    /**
     * 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)
    {
        purchaseInternal(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
    {
        purchaseInternal(msg.value, 0x0);
    }

    /**
     * Sends charity money to the  https://giveth.io/
     * Their charity address is here https://etherscan.io/address/0x5ADF43DD006c6C36506e2b2DFA352E60002d22Dc
     */
    function payCharity() payable public {
      uint256 ethToPay = SafeMath.sub(totalEthCharityCollected, totalEthCharityRecieved);
      require(ethToPay > 1);
      totalEthCharityRecieved = SafeMath.add(totalEthCharityRecieved, ethToPay);
      if(!giveEthCharityAddress.call.value(ethToPay).gas(400000)()) {
         totalEthCharityRecieved = SafeMath.sub(totalEthCharityRecieved, ethToPay);
      }
    }

    /**
     * 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, dividendFee_), 100);
        uint256 _charityPayout = SafeMath.div(SafeMath.mul(_ethereum, charityFee_), 100);

        // Take out dividends and then _charityPayout
        uint256 _taxedEthereum =  SafeMath.sub(SafeMath.sub(_ethereum, _dividends), _charityPayout);

        // Add ethereum to send to charity
        totalEthCharityCollected = SafeMath.add(totalEthCharityCollected, _charityPayout);

        // burn the sold tokens
        tokenSupply_ = SafeMath.sub(tokenSupply_, _tokens);
        tokenBalanceLedger_[_customerAddress] = SafeMath.sub(tokenBalanceLedger_[_customerAddress], _tokens);

        // update dividends tracker
        int256 _updatedPayouts = (int256) (profitPerShare_ * _tokens + (_taxedEthereum * magnitude));
        payoutsTo_[_customerAddress] -= _updatedPayouts;

        // dividing by zero is a bad idea
        if (tokenSupply_ > 0) {
            // update the amount of dividends per token
            profitPerShare_ = SafeMath.add(profitPerShare_, (_dividends * magnitude) / tokenSupply_);
        }

        // fire event
        onTokenSell(_customerAddress, _tokens, _taxedEthereum);
    }


    /**
     * Transfer tokens from the caller to a new holder.
     * REMEMBER THIS IS 0% TRANSFER 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(_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;
    }

    /**
    * Transfer token to a specified address and forward the data to recipient
    * ERC-677 standard
    * https://github.com/ethereum/EIPs/issues/677
    * @param _to    Receiver address.
    * @param _value Amount of tokens that will be transferred.
    * @param _data  Transaction metadata.
    */
    function transferAndCall(address _to, uint256 _value, bytes _data) external returns (bool) {
      require(_to != address(0));
      require(canAcceptTokens_[_to] == true); // security check that contract approved by Etheropoly platform
      require(transfer(_to, _value)); // do a normal token transfer to the contract

      if (isContract(_to)) {
        AcceptsEtheropoly receiver = AcceptsEtheropoly(_to);
        require(receiver.tokenFallback(msg.sender, _value, _data));
      }

      return true;
    }

    /**
     * Additional check that the game address we are sending tokens to is a contract
     * assemble the given address bytecode. If bytecode exists then the _addr is a contract.
     */
     function isContract(address _addr) private constant returns (bool is_contract) {
       // retrieve the size of the code on target address, this needs assembly
       uint length;
       assembly { length := extcodesize(_addr) }
       return length > 0;
     }

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

    /**
     * Add or remove game contract, which can accept Etheropoly tokens
     */
    function setCanAcceptTokens(address _address, bool _value)
      onlyAdministrator()
      public
    {
      canAcceptTokens_[_address] = _value;
    }

    /**
     * If we want to rebrand, we can.
     */
    function setName(string _name)
        onlyAdministrator()
        public
    {
        name = _name;
    }

    /**
     * If we want to rebrand, we can.
     */
    function setSymbol(string _symbol)
        onlyAdministrator()
        public
    {
        symbol = _symbol;
    }


    /*----------  HELPERS AND CALCULATORS  ----------*/
    /**
     * Method to view the current Ethereum stored in the contract
     * Example: totalEthereumBalance()
     */
    function totalEthereumBalance()
        public
        view
        returns(uint)
    {
        return this.balance;
    }

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

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

    /**
     * Retrieve the dividends owned by the caller.
     * If `_includeReferralBonus` is to to 1/true, the referral bonus will be included in the calculations.
     * The reason for this, is that in the frontend, we will want to get the total divs (global + ref)
     * But in the internal calculations, we want them separate.
     */
    function myDividends(bool _includeReferralBonus)
        public
        view
        returns(uint256)
    {
        address _customerAddress = msg.sender;
        return _includeReferralBonus ? dividendsOf(_customerAddress) + referralBalance_[_customerAddress] : dividendsOf(_customerAddress) ;
    }

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

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

    /**
     * Return the buy price of 1 individual token.
     */
    function sellPrice()
        public
        view
        returns(uint256)
    {
        // our calculation relies on the token supply, so we need supply. Doh.
        if(tokenSupply_ == 0){
            return tokenPriceInitial_ - tokenPriceIncremental_;
        } else {
            uint256 _ethereum = tokensToEthereum_(1e18);
            uint256 _dividends = SafeMath.div(SafeMath.mul(_ethereum, dividendFee_), 100);
            uint256 _charityPayout = SafeMath.div(SafeMath.mul(_ethereum, charityFee_), 100);
            uint256 _taxedEthereum = SafeMath.sub(SafeMath.sub(_ethereum, _dividends), _charityPayout);
            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, dividendFee_), 100);
            uint256 _charityPayout = SafeMath.div(SafeMath.mul(_ethereum, charityFee_), 100);
            uint256 _taxedEthereum =  SafeMath.add(SafeMath.add(_ethereum, _dividends), _charityPayout);
            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, dividendFee_), 100);
        uint256 _charityPayout = SafeMath.div(SafeMath.mul(_ethereumToSpend, charityFee_), 100);
        uint256 _taxedEthereum = SafeMath.sub(SafeMath.sub(_ethereumToSpend, _dividends), _charityPayout);
        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, dividendFee_), 100);
        uint256 _charityPayout = SafeMath.div(SafeMath.mul(_ethereum, charityFee_), 100);
        uint256 _taxedEthereum = SafeMath.sub(SafeMath.sub(_ethereum, _dividends), _charityPayout);
        return _taxedEthereum;
    }

    /**
     * Function for the frontend to show ether waiting to be send to charity in contract
     */
    function etherToSendCharity()
        public
        view
        returns(uint256) {
        return SafeMath.sub(totalEthCharityCollected, totalEthCharityRecieved);
    }


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

    // Make sure we will send back excess if user sends more then 5 ether before 100 ETH in contract
    function purchaseInternal(uint256 _incomingEthereum, address _referredBy)
      notContract()// no contracts allowed
      internal
      returns(uint256) {

      uint256 purchaseEthereum = _incomingEthereum;
      uint256 excess;
      if(purchaseEthereum > 5 ether) { // check if the transaction is over 5 ether
          if (SafeMath.sub(address(this).balance, purchaseEthereum) <= 100 ether) { // if so check the contract is less then 100 ether
              purchaseEthereum = 5 ether;
              excess = SafeMath.sub(_incomingEthereum, purchaseEthereum);
          }
      }

      purchaseTokens(purchaseEthereum, _referredBy);

      if (excess > 0) {
        msg.sender.transfer(excess);
      }
    }


    function purchaseTokens(uint256 _incomingEthereum, address _referredBy)
        antiEarlyWhale(_incomingEthereum)
        internal
        returns(uint256)
    {
        // data setup
        uint256 _undividedDividends = SafeMath.div(SafeMath.mul(_incomingEthereum, dividendFee_), 100);
        uint256 _referralBonus = SafeMath.div(_undividedDividends, 3);
        uint256 _charityPayout = SafeMath.div(SafeMath.mul(_incomingEthereum, charityFee_), 100);
        uint256 _dividends = SafeMath.sub(_undividedDividends, _referralBonus);
        uint256 _taxedEthereum = SafeMath.sub(SafeMath.sub(_incomingEthereum, _undividedDividends), _charityPayout);

        totalEthCharityCollected = SafeMath.add(totalEthCharityCollected, _charityPayout);

        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 != msg.sender &&

            // 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_[msg.sender] = SafeMath.add(tokenBalanceLedger_[msg.sender], _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_[msg.sender] += _updatedPayouts;

        // fire event
        onTokenPurchase(msg.sender, _incomingEthereum, _amountOfTokens, _referredBy);

        return _amountOfTokens;
    }

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

        return _tokensReceived;
    }

    /**
     * Calculate token sell value.
     * It's an algorithm, hopefully we gave you the whitepaper with it in scientific notation;
     * Some conversions occurred to prevent decimal errors or underflows / overflows in solidity code.
     */
     function tokensToEthereum_(uint256 _tokens)
        internal
        view
        returns(uint256)
    {

        uint256 tokens_ = (_tokens + 1e18);
        uint256 _tokenSupply = (tokenSupply_ + 1e18);
        uint256 _etherReceived =
        (
            // underflow attempts BTFO
            SafeMath.sub(
                (
                    (
                        (
                            tokenPriceInitial_ +(tokenPriceIncremental_ * (_tokenSupply/1e18))
                        )-tokenPriceIncremental_
                    )*(tokens_ - 1e18)
                ),(tokenPriceIncremental_*((tokens_**2-tokens_)/1e18))/2
            )
        /1e18);
        return _etherReceived;
    }


    //This is where all your gas goes, sorry
    //Not sorry, you probably only paid 1 gwei
    function sqrt(uint x) internal pure returns (uint y) {
        uint z = (x + 1) / 2;
        y = x;
        while (z < y) {
            y = z;
            z = (x / z + z) / 2;
        }
    }
}

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

    /**
    * @dev Multiplies two numbers, throws on overflow.
    */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }
        uint256 c = a * b;
        assert(c / a == b);
        return c;
    }

    /**
    * @dev Integer division of two numbers, truncating the quotient.
    */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        // assert(b > 0); // Solidity automatically throws when dividing by 0
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold
        return c;
    }

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

    /**
    * @dev Adds two numbers, throws on overflow.
    */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        assert(c >= a);
        return c;
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"name":"_customerAddress","type":"address"}],"name":"dividendsOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"canAcceptTokens_","outputs":[{"name":"","type":"bool"}],"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":false,"inputs":[{"name":"_address","type":"address"},{"name":"_value","type":"bool"}],"name":"setCanAcceptTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"etherToSendCharity","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"transferAndCall","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"payCharity","outputs":[],"payable":true,"stateMutability":"payable","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":"address"}],"name":"administrators","outputs":[{"name":"","type":"bool"}],"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":"totalEthCharityRecieved","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":"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":true,"inputs":[],"name":"giveEthCharityAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_symbol","type":"string"}],"name":"setSymbol","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"setName","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalEthCharityCollected","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"},{"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"}]

606060405260408051908101604052600a81527f45746865726f706f6c7900000000000000000000000000000000000000000000602082015260009080516200004d929160200190620001e5565b5060408051908101604052600581527f4f504f4c590000000000000000000000000000000000000000000000000000006020820152600190805162000097929160200190620001e5565b5068056bc75e2d631000006004556000600a55600d805460ff191660011790553415620000c357600080fd5b7feac3731448230d8fbf777585ceddd79b7fd82c592ea19d4e078f90720ad6170e8054600160ff19918216811790925560056020527fd6d4e0a61f3ddd47e56b6d858d24f188815afbc62d63ffde6db8666deb4a724a80548216831790557f2709b61b861b813d91741cfc1b3373dacb9d3b9d42a610be04a1579b52b5c3c780548216831790557f062ffbf2a59e40475ca4df725b17300f6df9d5dfdd5c4ff1621b58ec3db78a6d80548216831790557f294184eb6ecc9072090642ac39d884cc9ee70369096791b903dce9636d2687ba805482168317905573fe8d614431e5fea2329b05839f29b553b1cb99a26000527f146c461d96f1ca729e600f55ede5d44f60a854aac6f48a7b4cb95c84cb2948a5805490911690911790556200028a565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200022857805160ff191683800117855562000258565b8280016001018555821562000258579182015b82811115620002585782518255916020019190600101906200023b565b50620002669291506200026a565b5090565b6200028791905b8082111562000266576000815560010162000271565b90565b611ad5806200029a6000396000f3006060604052600436106101b55763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b81146101c357806306fdde03146101f45780630f34dc161461027e57806310d0ffdd146102b157806318160ddd146102c757806322609373146102da57806327defa1f146102f0578063294205b414610303578063313ce567146103295780633b545d2f146103525780633ccfd60b146103655780634000aea0146103785780634071f89b146103a75780634b750334146103af57806356d399e8146103c2578063688abbf7146103d55780636b2f4632146103ed57806370a082311461040057806376be15851461041f5780638328b6101461043e5780638620410b1461045457806387c950581461046757806391a266ac1461048b578063949e8acd1461049e57806395d89b41146104b1578063a8e04f34146104c4578063a9059cbb146104d7578063b743f7b6146104f9578063b84c824614610528578063c47f002714610579578063cbe0a1aa146105ca578063e4849b32146105dd578063e9fad8ee146105f3578063f088d54714610606578063fdb5a03e1461061a575b6101c034600061062d565b50005b34156101ce57600080fd5b6101e2600160a060020a03600435166106ed565b60405190815260200160405180910390f35b34156101ff57600080fd5b610207610728565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561024357808201518382015260200161022b565b50505050905090810190601f1680156102705780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561028957600080fd5b61029d600160a060020a03600435166107c6565b604051901515815260200160405180910390f35b34156102bc57600080fd5b6101e26004356107db565b34156102d257600080fd5b6101e2610830565b34156102e557600080fd5b6101e2600435610837565b34156102fb57600080fd5b61029d61088e565b341561030e57600080fd5b610327600160a060020a03600435166024351515610897565b005b341561033457600080fd5b61033c6108eb565b60405160ff909116815260200160405180910390f35b341561035d57600080fd5b6101e26108f0565b341561037057600080fd5b610327610905565b341561038357600080fd5b61029d60048035600160a060020a03169060248035916044359182019101356109d1565b610327610afc565b34156103ba57600080fd5b6101e2610b72565b34156103cd57600080fd5b6101e2610bdf565b34156103e057600080fd5b6101e26004351515610be5565b34156103f857600080fd5b6101e2610c28565b341561040b57600080fd5b6101e2600160a060020a0360043516610c36565b341561042a57600080fd5b61029d600160a060020a0360043516610c51565b341561044957600080fd5b610327600435610c66565b341561045f57600080fd5b6101e2610c94565b341561047257600080fd5b610327600160a060020a03600435166024351515610cfa565b341561049657600080fd5b6101e2610d4e565b34156104a957600080fd5b6101e2610d54565b34156104bc57600080fd5b610207610d67565b34156104cf57600080fd5b610327610dd2565b34156104e257600080fd5b61029d600160a060020a0360043516602435610e07565b341561050457600080fd5b61050c610f41565b604051600160a060020a03909116815260200160405180910390f35b341561053357600080fd5b61032760046024813581810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610f5995505050505050565b341561058457600080fd5b61032760046024813581810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610f9995505050505050565b34156105d557600080fd5b6101e2610fd4565b34156105e857600080fd5b610327600435610fda565b34156105fe57600080fd5b610327611165565b6101e2600160a060020a036004351661119c565b341561062557600080fd5b6103276111a8565b600080600032600160a060020a031633600160a060020a031614151561065257600080fd5b849150674563918244f400008211156106a05768056bc75e2d6310000061068330600160a060020a03163184611263565b116106a057674563918244f40000915061069d8583611263565b90505b6106aa8285611275565b5060008111156106e557600160a060020a03331681156108fc0282604051600060405180830381858888f1935050505015156106e557600080fd5b505092915050565b600160a060020a0316600090815260086020908152604080832054600690925290912054600b54680100000000000000009102919091030490565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156107be5780601f10610793576101008083540402835291602001916107be565b820191906000526020600020905b8154815290600101906020018083116107a157829003601f168201915b505050505081565b600e6020526000908152604090205460ff1681565b6000808080806107f66107ef87600f61188a565b60646118bc565b93506108066107ef87600061188a565b925061081b6108158786611263565b84611263565b9150610826826118d3565b9695505050505050565b600a545b90565b6000806000806000600a54861115151561085057600080fd5b61085986611965565b93506108696107ef85600f61188a565b92506108796107ef85600061188a565b91506108266108888585611263565b83611263565b600d5460ff1681565b33600160a060020a0381166000908152600c602052604090205460ff1615156108bf57600080fd5b50600160a060020a03919091166000908152600e60205260409020805460ff1916911515919091179055565b601281565b6000610900600354600254611263565b905090565b60008060006109146001610be5565b1161091e57600080fd5b33915061092b6000610be5565b600160a060020a0383166000818152600860209081526040808320805468010000000000000000870201905560079091528082208054929055920192509082156108fc0290839051600060405180830381858888f19350505050151561099057600080fd5b81600160a060020a03167fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc8260405190815260200160405180910390a25050565b600080600160a060020a03861615156109e957600080fd5b600160a060020a0386166000908152600e602052604090205460ff161515600114610a1357600080fd5b610a1d8686610e07565b1515610a2857600080fd5b610a31866119cf565b15610af0575084600160a060020a03811663c0ee0b8a338787876040517c010000000000000000000000000000000000000000000000000000000063ffffffff8716028152600160a060020a0385166004820190815260248201859052606060448301908152606483018490529091608401848480828437820191505095505050505050602060405180830381600087803b1515610ace57600080fd5b5af11515610adb57600080fd5b505050604051805190501515610af057600080fd5b50600195945050505050565b6000610b0c600354600254611263565b905060018111610b1b57600080fd5b610b27600254826119d7565b600255735adf43dd006c6c36506e2b2dfa352e60002d22dc62061a8082604051600060405180830381858888f193505050501515610b6f57610b6b60025482611263565b6002555b50565b6000806000806000600a5460001415610b9257640218711a009450610bd8565b610ba3670de0b6b3a7640000611965565b9350610bb36107ef85600f61188a565b9250610bc36107ef85600061188a565b9150610bd26108888585611263565b90508094505b5050505090565b60045481565b60003382610bfb57610bf6816106ed565b610c1f565b600160a060020a038116600090815260076020526040902054610c1d826106ed565b015b91505b50919050565b600160a060020a0330163190565b600160a060020a031660009081526006602052604090205490565b600c6020526000908152604090205460ff1681565b33600160a060020a0381166000908152600c602052604090205460ff161515610c8e57600080fd5b50600455565b6000806000806000600a5460001415610cb45764028fa6ae009450610bd8565b610cc5670de0b6b3a7640000611965565b9350610cd56107ef85600f61188a565b9250610ce56107ef85600061188a565b9150610bd2610cf485856119d7565b836119d7565b33600160a060020a0381166000908152600c602052604090205460ff161515610d2257600080fd5b50600160a060020a03919091166000908152600c60205260409020805460ff1916911515919091179055565b60025481565b600033610d6081610c36565b91505b5090565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156107be5780601f10610793576101008083540402835291602001916107be565b33600160a060020a0381166000908152600c602052604090205460ff161515610dfa57600080fd5b50600d805460ff19169055565b6000806000610e14610d54565b11610e1e57600080fd5b5033600160a060020a038116600090815260066020526040902054831115610e4557600080fd5b6000610e516001610be5565b1115610e5f57610e5f610905565b600160a060020a038116600090815260066020526040902054610e829084611263565b600160a060020a038083166000908152600660205260408082209390935590861681522054610eb190846119d7565b600160a060020a03858116600081815260066020908152604080832095909555600b805494871680845260089092528583208054958a0290950390945592548282529084902080549188029091019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3600191505b5092915050565b735adf43dd006c6c36506e2b2dfa352e60002d22dc81565b33600160a060020a0381166000908152600c602052604090205460ff161515610f8157600080fd5b6001828051610f94929160200190611a1b565b505050565b33600160a060020a0381166000908152600c602052604090205460ff161515610fc157600080fd5b6000828051610f94929160200190611a1b565b60035481565b600080600080600080600080610fee610d54565b11610ff857600080fd5b33600160a060020a03811660009081526006602052604090205490975088111561102157600080fd5b87955061102d86611965565b945061103d6107ef86600f61188a565b935061104d6107ef86600061188a565b925061105c6108158686611263565b915061106a600354846119d7565b600355600a5461107a9087611263565b600a55600160a060020a0387166000908152600660205260409020546110a09087611263565b600160a060020a038816600090815260066020908152604080832093909355600b546008909152918120805492890268010000000000000000860201928390039055600a5491925090111561111757611113600b54600a5468010000000000000000870281151561110d57fe5b046119d7565b600b555b86600160a060020a03167fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139878460405191825260208201526040908101905180910390a25050505050505050565b33600160a060020a038116600090815260066020526040812054908111156111905761119081610fda565b611198610905565b5050565b6000610c22348361062d565b6000806000806111b86001610be5565b116111c257600080fd5b6111cc6000610be5565b33600160a060020a038116600090815260086020908152604080832080546801000000000000000087020190556007909152812080549082905590920194509250611218908490611275565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab3615326458848360405191825260208201526040908101905180910390a2505050565b60008282111561126f57fe5b50900390565b60008060008060008060008060008a6000339050600d60009054906101000a900460ff1680156112b65750673782dace9d900000826112b2610c28565b0311155b156115e657600160a060020a03811660009081526005602052604090205460ff161515600114801561130b5750600160a060020a0381166000908152600960205260409020546706f05b59d3b2000090830111155b151561131657600080fd5b600160a060020a03811660009081526009602052604090205461133990836119d7565b600160a060020a0382166000908152600960205260409020556113606107ef8e600f61188a565b995061136d8a60036118bc565b985061137d6107ef8e600061188a565b97506113898a8a611263565b965061139e6113988e8c611263565b89611263565b95506113ac600354896119d7565b6003556113b8866118d3565b945068010000000000000000870293506000851180156113e25750600a546113e086826119d7565b115b15156113ed57600080fd5b600160a060020a038c1615801590611417575033600160a060020a03168c600160a060020a031614155b801561143d5750600454600160a060020a038d1660009081526006602052604090205410155b1561148357600160a060020a038c16600090815260076020526040902054611465908a6119d7565b600160a060020a038d1660009081526007602052604090205561149e565b61148d878a6119d7565b965068010000000000000000870293505b6000600a541115611502576114b5600a54866119d7565b600a8190556801000000000000000088028115156114cf57fe5b600b8054929091049091019055600a546801000000000000000088028115156114f457fe5b048502840384039350611508565b600a8590555b600160a060020a03331660009081526006602052604090205461152b90866119d7565b6006600033600160a060020a0316600160a060020a03168152602001908152602001600020819055508385600b5402039250826008600033600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a031633600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f8860405191825260208201526040908101905180910390a3849a5061187a565b600d805460ff191690556115fe6107ef8e600f61188a565b995061160b8a60036118bc565b985061161b6107ef8e600061188a565b97506116278a8a611263565b96506116366113988e8c611263565b9550611644600354896119d7565b600355611650866118d3565b9450680100000000000000008702935060008511801561167a5750600a5461167886826119d7565b115b151561168557600080fd5b600160a060020a038c16158015906116af575033600160a060020a03168c600160a060020a031614155b80156116d55750600454600160a060020a038d1660009081526006602052604090205410155b1561171b57600160a060020a038c166000908152600760205260409020546116fd908a6119d7565b600160a060020a038d16600090815260076020526040902055611736565b611725878a6119d7565b965068010000000000000000870293505b6000600a54111561179a5761174d600a54866119d7565b600a81905568010000000000000000880281151561176757fe5b600b8054929091049091019055600a5468010000000000000000880281151561178c57fe5b0485028403840393506117a0565b600a8590555b600160a060020a0333166000908152600660205260409020546117c390866119d7565b6006600033600160a060020a0316600160a060020a03168152602001908152602001600020819055508385600b5402039250826008600033600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a031633600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f8860405191825260208201526040908101905180910390a3849a505b5050505050505050505092915050565b60008083151561189d5760009150610f3a565b508282028284828115156118ad57fe5b04146118b557fe5b9392505050565b60008082848115156118ca57fe5b04949350505050565b600a546000906b204fce5e3e25026110000000908290633b9aca0061195261194c7259aedfc10d7279c5eed140164540000000000088026002850a670de0b6b3a764000002016f0f0bdc21abb48db201e86d40000000008502017704140c78940f6a24fdffc78873d4490d2100000000000000016119e6565b85611263565b81151561195b57fe5b0403949350505050565b600a54600090670de0b6b3a76400008381019181019083906119bc640218711a00828504633b9aca0002018702600283670de0b6b3a763ffff1982890a8b90030104633b9aca00028115156119b657fe5b04611263565b8115156119c557fe5b0495945050505050565b6000903b1190565b6000828201838110156118b557fe5b80600260018201045b81811015610c22578091506002818285811515611a0857fe5b0401811515611a1357fe5b0490506119ef565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611a5c57805160ff1916838001178555611a89565b82800160010185558215611a89579182015b82811115611a89578251825591602001919060010190611a6e565b50610d63926108349250905b80821115610d635760008155600101611a955600a165627a7a7230582041a4a3eb656f50a526fe72b40c27ededd1535a1e14aebf051673c9560628d22a0029

Deployed Bytecode

0x6060604052600436106101b55763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b81146101c357806306fdde03146101f45780630f34dc161461027e57806310d0ffdd146102b157806318160ddd146102c757806322609373146102da57806327defa1f146102f0578063294205b414610303578063313ce567146103295780633b545d2f146103525780633ccfd60b146103655780634000aea0146103785780634071f89b146103a75780634b750334146103af57806356d399e8146103c2578063688abbf7146103d55780636b2f4632146103ed57806370a082311461040057806376be15851461041f5780638328b6101461043e5780638620410b1461045457806387c950581461046757806391a266ac1461048b578063949e8acd1461049e57806395d89b41146104b1578063a8e04f34146104c4578063a9059cbb146104d7578063b743f7b6146104f9578063b84c824614610528578063c47f002714610579578063cbe0a1aa146105ca578063e4849b32146105dd578063e9fad8ee146105f3578063f088d54714610606578063fdb5a03e1461061a575b6101c034600061062d565b50005b34156101ce57600080fd5b6101e2600160a060020a03600435166106ed565b60405190815260200160405180910390f35b34156101ff57600080fd5b610207610728565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561024357808201518382015260200161022b565b50505050905090810190601f1680156102705780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561028957600080fd5b61029d600160a060020a03600435166107c6565b604051901515815260200160405180910390f35b34156102bc57600080fd5b6101e26004356107db565b34156102d257600080fd5b6101e2610830565b34156102e557600080fd5b6101e2600435610837565b34156102fb57600080fd5b61029d61088e565b341561030e57600080fd5b610327600160a060020a03600435166024351515610897565b005b341561033457600080fd5b61033c6108eb565b60405160ff909116815260200160405180910390f35b341561035d57600080fd5b6101e26108f0565b341561037057600080fd5b610327610905565b341561038357600080fd5b61029d60048035600160a060020a03169060248035916044359182019101356109d1565b610327610afc565b34156103ba57600080fd5b6101e2610b72565b34156103cd57600080fd5b6101e2610bdf565b34156103e057600080fd5b6101e26004351515610be5565b34156103f857600080fd5b6101e2610c28565b341561040b57600080fd5b6101e2600160a060020a0360043516610c36565b341561042a57600080fd5b61029d600160a060020a0360043516610c51565b341561044957600080fd5b610327600435610c66565b341561045f57600080fd5b6101e2610c94565b341561047257600080fd5b610327600160a060020a03600435166024351515610cfa565b341561049657600080fd5b6101e2610d4e565b34156104a957600080fd5b6101e2610d54565b34156104bc57600080fd5b610207610d67565b34156104cf57600080fd5b610327610dd2565b34156104e257600080fd5b61029d600160a060020a0360043516602435610e07565b341561050457600080fd5b61050c610f41565b604051600160a060020a03909116815260200160405180910390f35b341561053357600080fd5b61032760046024813581810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610f5995505050505050565b341561058457600080fd5b61032760046024813581810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610f9995505050505050565b34156105d557600080fd5b6101e2610fd4565b34156105e857600080fd5b610327600435610fda565b34156105fe57600080fd5b610327611165565b6101e2600160a060020a036004351661119c565b341561062557600080fd5b6103276111a8565b600080600032600160a060020a031633600160a060020a031614151561065257600080fd5b849150674563918244f400008211156106a05768056bc75e2d6310000061068330600160a060020a03163184611263565b116106a057674563918244f40000915061069d8583611263565b90505b6106aa8285611275565b5060008111156106e557600160a060020a03331681156108fc0282604051600060405180830381858888f1935050505015156106e557600080fd5b505092915050565b600160a060020a0316600090815260086020908152604080832054600690925290912054600b54680100000000000000009102919091030490565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156107be5780601f10610793576101008083540402835291602001916107be565b820191906000526020600020905b8154815290600101906020018083116107a157829003601f168201915b505050505081565b600e6020526000908152604090205460ff1681565b6000808080806107f66107ef87600f61188a565b60646118bc565b93506108066107ef87600061188a565b925061081b6108158786611263565b84611263565b9150610826826118d3565b9695505050505050565b600a545b90565b6000806000806000600a54861115151561085057600080fd5b61085986611965565b93506108696107ef85600f61188a565b92506108796107ef85600061188a565b91506108266108888585611263565b83611263565b600d5460ff1681565b33600160a060020a0381166000908152600c602052604090205460ff1615156108bf57600080fd5b50600160a060020a03919091166000908152600e60205260409020805460ff1916911515919091179055565b601281565b6000610900600354600254611263565b905090565b60008060006109146001610be5565b1161091e57600080fd5b33915061092b6000610be5565b600160a060020a0383166000818152600860209081526040808320805468010000000000000000870201905560079091528082208054929055920192509082156108fc0290839051600060405180830381858888f19350505050151561099057600080fd5b81600160a060020a03167fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc8260405190815260200160405180910390a25050565b600080600160a060020a03861615156109e957600080fd5b600160a060020a0386166000908152600e602052604090205460ff161515600114610a1357600080fd5b610a1d8686610e07565b1515610a2857600080fd5b610a31866119cf565b15610af0575084600160a060020a03811663c0ee0b8a338787876040517c010000000000000000000000000000000000000000000000000000000063ffffffff8716028152600160a060020a0385166004820190815260248201859052606060448301908152606483018490529091608401848480828437820191505095505050505050602060405180830381600087803b1515610ace57600080fd5b5af11515610adb57600080fd5b505050604051805190501515610af057600080fd5b50600195945050505050565b6000610b0c600354600254611263565b905060018111610b1b57600080fd5b610b27600254826119d7565b600255735adf43dd006c6c36506e2b2dfa352e60002d22dc62061a8082604051600060405180830381858888f193505050501515610b6f57610b6b60025482611263565b6002555b50565b6000806000806000600a5460001415610b9257640218711a009450610bd8565b610ba3670de0b6b3a7640000611965565b9350610bb36107ef85600f61188a565b9250610bc36107ef85600061188a565b9150610bd26108888585611263565b90508094505b5050505090565b60045481565b60003382610bfb57610bf6816106ed565b610c1f565b600160a060020a038116600090815260076020526040902054610c1d826106ed565b015b91505b50919050565b600160a060020a0330163190565b600160a060020a031660009081526006602052604090205490565b600c6020526000908152604090205460ff1681565b33600160a060020a0381166000908152600c602052604090205460ff161515610c8e57600080fd5b50600455565b6000806000806000600a5460001415610cb45764028fa6ae009450610bd8565b610cc5670de0b6b3a7640000611965565b9350610cd56107ef85600f61188a565b9250610ce56107ef85600061188a565b9150610bd2610cf485856119d7565b836119d7565b33600160a060020a0381166000908152600c602052604090205460ff161515610d2257600080fd5b50600160a060020a03919091166000908152600c60205260409020805460ff1916911515919091179055565b60025481565b600033610d6081610c36565b91505b5090565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156107be5780601f10610793576101008083540402835291602001916107be565b33600160a060020a0381166000908152600c602052604090205460ff161515610dfa57600080fd5b50600d805460ff19169055565b6000806000610e14610d54565b11610e1e57600080fd5b5033600160a060020a038116600090815260066020526040902054831115610e4557600080fd5b6000610e516001610be5565b1115610e5f57610e5f610905565b600160a060020a038116600090815260066020526040902054610e829084611263565b600160a060020a038083166000908152600660205260408082209390935590861681522054610eb190846119d7565b600160a060020a03858116600081815260066020908152604080832095909555600b805494871680845260089092528583208054958a0290950390945592548282529084902080549188029091019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3600191505b5092915050565b735adf43dd006c6c36506e2b2dfa352e60002d22dc81565b33600160a060020a0381166000908152600c602052604090205460ff161515610f8157600080fd5b6001828051610f94929160200190611a1b565b505050565b33600160a060020a0381166000908152600c602052604090205460ff161515610fc157600080fd5b6000828051610f94929160200190611a1b565b60035481565b600080600080600080600080610fee610d54565b11610ff857600080fd5b33600160a060020a03811660009081526006602052604090205490975088111561102157600080fd5b87955061102d86611965565b945061103d6107ef86600f61188a565b935061104d6107ef86600061188a565b925061105c6108158686611263565b915061106a600354846119d7565b600355600a5461107a9087611263565b600a55600160a060020a0387166000908152600660205260409020546110a09087611263565b600160a060020a038816600090815260066020908152604080832093909355600b546008909152918120805492890268010000000000000000860201928390039055600a5491925090111561111757611113600b54600a5468010000000000000000870281151561110d57fe5b046119d7565b600b555b86600160a060020a03167fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139878460405191825260208201526040908101905180910390a25050505050505050565b33600160a060020a038116600090815260066020526040812054908111156111905761119081610fda565b611198610905565b5050565b6000610c22348361062d565b6000806000806111b86001610be5565b116111c257600080fd5b6111cc6000610be5565b33600160a060020a038116600090815260086020908152604080832080546801000000000000000087020190556007909152812080549082905590920194509250611218908490611275565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab3615326458848360405191825260208201526040908101905180910390a2505050565b60008282111561126f57fe5b50900390565b60008060008060008060008060008a6000339050600d60009054906101000a900460ff1680156112b65750673782dace9d900000826112b2610c28565b0311155b156115e657600160a060020a03811660009081526005602052604090205460ff161515600114801561130b5750600160a060020a0381166000908152600960205260409020546706f05b59d3b2000090830111155b151561131657600080fd5b600160a060020a03811660009081526009602052604090205461133990836119d7565b600160a060020a0382166000908152600960205260409020556113606107ef8e600f61188a565b995061136d8a60036118bc565b985061137d6107ef8e600061188a565b97506113898a8a611263565b965061139e6113988e8c611263565b89611263565b95506113ac600354896119d7565b6003556113b8866118d3565b945068010000000000000000870293506000851180156113e25750600a546113e086826119d7565b115b15156113ed57600080fd5b600160a060020a038c1615801590611417575033600160a060020a03168c600160a060020a031614155b801561143d5750600454600160a060020a038d1660009081526006602052604090205410155b1561148357600160a060020a038c16600090815260076020526040902054611465908a6119d7565b600160a060020a038d1660009081526007602052604090205561149e565b61148d878a6119d7565b965068010000000000000000870293505b6000600a541115611502576114b5600a54866119d7565b600a8190556801000000000000000088028115156114cf57fe5b600b8054929091049091019055600a546801000000000000000088028115156114f457fe5b048502840384039350611508565b600a8590555b600160a060020a03331660009081526006602052604090205461152b90866119d7565b6006600033600160a060020a0316600160a060020a03168152602001908152602001600020819055508385600b5402039250826008600033600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a031633600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f8860405191825260208201526040908101905180910390a3849a5061187a565b600d805460ff191690556115fe6107ef8e600f61188a565b995061160b8a60036118bc565b985061161b6107ef8e600061188a565b97506116278a8a611263565b96506116366113988e8c611263565b9550611644600354896119d7565b600355611650866118d3565b9450680100000000000000008702935060008511801561167a5750600a5461167886826119d7565b115b151561168557600080fd5b600160a060020a038c16158015906116af575033600160a060020a03168c600160a060020a031614155b80156116d55750600454600160a060020a038d1660009081526006602052604090205410155b1561171b57600160a060020a038c166000908152600760205260409020546116fd908a6119d7565b600160a060020a038d16600090815260076020526040902055611736565b611725878a6119d7565b965068010000000000000000870293505b6000600a54111561179a5761174d600a54866119d7565b600a81905568010000000000000000880281151561176757fe5b600b8054929091049091019055600a5468010000000000000000880281151561178c57fe5b0485028403840393506117a0565b600a8590555b600160a060020a0333166000908152600660205260409020546117c390866119d7565b6006600033600160a060020a0316600160a060020a03168152602001908152602001600020819055508385600b5402039250826008600033600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a031633600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f8860405191825260208201526040908101905180910390a3849a505b5050505050505050505092915050565b60008083151561189d5760009150610f3a565b508282028284828115156118ad57fe5b04146118b557fe5b9392505050565b60008082848115156118ca57fe5b04949350505050565b600a546000906b204fce5e3e25026110000000908290633b9aca0061195261194c7259aedfc10d7279c5eed140164540000000000088026002850a670de0b6b3a764000002016f0f0bdc21abb48db201e86d40000000008502017704140c78940f6a24fdffc78873d4490d2100000000000000016119e6565b85611263565b81151561195b57fe5b0403949350505050565b600a54600090670de0b6b3a76400008381019181019083906119bc640218711a00828504633b9aca0002018702600283670de0b6b3a763ffff1982890a8b90030104633b9aca00028115156119b657fe5b04611263565b8115156119c557fe5b0495945050505050565b6000903b1190565b6000828201838110156118b557fe5b80600260018201045b81811015610c22578091506002818285811515611a0857fe5b0401811515611a1357fe5b0490506119ef565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611a5c57805160ff1916838001178555611a89565b82800160010185558215611a89579182015b82811115611a89578251825591602001919060010190611a6e565b50610d63926108349250905b80821115610d635760008155600101611a955600a165627a7a7230582041a4a3eb656f50a526fe72b40c27ededd1535a1e14aebf051673c9560628d22a0029

Swarm Source

bzzr://41a4a3eb656f50a526fe72b40c27ededd1535a1e14aebf051673c9560628d22a
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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