Overview
ETH Balance
0.337872703051976923 ETH
Eth Value
$1,113.92 (@ $3,296.87/ETH)Token Holdings
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 298 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Buy | 6454699 | 2268 days ago | IN | 0.004 ETH | 0.00007303 | ||||
Buy | 6374837 | 2281 days ago | IN | 0.004 ETH | 0.00010303 | ||||
Withdraw | 6350225 | 2285 days ago | IN | 0 ETH | 0.00021795 | ||||
Sell | 6344675 | 2286 days ago | IN | 0 ETH | 0.0001617 | ||||
Withdraw | 6330955 | 2288 days ago | IN | 0 ETH | 0.00017436 | ||||
Withdraw | 6327948 | 2289 days ago | IN | 0 ETH | 0.00026154 | ||||
Sell | 6324458 | 2290 days ago | IN | 0 ETH | 0.00032301 | ||||
Buy | 6314789 | 2291 days ago | IN | 0.3 ETH | 0.0025819 | ||||
Sell | 6310002 | 2292 days ago | IN | 0 ETH | 0.0005 | ||||
Sell | 6293414 | 2295 days ago | IN | 0 ETH | 0.00002348 | ||||
Withdraw | 6243642 | 2303 days ago | IN | 0 ETH | 0.00013077 | ||||
Sell | 6243631 | 2303 days ago | IN | 0 ETH | 0.0001615 | ||||
Withdraw | 6243626 | 2303 days ago | IN | 0 ETH | 0.00013077 | ||||
Withdraw | 6217012 | 2308 days ago | IN | 0 ETH | 0.00006886 | ||||
Withdraw | 6217009 | 2308 days ago | IN | 0 ETH | 0.00017436 | ||||
Withdraw | 6210962 | 2309 days ago | IN | 0 ETH | 0.00013077 | ||||
Sell | 6210955 | 2309 days ago | IN | 0 ETH | 0.0001615 | ||||
Withdraw | 6210939 | 2309 days ago | IN | 0 ETH | 0.00013077 | ||||
Withdraw | 6210639 | 2309 days ago | IN | 0 ETH | 0.00009149 | ||||
Sell | 6210636 | 2309 days ago | IN | 0 ETH | 0.00011305 | ||||
Withdraw | 6208972 | 2309 days ago | IN | 0 ETH | 0.00026154 | ||||
Withdraw | 6203280 | 2310 days ago | IN | 0 ETH | 0.00045912 | ||||
Withdraw | 6203280 | 2310 days ago | IN | 0 ETH | 0.00008718 | ||||
Withdraw | 6199800 | 2310 days ago | IN | 0 ETH | 0.00013077 | ||||
Sell | 6197681 | 2311 days ago | IN | 0 ETH | 0.00021585 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
6350225 | 2285 days ago | 0.13926992 ETH | ||||
6330955 | 2288 days ago | 0.04408089 ETH | ||||
6327948 | 2289 days ago | 0.13334767 ETH | ||||
6243642 | 2303 days ago | 0.00350705 ETH | ||||
6243626 | 2303 days ago | 0.00338551 ETH | ||||
6217009 | 2308 days ago | 0.00514625 ETH | ||||
6210962 | 2309 days ago | 0.01957765 ETH | ||||
6210939 | 2309 days ago | 0.00019748 ETH | ||||
6210639 | 2309 days ago | 0.0109823 ETH | ||||
6208972 | 2309 days ago | 0.02535584 ETH | ||||
6203280 | 2310 days ago | 0.19313804 ETH | ||||
6199800 | 2310 days ago | 0.0080068 ETH | ||||
6197674 | 2311 days ago | 0.01294579 ETH | ||||
6196793 | 2311 days ago | 0.02290492 ETH | ||||
6196183 | 2311 days ago | 0.21234432 ETH | ||||
6185477 | 2313 days ago | 0.01546314 ETH | ||||
6184695 | 2313 days ago | 0.000001 ETH | ||||
6183526 | 2313 days ago | 0.03657096 ETH | ||||
6182824 | 2313 days ago | 0.40762548 ETH | ||||
6182565 | 2313 days ago | 0.00713617 ETH | ||||
6182456 | 2313 days ago | 0.01143053 ETH | ||||
6182401 | 2313 days ago | 0.09966435 ETH | ||||
6182210 | 2313 days ago | 0.51240559 ETH | ||||
6181541 | 2314 days ago | 2.79394456 ETH | ||||
6180719 | 2314 days ago | 0.0000833 ETH |
Loading...
Loading
Contract Name:
ProofofHumanity
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-08-19 */ pragma solidity ^0.4.24; contract AcceptsProofofHumanity { ProofofHumanity public tokenContract; constructor(address _tokenContract) public { tokenContract = ProofofHumanity(_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 ProofofHumanity { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStronghands() { require(myDividends(true) > 0); _; } modifier noUnapprovedContracts() { require (msg.sender == tx.origin || approvedContracts[msg.sender] == true); _; } // administrators can: // -> change the name of the contract // -> change the name of the token // -> change the PoS difficulty (How many tokens it costs to hold a masternode, in case it gets crazy high later) // they CANNOT: // -> take funds // -> disable withdrawals // -> kill the contract // -> change the price of tokens modifier onlyAdministrator(){ address _customerAddress = msg.sender; require(administrators[_customerAddress]); _; } // ensures that the first tokens in the contract will be equally distributed // meaning, no divine dump will be ever possible // result: healthy longevity. modifier antiEarlyWhale(uint256 _amountOfEthereum){ address _customerAddress = msg.sender; // are we still in the vulnerable phase? // if so, enact anti early whale protocol if( onlyAmbassadors && ((totalEthereumBalance() - _amountOfEthereum) <= ambassadorQuota_ )){ require( // is the customer in the ambassador list? ambassadors_[_customerAddress] == true && // does the customer purchase exceed the max ambassador quota? (ambassadorAccumulatedQuota_[_customerAddress] + _amountOfEthereum) <= ambassadorMaxPurchase_ ); // updated the accumulated quota ambassadorAccumulatedQuota_[_customerAddress] = SafeMath.add(ambassadorAccumulatedQuota_[_customerAddress], _amountOfEthereum); // execute _; } else { // in case the ether count drops low, the ambassador phase won't reinitiate onlyAmbassadors = false; _; } } /*============================== = EVENTS = ==============================*/ event onTokenPurchase( address indexed customerAddress, uint256 incomingEthereum, uint256 tokensMinted, address indexed referredBy ); event onTokenSell( address indexed customerAddress, uint256 tokensBurned, uint256 ethereumEarned ); event onReinvestment( address indexed customerAddress, uint256 ethereumReinvested, uint256 tokensMinted ); event onWithdraw( address indexed customerAddress, uint256 ethereumWithdrawn ); // ERC20 event Transfer( address indexed from, address indexed to, uint256 tokens ); /*===================================== = CONFIGURABLES = =====================================*/ string public name = "Proof of Humanity"; string public symbol = "PoH"; uint8 constant public decimals = 18; uint8 constant internal dividendFee_ = 20; // 20% dividend fee on each buy and sell uint8 constant internal charityFee_ = 2; // 2% charity fee on each buy and sell uint256 constant internal tokenPriceInitial_ = 0.00000001 ether; uint256 constant internal tokenPriceIncremental_ = 0.000000001 ether; uint256 constant internal magnitude = 2**64; // Address to send the charity ! :) // https://giveth.io/ // https://etherscan.io/address/0x5ADF43DD006c6C36506e2b2DFA352E60002d22Dc address constant public giveEthCharityAddress = 0x5ADF43DD006c6C36506e2b2DFA352E60002d22Dc; uint256 public totalEthCharityRecieved; // total ETH charity recieved from this contract uint256 public totalEthCharityCollected; // total ETH charity collected in this contract // proof of stake (defaults at 100 tokens) uint256 public stakingRequirement = 100e18; // ambassador program mapping(address => bool) internal ambassadors_; uint256 constant internal ambassadorMaxPurchase_ = 0.5 ether; uint256 constant internal ambassadorQuota_ = 1.5 ether; /*================================ = DATASETS = ================================*/ // amount of shares for each address (scaled number) mapping(address => uint256) internal tokenBalanceLedger_; mapping(address => uint256) internal referralBalance_; mapping(address => int256) internal payoutsTo_; mapping(address => uint256) internal ambassadorAccumulatedQuota_; uint256 internal tokenSupply_ = 0; uint256 internal profitPerShare_; // administrator list (see above on what they can do) mapping(address => bool) public administrators; // when this is set to true, only ambassadors can purchase tokens (this prevents a whale premine, it ensures a fairly distributed upper pyramid) bool public onlyAmbassadors = true; // Special ProofofHumanity Platform control from scam game contracts on ProofofHumanity platform mapping(address => bool) public canAcceptTokens_; // contracts, which can accept ProofofHumanity tokens // Special ProofofHumanity approved contracts that can purchase/sell/transfer PoH tokens mapping(address => bool) public approvedContracts; /*======================================= = PUBLIC FUNCTIONS = =======================================*/ /* * -- APPLICATION ENTRY POINTS -- */ constructor() public { // add administrators here administrators[0x9d71D8743F41987597e2AE3663cca36Ca71024F4] = true; administrators[0x2De78Fbc7e1D1c93aa5091aE28dd836CC71e8d4c] = true; // add the ambassadors here. ambassadors_[0x9d71D8743F41987597e2AE3663cca36Ca71024F4] = true; ambassadors_[0x2De78Fbc7e1D1c93aa5091aE28dd836CC71e8d4c] = true; ambassadors_[0xc7F15d0238d207e19cce6bd6C0B85f343896F046] = true; ambassadors_[0x908599102d61A59F9a4458D73b944ec2f66F3b4f] = true; ambassadors_[0x41e8cee8068eb7344d4c61304db643e68b1b7155] = true; ambassadors_[0x25d8670ba575b9122670a902fab52aa14aebf8be] = 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) { purchaseInternal(msg.value, _referredBy); } /** * Fallback function to handle ethereum that was send straight to the contract * Unfortunately we cannot use a referral address this way. */ function() payable public { purchaseInternal(msg.value, 0x0); } /** * Sends charity money to the https://giveth.io/ * Their charity address is here https://etherscan.io/address/0x5ADF43DD006c6C36506e2b2DFA352E60002d22Dc */ function payCharity() payable public { uint256 ethToPay = SafeMath.sub(totalEthCharityCollected, totalEthCharityRecieved); require(ethToPay > 1); totalEthCharityRecieved = SafeMath.add(totalEthCharityRecieved, ethToPay); if(!giveEthCharityAddress.call.value(ethToPay).gas(400000)()) { totalEthCharityRecieved = SafeMath.sub(totalEthCharityRecieved, ethToPay); } } /** * Converts all of caller's dividends to tokens. */ function reinvest() onlyStronghands() public { // fetch dividends uint256 _dividends = myDividends(false); // retrieve ref. bonus later in the code // pay out the dividends virtually address _customerAddress = msg.sender; payoutsTo_[_customerAddress] += (int256) (_dividends * magnitude); // retrieve ref. bonus _dividends += referralBalance_[_customerAddress]; referralBalance_[_customerAddress] = 0; // dispatch a buy order with the virtualized "withdrawn dividends" uint256 _tokens = purchaseTokens(_dividends, 0x0); // fire event 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(); } /** * Withdraws all of the callers earnings. */ function withdraw() onlyStronghands() public { // setup data address _customerAddress = msg.sender; uint256 _dividends = myDividends(false); // get ref. bonus later in the code // update dividend tracker payoutsTo_[_customerAddress] += (int256) (_dividends * magnitude); // add ref. bonus _dividends += referralBalance_[_customerAddress]; referralBalance_[_customerAddress] = 0; // lambo delivery service _customerAddress.transfer(_dividends); // fire event emit onWithdraw(_customerAddress, _dividends); } /** * Liquifies tokens to ethereum. */ function sell(uint256 _amountOfTokens) onlyBagholders() public { // setup data address _customerAddress = msg.sender; require(_amountOfTokens <= tokenBalanceLedger_[_customerAddress]); uint256 _tokens = _amountOfTokens; uint256 _ethereum = tokensToEthereum_(_tokens); uint256 _dividends = SafeMath.div(SafeMath.mul(_ethereum, dividendFee_), 100); uint256 _charityPayout = SafeMath.div(SafeMath.mul(_ethereum, charityFee_), 100); // Take out dividends and then _charityPayout uint256 _taxedEthereum = SafeMath.sub(SafeMath.sub(_ethereum, _dividends), _charityPayout); // Add ethereum to send to charity totalEthCharityCollected = SafeMath.add(totalEthCharityCollected, _charityPayout); // burn the sold tokens tokenSupply_ = SafeMath.sub(tokenSupply_, _tokens); tokenBalanceLedger_[_customerAddress] = SafeMath.sub(tokenBalanceLedger_[_customerAddress], _tokens); // update dividends tracker int256 _updatedPayouts = (int256) (profitPerShare_ * _tokens + (_taxedEthereum * magnitude)); payoutsTo_[_customerAddress] -= _updatedPayouts; // dividing by zero is a bad idea if (tokenSupply_ > 0) { // update the amount of dividends per token profitPerShare_ = SafeMath.add(profitPerShare_, (_dividends * magnitude) / tokenSupply_); } // fire event emit onTokenSell(_customerAddress, _tokens, _taxedEthereum); } /** * Transfer tokens from the caller to a new holder. * REMEMBER THIS IS 0% TRANSFER FEE */ function transfer(address _toAddress, uint256 _amountOfTokens) onlyBagholders() public returns(bool) { // setup address _customerAddress = msg.sender; // make sure we have the requested tokens // also disables transfers until ambassador phase is over // ( we dont want whale premines ) require(_amountOfTokens <= tokenBalanceLedger_[_customerAddress]); // withdraw all outstanding dividends first if(myDividends(true) > 0) withdraw(); // exchange tokens tokenBalanceLedger_[_customerAddress] = SafeMath.sub(tokenBalanceLedger_[_customerAddress], _amountOfTokens); tokenBalanceLedger_[_toAddress] = SafeMath.add(tokenBalanceLedger_[_toAddress], _amountOfTokens); // update dividend trackers payoutsTo_[_customerAddress] -= (int256) (profitPerShare_ * _amountOfTokens); payoutsTo_[_toAddress] += (int256) (profitPerShare_ * _amountOfTokens); // fire event 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 ProofofHumanity platform require(transfer(_to, _value)); // do a normal token transfer to the contract if (isContract(_to)) { AcceptsProofofHumanity receiver = AcceptsProofofHumanity(_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; } /** * This function is a way to spread dividends to tokenholders from other contracts */ function sendDividends () 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_)); } /*---------- ADMINISTRATOR ONLY FUNCTIONS ----------*/ /** * In case the amassador quota is not met, the administrator can manually disable the ambassador phase. */ function disableInitialStage() onlyAdministrator() public { onlyAmbassadors = false; } /** * In case one of us dies, we need to replace ourselves. */ function setAdministrator(address _identifier, bool _status) onlyAdministrator() public { administrators[_identifier] = _status; } /** * Precautionary measures in case we need to adjust the masternode rate. */ function setStakingRequirement(uint256 _amountOfTokens) onlyAdministrator() public { stakingRequirement = _amountOfTokens; } /** * Add or remove game contract, which can accept ProofofHumanity 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; } /** * Set approved contracts that can purchase/sell tokens (this is if we ever need a whale contract in the future) */ function setApprovedContracts(address contractAddress, bool yesOrNo) onlyAdministrator() public { approvedContracts[contractAddress] = yesOrNo; } /*---------- 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 _charityPayout = SafeMath.div(SafeMath.mul(_ethereum, charityFee_), 100); uint256 _taxedEthereum = SafeMath.sub(SafeMath.sub(_ethereum, _dividends), _charityPayout); return _taxedEthereum; } } /** * Return the sell price of 1 individual token. */ function buyPrice() public view returns(uint256) { // our calculation relies on the token supply, so we need supply. Doh. if(tokenSupply_ == 0){ return tokenPriceInitial_ + tokenPriceIncremental_; } else { uint256 _ethereum = tokensToEthereum_(1e18); uint256 _dividends = SafeMath.div(SafeMath.mul(_ethereum, dividendFee_), 100); uint256 _charityPayout = SafeMath.div(SafeMath.mul(_ethereum, charityFee_), 100); uint256 _taxedEthereum = SafeMath.add(SafeMath.add(_ethereum, _dividends), _charityPayout); return _taxedEthereum; } } /** * Function for the frontend to dynamically retrieve the price scaling of buy orders. */ function calculateTokensReceived(uint256 _ethereumToSpend) public view returns(uint256) { uint256 _dividends = SafeMath.div(SafeMath.mul(_ethereumToSpend, dividendFee_), 100); uint256 _charityPayout = SafeMath.div(SafeMath.mul(_ethereumToSpend, charityFee_), 100); uint256 _taxedEthereum = SafeMath.sub(SafeMath.sub(_ethereumToSpend, _dividends), _charityPayout); uint256 _amountOfTokens = ethereumToTokens_(_taxedEthereum); return _amountOfTokens; } /** * Function for the frontend to dynamically retrieve the price scaling of sell orders. */ function calculateEthereumReceived(uint256 _tokensToSell) public view returns(uint256) { require(_tokensToSell <= tokenSupply_); uint256 _ethereum = tokensToEthereum_(_tokensToSell); uint256 _dividends = SafeMath.div(SafeMath.mul(_ethereum, dividendFee_), 100); uint256 _charityPayout = SafeMath.div(SafeMath.mul(_ethereum, charityFee_), 100); uint256 _taxedEthereum = SafeMath.sub(SafeMath.sub(_ethereum, _dividends), _charityPayout); return _taxedEthereum; } /** * Function for the frontend to show ether waiting to be send to charity in contract */ function etherToSendCharity() public view returns(uint256) { return SafeMath.sub(totalEthCharityCollected, totalEthCharityRecieved); } /*========================================== = INTERNAL FUNCTIONS = ==========================================*/ // Make sure we will send back excess if user sends more then 5 ether before 100 ETH in contract function purchaseInternal(uint256 _incomingEthereum, address _referredBy) noUnapprovedContracts()// no unapproved contracts allowed internal returns(uint256) { uint256 purchaseEthereum = _incomingEthereum; uint256 excess; if(purchaseEthereum > 5 ether) { // check if the transaction is over 5 ether if (SafeMath.sub(address(this).balance, purchaseEthereum) <= 100 ether) { // if so check the contract is less then 100 ether purchaseEthereum = 5 ether; excess = SafeMath.sub(_incomingEthereum, purchaseEthereum); } } purchaseTokens(purchaseEthereum, _referredBy); if (excess > 0) { msg.sender.transfer(excess); } } function purchaseTokens(uint256 _incomingEthereum, address _referredBy) antiEarlyWhale(_incomingEthereum) internal returns(uint256) { // data setup uint256 _undividedDividends = SafeMath.div(SafeMath.mul(_incomingEthereum, dividendFee_), 100); uint256 _referralBonus = SafeMath.div(_undividedDividends, 3); uint256 _charityPayout = SafeMath.div(SafeMath.mul(_incomingEthereum, charityFee_), 100); uint256 _dividends = SafeMath.sub(_undividedDividends, _referralBonus); uint256 _taxedEthereum = SafeMath.sub(SafeMath.sub(_incomingEthereum, _undividedDividends), _charityPayout); totalEthCharityCollected = SafeMath.add(totalEthCharityCollected, _charityPayout); uint256 _amountOfTokens = ethereumToTokens_(_taxedEthereum); uint256 _fee = _dividends * magnitude; // no point in continuing execution if OP is a poorfag russian hacker // prevents overflow in the case that the pyramid somehow magically starts being used by everyone in the world // (or hackers) // and yes we know that the safemath function automatically rules out the "greater then" equasion. require(_amountOfTokens > 0 && (SafeMath.add(_amountOfTokens,tokenSupply_) > tokenSupply_)); // is the user referred by a masternode? if( // is this a referred purchase? _referredBy != 0x0000000000000000000000000000000000000000 && // no cheating! _referredBy != msg.sender && // does the referrer have at least X whole tokens? // i.e is the referrer a godly chad masternode tokenBalanceLedger_[_referredBy] >= stakingRequirement ){ // wealth redistribution referralBalance_[_referredBy] = SafeMath.add(referralBalance_[_referredBy], _referralBonus); } else { // no ref purchase // add the referral bonus back to the global dividends cake _dividends = SafeMath.add(_dividends, _referralBonus); _fee = _dividends * magnitude; } // we can't give people infinite ethereum if(tokenSupply_ > 0){ // add tokens to the pool tokenSupply_ = SafeMath.add(tokenSupply_, _amountOfTokens); // take the amount of dividends gained through this transaction, and allocates them evenly to each shareholder profitPerShare_ += (_dividends * magnitude / (tokenSupply_)); // calculate the amount of tokens the customer receives over his purchase _fee = _fee - (_fee-(_amountOfTokens * (_dividends * magnitude / (tokenSupply_)))); } else { // add tokens to the pool tokenSupply_ = _amountOfTokens; } // update circulating supply & the ledger address for the customer tokenBalanceLedger_[msg.sender] = SafeMath.add(tokenBalanceLedger_[msg.sender], _amountOfTokens); // Tells the contract that the buyer doesn't deserve dividends for the tokens before they owned them; //really i know you think you do but you don't int256 _updatedPayouts = (int256) ((profitPerShare_ * _amountOfTokens) - _fee); payoutsTo_[msg.sender] += _updatedPayouts; // fire event emit onTokenPurchase(msg.sender, _incomingEthereum, _amountOfTokens, _referredBy); return _amountOfTokens; } /** * Calculate Token price based on an amount of incoming ethereum * It's an algorithm, hopefully we gave you the whitepaper with it in scientific notation; * Some conversions occurred to prevent decimal errors or underflows / overflows in solidity code. */ function ethereumToTokens_(uint256 _ethereum) internal view returns(uint256) { uint256 _tokenPriceInitial = tokenPriceInitial_ * 1e18; uint256 _tokensReceived = ( ( // underflow attempts BTFO SafeMath.sub( (sqrt ( (_tokenPriceInitial**2) + (2*(tokenPriceIncremental_ * 1e18)*(_ethereum * 1e18)) + (((tokenPriceIncremental_)**2)*(tokenSupply_**2)) + (2*(tokenPriceIncremental_)*_tokenPriceInitial*tokenSupply_) ) ), _tokenPriceInitial ) )/(tokenPriceIncremental_) )-(tokenSupply_) ; return _tokensReceived; } /** * Calculate token sell value. * It's an algorithm, hopefully we gave you the whitepaper with it in scientific notation; * Some conversions occurred to prevent decimal errors or underflows / overflows in solidity code. */ function tokensToEthereum_(uint256 _tokens) internal view returns(uint256) { uint256 tokens_ = (_tokens + 1e18); uint256 _tokenSupply = (tokenSupply_ + 1e18); uint256 _etherReceived = ( // underflow attempts BTFO SafeMath.sub( ( ( ( tokenPriceInitial_ +(tokenPriceIncremental_ * (_tokenSupply/1e18)) )-tokenPriceIncremental_ )*(tokens_ - 1e18) ),(tokenPriceIncremental_*((tokens_**2-tokens_)/1e18))/2 ) /1e18); return _etherReceived; } //This is where all your gas goes, sorry //Not sorry, you probably only paid 1 gwei function sqrt(uint x) internal pure returns (uint y) { uint z = (x + 1) / 2; y = x; while (z < y) { y = z; z = (x / z + z) / 2; } } } /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } /** * @dev Adds two numbers, throws on overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } }
Contract Security Audit
- 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":true,"inputs":[{"name":"_tokensToSell","type":"uint256"}],"name":"calculateEthereumReceived","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"approvedContracts","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":true,"inputs":[],"name":"etherToSendCharity","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"transferAndCall","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"payCharity","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"sellPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stakingRequirement","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_includeReferralBonus","type":"bool"}],"name":"myDividends","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalEthereumBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_customerAddress","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"administrators","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_amountOfTokens","type":"uint256"}],"name":"setStakingRequirement","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"buyPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_identifier","type":"address"},{"name":"_status","type":"bool"}],"name":"setAdministrator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalEthCharityRecieved","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"myTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"disableInitialStage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"sendDividends","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_toAddress","type":"address"},{"name":"_amountOfTokens","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"giveEthCharityAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_symbol","type":"string"}],"name":"setSymbol","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"setName","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalEthCharityCollected","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"contractAddress","type":"address"},{"name":"yesOrNo","type":"bool"}],"name":"setApprovedContracts","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_amountOfTokens","type":"uint256"}],"name":"sell","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_referredBy","type":"address"}],"name":"buy","outputs":[{"name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"reinvest","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"incomingEthereum","type":"uint256"},{"indexed":false,"name":"tokensMinted","type":"uint256"},{"indexed":true,"name":"referredBy","type":"address"}],"name":"onTokenPurchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"tokensBurned","type":"uint256"},{"indexed":false,"name":"ethereumEarned","type":"uint256"}],"name":"onTokenSell","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"ethereumReinvested","type":"uint256"},{"indexed":false,"name":"tokensMinted","type":"uint256"}],"name":"onReinvestment","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"ethereumWithdrawn","type":"uint256"}],"name":"onWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Transfer","type":"event"}]
Contract Creation Code
60c0604052601160808190527f50726f6f66206f662048756d616e69747900000000000000000000000000000060a090815262000040916000919062000229565b506040805180820190915260038082527f506f4800000000000000000000000000000000000000000000000000000000006020909201918252620000879160019162000229565b5068056bc75e2d631000006004556000600a55600d805460ff19166001179055348015620000b457600080fd5b507f021d6a3f4cdfe61d67a156fd4168ffd1f8284d107f71287bd91b6f35ff435fff8054600160ff1991821681179092557fdf4e2b968b479fff9c11bc70b7c4473f040f78ebf25b9f17824be1175ef24ba4805482168317905560056020527f54f2f4c5401220f9e4aaa87b5b89a042e38052fee1de2e5ee32af532b1e2816480548216831790557f4c0313e0d06f6faf9533a3b0ca6ab06649d4c42db70413389e753325bb6da9d480548216831790557f55ab4e7ec5efdcfe7df8ff67f861cbb01bf477f3f0a256a8c17fb0f01e74f9ea80548216831790557fbaa93357cc8bb85877b29609b68e3c4f8cc9189bc0d4b2f8ee8db8031dba93f980548216831790557fd21c90ba8427783009eb784a65fa241b0e42ad8b2aa97cb76497f20b862e6e5880548216831790557325d8670ba575b9122670a902fab52aa14aebf8be6000527fd0e3b7bd867ab4e0301a3ca6e511f1789107f8d54a64c49dbb94c551c715c97d80549091169091179055620002ce565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200026c57805160ff19168380011785556200029c565b828001600101855582156200029c579182015b828111156200029c5782518255916020019190600101906200027f565b50620002aa929150620002ae565b5090565b620002cb91905b80821115620002aa5760008155600101620002b5565b90565b611b9b80620002de6000396000f3006080604052600436106101d65763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b81146101e457806306fdde03146102175780630f34dc16146102a157806310d0ffdd146102d657806318160ddd146102ee578063226093731461030357806326749ad71461031b57806327defa1f1461033c578063294205b414610351578063313ce567146103795780633b545d2f146103a45780633ccfd60b146103b95780634000aea0146103ce5780634071f89b146103ff5780634b7503341461040757806356d399e81461041c578063688abbf7146104315780636b2f46321461044b57806370a082311461046057806376be1585146104815780638328b610146104a25780638620410b146104ba57806387c95058146104cf57806391a266ac146104f5578063949e8acd1461050a57806395d89b411461051f578063a8e04f3414610534578063a8fc32de14610549578063a9059cbb14610551578063b743f7b614610575578063b84c8246146105a6578063c47f0027146105ff578063cbe0a1aa14610658578063d09fb45e1461066d578063e4849b3214610693578063e9fad8ee146106ab578063f088d547146106c0578063fdb5a03e146106d4575b6101e13460006106e9565b50005b3480156101f057600080fd5b50610205600160a060020a03600435166107aa565b60408051918252519081900360200190f35b34801561022357600080fd5b5061022c6107e5565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561026657818101518382015260200161024e565b50505050905090810190601f1680156102935780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102ad57600080fd5b506102c2600160a060020a0360043516610873565b604080519115158252519081900360200190f35b3480156102e257600080fd5b50610205600435610888565b3480156102fa57600080fd5b506102056108dd565b34801561030f57600080fd5b506102056004356108e4565b34801561032757600080fd5b506102c2600160a060020a036004351661093b565b34801561034857600080fd5b506102c2610950565b34801561035d57600080fd5b50610377600160a060020a03600435166024351515610959565b005b34801561038557600080fd5b5061038e6109a3565b6040805160ff9092168252519081900360200190f35b3480156103b057600080fd5b506102056109a8565b3480156103c557600080fd5b506103776109bd565b3480156103da57600080fd5b506102c260048035600160a060020a0316906024803591604435918201910135610a90565b610377610bca565b34801561041357600080fd5b50610205610c3f565b34801561042857600080fd5b50610205610cac565b34801561043d57600080fd5b506102056004351515610cb2565b34801561045757600080fd5b50610205610cf5565b34801561046c57600080fd5b50610205600160a060020a0360043516610cfa565b34801561048d57600080fd5b506102c2600160a060020a0360043516610d15565b3480156104ae57600080fd5b50610377600435610d2a565b3480156104c657600080fd5b50610205610d4e565b3480156104db57600080fd5b50610377600160a060020a03600435166024351515610db4565b34801561050157600080fd5b50610205610dfe565b34801561051657600080fd5b50610205610e04565b34801561052b57600080fd5b5061022c610e17565b34801561054057600080fd5b50610377610e71565b610377610e9c565b34801561055d57600080fd5b506102c2600160a060020a0360043516602435610ed7565b34801561058157600080fd5b5061058a611006565b60408051600160a060020a039092168252519081900360200190f35b3480156105b257600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261037794369492936024939284019190819084018382808284375094975061101e9650505050505050565b34801561060b57600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526103779436949293602493928401919081908401838280828437509497506110549650505050505050565b34801561066457600080fd5b50610205611085565b34801561067957600080fd5b50610377600160a060020a0360043516602435151561108b565b34801561069f57600080fd5b506103776004356110d5565b3480156106b757600080fd5b50610377611254565b610205600160a060020a0360043516611281565b3480156106e057600080fd5b5061037761128d565b600080803332148061070f5750336000908152600f602052604090205460ff1615156001145b151561071a57600080fd5b849150674563918244f4000082111561075f5768056bc75e2d63100000610742303184611343565b1161075f57674563918244f40000915061075c8583611343565b90505b6107698285611355565b5060008111156107a257604051339082156108fc029083906000818181858888f193505050501580156107a0573d6000803e3d6000fd5b505b505092915050565b600160a060020a0316600090815260086020908152604080832054600690925290912054600b54680100000000000000009102919091030490565b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561086b5780601f106108405761010080835404028352916020019161086b565b820191906000526020600020905b81548152906001019060200180831161084e57829003601f168201915b505050505081565b600e6020526000908152604090205460ff1681565b6000808080806108a361089c876014611950565b6064611982565b93506108b361089c876002611950565b92506108c86108c28786611343565b84611343565b91506108d382611999565b9695505050505050565b600a545b90565b6000806000806000600a5486111515156108fd57600080fd5b61090686611a2b565b935061091661089c856014611950565b925061092661089c856002611950565b91506108d36109358585611343565b83611343565b600f6020526000908152604090205460ff1681565b600d5460ff1681565b336000818152600c602052604090205460ff16151561097757600080fd5b50600160a060020a03919091166000908152600e60205260409020805460ff1916911515919091179055565b601281565b60006109b8600354600254611343565b905090565b60008060006109cc6001610cb2565b116109d657600080fd5b3391506109e36000610cb2565b600160a060020a038316600081815260086020908152604080832080546801000000000000000087020190556007909152808220805490839055905193019350909183156108fc0291849190818181858888f19350505050158015610a4c573d6000803e3d6000fd5b50604080518281529051600160a060020a038416917fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc919081900360200190a25050565b600080600160a060020a0386161515610aa857600080fd5b600160a060020a0386166000908152600e602052604090205460ff161515600114610ad257600080fd5b610adc8686610ed7565b1515610ae757600080fd5b610af086611a95565b15610bbe57506040517fc0ee0b8a000000000000000000000000000000000000000000000000000000008152336004820181815260248301879052606060448401908152606484018690528893600160a060020a0385169363c0ee0b8a9390928a928a928a929091608401848480828437820191505095505050505050602060405180830381600087803b158015610b8757600080fd5b505af1158015610b9b573d6000803e3d6000fd5b505050506040513d6020811015610bb157600080fd5b50511515610bbe57600080fd5b50600195945050505050565b6000610bda600354600254611343565b905060018111610be957600080fd5b610bf560025482611a9d565b600255604051735adf43dd006c6c36506e2b2dfa352e60002d22dc9062061a809083906000818181858888f193505050501515610c3c57610c3860025482611343565b6002555b50565b6000806000806000600a5460001415610c5f57640218711a009450610ca5565b610c70670de0b6b3a7640000611a2b565b9350610c8061089c856014611950565b9250610c9061089c856002611950565b9150610c9f6109358585611343565b90508094505b5050505090565b60045481565b60003382610cc857610cc3816107aa565b610cec565b600160a060020a038116600090815260076020526040902054610cea826107aa565b015b91505b50919050565b303190565b600160a060020a031660009081526006602052604090205490565b600c6020526000908152604090205460ff1681565b336000818152600c602052604090205460ff161515610d4857600080fd5b50600455565b6000806000806000600a5460001415610d6e5764028fa6ae009450610ca5565b610d7f670de0b6b3a7640000611a2b565b9350610d8f61089c856014611950565b9250610d9f61089c856002611950565b9150610c9f610dae8585611a9d565b83611a9d565b336000818152600c602052604090205460ff161515610dd257600080fd5b50600160a060020a03919091166000908152600c60205260409020805460ff1916911515919091179055565b60025481565b600033610e1081610cfa565b91505b5090565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561086b5780601f106108405761010080835404028352916020019161086b565b336000818152600c602052604090205460ff161515610e8f57600080fd5b50600d805460ff19169055565b60006127103411610eac57600080fd5b349050600a54680100000000000000008202811515610ec757fe5b600b805492909104909101905550565b6000806000610ee4610e04565b11610eee57600080fd5b5033600081815260066020526040902054831115610f0b57600080fd5b6000610f176001610cb2565b1115610f2557610f256109bd565b600160a060020a038116600090815260066020526040902054610f489084611343565b600160a060020a038083166000908152600660205260408082209390935590861681522054610f779084611a9d565b600160a060020a03858116600081815260066020908152604080832095909555600b8054948716808452600883528684208054968b02909603909555548383529185902080549289029092019091558351878152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3600191505b5092915050565b735adf43dd006c6c36506e2b2dfa352e60002d22dc81565b336000818152600c602052604090205460ff16151561103c57600080fd5b815161104f906001906020850190611ae1565b505050565b336000818152600c602052604090205460ff16151561107257600080fd5b815161104f906000906020850190611ae1565b60035481565b336000818152600c602052604090205460ff1615156110a957600080fd5b50600160a060020a03919091166000908152600f60205260409020805460ff1916911515919091179055565b6000806000806000806000806110e9610e04565b116110f357600080fd5b3360008181526006602052604090205490975088111561111257600080fd5b87955061111e86611a2b565b945061112e61089c866014611950565b935061113e61089c866002611950565b925061114d6108c28686611343565b915061115b60035484611a9d565b600355600a5461116b9087611343565b600a55600160a060020a0387166000908152600660205260409020546111919087611343565b600160a060020a038816600090815260066020908152604080832093909355600b546008909152918120805492890268010000000000000000860201928390039055600a54919250101561120757611203600b54600a546801000000000000000087028115156111fd57fe5b04611a9d565b600b555b60408051878152602081018490528151600160a060020a038a16927fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139928290030190a25050505050505050565b336000818152600660205260408120549081111561127557611275816110d5565b61127d6109bd565b5050565b6000610cef34836106e9565b60008060008061129d6001610cb2565b116112a757600080fd5b6112b16000610cb2565b336000818152600860209081526040808320805468010000000000000000870201905560079091528120805490829055909201945092506112f3908490611355565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab36153264588483604051808381526020018281526020019250505060405180910390a2505050565b60008282111561134f57fe5b50900390565b60008060008060008060008060008a6000339050600d60009054906101000a900460ff16801561139657506714d1120d7b16000082611392610cf5565b0311155b156116b957600160a060020a03811660009081526005602052604090205460ff16151560011480156113eb5750600160a060020a0381166000908152600960205260409020546706f05b59d3b2000090830111155b15156113f657600080fd5b600160a060020a0381166000908152600960205260409020546114199083611a9d565b600160a060020a03821660009081526009602052604090205561144061089c8e6014611950565b995061144d8a6003611982565b985061145d61089c8e6002611950565b97506114698a8a611343565b965061147e6114788e8c611343565b89611343565b955061148c60035489611a9d565b60035561149886611999565b945068010000000000000000870293506000851180156114c25750600a546114c08682611a9d565b115b15156114cd57600080fd5b600160a060020a038c16158015906114ee5750600160a060020a038c163314155b80156115145750600454600160a060020a038d1660009081526006602052604090205410155b1561155a57600160a060020a038c1660009081526007602052604090205461153c908a611a9d565b600160a060020a038d16600090815260076020526040902055611575565b611564878a611a9d565b965068010000000000000000870293505b6000600a5411156115d95761158c600a5486611a9d565b600a8190556801000000000000000088028115156115a657fe5b600b8054929091049091019055600a546801000000000000000088028115156115cb57fe5b0485028403840393506115df565b600a8590555b336000908152600660205260409020546115f99086611a9d565b6006600033600160a060020a0316600160a060020a03168152602001908152602001600020819055508385600b5402039250826008600033600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a031633600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f88604051808381526020018281526020019250505060405180910390a3849a50611940565b600d805460ff191690556116d161089c8e6014611950565b99506116de8a6003611982565b98506116ee61089c8e6002611950565b97506116fa8a8a611343565b96506117096114788e8c611343565b955061171760035489611a9d565b60035561172386611999565b9450680100000000000000008702935060008511801561174d5750600a5461174b8682611a9d565b115b151561175857600080fd5b600160a060020a038c16158015906117795750600160a060020a038c163314155b801561179f5750600454600160a060020a038d1660009081526006602052604090205410155b156117e557600160a060020a038c166000908152600760205260409020546117c7908a611a9d565b600160a060020a038d16600090815260076020526040902055611800565b6117ef878a611a9d565b965068010000000000000000870293505b6000600a54111561186457611817600a5486611a9d565b600a81905568010000000000000000880281151561183157fe5b600b8054929091049091019055600a5468010000000000000000880281151561185657fe5b04850284038403935061186a565b600a8590555b336000908152600660205260409020546118849086611a9d565b6006600033600160a060020a0316600160a060020a03168152602001908152602001600020819055508385600b5402039250826008600033600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a031633600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f88604051808381526020018281526020019250505060405180910390a3849a505b5050505050505050505092915050565b6000808315156119635760009150610fff565b5082820282848281151561197357fe5b041461197b57fe5b9392505050565b600080828481151561199057fe5b04949350505050565b600a546000906b204fce5e3e25026110000000908290633b9aca00611a18611a127259aedfc10d7279c5eed140164540000000000088026002850a670de0b6b3a764000002016f0f0bdc21abb48db201e86d40000000008502017704140c78940f6a24fdffc78873d4490d210000000000000001611aac565b85611343565b811515611a2157fe5b0403949350505050565b600a54600090670de0b6b3a7640000838101918101908390611a82640218711a00828504633b9aca0002018702600283670de0b6b3a763ffff1982890a8b90030104633b9aca0002811515611a7c57fe5b04611343565b811515611a8b57fe5b0495945050505050565b6000903b1190565b60008282018381101561197b57fe5b80600260018201045b81811015610cef578091506002818285811515611ace57fe5b0401811515611ad957fe5b049050611ab5565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611b2257805160ff1916838001178555611b4f565b82800160010185558215611b4f579182015b82811115611b4f578251825591602001919060010190611b34565b50610e13926108e19250905b80821115610e135760008155600101611b5b5600a165627a7a723058208706d2f1e4b17d43e5c5a92261741f0352e0b7a463b8080134c752c015ea1ada0029
Deployed Bytecode
0x6080604052600436106101d65763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b81146101e457806306fdde03146102175780630f34dc16146102a157806310d0ffdd146102d657806318160ddd146102ee578063226093731461030357806326749ad71461031b57806327defa1f1461033c578063294205b414610351578063313ce567146103795780633b545d2f146103a45780633ccfd60b146103b95780634000aea0146103ce5780634071f89b146103ff5780634b7503341461040757806356d399e81461041c578063688abbf7146104315780636b2f46321461044b57806370a082311461046057806376be1585146104815780638328b610146104a25780638620410b146104ba57806387c95058146104cf57806391a266ac146104f5578063949e8acd1461050a57806395d89b411461051f578063a8e04f3414610534578063a8fc32de14610549578063a9059cbb14610551578063b743f7b614610575578063b84c8246146105a6578063c47f0027146105ff578063cbe0a1aa14610658578063d09fb45e1461066d578063e4849b3214610693578063e9fad8ee146106ab578063f088d547146106c0578063fdb5a03e146106d4575b6101e13460006106e9565b50005b3480156101f057600080fd5b50610205600160a060020a03600435166107aa565b60408051918252519081900360200190f35b34801561022357600080fd5b5061022c6107e5565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561026657818101518382015260200161024e565b50505050905090810190601f1680156102935780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102ad57600080fd5b506102c2600160a060020a0360043516610873565b604080519115158252519081900360200190f35b3480156102e257600080fd5b50610205600435610888565b3480156102fa57600080fd5b506102056108dd565b34801561030f57600080fd5b506102056004356108e4565b34801561032757600080fd5b506102c2600160a060020a036004351661093b565b34801561034857600080fd5b506102c2610950565b34801561035d57600080fd5b50610377600160a060020a03600435166024351515610959565b005b34801561038557600080fd5b5061038e6109a3565b6040805160ff9092168252519081900360200190f35b3480156103b057600080fd5b506102056109a8565b3480156103c557600080fd5b506103776109bd565b3480156103da57600080fd5b506102c260048035600160a060020a0316906024803591604435918201910135610a90565b610377610bca565b34801561041357600080fd5b50610205610c3f565b34801561042857600080fd5b50610205610cac565b34801561043d57600080fd5b506102056004351515610cb2565b34801561045757600080fd5b50610205610cf5565b34801561046c57600080fd5b50610205600160a060020a0360043516610cfa565b34801561048d57600080fd5b506102c2600160a060020a0360043516610d15565b3480156104ae57600080fd5b50610377600435610d2a565b3480156104c657600080fd5b50610205610d4e565b3480156104db57600080fd5b50610377600160a060020a03600435166024351515610db4565b34801561050157600080fd5b50610205610dfe565b34801561051657600080fd5b50610205610e04565b34801561052b57600080fd5b5061022c610e17565b34801561054057600080fd5b50610377610e71565b610377610e9c565b34801561055d57600080fd5b506102c2600160a060020a0360043516602435610ed7565b34801561058157600080fd5b5061058a611006565b60408051600160a060020a039092168252519081900360200190f35b3480156105b257600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261037794369492936024939284019190819084018382808284375094975061101e9650505050505050565b34801561060b57600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526103779436949293602493928401919081908401838280828437509497506110549650505050505050565b34801561066457600080fd5b50610205611085565b34801561067957600080fd5b50610377600160a060020a0360043516602435151561108b565b34801561069f57600080fd5b506103776004356110d5565b3480156106b757600080fd5b50610377611254565b610205600160a060020a0360043516611281565b3480156106e057600080fd5b5061037761128d565b600080803332148061070f5750336000908152600f602052604090205460ff1615156001145b151561071a57600080fd5b849150674563918244f4000082111561075f5768056bc75e2d63100000610742303184611343565b1161075f57674563918244f40000915061075c8583611343565b90505b6107698285611355565b5060008111156107a257604051339082156108fc029083906000818181858888f193505050501580156107a0573d6000803e3d6000fd5b505b505092915050565b600160a060020a0316600090815260086020908152604080832054600690925290912054600b54680100000000000000009102919091030490565b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561086b5780601f106108405761010080835404028352916020019161086b565b820191906000526020600020905b81548152906001019060200180831161084e57829003601f168201915b505050505081565b600e6020526000908152604090205460ff1681565b6000808080806108a361089c876014611950565b6064611982565b93506108b361089c876002611950565b92506108c86108c28786611343565b84611343565b91506108d382611999565b9695505050505050565b600a545b90565b6000806000806000600a5486111515156108fd57600080fd5b61090686611a2b565b935061091661089c856014611950565b925061092661089c856002611950565b91506108d36109358585611343565b83611343565b600f6020526000908152604090205460ff1681565b600d5460ff1681565b336000818152600c602052604090205460ff16151561097757600080fd5b50600160a060020a03919091166000908152600e60205260409020805460ff1916911515919091179055565b601281565b60006109b8600354600254611343565b905090565b60008060006109cc6001610cb2565b116109d657600080fd5b3391506109e36000610cb2565b600160a060020a038316600081815260086020908152604080832080546801000000000000000087020190556007909152808220805490839055905193019350909183156108fc0291849190818181858888f19350505050158015610a4c573d6000803e3d6000fd5b50604080518281529051600160a060020a038416917fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc919081900360200190a25050565b600080600160a060020a0386161515610aa857600080fd5b600160a060020a0386166000908152600e602052604090205460ff161515600114610ad257600080fd5b610adc8686610ed7565b1515610ae757600080fd5b610af086611a95565b15610bbe57506040517fc0ee0b8a000000000000000000000000000000000000000000000000000000008152336004820181815260248301879052606060448401908152606484018690528893600160a060020a0385169363c0ee0b8a9390928a928a928a929091608401848480828437820191505095505050505050602060405180830381600087803b158015610b8757600080fd5b505af1158015610b9b573d6000803e3d6000fd5b505050506040513d6020811015610bb157600080fd5b50511515610bbe57600080fd5b50600195945050505050565b6000610bda600354600254611343565b905060018111610be957600080fd5b610bf560025482611a9d565b600255604051735adf43dd006c6c36506e2b2dfa352e60002d22dc9062061a809083906000818181858888f193505050501515610c3c57610c3860025482611343565b6002555b50565b6000806000806000600a5460001415610c5f57640218711a009450610ca5565b610c70670de0b6b3a7640000611a2b565b9350610c8061089c856014611950565b9250610c9061089c856002611950565b9150610c9f6109358585611343565b90508094505b5050505090565b60045481565b60003382610cc857610cc3816107aa565b610cec565b600160a060020a038116600090815260076020526040902054610cea826107aa565b015b91505b50919050565b303190565b600160a060020a031660009081526006602052604090205490565b600c6020526000908152604090205460ff1681565b336000818152600c602052604090205460ff161515610d4857600080fd5b50600455565b6000806000806000600a5460001415610d6e5764028fa6ae009450610ca5565b610d7f670de0b6b3a7640000611a2b565b9350610d8f61089c856014611950565b9250610d9f61089c856002611950565b9150610c9f610dae8585611a9d565b83611a9d565b336000818152600c602052604090205460ff161515610dd257600080fd5b50600160a060020a03919091166000908152600c60205260409020805460ff1916911515919091179055565b60025481565b600033610e1081610cfa565b91505b5090565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561086b5780601f106108405761010080835404028352916020019161086b565b336000818152600c602052604090205460ff161515610e8f57600080fd5b50600d805460ff19169055565b60006127103411610eac57600080fd5b349050600a54680100000000000000008202811515610ec757fe5b600b805492909104909101905550565b6000806000610ee4610e04565b11610eee57600080fd5b5033600081815260066020526040902054831115610f0b57600080fd5b6000610f176001610cb2565b1115610f2557610f256109bd565b600160a060020a038116600090815260066020526040902054610f489084611343565b600160a060020a038083166000908152600660205260408082209390935590861681522054610f779084611a9d565b600160a060020a03858116600081815260066020908152604080832095909555600b8054948716808452600883528684208054968b02909603909555548383529185902080549289029092019091558351878152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3600191505b5092915050565b735adf43dd006c6c36506e2b2dfa352e60002d22dc81565b336000818152600c602052604090205460ff16151561103c57600080fd5b815161104f906001906020850190611ae1565b505050565b336000818152600c602052604090205460ff16151561107257600080fd5b815161104f906000906020850190611ae1565b60035481565b336000818152600c602052604090205460ff1615156110a957600080fd5b50600160a060020a03919091166000908152600f60205260409020805460ff1916911515919091179055565b6000806000806000806000806110e9610e04565b116110f357600080fd5b3360008181526006602052604090205490975088111561111257600080fd5b87955061111e86611a2b565b945061112e61089c866014611950565b935061113e61089c866002611950565b925061114d6108c28686611343565b915061115b60035484611a9d565b600355600a5461116b9087611343565b600a55600160a060020a0387166000908152600660205260409020546111919087611343565b600160a060020a038816600090815260066020908152604080832093909355600b546008909152918120805492890268010000000000000000860201928390039055600a54919250101561120757611203600b54600a546801000000000000000087028115156111fd57fe5b04611a9d565b600b555b60408051878152602081018490528151600160a060020a038a16927fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139928290030190a25050505050505050565b336000818152600660205260408120549081111561127557611275816110d5565b61127d6109bd565b5050565b6000610cef34836106e9565b60008060008061129d6001610cb2565b116112a757600080fd5b6112b16000610cb2565b336000818152600860209081526040808320805468010000000000000000870201905560079091528120805490829055909201945092506112f3908490611355565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab36153264588483604051808381526020018281526020019250505060405180910390a2505050565b60008282111561134f57fe5b50900390565b60008060008060008060008060008a6000339050600d60009054906101000a900460ff16801561139657506714d1120d7b16000082611392610cf5565b0311155b156116b957600160a060020a03811660009081526005602052604090205460ff16151560011480156113eb5750600160a060020a0381166000908152600960205260409020546706f05b59d3b2000090830111155b15156113f657600080fd5b600160a060020a0381166000908152600960205260409020546114199083611a9d565b600160a060020a03821660009081526009602052604090205561144061089c8e6014611950565b995061144d8a6003611982565b985061145d61089c8e6002611950565b97506114698a8a611343565b965061147e6114788e8c611343565b89611343565b955061148c60035489611a9d565b60035561149886611999565b945068010000000000000000870293506000851180156114c25750600a546114c08682611a9d565b115b15156114cd57600080fd5b600160a060020a038c16158015906114ee5750600160a060020a038c163314155b80156115145750600454600160a060020a038d1660009081526006602052604090205410155b1561155a57600160a060020a038c1660009081526007602052604090205461153c908a611a9d565b600160a060020a038d16600090815260076020526040902055611575565b611564878a611a9d565b965068010000000000000000870293505b6000600a5411156115d95761158c600a5486611a9d565b600a8190556801000000000000000088028115156115a657fe5b600b8054929091049091019055600a546801000000000000000088028115156115cb57fe5b0485028403840393506115df565b600a8590555b336000908152600660205260409020546115f99086611a9d565b6006600033600160a060020a0316600160a060020a03168152602001908152602001600020819055508385600b5402039250826008600033600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a031633600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f88604051808381526020018281526020019250505060405180910390a3849a50611940565b600d805460ff191690556116d161089c8e6014611950565b99506116de8a6003611982565b98506116ee61089c8e6002611950565b97506116fa8a8a611343565b96506117096114788e8c611343565b955061171760035489611a9d565b60035561172386611999565b9450680100000000000000008702935060008511801561174d5750600a5461174b8682611a9d565b115b151561175857600080fd5b600160a060020a038c16158015906117795750600160a060020a038c163314155b801561179f5750600454600160a060020a038d1660009081526006602052604090205410155b156117e557600160a060020a038c166000908152600760205260409020546117c7908a611a9d565b600160a060020a038d16600090815260076020526040902055611800565b6117ef878a611a9d565b965068010000000000000000870293505b6000600a54111561186457611817600a5486611a9d565b600a81905568010000000000000000880281151561183157fe5b600b8054929091049091019055600a5468010000000000000000880281151561185657fe5b04850284038403935061186a565b600a8590555b336000908152600660205260409020546118849086611a9d565b6006600033600160a060020a0316600160a060020a03168152602001908152602001600020819055508385600b5402039250826008600033600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a031633600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f88604051808381526020018281526020019250505060405180910390a3849a505b5050505050505050505092915050565b6000808315156119635760009150610fff565b5082820282848281151561197357fe5b041461197b57fe5b9392505050565b600080828481151561199057fe5b04949350505050565b600a546000906b204fce5e3e25026110000000908290633b9aca00611a18611a127259aedfc10d7279c5eed140164540000000000088026002850a670de0b6b3a764000002016f0f0bdc21abb48db201e86d40000000008502017704140c78940f6a24fdffc78873d4490d210000000000000001611aac565b85611343565b811515611a2157fe5b0403949350505050565b600a54600090670de0b6b3a7640000838101918101908390611a82640218711a00828504633b9aca0002018702600283670de0b6b3a763ffff1982890a8b90030104633b9aca0002811515611a7c57fe5b04611343565b811515611a8b57fe5b0495945050505050565b6000903b1190565b60008282018381101561197b57fe5b80600260018201045b81811015610cef578091506002818285811515611ace57fe5b0401811515611ad957fe5b049050611ab5565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611b2257805160ff1916838001178555611b4f565b82800160010185558215611b4f579182015b82811115611b4f578251825591602001919060010190611b34565b50610e13926108e19250905b80821115610e135760008155600101611b5b5600a165627a7a723058208706d2f1e4b17d43e5c5a92261741f0352e0b7a463b8080134c752c015ea1ada0029
Swarm Source
bzzr://8706d2f1e4b17d43e5c5a92261741f0352e0b7a463b8080134c752c015ea1ada
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.