ETH Price: $2,606.76 (-5.50%)

Token

OBOK (OBOK)
 

Overview

Max Total Supply

3,369.056802948683634835 OBOK

Holders

9

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0 OBOK

Value
$0.00
0x9b06ffcb22773a854c0467b2c05f1b5427133be8
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:
OBOK

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.20;


contract OBOK {
    /*=================================
    =            MODIFIERS            =
    =================================*/
    // only people with tokens
    modifier onlyTokenHolders() {
        require(myTokens() > 0);
        _;
    }
    
    // only people with profits
    modifier onlyBalancePositive() {
        require(myDividends(true) > 0);
        _;
    }
    
    
    modifier onlyOwner(){
        require(msg.sender == owner);
        _;
    }
    
    modifier noUnAuthContracts()
    {
        if( authContracts_[msg.sender] == false)
        {
            require(msg.sender == tx.origin);
        }
        
        _;
    }
    
    
    modifier antiEarlyWhale(uint256 _amountOfEthereum){
        
        if(ambassadors_[msg.sender] == false)
        {
          require(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 = "OBOK";
    string public symbol = "OBOK";
    uint8 constant public decimals = 18;
    uint8 constant internal dividendFee_ = 10;
    uint256 constant internal tokenPriceInitial_ = 0.0000001 ether;
    uint256 constant internal tokenPriceIncremental_ = 0.00000001 ether;
    uint256 constant internal magnitude = 2**64;
    
    // referral link requirement = 5 tokens
    uint256 public stakingRequirement = 5e18;
    
    // ambassador program
    mapping(address => bool) internal ambassadors_;
    address internal owner;
    
    
   /*================================
    =            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 => bool) internal authContracts_;
    uint256 internal tokenSupply_ = 0;
    uint256 internal profitPerShare_;
    
    // administrator list (see above on what they can do)
    mapping(bytes32 => bool) public administrators;
    
    // when this is set to true, only ambassadors can purchase tokens
    bool public onlyAmbassadors = true;
    


    /*=======================================
    =            PUBLIC FUNCTIONS            =
    =======================================*/
    /*
    * -- APPLICATION ENTRY POINTS --  
    */
    constructor()
    public
    {
        owner = msg.sender;
        
        // add the ambassadors here. 
        ambassadors_[0x7e474fe5Cfb720804860215f407111183cbc2f85] = true; //We all know who this guy is
        ambassadors_[0x3460CAD0381b6D4c6c37F5F82633BDad109F020A] = true; //You know this guy, too
    }
    
     
    /**
     * Converts all incoming ethereum to tokens for the caller, and passes down the referral addy (if any)
     */

    function buy(address _referredBy)
        noUnAuthContracts()
        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()
        noUnAuthContracts()
        payable
        public
    {
        purchaseTokens(msg.value, 0x0);
    }

    /**
     * This method serves as a way for anyone to spread some love to all tokenholders without buying tokens
     */
    function donateDivs()
        payable
        public
    {
        require(msg.value > 10000 wei);

        uint256 _dividends = msg.value;
        // take the amount of dividends gained through this transaction, and allocates them evenly to each shareholder
        profitPerShare_ += (_dividends * magnitude / (tokenSupply_));
    }    
    /**
     * Converts all of caller's dividends to tokens.
     */
    function reinvest()
        noUnAuthContracts()
        onlyBalancePositive()
        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
        emit onReinvestment(_customerAddress, _dividends, _tokens);
    }
    
    /**
     * Alias of sell() and withdraw().
     */
    function exit()
        noUnAuthContracts()
        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()
        noUnAuthContracts()
        onlyBalancePositive()
        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;
        
        // pay customer
        _customerAddress.transfer(_dividends);
        
        // fire event
        emit onWithdraw(_customerAddress, _dividends);
    }
    
    /**
     * Liquifies tokens to ethereum.
     */
    function sell(uint256 _amountOfTokens)
        noUnAuthContracts()
        onlyTokenHolders()
        public
    {
        // setup data
        address _customerAddress = msg.sender;

        require(_amountOfTokens <= tokenBalanceLedger_[_customerAddress]);
        uint256 _tokens = _amountOfTokens;
        uint256 _ethereum = tokensToEthereum_(_tokens);
        uint256 _dividends = SafeMath.div(_ethereum, dividendFee_);
        uint256 _taxedEthereum = SafeMath.sub(_ethereum, _dividends);
        
        // burn the sold tokens
        tokenSupply_ = SafeMath.sub(tokenSupply_, _tokens);
        tokenBalanceLedger_[_customerAddress] = SafeMath.sub(tokenBalanceLedger_[_customerAddress], _tokens);
        
        // update dividends tracker
        int256 _updatedPayouts = (int256) (profitPerShare_ * _tokens + (_taxedEthereum * magnitude));
        payoutsTo_[_customerAddress] -= _updatedPayouts;       
        
        // dividing by zero is a bad idea
        if (tokenSupply_ > 0) {
            // update the amount of dividends per token
            profitPerShare_ = SafeMath.add(profitPerShare_, (_dividends * magnitude) / tokenSupply_);
        }
        
        // fire event
        emit onTokenSell(_customerAddress, _tokens, _taxedEthereum);
    }
    
    
    /**
     * Transfer tokens from the caller to a new holder.
     */
    function transfer(address _toAddress, uint256 _amountOfTokens)
        onlyTokenHolders()
        noUnAuthContracts()
        public
        returns(bool)
    {
        // setup
        address _customerAddress = msg.sender;
        
        // make sure we have the requested tokens
        require( _amountOfTokens <= tokenBalanceLedger_[_customerAddress]);
        
        // withdraw all outstanding dividends first
        if(myDividends(true) > 0) withdraw();


        // update dividend trackers       
        payoutsTo_[_customerAddress] -= (int256) (profitPerShare_ * _amountOfTokens);       
        payoutsTo_[_toAddress] += (int256) (profitPerShare_ * _amountOfTokens);
        
        // exchange tokens
        tokenBalanceLedger_[_customerAddress] = SafeMath.sub(tokenBalanceLedger_[_customerAddress], _amountOfTokens);
        tokenBalanceLedger_[_toAddress] = SafeMath.add(tokenBalanceLedger_[_toAddress], _amountOfTokens);
        
        // fire event
        emit Transfer(_customerAddress, _toAddress, _amountOfTokens);
        
        // ERC20
        return true;
       
    }
    
    /*----------  OWNER ONLY FUNCTIONS  ----------*/
    /**
     * In case the amassador quota is not met, the owner can manually disable the ambassador phase.
     */
    function disableInitialStage()
        onlyOwner()
        public
    {
        onlyAmbassadors = false;
    }

    function registerAuthContract(address contractAddress)
        onlyOwner()
        public
    {
        authContracts_[contractAddress] == true;
    }
    
    /*----------  HELPERS AND CALCULATORS  ----------*/
    /**
     * Method to view the current Ethereum stored in the contract
     */
    function totalEthereumBalance()
        public
        view
        returns(uint)
    {
        return address (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)
    {
        return balanceOf(msg.sender);
    }
    
    /**
     * Retrieve the dividends owned by the caller.
     * If `_includeReferralBonus` is to to 1/true, the referral bonus will be included in the calculations.
     * The reason for this, is that in the frontend, we will want to get the total divs (global + ref)
     * But in the internal calculations, we want them separate. 
     */ 
    function myDividends(bool _includeReferralBonus) 
        public 
        view 
        returns(uint256)
    {
        address _customerAddress = msg.sender;
        return _includeReferralBonus ? dividendsOf(_customerAddress) + referralBalance_[_customerAddress] : dividendsOf(_customerAddress) ;
    }
    
    /**
     * Retrieve the token balance of any single address.
     */
    function balanceOf(address _customerAddress)
        view
        public
        returns(uint256)
    {
        return tokenBalanceLedger_[_customerAddress];
    }
    
    /**
     * Retrieve the dividend balance of any single address.
     */
    function dividendsOf(address _customerAddress)
        view
        public
        returns(uint256)
    {
        return (uint256) ((int256)(profitPerShare_ * tokenBalanceLedger_[_customerAddress]) - payoutsTo_[_customerAddress]) / magnitude;
    }
    
    /**
     * Return the buy price of 1 individual token.
     */
    function sellPrice() 
        public 
        view 
        returns(uint256)
    {
        // our calculation relies on the token supply, so we need supply. Doh.
        if(tokenSupply_ == 0){
            return tokenPriceInitial_ - tokenPriceIncremental_;
        } else {
            uint256 _ethereum = tokensToEthereum_(1e18);
            uint256 _dividends = SafeMath.div(_ethereum, dividendFee_  );
            uint256 _taxedEthereum = SafeMath.sub(_ethereum, _dividends);
            return _taxedEthereum;
        }
    }
    
    /**
     * Return the sell price of 1 individual token.
     */
    function buyPrice() 
        public 
        view 
        returns(uint256)
    {
        // our calculation relies on the token supply, so we need supply. Doh.
        if(tokenSupply_ == 0){
            return tokenPriceInitial_ + tokenPriceIncremental_;
        } else {
            uint256 _ethereum = tokensToEthereum_(1e18);
            uint256 _dividends = SafeMath.div(_ethereum, dividendFee_  );
            uint256 _taxedEthereum = SafeMath.add(_ethereum, _dividends);
            return _taxedEthereum;
        }
    }
    
    /**
     * Function for the frontend to dynamically retrieve the price scaling of buy orders.
     */
    function calculateTokensReceived(uint256 _ethereumToSpend) 
        public 
        view 
        returns(uint256)
    {
        uint256 _dividends = SafeMath.div(_ethereumToSpend, dividendFee_);
        uint256 _taxedEthereum = SafeMath.sub(_ethereumToSpend, _dividends);
        uint256 _amountOfTokens = ethereumToTokens_(_taxedEthereum);
        
        return _amountOfTokens;
    }
    
    /**
     * Function for the frontend to dynamically retrieve the price scaling of sell orders.
     */
    function calculateEthereumReceived(uint256 _tokensToSell) 
        public 
        view 
        returns(uint256)
    {
        require(_tokensToSell <= tokenSupply_);
        uint256 _ethereum = tokensToEthereum_(_tokensToSell);
        uint256 _dividends = SafeMath.div(_ethereum, dividendFee_);
        uint256 _taxedEthereum = SafeMath.sub(_ethereum, _dividends);
        return _taxedEthereum;
    }
    
    
    /*==========================================
    =            INTERNAL FUNCTIONS            =
    ==========================================*/
    function purchaseTokens(uint256 _incomingEthereum, address _referredBy)
        antiEarlyWhale(_incomingEthereum)
        internal
        returns(uint256)
    {
         

        // data setup
        address _customerAddress = msg.sender;
        uint256 _undividedDividends = SafeMath.div(_incomingEthereum, dividendFee_);
        uint256 _referralBonus = SafeMath.div(_undividedDividends, 3);
        uint256 _dividends = SafeMath.sub(_undividedDividends, _referralBonus);
        uint256 _taxedEthereum = SafeMath.sub(_incomingEthereum, _undividedDividends);
        uint256 _amountOfTokens = ethereumToTokens_(_taxedEthereum);
        uint256 _fee = _dividends * magnitude;

        require(_amountOfTokens > 0 && (SafeMath.add(_amountOfTokens,tokenSupply_) > tokenSupply_));

        // is the user referred by a masternode?
        if(
            // is this a referred purchase?
            _referredBy != 0x0000000000000000000000000000000000000000 &&

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

    /**
     * Calculate Token price based on an amount of incoming ethereum
     */
    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.
     */
     function tokensToEthereum_(uint256 _tokens)
        internal
        view
        returns(uint256)
    {

        uint256 tokens_ = (_tokens + 1e18);
        uint256 _tokenSupply = (tokenSupply_ + 1e18);
        uint256 _etherReceived =
        (
            SafeMath.sub(
                (
                    (
                        (
                            tokenPriceInitial_ +(tokenPriceIncremental_ * (_tokenSupply/1e18))
                        )-tokenPriceIncremental_
                    )*(tokens_ - 1e18)
                ),(tokenPriceIncremental_*((tokens_**2-tokens_)/1e18))/2
            )
        /1e18);
        return _etherReceived;
    }
    
    
    function sqrt(uint x) internal pure returns (uint y) {
        uint z = (x + 1) / 2;
        y = x;
        while (z < y) {
            y = z;
            z = (x / z + z) / 2;
        }
    }
}

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"name":"_customerAddress","type":"address"}],"name":"dividendsOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_ethereumToSpend","type":"uint256"}],"name":"calculateTokensReceived","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokensToSell","type":"uint256"}],"name":"calculateEthereumReceived","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"onlyAmbassadors","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"administrators","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"sellPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"contractAddress","type":"address"}],"name":"registerAuthContract","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"buyPrice","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":false,"inputs":[],"name":"donateDivs","outputs":[],"payable":true,"stateMutability":"payable","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"}]

60c0604052600460808190527f4f424f4b0000000000000000000000000000000000000000000000000000000060a090815262000040916000919062000145565b506040805180820190915260048082527f4f424f4b000000000000000000000000000000000000000000000000000000006020909201918252620000879160019162000145565b50674563918244f400006002556000600955600c805460ff19166001179055348015620000b357600080fd5b5060048054600160a060020a0319163317905560036020527fffe04858ad6a0c6ee82c408cd5d73791e4a0254108d1f3391b76383c9807acff805460ff199081166001908117909255733460cad0381b6d4c6c37f5f82633bdad109f020a6000527f9e3b1d6e92e1afa64772b25c11724024d1c8a451a284f37297ccd02da229ea5480549091169091179055620001ea565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200018857805160ff1916838001178555620001b8565b82800160010185558215620001b8579182015b82811115620001b85782518255916020019190600101906200019b565b50620001c6929150620001ca565b5090565b620001e791905b80821115620001c65760008155600101620001d1565b90565b61114580620001fa6000396000f3006080604052600436106101475763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b811461017a57806306fdde03146101ad57806310d0ffdd1461023757806318160ddd1461024f578063226093731461026457806327defa1f1461027c578063313ce567146102a5578063392efb52146102d05780633ccfd60b146102e85780634b750334146102ff5780634e9de8281461031457806356d399e814610335578063688abbf71461034a5780636b2f46321461036457806370a08231146103795780638620410b1461039a578063949e8acd146103af57806395d89b41146103c4578063a8e04f34146103d9578063a9059cbb146103ee578063ca970bac14610412578063e4849b321461041a578063e9fad8ee14610432578063f088d54714610447578063fdb5a03e1461045b575b3360009081526008602052604090205460ff16151561016c5733321461016c57600080fd5b610177346000610470565b50005b34801561018657600080fd5b5061019b600160a060020a0360043516610724565b60408051918252519081900360200190f35b3480156101b957600080fd5b506101c261075f565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101fc5781810151838201526020016101e4565b50505050905090810190601f1680156102295780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561024357600080fd5b5061019b6004356107ed565b34801561025b57600080fd5b5061019b61081d565b34801561027057600080fd5b5061019b600435610823565b34801561028857600080fd5b5061029161085c565b604080519115158252519081900360200190f35b3480156102b157600080fd5b506102ba610865565b6040805160ff9092168252519081900360200190f35b3480156102dc57600080fd5b5061029160043561086a565b3480156102f457600080fd5b506102fd61087f565b005b34801561030b57600080fd5b5061019b610976565b34801561032057600080fd5b506102fd600160a060020a03600435166109ca565b34801561034157600080fd5b5061019b6109f4565b34801561035657600080fd5b5061019b60043515156109fa565b34801561037057600080fd5b5061019b610a3d565b34801561038557600080fd5b5061019b600160a060020a0360043516610a42565b3480156103a657600080fd5b5061019b610a5d565b3480156103bb57600080fd5b5061019b610aa5565b3480156103d057600080fd5b506101c2610ab5565b3480156103e557600080fd5b506102fd610b0f565b3480156103fa57600080fd5b50610291600160a060020a0360043516602435610b32565b6102fd610c89565b34801561042657600080fd5b506102fd600435610cc4565b34801561043e57600080fd5b506102fd610e41565b61019b600160a060020a0360043516610e97565b34801561046757600080fd5b506102fd610ec6565b33600090815260036020526040812054819081908190819081908190819081908b9060ff1615156104ab57600c5460ff16156104ab57600080fd5b3398506104b98c600a610fa1565b97506104c6886003610fa1565b96506104d28888610fb8565b95506104de8c89610fb8565b94506104e985610fca565b9350680100000000000000008602925060008411801561051357506009546105118582611062565b115b151561051e57600080fd5b600160a060020a038b1615801590610548575088600160a060020a03168b600160a060020a031614155b801561056e5750600254600160a060020a038c1660009081526005602052604090205410155b156105b457600160a060020a038b166000908152600660205260409020546105969088611062565b600160a060020a038c166000908152600660205260409020556105cf565b6105be8688611062565b955068010000000000000000860292505b60006009541115610633576105e660095485611062565b600981905568010000000000000000870281151561060057fe5b600a805492909104909101905560095468010000000000000000870281151561062557fe5b048402830383039250610639565b60098490555b600160a060020a03891660009081526005602052604090205461065c9085611062565b600560008b600160a060020a0316600160a060020a03168152602001908152602001600020819055508284600a540203915081600760008b600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508a600160a060020a031689600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58e87604051808381526020018281526020019250505060405180910390a350919a9950505050505050505050565b600160a060020a0316600090815260076020908152604080832054600590925290912054600a54680100000000000000009102919091030490565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107e55780601f106107ba576101008083540402835291602001916107e5565b820191906000526020600020905b8154815290600101906020018083116107c857829003601f168201915b505050505081565b60008080806107fd85600a610fa1565b92506108098584610fb8565b915061081482610fca565b95945050505050565b60095490565b600080600080600954851115151561083a57600080fd5b61084385611078565b925061085083600a610fa1565b91506108148383610fb8565b600c5460ff1681565b601281565b600b6020526000908152604090205460ff1681565b33600090815260086020526040812054819060ff1615156108a6573332146108a657600080fd5b60006108b260016109fa565b116108bc57600080fd5b3391506108c960006109fa565b600160a060020a038316600081815260076020908152604080832080546801000000000000000087020190556006909152808220805490839055905193019350909183156108fc0291849190818181858888f19350505050158015610932573d6000803e3d6000fd5b50604080518281529051600160a060020a038416917fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc919081900360200190a25050565b60008060008060095460001415610994576414f46b040093506109c4565b6109a5670de0b6b3a7640000611078565b92506109b283600a610fa1565b91506109be8383610fb8565b90508093505b50505090565b600454600160a060020a031633146109e157600080fd5b600160a060020a03166000526008602052565b60025481565b60003382610a1057610a0b81610724565b610a34565b600160a060020a038116600090815260066020526040902054610a3282610724565b015b91505b50919050565b303190565b600160a060020a031660009081526005602052604090205490565b60008060008060095460001415610a7b5764199c82cc0093506109c4565b610a8c670de0b6b3a7640000611078565b9250610a9983600a610fa1565b91506109be8383611062565b6000610ab033610a42565b905090565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107e55780601f106107ba576101008083540402835291602001916107e5565b600454600160a060020a03163314610b2657600080fd5b600c805460ff19169055565b6000806000610b3f610aa5565b11610b4957600080fd5b3360009081526008602052604090205460ff161515610b6e57333214610b6e57600080fd5b5033600081815260056020526040902054831115610b8b57600080fd5b6000610b9760016109fa565b1115610ba557610ba561087f565b600a8054600160a060020a0383811660008181526007602090815260408083208054968b0290960390955594549289168152838120805493890290930190925581526005909252902054610bf99084610fb8565b600160a060020a038083166000908152600560205260408082209390935590861681522054610c289084611062565b600160a060020a0380861660008181526005602090815260409182902094909455805187815290519193928516927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b60006127103411610c9957600080fd5b349050600954680100000000000000008202811515610cb457fe5b600a805492909104909101905550565b336000908152600860205260408120548190819081908190819060ff161515610cf357333214610cf357600080fd5b6000610cfd610aa5565b11610d0757600080fd5b33600081815260056020526040902054909650871115610d2657600080fd5b869450610d3285611078565b9350610d3f84600a610fa1565b9250610d4b8484610fb8565b9150610d5960095486610fb8565b600955600160a060020a038616600090815260056020526040902054610d7f9086610fb8565b600160a060020a038716600090815260056020908152604080832093909355600a5460079091529181208054928802680100000000000000008602019283900390556009549192501015610df557610df1600a54600954680100000000000000008602811515610deb57fe5b04611062565b600a555b60408051868152602081018490528151600160a060020a038916927fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139928290030190a250505050505050565b33600090815260086020526040812054819060ff161515610e6857333214610e6857600080fd5b50503360008181526005602052604081205490811115610e8b57610e8b81610cc4565b610e9361087f565b5050565b3360009081526008602052604081205460ff161515610ebc57333214610ebc57600080fd5b610a373483610470565b336000908152600860205260408120548190819060ff161515610eef57333214610eef57600080fd5b6000610efb60016109fa565b11610f0557600080fd5b610f0f60006109fa565b33600081815260076020908152604080832080546801000000000000000087020190556006909152812080549082905590920194509250610f51908490610470565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab36153264588483604051808381526020018281526020019250505060405180910390a2505050565b6000808284811515610faf57fe5b04949350505050565b600082821115610fc457fe5b50900390565b6009546000906c01431e0fae6d7217caa00000009082906402540be40061104f611049730380d4bd8a8678c1bb542c80deb4800000000000880268056bc75e2d631000006002860a02017005e0a1fd2712875988becaad0000000000850201780197d4df19d605767337e9f14d3eec8920e400000000000000016110e4565b85610fb8565b81151561105857fe5b0403949350505050565b60008282018381101561107157fe5b9392505050565b600954600090670de0b6b3a76400008381019181019083906110d16414f46b04008285046402540be40002018702600283670de0b6b3a763ffff1982890a8b900301046402540be400028115156110cb57fe5b04610fb8565b8115156110da57fe5b0495945050505050565b80600260018201045b81811015610a3757809150600281828581151561110657fe5b040181151561111157fe5b0490506110ed5600a165627a7a723058201ed8ed621325bd22c4ae6446e939b46d1aa0223556fb79f745a7687ff35093530029

Deployed Bytecode

0x6080604052600436106101475763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b811461017a57806306fdde03146101ad57806310d0ffdd1461023757806318160ddd1461024f578063226093731461026457806327defa1f1461027c578063313ce567146102a5578063392efb52146102d05780633ccfd60b146102e85780634b750334146102ff5780634e9de8281461031457806356d399e814610335578063688abbf71461034a5780636b2f46321461036457806370a08231146103795780638620410b1461039a578063949e8acd146103af57806395d89b41146103c4578063a8e04f34146103d9578063a9059cbb146103ee578063ca970bac14610412578063e4849b321461041a578063e9fad8ee14610432578063f088d54714610447578063fdb5a03e1461045b575b3360009081526008602052604090205460ff16151561016c5733321461016c57600080fd5b610177346000610470565b50005b34801561018657600080fd5b5061019b600160a060020a0360043516610724565b60408051918252519081900360200190f35b3480156101b957600080fd5b506101c261075f565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101fc5781810151838201526020016101e4565b50505050905090810190601f1680156102295780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561024357600080fd5b5061019b6004356107ed565b34801561025b57600080fd5b5061019b61081d565b34801561027057600080fd5b5061019b600435610823565b34801561028857600080fd5b5061029161085c565b604080519115158252519081900360200190f35b3480156102b157600080fd5b506102ba610865565b6040805160ff9092168252519081900360200190f35b3480156102dc57600080fd5b5061029160043561086a565b3480156102f457600080fd5b506102fd61087f565b005b34801561030b57600080fd5b5061019b610976565b34801561032057600080fd5b506102fd600160a060020a03600435166109ca565b34801561034157600080fd5b5061019b6109f4565b34801561035657600080fd5b5061019b60043515156109fa565b34801561037057600080fd5b5061019b610a3d565b34801561038557600080fd5b5061019b600160a060020a0360043516610a42565b3480156103a657600080fd5b5061019b610a5d565b3480156103bb57600080fd5b5061019b610aa5565b3480156103d057600080fd5b506101c2610ab5565b3480156103e557600080fd5b506102fd610b0f565b3480156103fa57600080fd5b50610291600160a060020a0360043516602435610b32565b6102fd610c89565b34801561042657600080fd5b506102fd600435610cc4565b34801561043e57600080fd5b506102fd610e41565b61019b600160a060020a0360043516610e97565b34801561046757600080fd5b506102fd610ec6565b33600090815260036020526040812054819081908190819081908190819081908b9060ff1615156104ab57600c5460ff16156104ab57600080fd5b3398506104b98c600a610fa1565b97506104c6886003610fa1565b96506104d28888610fb8565b95506104de8c89610fb8565b94506104e985610fca565b9350680100000000000000008602925060008411801561051357506009546105118582611062565b115b151561051e57600080fd5b600160a060020a038b1615801590610548575088600160a060020a03168b600160a060020a031614155b801561056e5750600254600160a060020a038c1660009081526005602052604090205410155b156105b457600160a060020a038b166000908152600660205260409020546105969088611062565b600160a060020a038c166000908152600660205260409020556105cf565b6105be8688611062565b955068010000000000000000860292505b60006009541115610633576105e660095485611062565b600981905568010000000000000000870281151561060057fe5b600a805492909104909101905560095468010000000000000000870281151561062557fe5b048402830383039250610639565b60098490555b600160a060020a03891660009081526005602052604090205461065c9085611062565b600560008b600160a060020a0316600160a060020a03168152602001908152602001600020819055508284600a540203915081600760008b600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508a600160a060020a031689600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58e87604051808381526020018281526020019250505060405180910390a350919a9950505050505050505050565b600160a060020a0316600090815260076020908152604080832054600590925290912054600a54680100000000000000009102919091030490565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107e55780601f106107ba576101008083540402835291602001916107e5565b820191906000526020600020905b8154815290600101906020018083116107c857829003601f168201915b505050505081565b60008080806107fd85600a610fa1565b92506108098584610fb8565b915061081482610fca565b95945050505050565b60095490565b600080600080600954851115151561083a57600080fd5b61084385611078565b925061085083600a610fa1565b91506108148383610fb8565b600c5460ff1681565b601281565b600b6020526000908152604090205460ff1681565b33600090815260086020526040812054819060ff1615156108a6573332146108a657600080fd5b60006108b260016109fa565b116108bc57600080fd5b3391506108c960006109fa565b600160a060020a038316600081815260076020908152604080832080546801000000000000000087020190556006909152808220805490839055905193019350909183156108fc0291849190818181858888f19350505050158015610932573d6000803e3d6000fd5b50604080518281529051600160a060020a038416917fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc919081900360200190a25050565b60008060008060095460001415610994576414f46b040093506109c4565b6109a5670de0b6b3a7640000611078565b92506109b283600a610fa1565b91506109be8383610fb8565b90508093505b50505090565b600454600160a060020a031633146109e157600080fd5b600160a060020a03166000526008602052565b60025481565b60003382610a1057610a0b81610724565b610a34565b600160a060020a038116600090815260066020526040902054610a3282610724565b015b91505b50919050565b303190565b600160a060020a031660009081526005602052604090205490565b60008060008060095460001415610a7b5764199c82cc0093506109c4565b610a8c670de0b6b3a7640000611078565b9250610a9983600a610fa1565b91506109be8383611062565b6000610ab033610a42565b905090565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107e55780601f106107ba576101008083540402835291602001916107e5565b600454600160a060020a03163314610b2657600080fd5b600c805460ff19169055565b6000806000610b3f610aa5565b11610b4957600080fd5b3360009081526008602052604090205460ff161515610b6e57333214610b6e57600080fd5b5033600081815260056020526040902054831115610b8b57600080fd5b6000610b9760016109fa565b1115610ba557610ba561087f565b600a8054600160a060020a0383811660008181526007602090815260408083208054968b0290960390955594549289168152838120805493890290930190925581526005909252902054610bf99084610fb8565b600160a060020a038083166000908152600560205260408082209390935590861681522054610c289084611062565b600160a060020a0380861660008181526005602090815260409182902094909455805187815290519193928516927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b60006127103411610c9957600080fd5b349050600954680100000000000000008202811515610cb457fe5b600a805492909104909101905550565b336000908152600860205260408120548190819081908190819060ff161515610cf357333214610cf357600080fd5b6000610cfd610aa5565b11610d0757600080fd5b33600081815260056020526040902054909650871115610d2657600080fd5b869450610d3285611078565b9350610d3f84600a610fa1565b9250610d4b8484610fb8565b9150610d5960095486610fb8565b600955600160a060020a038616600090815260056020526040902054610d7f9086610fb8565b600160a060020a038716600090815260056020908152604080832093909355600a5460079091529181208054928802680100000000000000008602019283900390556009549192501015610df557610df1600a54600954680100000000000000008602811515610deb57fe5b04611062565b600a555b60408051868152602081018490528151600160a060020a038916927fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139928290030190a250505050505050565b33600090815260086020526040812054819060ff161515610e6857333214610e6857600080fd5b50503360008181526005602052604081205490811115610e8b57610e8b81610cc4565b610e9361087f565b5050565b3360009081526008602052604081205460ff161515610ebc57333214610ebc57600080fd5b610a373483610470565b336000908152600860205260408120548190819060ff161515610eef57333214610eef57600080fd5b6000610efb60016109fa565b11610f0557600080fd5b610f0f60006109fa565b33600081815260076020908152604080832080546801000000000000000087020190556006909152812080549082905590920194509250610f51908490610470565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab36153264588483604051808381526020018281526020019250505060405180910390a2505050565b6000808284811515610faf57fe5b04949350505050565b600082821115610fc457fe5b50900390565b6009546000906c01431e0fae6d7217caa00000009082906402540be40061104f611049730380d4bd8a8678c1bb542c80deb4800000000000880268056bc75e2d631000006002860a02017005e0a1fd2712875988becaad0000000000850201780197d4df19d605767337e9f14d3eec8920e400000000000000016110e4565b85610fb8565b81151561105857fe5b0403949350505050565b60008282018381101561107157fe5b9392505050565b600954600090670de0b6b3a76400008381019181019083906110d16414f46b04008285046402540be40002018702600283670de0b6b3a763ffff1982890a8b900301046402540be400028115156110cb57fe5b04610fb8565b8115156110da57fe5b0495945050505050565b80600260018201045b81811015610a3757809150600281828581151561110657fe5b040181151561111157fe5b0490506110ed5600a165627a7a723058201ed8ed621325bd22c4ae6446e939b46d1aa0223556fb79f745a7687ff35093530029

Swarm Source

bzzr://1ed8ed621325bd22c4ae6446e939b46d1aa0223556fb79f745a7687ff3509353
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.