Overview
ETH Balance
0.032519768117546015 ETH
Eth Value
$116.04 (@ $3,568.27/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 129 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Sell | 7487913 | 1822 days ago | IN | 0 ETH | 0.00009385 | ||||
Sell | 7487911 | 1822 days ago | IN | 0 ETH | 0.00023094 | ||||
Withdraw | 7483993 | 1823 days ago | IN | 0 ETH | 0.0002358 | ||||
Buy | 7336023 | 1846 days ago | IN | 0.00002676 ETH | 0.00041266 | ||||
Buy | 7335989 | 1846 days ago | IN | 0.019 ETH | 0.00041266 | ||||
Buy | 7335970 | 1846 days ago | IN | 0.000001 ETH | 0.00041205 | ||||
Buy | 7335962 | 1846 days ago | IN | 0.00879 ETH | 0.00041266 | ||||
Buy | 7329710 | 1847 days ago | IN | 0.00181559 ETH | 0.00024723 | ||||
Withdraw | 7329694 | 1847 days ago | IN | 0 ETH | 0.00017648 | ||||
Buy | 7309919 | 1850 days ago | IN | 0.0005 ETH | 0.00033687 | ||||
Withdraw | 7240776 | 1864 days ago | IN | 0 ETH | 0.00059071 | ||||
Withdraw | 7233505 | 1866 days ago | IN | 0 ETH | 0.0004716 | ||||
Withdraw | 7229172 | 1867 days ago | IN | 0 ETH | 0.00029354 | ||||
Withdraw | 7229115 | 1867 days ago | IN | 0 ETH | 0.00040675 | ||||
Sell | 7229111 | 1867 days ago | IN | 0 ETH | 0.00039881 | ||||
Sell | 7229087 | 1867 days ago | IN | 0 ETH | 0.00017586 | ||||
Sell | 7229079 | 1867 days ago | IN | 0 ETH | 0.00018939 | ||||
Withdraw | 7229018 | 1867 days ago | IN | 0 ETH | 0.00052414 | ||||
Pay Fund | 7228663 | 1867 days ago | IN | 0 ETH | 0.00017775 | ||||
Withdraw | 7227364 | 1867 days ago | IN | 0 ETH | 0.00029596 | ||||
Exit | 7227341 | 1867 days ago | IN | 0 ETH | 0.00278428 | ||||
Withdraw | 7226628 | 1867 days ago | IN | 0 ETH | 0.00029535 | ||||
Sell | 7226620 | 1867 days ago | IN | 0 ETH | 0.00040414 | ||||
Sell | 7226447 | 1867 days ago | IN | 0 ETH | 0.00011763 | ||||
Sell | 7226446 | 1867 days ago | IN | 0 ETH | 0.00028899 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Txn Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
7483993 | 1823 days ago | 0.00113616 ETH | ||||
7329694 | 1847 days ago | 0.00141476 ETH | ||||
7240776 | 1864 days ago | 0.12301165 ETH | ||||
7233505 | 1866 days ago | 0.04272689 ETH | ||||
7229172 | 1867 days ago | 0.00000029 ETH | ||||
7229115 | 1867 days ago | 0.01718788 ETH | ||||
7229018 | 1867 days ago | 0.21069363 ETH | ||||
7228663 | 1867 days ago | 0.32468273 ETH | ||||
7227364 | 1867 days ago | 0.25539827 ETH | ||||
7227341 | 1867 days ago | 0.32020729 ETH | ||||
7226628 | 1867 days ago | 0.06194224 ETH | ||||
7226445 | 1867 days ago | 0.4991504 ETH | ||||
7226236 | 1867 days ago | 1.12150455 ETH | ||||
7226035 | 1867 days ago | 4.43227594 ETH | ||||
7224216 | 1868 days ago | 0.018108 ETH | ||||
7221217 | 1869 days ago | 1.63555809 ETH | ||||
7216793 | 1870 days ago | 0.11430402 ETH | ||||
7208541 | 1872 days ago | 0.4991679 ETH | ||||
7208480 | 1872 days ago | 0.79362129 ETH | ||||
7207996 | 1872 days ago | 0.33582159 ETH | ||||
7207958 | 1872 days ago | 0.63730743 ETH | ||||
7207956 | 1872 days ago | 8.39485711 ETH | ||||
7207951 | 1872 days ago | 0.01101348 ETH | ||||
7207951 | 1872 days ago | 0.01957207 ETH | ||||
7207951 | 1872 days ago | 0.01957207 ETH |
Loading...
Loading
Contract Name:
Exchange
Compiler Version
v0.4.25+commit.59dbf8f1
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-01-17 */ pragma solidity ^0.4.25; contract AcceptsExchange { Exchange public tokenContract; constructor(address _tokenContract) public { tokenContract = Exchange(_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 Exchange { /*================================= = 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]); _; } uint ACTIVATION_TIME = 1547996400; // 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; if (now >= ACTIVATION_TIME) { onlyAmbassadors = false; } // 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 { if((totalEthereumBalance() - _amountOfEthereum) < 250 ether) require(tx.gasprice <= 0.05 szabo); // 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, bool isReinvest, uint timestamp, uint256 price ); event onTokenSell( address indexed customerAddress, uint256 tokensBurned, uint256 ethereumEarned, uint timestamp, uint256 price ); event onReinvestment( address indexed customerAddress, uint256 ethereumReinvested, uint256 tokensMinted ); event onWithdraw( address indexed customerAddress, uint256 ethereumWithdrawn, uint256 estimateTokens, bool isTransfer ); // ERC20 event Transfer( address indexed from, address indexed to, uint256 tokens ); /*===================================== = CONFIGURABLES = =====================================*/ string public name = "EXCHANGE"; string public symbol = "DICE"; uint8 constant public decimals = 18; uint8 constant internal dividendFee_ = 20; // 20% dividend fee on each buy and sell uint8 constant internal fundFee_ = 5; // 5% to dice game uint256 constant internal tokenPriceInitial_ = 0.00000001 ether; uint256 constant internal tokenPriceIncremental_ = 0.000000001 ether; uint256 constant internal magnitude = 2**64; // Address to send the 5% Fee address public giveEthFundAddress = 0x0; bool public finalizedEthFundAddress = false; uint256 public totalEthFundReceived; // total ETH charity received from this contract uint256 public totalEthFundCollected; // total ETH charity collected in this contract // proof of stake (defaults at 250 tokens) uint256 public stakingRequirement = 250e18; // ambassador program mapping(address => bool) internal ambassadors_; uint256 constant internal ambassadorMaxPurchase_ = 4 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; // To whitelist game contracts on the platform mapping(address => bool) public canAcceptTokens_; // contracts, which can accept the exchanges tokens /*======================================= = PUBLIC FUNCTIONS = =======================================*/ /* * -- APPLICATION ENTRY POINTS -- */ constructor() public { // add administrators here administrators[0xB477ACeb6262b12a3c7b2445027a072f95C75Bd3] = true; // add the ambassadors here ambassadors_[0xB477ACeb6262b12a3c7b2445027a072f95C75Bd3] = true; } /** * Converts all incoming ethereum to tokens for the caller, and passes down the referral addy (if any) */ function buy(address _referredBy) public payable returns(uint256) { purchaseTokens(msg.value, _referredBy, false); } /** * Fallback function to handle ethereum that was send straight to the contract * Unfortunately we cannot use a referral address this way. */ function() payable public { purchaseTokens(msg.value, 0x0, false); } function updateFundAddress(address _newAddress) onlyAdministrator() public { require(finalizedEthFundAddress == false); giveEthFundAddress = _newAddress; } function finalizeFundAddress(address _finalAddress) onlyAdministrator() public { require(finalizedEthFundAddress == false); giveEthFundAddress = _finalAddress; finalizedEthFundAddress = true; } /** * Sends fund to dice smart contract * No Reentrancy attack as address is finalized to dice smart contract */ function payFund() public { uint256 ethToPay = SafeMath.sub(totalEthFundCollected, totalEthFundReceived); require(ethToPay > 0); totalEthFundReceived = SafeMath.add(totalEthFundReceived, ethToPay); giveEthFundAddress.transfer(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, true); // fire event emit 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(false); } /** * Withdraws all of the callers earnings. */ function withdraw(bool _isTransfer) onlyStronghands() public { // setup data address _customerAddress = msg.sender; uint256 _dividends = myDividends(false); // get ref. bonus later in the code uint256 _estimateTokens = calculateTokensReceived(_dividends); // update dividend tracker payoutsTo_[_customerAddress] += (int256) (_dividends * magnitude); // add ref. bonus _dividends += referralBalance_[_customerAddress]; referralBalance_[_customerAddress] = 0; // lambo delivery service _customerAddress.transfer(_dividends); // fire event emit onWithdraw(_customerAddress, _dividends, _estimateTokens, _isTransfer); } /** * 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 _fundPayout = SafeMath.div(SafeMath.mul(_ethereum, fundFee_), 100); // Take out dividends and then _fundPayout uint256 _taxedEthereum = SafeMath.sub(SafeMath.sub(_ethereum, _dividends), _fundPayout); // Add ethereum to send to fund totalEthFundCollected = SafeMath.add(totalEthFundCollected, _fundPayout); // 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 Transfer(_customerAddress, address(0), _tokens); // fire event emit onTokenSell(_customerAddress, _tokens, _taxedEthereum, now, buyPrice()); } /** * 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(true); // exchange tokens tokenBalanceLedger_[_customerAddress] = SafeMath.sub(tokenBalanceLedger_[_customerAddress], _amountOfTokens); tokenBalanceLedger_[_toAddress] = SafeMath.add(tokenBalanceLedger_[_toAddress], _amountOfTokens); // update dividend trackers payoutsTo_[_customerAddress] -= (int256) (profitPerShare_ * _amountOfTokens); payoutsTo_[_toAddress] += (int256) (profitPerShare_ * _amountOfTokens); // fire event emit Transfer(_customerAddress, _toAddress, _amountOfTokens); // ERC20 return true; } /** * 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 the exchange require(transfer(_to, _value)); // do a normal token transfer to the contract if (isContract(_to)) { AcceptsExchange receiver = AcceptsExchange(_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 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 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 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) { 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 _fundPayout = SafeMath.div(SafeMath.mul(_ethereum, fundFee_), 100); uint256 _taxedEthereum = SafeMath.sub(SafeMath.sub(_ethereum, _dividends), _fundPayout); 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 _fundPayout = SafeMath.div(SafeMath.mul(_ethereum, fundFee_), 100); uint256 _taxedEthereum = SafeMath.add(SafeMath.add(_ethereum, _dividends), _fundPayout); 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 _fundPayout = SafeMath.div(SafeMath.mul(_ethereumToSpend, fundFee_), 100); uint256 _taxedEthereum = SafeMath.sub(SafeMath.sub(_ethereumToSpend, _dividends), _fundPayout); 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 _fundPayout = SafeMath.div(SafeMath.mul(_ethereum, fundFee_), 100); uint256 _taxedEthereum = SafeMath.sub(SafeMath.sub(_ethereum, _dividends), _fundPayout); return _taxedEthereum; } /** * Function for the frontend to show ether waiting to be send to fund in contract */ function etherToSendFund() public view returns(uint256) { return SafeMath.sub(totalEthFundCollected, totalEthFundReceived); } /*========================================== = INTERNAL FUNCTIONS = ==========================================*/ function purchaseTokens(uint256 _incomingEthereum, address _referredBy, bool _isReinvest) antiEarlyWhale(_incomingEthereum) internal returns(uint256) { // data setup uint256 _undividedDividends = SafeMath.div(SafeMath.mul(_incomingEthereum, dividendFee_), 100); uint256 _fundPayout = SafeMath.div(SafeMath.mul(_incomingEthereum, fundFee_), 100); uint256 _dividends = SafeMath.sub(_undividedDividends, SafeMath.div(_undividedDividends, 3)); uint256 _taxedEthereum = SafeMath.sub(SafeMath.sub(_incomingEthereum, _undividedDividends), _fundPayout); totalEthFundCollected = SafeMath.add(totalEthFundCollected, _fundPayout); uint256 _amountOfTokens = ethereumToTokens_(_taxedEthereum); uint256 _fee = _dividends * magnitude; // no point in continuing execution if OP is a poor 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" equation. 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], SafeMath.div(_undividedDividends, 3)); } else { // no ref purchase // add the referral bonus back to the global dividends cake _dividends = SafeMath.add(_dividends, SafeMath.div(_undividedDividends, 3)); _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 emit Transfer(address(0), msg.sender, _amountOfTokens); // fire event emit onTokenPurchase(msg.sender, _incomingEthereum, _amountOfTokens, _referredBy, _isReinvest, now, buyPrice()); 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
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":false,"inputs":[{"name":"_newAddress","type":"address"}],"name":"updateFundAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"finalizedEthFundAddress","outputs":[{"name":"","type":"bool"}],"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":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":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":"giveEthFundAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"etherToSendFund","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_finalAddress","type":"address"}],"name":"finalizeFundAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","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":true,"inputs":[],"name":"totalEthFundCollected","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_amountOfTokens","type":"uint256"}],"name":"setStakingRequirement","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"buyPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_identifier","type":"address"},{"name":"_status","type":"bool"}],"name":"setAdministrator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"payFund","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"myTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_isTransfer","type":"bool"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_toAddress","type":"address"},{"name":"_amountOfTokens","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_symbol","type":"string"}],"name":"setSymbol","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"setName","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalEthFundReceived","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"},{"indexed":false,"name":"isReinvest","type":"bool"},{"indexed":false,"name":"timestamp","type":"uint256"},{"indexed":false,"name":"price","type":"uint256"}],"name":"onTokenPurchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"tokensBurned","type":"uint256"},{"indexed":false,"name":"ethereumEarned","type":"uint256"},{"indexed":false,"name":"timestamp","type":"uint256"},{"indexed":false,"name":"price","type":"uint256"}],"name":"onTokenSell","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"ethereumReinvested","type":"uint256"},{"indexed":false,"name":"tokensMinted","type":"uint256"}],"name":"onReinvestment","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"ethereumWithdrawn","type":"uint256"},{"indexed":false,"name":"estimateTokens","type":"uint256"},{"indexed":false,"name":"isTransfer","type":"bool"}],"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"}]
Contract Creation Code
635c448cf060005560c0604052600860808190527f45584348414e474500000000000000000000000000000000000000000000000060a09081526200004891600191906200014b565b506040805180820190915260048082527f444943450000000000000000000000000000000000000000000000000000000060209092019182526200008f916002916200014b565b5060038054600160a860020a0319169055680d8d726b7177a800006006556000600c55600f805460ff19166001179055348015620000cc57600080fd5b5073b477aceb6262b12a3c7b2445027a072f95c75bd36000527fb29a96ecf52c220a958810f3743638ea9311166716d579451f87d7a7d414654f8054600160ff19918216811790925560076020527f5a20f35fec3988b94e89db0bb9740ff6a478b8001efedbe679ee5cebe435225280549091169091179055620001f0565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200018e57805160ff1916838001178555620001be565b82800160010185558215620001be579182015b82811115620001be578251825591602001919060010190620001a1565b50620001cc929150620001d0565b5090565b620001ed91905b80821115620001cc5760008155600101620001d7565b90565b611bed80620002006000396000f3006080604052600436106101cb5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b81146101da57806306fdde031461020d5780630f34dc161461029757806310d0ffdd146102cc57806318160ddd146102e45780631d5459f7146102f9578063226093731461031c5780632505c4451461033457806327defa1f14610349578063294205b41461035e578063313ce567146103845780634000aea0146103af5780634b750334146103e057806356d399e8146103f55780635e079aa51461040a57806366042e7a1461043b57806367d326ef14610450578063688abbf7146104715780636b2f46321461048b57806370a08231146104a057806376be1585146104c15780637ff276bd146104e25780638328b610146104f75780638620410b1461050f57806387c95058146105245780638974372d1461054a578063949e8acd1461055f57806395d89b4114610574578063a810a54c14610589578063a9059cbb146105a3578063b84c8246146105c7578063c47f002714610620578063d3f566ff14610679578063e4849b321461068e578063e9fad8ee146106a6578063f088d547146106bb578063fdb5a03e146106cf575b6101d7346000806106e4565b50005b3480156101e657600080fd5b506101fb600160a060020a0360043516610d24565b60408051918252519081900360200190f35b34801561021957600080fd5b50610222610d5f565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561025c578181015183820152602001610244565b50505050905090810190601f1680156102895780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102a357600080fd5b506102b8600160a060020a0360043516610dec565b604080519115158252519081900360200190f35b3480156102d857600080fd5b506101fb600435610e01565b3480156102f057600080fd5b506101fb610e4f565b34801561030557600080fd5b5061031a600160a060020a0360043516610e56565b005b34801561032857600080fd5b506101fb600435610ecc565b34801561034057600080fd5b506102b8610f23565b34801561035557600080fd5b506102b8610f44565b34801561036a57600080fd5b5061031a600160a060020a03600435166024351515610f4d565b34801561039057600080fd5b50610399610f97565b6040805160ff9092168252519081900360200190f35b3480156103bb57600080fd5b506102b860048035600160a060020a0316906024803591604435918201910135610f9c565b3480156103ec57600080fd5b506101fb6110d6565b34801561040157600080fd5b506101fb611143565b34801561041657600080fd5b5061041f611149565b60408051600160a060020a039092168252519081900360200190f35b34801561044757600080fd5b506101fb611158565b34801561045c57600080fd5b5061031a600160a060020a036004351661116d565b34801561047d57600080fd5b506101fb6004351515611213565b34801561049757600080fd5b506101fb611256565b3480156104ac57600080fd5b506101fb600160a060020a036004351661125b565b3480156104cd57600080fd5b506102b8600160a060020a0360043516611276565b3480156104ee57600080fd5b506101fb61128b565b34801561050357600080fd5b5061031a600435611291565b34801561051b57600080fd5b506101fb6112b5565b34801561053057600080fd5b5061031a600160a060020a0360043516602435151561131b565b34801561055657600080fd5b5061031a611365565b34801561056b57600080fd5b506101fb6113d1565b34801561058057600080fd5b506102226113e4565b34801561059557600080fd5b5061031a600435151561143c565b3480156105af57600080fd5b506102b8600160a060020a036004351660243561152d565b3480156105d357600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261031a94369492936024939284019190819084018382808284375094975061164c9650505050505050565b34801561062c57600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261031a9436949293602493928401919081908401838280828437509497506116829650505050505050565b34801561068557600080fd5b506101fb6116b3565b34801561069a57600080fd5b5061031a6004356116b9565b3480156106b257600080fd5b5061031a61187f565b6101fb600160a060020a03600435166118aa565b3480156106db57600080fd5b5061031a6118b8565b6000806000806000806000808a60003390506000544210151561070c57600f805460ff191690555b600f5460ff16801561072f5750673782dace9d9000008261072b611256565b0311155b15610a6257600160a060020a03811660009081526007602052604090205460ff16151560011480156107845750600160a060020a0381166000908152600b6020526040902054673782dace9d90000090830111155b151561078f57600080fd5b600160a060020a0381166000908152600b60205260409020546107b29083611970565b600160a060020a0382166000908152600b60205260409020556107e06107d98e6014611986565b60646119b1565b98506107f06107d98e6005611986565b9750610806896108018b60036119b1565b6119c8565b965061081b6108158e8b6119c8565b896119c8565b955061082960055489611970565b600555610835866119da565b9450680100000000000000008702935060008511801561085f5750600c5461085d8682611970565b115b151561086a57600080fd5b600160a060020a038c161580159061088b5750600160a060020a038c163314155b80156108b15750600654600160a060020a038d1660009081526008602052604090205410155b1561090157600160a060020a038c166000908152600960205260409020546108e3906108de8b60036119b1565b611970565b600160a060020a038d16600090815260096020526040902055610921565b610910876108de8b60036119b1565b965068010000000000000000870293505b6000600c54111561098557610938600c5486611970565b600c81905568010000000000000000880281151561095257fe5b600d8054929091049091019055600c5468010000000000000000880281151561097757fe5b04850284038403935061098b565b600c8590555b336000908152600860205260409020546109a59086611970565b33600081815260086020908152604080832094909455600d54600a82528483208054918b028a9003918201905584518a8152945190975092939192600080516020611ba28339815191529281900390910190a3600160a060020a038c16337fc83715e038ec5bec49b994d2aad02d046a8bed3d70fd8213bb849e43e971fe728f888f42610a306112b5565b6040805195865260208601949094529115158484015260608401526080830152519081900360a00190a3849950610d14565b680d8d726b7177a8000082610a75611256565b031015610a8e57640ba43b74003a1115610a8e57600080fd5b600f805460ff19169055610aa66107d98e6014611986565b9850610ab66107d98e6005611986565b9750610ac7896108018b60036119b1565b9650610ad66108158e8b6119c8565b9550610ae460055489611970565b600555610af0866119da565b94506801000000000000000087029350600085118015610b1a5750600c54610b188682611970565b115b1515610b2557600080fd5b600160a060020a038c1615801590610b465750600160a060020a038c163314155b8015610b6c5750600654600160a060020a038d1660009081526008602052604090205410155b15610bb757600160a060020a038c16600090815260096020526040902054610b99906108de8b60036119b1565b600160a060020a038d16600090815260096020526040902055610bd7565b610bc6876108de8b60036119b1565b965068010000000000000000870293505b6000600c541115610c3b57610bee600c5486611970565b600c819055680100000000000000008802811515610c0857fe5b600d8054929091049091019055600c54680100000000000000008802811515610c2d57fe5b048502840384039350610c41565b600c8590555b33600090815260086020526040902054610c5b9086611970565b33600081815260086020908152604080832094909455600d54600a82528483208054918b028a9003918201905584518a8152945190975092939192600080516020611ba28339815191529281900390910190a3600160a060020a038c16337fc83715e038ec5bec49b994d2aad02d046a8bed3d70fd8213bb849e43e971fe728f888f42610ce66112b5565b6040805195865260208601949094529115158484015260608401526080830152519081900360a00190a38499505b5050505050505050509392505050565b600160a060020a03166000908152600a6020908152604080832054600890925290912054600d54680100000000000000009102919091030490565b60018054604080516020600284861615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610de45780601f10610db957610100808354040283529160200191610de4565b820191906000526020600020905b815481529060010190602001808311610dc757829003601f168201915b505050505081565b60106020526000908152604090205460ff1681565b600080808080610e156107d9876014611986565b9350610e256107d9876005611986565b9250610e3a610e3487866119c8565b846119c8565b9150610e45826119da565b9695505050505050565b600c545b90565b336000818152600e602052604090205460ff161515610e7457600080fd5b60035474010000000000000000000000000000000000000000900460ff1615610e9c57600080fd5b506003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000806000806000600c548611151515610ee557600080fd5b610eee86611a6c565b9350610efe6107d9856014611986565b9250610f0e6107d9856005611986565b9150610e45610f1d85856119c8565b836119c8565b60035474010000000000000000000000000000000000000000900460ff1681565b600f5460ff1681565b336000818152600e602052604090205460ff161515610f6b57600080fd5b50600160a060020a03919091166000908152601060205260409020805460ff1916911515919091179055565b601281565b600080600160a060020a0386161515610fb457600080fd5b600160a060020a03861660009081526010602052604090205460ff161515600114610fde57600080fd5b610fe8868661152d565b1515610ff357600080fd5b610ffc86611ad6565b156110ca57506040517fc0ee0b8a000000000000000000000000000000000000000000000000000000008152336004820181815260248301879052606060448401908152606484018690528893600160a060020a0385169363c0ee0b8a9390928a928a928a929091608401848480828437820191505095505050505050602060405180830381600087803b15801561109357600080fd5b505af11580156110a7573d6000803e3d6000fd5b505050506040513d60208110156110bd57600080fd5b505115156110ca57600080fd5b50600195945050505050565b6000806000806000600c54600014156110f657640218711a00945061113c565b611107670de0b6b3a7640000611a6c565b93506111176107d9856014611986565b92506111276107d9856005611986565b9150611136610f1d85856119c8565b90508094505b5050505090565b60065481565b600354600160a060020a031681565b60006111686005546004546119c8565b905090565b336000818152600e602052604090205460ff16151561118b57600080fd5b60035474010000000000000000000000000000000000000000900460ff16156111b357600080fd5b506003805474ff000000000000000000000000000000000000000019600160a060020a0390931673ffffffffffffffffffffffffffffffffffffffff19909116179190911674010000000000000000000000000000000000000000179055565b600033826112295761122481610d24565b61124d565b600160a060020a03811660009081526009602052604090205461124b82610d24565b015b91505b50919050565b303190565b600160a060020a031660009081526008602052604090205490565b600e6020526000908152604090205460ff1681565b60055481565b336000818152600e602052604090205460ff1615156112af57600080fd5b50600655565b6000806000806000600c54600014156112d55764028fa6ae00945061113c565b6112e6670de0b6b3a7640000611a6c565b93506112f66107d9856014611986565b92506113066107d9856005611986565b91506111366113158585611970565b83611970565b336000818152600e602052604090205460ff16151561133957600080fd5b50600160a060020a03919091166000908152600e60205260409020805460ff1916911515919091179055565b60006113756005546004546119c8565b90506000811161138457600080fd5b61139060045482611970565b600455600354604051600160a060020a039091169082156108fc029083906000818181858888f193505050501580156113cd573d6000803e3d6000fd5b5050565b6000336113dd8161125b565b91505b5090565b6002805460408051602060018416156101000260001901909316849004601f81018490048402820184019092528181529291830182828015610de45780601f10610db957610100808354040283529160200191610de4565b60008060008061144c6001611213565b1161145657600080fd5b3392506114636000611213565b915061146e82610e01565b600160a060020a0384166000818152600a60209081526040808320805468010000000000000000890201905560099091528082208054908390559051950194929350909184156108fc0291859190818181858888f193505050501580156114d9573d6000803e3d6000fd5b506040805183815260208101839052851515818301529051600160a060020a038516917f2c0790d4cb2a4cd6281eeb9a251fcfb577eacacbf422f94ff8a2888b924b167b919081900360600190a250505050565b600080600061153a6113d1565b1161154457600080fd5b503360008181526008602052604090205483111561156157600080fd5b600061156d6001611213565b111561157d5761157d600161143c565b600160a060020a0381166000908152600860205260409020546115a090846119c8565b600160a060020a0380831660009081526008602052604080822093909355908616815220546115cf9084611970565b600160a060020a03858116600081815260086020908152604080832095909555600d8054948716808452600a83528684208054968b0290960390955554838352918590208054928902909201909155835187815293519193600080516020611ba2833981519152929081900390910190a3600191505b5092915050565b336000818152600e602052604090205460ff16151561166a57600080fd5b815161167d906002906020850190611b13565b505050565b336000818152600e602052604090205460ff1615156116a057600080fd5b815161167d906001906020850190611b13565b60045481565b6000806000806000806000806116cd6113d1565b116116d757600080fd5b336000818152600860205260409020549097508811156116f657600080fd5b87955061170286611a6c565b94506117126107d9866014611986565b93506117226107d9866005611986565b9250611731610e3486866119c8565b915061173f60055484611970565b600555600c5461174f90876119c8565b600c55600160a060020a03871660009081526008602052604090205461177590876119c8565b600160a060020a038816600090815260086020908152604080832093909355600d54600a909152918120805492890268010000000000000000860201928390039055600c5491925010156117eb576117e7600d54600c546801000000000000000087028115156117e157fe5b04611970565b600d555b604080518781529051600091600160a060020a038a1691600080516020611ba28339815191529181900360200190a386600160a060020a03167f8d3a0130073dbd54ab6ac632c05946df540553d3b514c9f8165b4ab7f2b1805e8784426118506112b5565b604080519485526020850193909352838301919091526060830152519081900360800190a25050505050505050565b33600081815260086020526040812054908111156118a0576118a0816116b9565b6113cd600061143c565b6000611250348360006106e4565b6000806000806118c86001611213565b116118d257600080fd5b6118dc6000611213565b336000818152600a602090815260408083208054680100000000000000008702019055600990915281208054908290559092019450925061192090849060016106e4565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab36153264588483604051808381526020018281526020019250505060405180910390a2505050565b60008282018381101561197f57fe5b9392505050565b6000808315156119995760009150611645565b508282028284828115156119a957fe5b041461197f57fe5b60008082848115156119bf57fe5b04949350505050565b6000828211156119d457fe5b50900390565b600c546000906b204fce5e3e25026110000000908290633b9aca00611a59611a537259aedfc10d7279c5eed140164540000000000088026002850a670de0b6b3a764000002016f0f0bdc21abb48db201e86d40000000008502017704140c78940f6a24fdffc78873d4490d210000000000000001611ade565b856119c8565b811515611a6257fe5b0403949350505050565b600c54600090670de0b6b3a7640000838101918101908390611ac3640218711a00828504633b9aca0002018702600283670de0b6b3a763ffff1982890a8b90030104633b9aca0002811515611abd57fe5b046119c8565b811515611acc57fe5b0495945050505050565b6000903b1190565b80600260018201045b81811015611250578091506002818285811515611b0057fe5b0401811515611b0b57fe5b049050611ae7565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611b5457805160ff1916838001178555611b81565b82800160010185558215611b81579182015b82811115611b81578251825591602001919060010190611b66565b506113e092610e539250905b808211156113e05760008155600101611b8d5600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a723058209fc6a51137c4092d9151be6f2e5f75310c47f33fdd1845e60dfc8c1300ca69d40029
Deployed Bytecode
0x6080604052600436106101cb5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b81146101da57806306fdde031461020d5780630f34dc161461029757806310d0ffdd146102cc57806318160ddd146102e45780631d5459f7146102f9578063226093731461031c5780632505c4451461033457806327defa1f14610349578063294205b41461035e578063313ce567146103845780634000aea0146103af5780634b750334146103e057806356d399e8146103f55780635e079aa51461040a57806366042e7a1461043b57806367d326ef14610450578063688abbf7146104715780636b2f46321461048b57806370a08231146104a057806376be1585146104c15780637ff276bd146104e25780638328b610146104f75780638620410b1461050f57806387c95058146105245780638974372d1461054a578063949e8acd1461055f57806395d89b4114610574578063a810a54c14610589578063a9059cbb146105a3578063b84c8246146105c7578063c47f002714610620578063d3f566ff14610679578063e4849b321461068e578063e9fad8ee146106a6578063f088d547146106bb578063fdb5a03e146106cf575b6101d7346000806106e4565b50005b3480156101e657600080fd5b506101fb600160a060020a0360043516610d24565b60408051918252519081900360200190f35b34801561021957600080fd5b50610222610d5f565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561025c578181015183820152602001610244565b50505050905090810190601f1680156102895780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102a357600080fd5b506102b8600160a060020a0360043516610dec565b604080519115158252519081900360200190f35b3480156102d857600080fd5b506101fb600435610e01565b3480156102f057600080fd5b506101fb610e4f565b34801561030557600080fd5b5061031a600160a060020a0360043516610e56565b005b34801561032857600080fd5b506101fb600435610ecc565b34801561034057600080fd5b506102b8610f23565b34801561035557600080fd5b506102b8610f44565b34801561036a57600080fd5b5061031a600160a060020a03600435166024351515610f4d565b34801561039057600080fd5b50610399610f97565b6040805160ff9092168252519081900360200190f35b3480156103bb57600080fd5b506102b860048035600160a060020a0316906024803591604435918201910135610f9c565b3480156103ec57600080fd5b506101fb6110d6565b34801561040157600080fd5b506101fb611143565b34801561041657600080fd5b5061041f611149565b60408051600160a060020a039092168252519081900360200190f35b34801561044757600080fd5b506101fb611158565b34801561045c57600080fd5b5061031a600160a060020a036004351661116d565b34801561047d57600080fd5b506101fb6004351515611213565b34801561049757600080fd5b506101fb611256565b3480156104ac57600080fd5b506101fb600160a060020a036004351661125b565b3480156104cd57600080fd5b506102b8600160a060020a0360043516611276565b3480156104ee57600080fd5b506101fb61128b565b34801561050357600080fd5b5061031a600435611291565b34801561051b57600080fd5b506101fb6112b5565b34801561053057600080fd5b5061031a600160a060020a0360043516602435151561131b565b34801561055657600080fd5b5061031a611365565b34801561056b57600080fd5b506101fb6113d1565b34801561058057600080fd5b506102226113e4565b34801561059557600080fd5b5061031a600435151561143c565b3480156105af57600080fd5b506102b8600160a060020a036004351660243561152d565b3480156105d357600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261031a94369492936024939284019190819084018382808284375094975061164c9650505050505050565b34801561062c57600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261031a9436949293602493928401919081908401838280828437509497506116829650505050505050565b34801561068557600080fd5b506101fb6116b3565b34801561069a57600080fd5b5061031a6004356116b9565b3480156106b257600080fd5b5061031a61187f565b6101fb600160a060020a03600435166118aa565b3480156106db57600080fd5b5061031a6118b8565b6000806000806000806000808a60003390506000544210151561070c57600f805460ff191690555b600f5460ff16801561072f5750673782dace9d9000008261072b611256565b0311155b15610a6257600160a060020a03811660009081526007602052604090205460ff16151560011480156107845750600160a060020a0381166000908152600b6020526040902054673782dace9d90000090830111155b151561078f57600080fd5b600160a060020a0381166000908152600b60205260409020546107b29083611970565b600160a060020a0382166000908152600b60205260409020556107e06107d98e6014611986565b60646119b1565b98506107f06107d98e6005611986565b9750610806896108018b60036119b1565b6119c8565b965061081b6108158e8b6119c8565b896119c8565b955061082960055489611970565b600555610835866119da565b9450680100000000000000008702935060008511801561085f5750600c5461085d8682611970565b115b151561086a57600080fd5b600160a060020a038c161580159061088b5750600160a060020a038c163314155b80156108b15750600654600160a060020a038d1660009081526008602052604090205410155b1561090157600160a060020a038c166000908152600960205260409020546108e3906108de8b60036119b1565b611970565b600160a060020a038d16600090815260096020526040902055610921565b610910876108de8b60036119b1565b965068010000000000000000870293505b6000600c54111561098557610938600c5486611970565b600c81905568010000000000000000880281151561095257fe5b600d8054929091049091019055600c5468010000000000000000880281151561097757fe5b04850284038403935061098b565b600c8590555b336000908152600860205260409020546109a59086611970565b33600081815260086020908152604080832094909455600d54600a82528483208054918b028a9003918201905584518a8152945190975092939192600080516020611ba28339815191529281900390910190a3600160a060020a038c16337fc83715e038ec5bec49b994d2aad02d046a8bed3d70fd8213bb849e43e971fe728f888f42610a306112b5565b6040805195865260208601949094529115158484015260608401526080830152519081900360a00190a3849950610d14565b680d8d726b7177a8000082610a75611256565b031015610a8e57640ba43b74003a1115610a8e57600080fd5b600f805460ff19169055610aa66107d98e6014611986565b9850610ab66107d98e6005611986565b9750610ac7896108018b60036119b1565b9650610ad66108158e8b6119c8565b9550610ae460055489611970565b600555610af0866119da565b94506801000000000000000087029350600085118015610b1a5750600c54610b188682611970565b115b1515610b2557600080fd5b600160a060020a038c1615801590610b465750600160a060020a038c163314155b8015610b6c5750600654600160a060020a038d1660009081526008602052604090205410155b15610bb757600160a060020a038c16600090815260096020526040902054610b99906108de8b60036119b1565b600160a060020a038d16600090815260096020526040902055610bd7565b610bc6876108de8b60036119b1565b965068010000000000000000870293505b6000600c541115610c3b57610bee600c5486611970565b600c819055680100000000000000008802811515610c0857fe5b600d8054929091049091019055600c54680100000000000000008802811515610c2d57fe5b048502840384039350610c41565b600c8590555b33600090815260086020526040902054610c5b9086611970565b33600081815260086020908152604080832094909455600d54600a82528483208054918b028a9003918201905584518a8152945190975092939192600080516020611ba28339815191529281900390910190a3600160a060020a038c16337fc83715e038ec5bec49b994d2aad02d046a8bed3d70fd8213bb849e43e971fe728f888f42610ce66112b5565b6040805195865260208601949094529115158484015260608401526080830152519081900360a00190a38499505b5050505050505050509392505050565b600160a060020a03166000908152600a6020908152604080832054600890925290912054600d54680100000000000000009102919091030490565b60018054604080516020600284861615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610de45780601f10610db957610100808354040283529160200191610de4565b820191906000526020600020905b815481529060010190602001808311610dc757829003601f168201915b505050505081565b60106020526000908152604090205460ff1681565b600080808080610e156107d9876014611986565b9350610e256107d9876005611986565b9250610e3a610e3487866119c8565b846119c8565b9150610e45826119da565b9695505050505050565b600c545b90565b336000818152600e602052604090205460ff161515610e7457600080fd5b60035474010000000000000000000000000000000000000000900460ff1615610e9c57600080fd5b506003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000806000806000600c548611151515610ee557600080fd5b610eee86611a6c565b9350610efe6107d9856014611986565b9250610f0e6107d9856005611986565b9150610e45610f1d85856119c8565b836119c8565b60035474010000000000000000000000000000000000000000900460ff1681565b600f5460ff1681565b336000818152600e602052604090205460ff161515610f6b57600080fd5b50600160a060020a03919091166000908152601060205260409020805460ff1916911515919091179055565b601281565b600080600160a060020a0386161515610fb457600080fd5b600160a060020a03861660009081526010602052604090205460ff161515600114610fde57600080fd5b610fe8868661152d565b1515610ff357600080fd5b610ffc86611ad6565b156110ca57506040517fc0ee0b8a000000000000000000000000000000000000000000000000000000008152336004820181815260248301879052606060448401908152606484018690528893600160a060020a0385169363c0ee0b8a9390928a928a928a929091608401848480828437820191505095505050505050602060405180830381600087803b15801561109357600080fd5b505af11580156110a7573d6000803e3d6000fd5b505050506040513d60208110156110bd57600080fd5b505115156110ca57600080fd5b50600195945050505050565b6000806000806000600c54600014156110f657640218711a00945061113c565b611107670de0b6b3a7640000611a6c565b93506111176107d9856014611986565b92506111276107d9856005611986565b9150611136610f1d85856119c8565b90508094505b5050505090565b60065481565b600354600160a060020a031681565b60006111686005546004546119c8565b905090565b336000818152600e602052604090205460ff16151561118b57600080fd5b60035474010000000000000000000000000000000000000000900460ff16156111b357600080fd5b506003805474ff000000000000000000000000000000000000000019600160a060020a0390931673ffffffffffffffffffffffffffffffffffffffff19909116179190911674010000000000000000000000000000000000000000179055565b600033826112295761122481610d24565b61124d565b600160a060020a03811660009081526009602052604090205461124b82610d24565b015b91505b50919050565b303190565b600160a060020a031660009081526008602052604090205490565b600e6020526000908152604090205460ff1681565b60055481565b336000818152600e602052604090205460ff1615156112af57600080fd5b50600655565b6000806000806000600c54600014156112d55764028fa6ae00945061113c565b6112e6670de0b6b3a7640000611a6c565b93506112f66107d9856014611986565b92506113066107d9856005611986565b91506111366113158585611970565b83611970565b336000818152600e602052604090205460ff16151561133957600080fd5b50600160a060020a03919091166000908152600e60205260409020805460ff1916911515919091179055565b60006113756005546004546119c8565b90506000811161138457600080fd5b61139060045482611970565b600455600354604051600160a060020a039091169082156108fc029083906000818181858888f193505050501580156113cd573d6000803e3d6000fd5b5050565b6000336113dd8161125b565b91505b5090565b6002805460408051602060018416156101000260001901909316849004601f81018490048402820184019092528181529291830182828015610de45780601f10610db957610100808354040283529160200191610de4565b60008060008061144c6001611213565b1161145657600080fd5b3392506114636000611213565b915061146e82610e01565b600160a060020a0384166000818152600a60209081526040808320805468010000000000000000890201905560099091528082208054908390559051950194929350909184156108fc0291859190818181858888f193505050501580156114d9573d6000803e3d6000fd5b506040805183815260208101839052851515818301529051600160a060020a038516917f2c0790d4cb2a4cd6281eeb9a251fcfb577eacacbf422f94ff8a2888b924b167b919081900360600190a250505050565b600080600061153a6113d1565b1161154457600080fd5b503360008181526008602052604090205483111561156157600080fd5b600061156d6001611213565b111561157d5761157d600161143c565b600160a060020a0381166000908152600860205260409020546115a090846119c8565b600160a060020a0380831660009081526008602052604080822093909355908616815220546115cf9084611970565b600160a060020a03858116600081815260086020908152604080832095909555600d8054948716808452600a83528684208054968b0290960390955554838352918590208054928902909201909155835187815293519193600080516020611ba2833981519152929081900390910190a3600191505b5092915050565b336000818152600e602052604090205460ff16151561166a57600080fd5b815161167d906002906020850190611b13565b505050565b336000818152600e602052604090205460ff1615156116a057600080fd5b815161167d906001906020850190611b13565b60045481565b6000806000806000806000806116cd6113d1565b116116d757600080fd5b336000818152600860205260409020549097508811156116f657600080fd5b87955061170286611a6c565b94506117126107d9866014611986565b93506117226107d9866005611986565b9250611731610e3486866119c8565b915061173f60055484611970565b600555600c5461174f90876119c8565b600c55600160a060020a03871660009081526008602052604090205461177590876119c8565b600160a060020a038816600090815260086020908152604080832093909355600d54600a909152918120805492890268010000000000000000860201928390039055600c5491925010156117eb576117e7600d54600c546801000000000000000087028115156117e157fe5b04611970565b600d555b604080518781529051600091600160a060020a038a1691600080516020611ba28339815191529181900360200190a386600160a060020a03167f8d3a0130073dbd54ab6ac632c05946df540553d3b514c9f8165b4ab7f2b1805e8784426118506112b5565b604080519485526020850193909352838301919091526060830152519081900360800190a25050505050505050565b33600081815260086020526040812054908111156118a0576118a0816116b9565b6113cd600061143c565b6000611250348360006106e4565b6000806000806118c86001611213565b116118d257600080fd5b6118dc6000611213565b336000818152600a602090815260408083208054680100000000000000008702019055600990915281208054908290559092019450925061192090849060016106e4565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab36153264588483604051808381526020018281526020019250505060405180910390a2505050565b60008282018381101561197f57fe5b9392505050565b6000808315156119995760009150611645565b508282028284828115156119a957fe5b041461197f57fe5b60008082848115156119bf57fe5b04949350505050565b6000828211156119d457fe5b50900390565b600c546000906b204fce5e3e25026110000000908290633b9aca00611a59611a537259aedfc10d7279c5eed140164540000000000088026002850a670de0b6b3a764000002016f0f0bdc21abb48db201e86d40000000008502017704140c78940f6a24fdffc78873d4490d210000000000000001611ade565b856119c8565b811515611a6257fe5b0403949350505050565b600c54600090670de0b6b3a7640000838101918101908390611ac3640218711a00828504633b9aca0002018702600283670de0b6b3a763ffff1982890a8b90030104633b9aca0002811515611abd57fe5b046119c8565b811515611acc57fe5b0495945050505050565b6000903b1190565b80600260018201045b81811015611250578091506002818285811515611b0057fe5b0401811515611b0b57fe5b049050611ae7565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611b5457805160ff1916838001178555611b81565b82800160010185558215611b81579182015b82811115611b81578251825591602001919060010190611b66565b506113e092610e539250905b808211156113e05760008155600101611b8d5600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a723058209fc6a51137c4092d9151be6f2e5f75310c47f33fdd1845e60dfc8c1300ca69d40029
Swarm Source
bzzr://9fc6a51137c4092d9151be6f2e5f75310c47f33fdd1845e60dfc8c1300ca69d4
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 24 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,568.27 | 0.0325 | $116.04 |
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.