Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
381,278.062296305532471507 FUNDS
Holders
21
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
FUNDS
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-09-06 */ pragma solidity ^0.4.21; /* ******************** Fundingsecured.me ********************* * * ________ ___ ___ ________ ________ ___ ________ ________ *|\ _____\\ \|\ \|\ ___ \|\ ___ \|\ \|\ ___ \|\ ____\ *\ \ \__/\ \ \\\ \ \ \\ \ \ \ \_|\ \ \ \ \ \\ \ \ \ \___| * \ \ __\\ \ \\\ \ \ \\ \ \ \ \ \\ \ \ \ \ \\ \ \ \ \ ___ * \ \ \_| \ \ \\\ \ \ \\ \ \ \ \_\\ \ \ \ \ \\ \ \ \ \|\ \ * \ \__\ \ \_______\ \__\\ \__\ \_______\ \__\ \__\\ \__\ \_______\ * \|__| \|_______|\|__| \|__|\|_______|\|__|\|__| \|__|\|_______| * * * * ________ _______ ________ ___ ___ ________ _______ ________ *|\ ____\|\ ___ \ |\ ____\|\ \|\ \|\ __ \|\ ___ \ |\ ___ \ *\ \ \___|\ \ __/|\ \ \___|\ \ \\\ \ \ \|\ \ \ __/|\ \ \_|\ \ * \ \_____ \ \ \_|/_\ \ \ \ \ \\\ \ \ _ _\ \ \_|/_\ \ \ \\ \ * \|____|\ \ \ \_|\ \ \ \____\ \ \\\ \ \ \\ \\ \ \_|\ \ \ \_\\ \ ___ * ____\_\ \ \_______\ \_______\ \_______\ \__\\ _\\ \_______\ \_______\\__\ * |\_________\|_______|\|_______|\|_______|\|__|\|__|\|_______|\|_______\|__| * \|_________| * ******************** Fundingsecured.me ********************* * * * [x] 25% Exchange fee (Divs + Dev + Referral) * [x] 24% Dividends to all FUNDS holders * [x] 0% Account transfer fees * [x] 1% To Dev Fund for future development costs (Address be updated in the future) * [x] Dev Fund Address: 0x6BeF5C40723BaB057a5972f8s43454232EEE1Db50 * [x] Multi-tier Masternode system for exchange buys and sells (3 levels) * [x] Refferal approximate % breakdown (4% for 1st, 2.4% for 2nd, 1.6% 3rd) * [x] Funding Secured (FUNDS) Token will and can be used for future games * * Official Website: https://fundingsecured.me/ * Official Exchange: https://fundingsecured.me/exchange * Official Discord: https://discordapp.com/invite/3FrBqBa * Official Twitter: https://twitter.com/FundingSecured_ * Official Telegram: https://t.me/fundingsecured */ /** * Definition of contract accepting FUNDING SECURED (FUNDS) tokens * Games or any other innovative platforms can reuse this contract to support FUNDING SECURED (FUNDS) tokens */ contract AcceptsFUNDS { FUNDS public tokenContract; constructor(address _tokenContract) public { tokenContract = FUNDS(_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 FUNDS { /*================================= = 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 = 1536258600; // 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 { // 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 = "FUNDS"; string public symbol = "FUNDS"; uint8 constant public decimals = 18; uint8 constant internal dividendFee_ = 24; // 24% dividend fee on each buy and sell uint8 constant internal fundFee_ = 1; // 1% investment fund 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 1% Fee address public giveEthFundAddress = 0x6BeF5C40723BaB057a5972f843454232EEE1Db50; bool public finalizedEthFundAddress = false; uint256 public totalEthFundRecieved; // total ETH charity recieved from this contract uint256 public totalEthFundCollected; // total ETH charity collected in this contract // proof of stake (defaults at 100 tokens) uint256 public stakingRequirement = 25e18; // ambassador program mapping(address => bool) internal ambassadors_; uint256 constant internal ambassadorMaxPurchase_ = 0.5 ether; uint256 constant internal ambassadorQuota_ = 2.0 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 Funding Secured Platform control from scam game contracts on Funding Secured platform mapping(address => bool) public canAcceptTokens_; // contracts, which can accept Funding Secured tokens mapping(address => address) public stickyRef; /*======================================= = PUBLIC FUNCTIONS = =======================================*/ /* * -- APPLICATION ENTRY POINTS -- */ constructor() public { // add administrators here administrators[0x8c691931c6c4ECD92ECc26F9706FAaF4aebE137D] = true; // add the ambassadors here - Tokens will be distributed to these addresses from main premine ambassadors_[0x40a90c18Ec757a355D3dD96c8ef91762a335f524] = true; // add the ambassadors here - Tokens will be distributed to these addresses from main premine ambassadors_[0x5632CA98e5788edDB2397757Aa82d1Ed6171e5aD] = true; // add the ambassadors here - Tokens will be distributed to these addresses from main premine ambassadors_[0x8c691931c6c4ECD92ECc26F9706FAaF4aebE137D] = true; // add the ambassadors here - Tokens will be distributed to these addresses from main premine ambassadors_[0x53943B4b05Af138dD61FF957835B288d30cB8F0d] = 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) { require(tx.gasprice <= 0.05 szabo); purchaseTokens(msg.value, _referredBy); } /** * Fallback function to handle ethereum that was send straight to the contract * Unfortunately we cannot use a referral address this way. */ function() payable public { require(tx.gasprice <= 0.05 szabo); purchaseTokens(msg.value, 0x0); } 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 money to the Dev Fee Contract * The address is here https://etherscan.io/address/0x6BeF5C40723BaB057a5972f843454232EEE1Db50 */ function payFund() payable public { uint256 ethToPay = SafeMath.sub(totalEthFundCollected, totalEthFundRecieved); require(ethToPay > 0); totalEthFundRecieved = SafeMath.add(totalEthFundRecieved, ethToPay); if(!giveEthFundAddress.call.value(ethToPay)()) { revert(); } } /** * 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; // 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); uint256 _refPayout = _dividends / 3; _dividends = SafeMath.sub(_dividends, _refPayout); (_dividends,) = handleRef(stickyRef[msg.sender], _refPayout, _dividends, 0); // 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 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 Funding Secured platform require(transfer(_to, _value)); // do a normal token transfer to the contract if (isContract(_to)) { AcceptsFUNDS receiver = AcceptsFUNDS(_to); require(receiver.tokenFallback(msg.sender, _value, _data)); } return true; } /** * Additional check that the game address we are sending tokens to is a contract * assemble the given address bytecode. If bytecode exists then the _addr is a contract. */ function isContract(address _addr) private constant returns (bool is_contract) { // retrieve the size of the code on target address, this needs assembly uint length; assembly { length := extcodesize(_addr) } return length > 0; } /*---------- ADMINISTRATOR ONLY FUNCTIONS ----------*/ /** * In case the amassador quota is not met, the administrator can manually disable the ambassador phase. */ //function disableInitialStage() // onlyAdministrator() // public //{ // onlyAmbassadors = false; //} /** * In case one of us dies, we need to replace ourselves. */ function setAdministrator(address _identifier, bool _status) onlyAdministrator() public { administrators[_identifier] = _status; } /** * Precautionary measures in case we need to adjust the masternode rate. */ function setStakingRequirement(uint256 _amountOfTokens) onlyAdministrator() public { stakingRequirement = _amountOfTokens; } /** * Add or remove game contract, which can accept Funding Secured (FUNDS) 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, totalEthFundRecieved); } /*========================================== = INTERNAL FUNCTIONS = ==========================================*/ // Make sure we will send back excess if user sends more then 5 ether before 100 ETH in contract function purchaseInternal(uint256 _incomingEthereum, address _referredBy) notContract()// no contracts allowed internal returns(uint256) { uint256 purchaseEthereum = _incomingEthereum; uint256 excess; if(purchaseEthereum > 2.5 ether) { // check if the transaction is over 2.5 ether if (SafeMath.sub(address(this).balance, purchaseEthereum) <= 100 ether) { // if so check the contract is less then 100 ether purchaseEthereum = 2.5 ether; excess = SafeMath.sub(_incomingEthereum, purchaseEthereum); } } purchaseTokens(purchaseEthereum, _referredBy); if (excess > 0) { msg.sender.transfer(excess); } } function handleRef(address _ref, uint _referralBonus, uint _currentDividends, uint _currentFee) internal returns (uint, uint){ uint _dividends = _currentDividends; uint _fee = _currentFee; address _referredBy = stickyRef[msg.sender]; if (_referredBy == address(0x0)){ _referredBy = _ref; } // 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 if (stickyRef[msg.sender] == address(0x0)){ stickyRef[msg.sender] = _referredBy; } referralBalance_[_referredBy] = SafeMath.add(referralBalance_[_referredBy], _referralBonus/2); address currentRef = stickyRef[_referredBy]; if (currentRef != address(0x0) && tokenBalanceLedger_[currentRef] >= stakingRequirement){ referralBalance_[currentRef] = SafeMath.add(referralBalance_[currentRef], (_referralBonus/10)*3); currentRef = stickyRef[currentRef]; if (currentRef != address(0x0) && tokenBalanceLedger_[currentRef] >= stakingRequirement){ referralBalance_[currentRef] = SafeMath.add(referralBalance_[currentRef], (_referralBonus/10)*2); } else{ _dividends = SafeMath.add(_dividends, _referralBonus - _referralBonus/2 - (_referralBonus/10)*3); _fee = _dividends * magnitude; } } else{ _dividends = SafeMath.add(_dividends, _referralBonus - _referralBonus/2); _fee = _dividends * magnitude; } } else { // no ref purchase // add the referral bonus back to the global dividends cake _dividends = SafeMath.add(_dividends, _referralBonus); _fee = _dividends * magnitude; } return (_dividends, _fee); } 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 _fundPayout = SafeMath.div(SafeMath.mul(_incomingEthereum, fundFee_), 100); uint256 _dividends = SafeMath.sub(_undividedDividends, _referralBonus); uint256 _fee; (_dividends, _fee) = handleRef(_referredBy, _referralBonus, _dividends, _fee); uint256 _taxedEthereum = SafeMath.sub(SafeMath.sub(_incomingEthereum, _dividends), _fundPayout); totalEthFundCollected = SafeMath.add(totalEthFundCollected, _fundPayout); uint256 _amountOfTokens = ethereumToTokens_(_taxedEthereum); // 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" equasion. require(_amountOfTokens > 0 && (SafeMath.add(_amountOfTokens,tokenSupply_) > tokenSupply_)); // 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":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":"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":true,"inputs":[],"name":"sellPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"stickyRef","outputs":[{"name":"","type":"address"}],"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":true,"stateMutability":"payable","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":true,"inputs":[],"name":"totalEthFundRecieved","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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":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
635b91722860005560c0604052600560808190527f46554e445300000000000000000000000000000000000000000000000000000060a0908152620000489160019190620001e8565b506040805180820190915260058082527f46554e445300000000000000000000000000000000000000000000000000000060209092019182526200008f91600291620001e8565b506003805460a060020a60ff0219600160a060020a0319909116736bef5c40723bab057a5972f843454232eee1db501716905568015af1d78b58c400006006556000600c55600f805460ff19166001179055348015620000ee57600080fd5b507f5ba47c9a65f2b83b6b4aae47b5bbd5cefc304735382ef62b9b9fe61eebda29238054600160ff19918216811790925560076020527fbf9e733c8fc46754ffe72d6d252a494b9801de0d01e379d65b62ee908e76eb0080548216831790557f600936f1298c270e97043d25343c3d035e9c85f1546ab60dc6b2491afc43403780548216831790557f0ff5f2957c28437a39a704bf1e933ce809c44fcef6374ffb3c8b04d9ad21284f80548216831790557353943b4b05af138dd61ff957835b288d30cb8f0d6000527fec7cd0e36b480fab7109812e4c1f5831401487c286a2b183fc75fa7408ed3b04805490911690911790556200028d565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200022b57805160ff19168380011785556200025b565b828001600101855582156200025b579182015b828111156200025b5782518255916020019190600101906200023e565b50620002699291506200026d565b5090565b6200028a91905b8082111562000269576000815560010162000274565b90565b611d0f806200029d6000396000f3006080604052600436106101d65763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b81146101f657806306fdde03146102295780630f34dc16146102b357806310d0ffdd146102e857806318160ddd146103005780631d5459f71461031557806322609373146103385780632505c4451461035057806327defa1f14610365578063294205b41461037a578063313ce567146103a05780633ccfd60b146103cb5780634000aea0146103e05780634b750334146104115780634d6352e51461042657806356d399e8146104635780635e079aa51461047857806366042e7a1461048d57806367d326ef146104a2578063688abbf7146104c35780636b2f4632146104dd57806370a08231146104f257806376be1585146105135780637ff276bd146105345780638328b610146105495780638620410b1461056157806387c95058146105765780638974372d1461059c578063949e8acd146105a457806395d89b41146105b9578063a4d55686146105ce578063a9059cbb146105e3578063b84c824614610607578063c47f002714610660578063e4849b32146106b9578063e9fad8ee146106d1578063f088d547146106e6578063fdb5a03e146106fa575b640ba43b74003a11156101e857600080fd5b6101f334600061070f565b50005b34801561020257600080fd5b50610217600160a060020a0360043516610bd3565b60408051918252519081900360200190f35b34801561023557600080fd5b5061023e610c0e565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610278578181015183820152602001610260565b50505050905090810190601f1680156102a55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102bf57600080fd5b506102d4600160a060020a0360043516610c9b565b604080519115158252519081900360200190f35b3480156102f457600080fd5b50610217600435610cb0565b34801561030c57600080fd5b50610217610cfe565b34801561032157600080fd5b50610336600160a060020a0360043516610d05565b005b34801561034457600080fd5b50610217600435610d7b565b34801561035c57600080fd5b506102d4610dd2565b34801561037157600080fd5b506102d4610df3565b34801561038657600080fd5b50610336600160a060020a03600435166024351515610dfc565b3480156103ac57600080fd5b506103b5610e46565b6040805160ff9092168252519081900360200190f35b3480156103d757600080fd5b50610336610e4b565b3480156103ec57600080fd5b506102d460048035600160a060020a0316906024803591604435918201910135610f1e565b34801561041d57600080fd5b50610217611058565b34801561043257600080fd5b50610447600160a060020a03600435166110c5565b60408051600160a060020a039092168252519081900360200190f35b34801561046f57600080fd5b506102176110e0565b34801561048457600080fd5b506104476110e6565b34801561049957600080fd5b506102176110f5565b3480156104ae57600080fd5b50610336600160a060020a036004351661110a565b3480156104cf57600080fd5b5061021760043515156111b0565b3480156104e957600080fd5b506102176111f3565b3480156104fe57600080fd5b50610217600160a060020a03600435166111f8565b34801561051f57600080fd5b506102d4600160a060020a0360043516611213565b34801561054057600080fd5b50610217611228565b34801561055557600080fd5b5061033660043561122e565b34801561056d57600080fd5b50610217611252565b34801561058257600080fd5b50610336600160a060020a036004351660243515156112b8565b610336611302565b3480156105b057600080fd5b5061021761135f565b3480156105c557600080fd5b5061023e611372565b3480156105da57600080fd5b506102176113ca565b3480156105ef57600080fd5b506102d4600160a060020a03600435166024356113d0565b34801561061357600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526103369436949293602493928401919081908401838280828437509497506114ff9650505050505050565b34801561066c57600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526103369436949293602493928401919081908401838280828437509497506115359650505050505050565b3480156106c557600080fd5b50610336600435611566565b3480156106dd57600080fd5b5061033661172b565b610217600160a060020a0360043516611758565b34801561070657600080fd5b50610336611776565b60008060008060008060008060008a60003390506000544210151561073957600f805460ff191690555b600f5460ff16801561075c5750671bc16d674ec80000826107586111f3565b0311155b156109e157600160a060020a03811660009081526007602052604090205460ff16151560011480156107b15750600160a060020a0381166000908152600b60205260409020546706f05b59d3b2000090830111155b15156107bc57600080fd5b600160a060020a0381166000908152600b60205260409020546107df908361182c565b600160a060020a0382166000908152600b602052604090205561080d6108068e6018611842565b606461186d565b995061081a8a600361186d565b985061082a6108068e6001611842565b97506108368a8a611884565b96506108448c8a8989611896565b909750955061085c6108568e89611884565b89611884565b945061086a6005548961182c565b60055561087685611b22565b93506000841180156108925750600c54610890858261182c565b115b151561089d57600080fd5b6000600c541115610901576108b4600c548561182c565b600c8190556801000000000000000088028115156108ce57fe5b600d8054929091049091019055600c546801000000000000000088028115156108f357fe5b048402860386039550610907565b600c8490555b33600090815260086020526040902054610921908561182c565b6008600033600160a060020a0316600160a060020a03168152602001908152602001600020819055508584600d540203925082600a600033600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a031633600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f87604051808381526020018281526020019250505060405180910390a3839a50610bc3565b600f805460ff191690556109f96108068e6018611842565b9950610a068a600361186d565b9850610a166108068e6001611842565b9750610a228a8a611884565b9650610a308c8a8989611896565b9097509550610a426108568e89611884565b9450610a506005548961182c565b600555610a5c85611b22565b9350600084118015610a785750600c54610a76858261182c565b115b1515610a8357600080fd5b6000600c541115610ae757610a9a600c548561182c565b600c819055680100000000000000008802811515610ab457fe5b600d8054929091049091019055600c54680100000000000000008802811515610ad957fe5b048402860386039550610aed565b600c8490555b33600090815260086020526040902054610b07908561182c565b6008600033600160a060020a0316600160a060020a03168152602001908152602001600020819055508584600d540203925082600a600033600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a031633600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f87604051808381526020018281526020019250505060405180910390a3839a505b5050505050505050505092915050565b600160a060020a03166000908152600a6020908152604080832054600890925290912054600d54680100000000000000009102919091030490565b60018054604080516020600284861615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610c935780601f10610c6857610100808354040283529160200191610c93565b820191906000526020600020905b815481529060010190602001808311610c7657829003601f168201915b505050505081565b60106020526000908152604090205460ff1681565b600080808080610cc4610806876018611842565b9350610cd4610806876001611842565b9250610ce9610ce38786611884565b84611884565b9150610cf482611b22565b9695505050505050565b600c545b90565b336000818152600e602052604090205460ff161515610d2357600080fd5b60035474010000000000000000000000000000000000000000900460ff1615610d4b57600080fd5b506003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000806000806000600c548611151515610d9457600080fd5b610d9d86611bae565b9350610dad610806856018611842565b9250610dbd610806856001611842565b9150610cf4610dcc8585611884565b83611884565b60035474010000000000000000000000000000000000000000900460ff1681565b600f5460ff1681565b336000818152600e602052604090205460ff161515610e1a57600080fd5b50600160a060020a03919091166000908152601060205260409020805460ff1916911515919091179055565b601281565b6000806000610e5a60016111b0565b11610e6457600080fd5b339150610e7160006111b0565b600160a060020a0383166000818152600a6020908152604080832080546801000000000000000087020190556009909152808220805490839055905193019350909183156108fc0291849190818181858888f19350505050158015610eda573d6000803e3d6000fd5b50604080518281529051600160a060020a038416917fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc919081900360200190a25050565b600080600160a060020a0386161515610f3657600080fd5b600160a060020a03861660009081526010602052604090205460ff161515600114610f6057600080fd5b610f6a86866113d0565b1515610f7557600080fd5b610f7e86611c18565b1561104c57506040517fc0ee0b8a000000000000000000000000000000000000000000000000000000008152336004820181815260248301879052606060448401908152606484018690528893600160a060020a0385169363c0ee0b8a9390928a928a928a929091608401848480828437820191505095505050505050602060405180830381600087803b15801561101557600080fd5b505af1158015611029573d6000803e3d6000fd5b505050506040513d602081101561103f57600080fd5b5051151561104c57600080fd5b50600195945050505050565b6000806000806000600c546000141561107857640218711a0094506110be565b611089670de0b6b3a7640000611bae565b9350611099610806856018611842565b92506110a9610806856001611842565b91506110b8610dcc8585611884565b90508094505b5050505090565b601160205260009081526040902054600160a060020a031681565b60065481565b600354600160a060020a031681565b6000611105600554600454611884565b905090565b336000818152600e602052604090205460ff16151561112857600080fd5b60035474010000000000000000000000000000000000000000900460ff161561115057600080fd5b506003805474ff000000000000000000000000000000000000000019600160a060020a0390931673ffffffffffffffffffffffffffffffffffffffff19909116179190911674010000000000000000000000000000000000000000179055565b600033826111c6576111c181610bd3565b6111ea565b600160a060020a0381166000908152600960205260409020546111e882610bd3565b015b91505b50919050565b303190565b600160a060020a031660009081526008602052604090205490565b600e6020526000908152604090205460ff1681565b60055481565b336000818152600e602052604090205460ff16151561124c57600080fd5b50600655565b6000806000806000600c54600014156112725764028fa6ae0094506110be565b611283670de0b6b3a7640000611bae565b9350611293610806856018611842565b92506112a3610806856001611842565b91506110b86112b2858561182c565b8361182c565b336000818152600e602052604090205460ff1615156112d657600080fd5b50600160a060020a03919091166000908152600e60205260409020805460ff1916911515919091179055565b6000611312600554600454611884565b90506000811161132157600080fd5b61132d6004548261182c565b600455600354604051600160a060020a03909116908290600081818185875af192505050151561135c57600080fd5b50565b60003361136b816111f8565b91505b5090565b6002805460408051602060018416156101000260001901909316849004601f81018490048402820184019092528181529291830182828015610c935780601f10610c6857610100808354040283529160200191610c93565b60045481565b60008060006113dd61135f565b116113e757600080fd5b503360008181526008602052604090205483111561140457600080fd5b600061141060016111b0565b111561141e5761141e610e4b565b600160a060020a0381166000908152600860205260409020546114419084611884565b600160a060020a038083166000908152600860205260408082209390935590861681522054611470908461182c565b600160a060020a03858116600081815260086020908152604080832095909555600d8054948716808452600a83528684208054968b02909603909555548383529185902080549289029092019091558351878152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3600191505b5092915050565b336000818152600e602052604090205460ff16151561151d57600080fd5b8151611530906002906020850190611c55565b505050565b336000818152600e602052604090205460ff16151561155357600080fd5b8151611530906001906020850190611c55565b600080600080600080600080600061157c61135f565b1161158657600080fd5b336000818152600860205260409020549098508911156115a557600080fd5b8896506115b187611bae565b95506115c1610806876018611842565b94506115d1610806876001611842565b93506003850492506115e38584611884565b3360009081526011602052604081205491965061160d91600160a060020a03169085908890611896565b50945061162361161d8787611884565b85611884565b91506116316005548561182c565b600555600c546116419088611884565b600c55600160a060020a0388166000908152600860205260409020546116679088611884565b600160a060020a038916600090815260086020908152604080832093909355600d54600a9091529181208054928a0268010000000000000000860201928390039055600c5491925010156116dd576116d9600d54600c546801000000000000000088028115156116d357fe5b0461182c565b600d555b60408051888152602081018490528151600160a060020a038b16927fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139928290030190a2505050505050505050565b336000818152600860205260408120549081111561174c5761174c81611566565b611754610e4b565b5050565b6000640ba43b74003a111561176c57600080fd5b6111ed348361070f565b60008060008061178660016111b0565b1161179057600080fd5b61179a60006111b0565b336000818152600a60209081526040808320805468010000000000000000870201905560099091528120805490829055909201945092506117dc90849061070f565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab36153264588483604051808381526020018281526020019250505060405180910390a2505050565b60008282018381101561183b57fe5b9392505050565b60008083151561185557600091506114f8565b5082820282848281151561186557fe5b041461183b57fe5b600080828481151561187b57fe5b04949350505050565b60008282111561189057fe5b50900390565b33600090815260116020526040812054819084908490600160a060020a0316838115156118c1578991505b600160a060020a038216158015906118e25750600160a060020a0382163314155b80156119085750600654600160a060020a03831660009081526008602052604090205410155b15611af85733600090815260116020526040902054600160a060020a0316151561196257336000908152601160205260409020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384161790555b600160a060020a0382166000908152600960205260409020546119879060028b6116d3565b600160a060020a0380841660009081526009602090815260408083209490945560119052919091205416905080158015906119dc5750600654600160a060020a03821660009081526008602052604090205410155b15611ad357600160a060020a038116600090815260096020526040902054611a0a90600a8b0460030261182c565b600160a060020a03918216600090815260096020908152604080832093909355601190522054168015801590611a5a5750600654600160a060020a03821660009081526008602052604090205410155b15611aa657600160a060020a038116600090815260096020526040902054611a8890600a8b0460020261182c565b600160a060020a038216600090815260096020526040902055611ace565b611abd84600a8b0460030260028c048c030361182c565b935068010000000000000000840292505b611af3565b611ae28460028b048b0361182c565b935068010000000000000000840292505b611b13565b611b02848a61182c565b935068010000000000000000840292505b50919890975095505050505050565b600c546000906b204fce5e3e25026110000000908290633b9aca00611b9b61161d7259aedfc10d7279c5eed140164540000000000088026002850a670de0b6b3a764000002016f0f0bdc21abb48db201e86d40000000008502017704140c78940f6a24fdffc78873d4490d210000000000000001611c20565b811515611ba457fe5b0403949350505050565b600c54600090670de0b6b3a7640000838101918101908390611c05640218711a00828504633b9aca0002018702600283670de0b6b3a763ffff1982890a8b90030104633b9aca0002811515611bff57fe5b04611884565b811515611c0e57fe5b0495945050505050565b6000903b1190565b80600260018201045b818110156111ed578091506002818285811515611c4257fe5b0401811515611c4d57fe5b049050611c29565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611c9657805160ff1916838001178555611cc3565b82800160010185558215611cc3579182015b82811115611cc3578251825591602001919060010190611ca8565b5061136e92610d029250905b8082111561136e5760008155600101611ccf5600a165627a7a7230582077f481155106458f4f37722aab43a8258741a380852d6819e8f2b0c98c3cc7a20029
Deployed Bytecode
0x6080604052600436106101d65763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b81146101f657806306fdde03146102295780630f34dc16146102b357806310d0ffdd146102e857806318160ddd146103005780631d5459f71461031557806322609373146103385780632505c4451461035057806327defa1f14610365578063294205b41461037a578063313ce567146103a05780633ccfd60b146103cb5780634000aea0146103e05780634b750334146104115780634d6352e51461042657806356d399e8146104635780635e079aa51461047857806366042e7a1461048d57806367d326ef146104a2578063688abbf7146104c35780636b2f4632146104dd57806370a08231146104f257806376be1585146105135780637ff276bd146105345780638328b610146105495780638620410b1461056157806387c95058146105765780638974372d1461059c578063949e8acd146105a457806395d89b41146105b9578063a4d55686146105ce578063a9059cbb146105e3578063b84c824614610607578063c47f002714610660578063e4849b32146106b9578063e9fad8ee146106d1578063f088d547146106e6578063fdb5a03e146106fa575b640ba43b74003a11156101e857600080fd5b6101f334600061070f565b50005b34801561020257600080fd5b50610217600160a060020a0360043516610bd3565b60408051918252519081900360200190f35b34801561023557600080fd5b5061023e610c0e565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610278578181015183820152602001610260565b50505050905090810190601f1680156102a55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102bf57600080fd5b506102d4600160a060020a0360043516610c9b565b604080519115158252519081900360200190f35b3480156102f457600080fd5b50610217600435610cb0565b34801561030c57600080fd5b50610217610cfe565b34801561032157600080fd5b50610336600160a060020a0360043516610d05565b005b34801561034457600080fd5b50610217600435610d7b565b34801561035c57600080fd5b506102d4610dd2565b34801561037157600080fd5b506102d4610df3565b34801561038657600080fd5b50610336600160a060020a03600435166024351515610dfc565b3480156103ac57600080fd5b506103b5610e46565b6040805160ff9092168252519081900360200190f35b3480156103d757600080fd5b50610336610e4b565b3480156103ec57600080fd5b506102d460048035600160a060020a0316906024803591604435918201910135610f1e565b34801561041d57600080fd5b50610217611058565b34801561043257600080fd5b50610447600160a060020a03600435166110c5565b60408051600160a060020a039092168252519081900360200190f35b34801561046f57600080fd5b506102176110e0565b34801561048457600080fd5b506104476110e6565b34801561049957600080fd5b506102176110f5565b3480156104ae57600080fd5b50610336600160a060020a036004351661110a565b3480156104cf57600080fd5b5061021760043515156111b0565b3480156104e957600080fd5b506102176111f3565b3480156104fe57600080fd5b50610217600160a060020a03600435166111f8565b34801561051f57600080fd5b506102d4600160a060020a0360043516611213565b34801561054057600080fd5b50610217611228565b34801561055557600080fd5b5061033660043561122e565b34801561056d57600080fd5b50610217611252565b34801561058257600080fd5b50610336600160a060020a036004351660243515156112b8565b610336611302565b3480156105b057600080fd5b5061021761135f565b3480156105c557600080fd5b5061023e611372565b3480156105da57600080fd5b506102176113ca565b3480156105ef57600080fd5b506102d4600160a060020a03600435166024356113d0565b34801561061357600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526103369436949293602493928401919081908401838280828437509497506114ff9650505050505050565b34801561066c57600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526103369436949293602493928401919081908401838280828437509497506115359650505050505050565b3480156106c557600080fd5b50610336600435611566565b3480156106dd57600080fd5b5061033661172b565b610217600160a060020a0360043516611758565b34801561070657600080fd5b50610336611776565b60008060008060008060008060008a60003390506000544210151561073957600f805460ff191690555b600f5460ff16801561075c5750671bc16d674ec80000826107586111f3565b0311155b156109e157600160a060020a03811660009081526007602052604090205460ff16151560011480156107b15750600160a060020a0381166000908152600b60205260409020546706f05b59d3b2000090830111155b15156107bc57600080fd5b600160a060020a0381166000908152600b60205260409020546107df908361182c565b600160a060020a0382166000908152600b602052604090205561080d6108068e6018611842565b606461186d565b995061081a8a600361186d565b985061082a6108068e6001611842565b97506108368a8a611884565b96506108448c8a8989611896565b909750955061085c6108568e89611884565b89611884565b945061086a6005548961182c565b60055561087685611b22565b93506000841180156108925750600c54610890858261182c565b115b151561089d57600080fd5b6000600c541115610901576108b4600c548561182c565b600c8190556801000000000000000088028115156108ce57fe5b600d8054929091049091019055600c546801000000000000000088028115156108f357fe5b048402860386039550610907565b600c8490555b33600090815260086020526040902054610921908561182c565b6008600033600160a060020a0316600160a060020a03168152602001908152602001600020819055508584600d540203925082600a600033600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a031633600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f87604051808381526020018281526020019250505060405180910390a3839a50610bc3565b600f805460ff191690556109f96108068e6018611842565b9950610a068a600361186d565b9850610a166108068e6001611842565b9750610a228a8a611884565b9650610a308c8a8989611896565b9097509550610a426108568e89611884565b9450610a506005548961182c565b600555610a5c85611b22565b9350600084118015610a785750600c54610a76858261182c565b115b1515610a8357600080fd5b6000600c541115610ae757610a9a600c548561182c565b600c819055680100000000000000008802811515610ab457fe5b600d8054929091049091019055600c54680100000000000000008802811515610ad957fe5b048402860386039550610aed565b600c8490555b33600090815260086020526040902054610b07908561182c565b6008600033600160a060020a0316600160a060020a03168152602001908152602001600020819055508584600d540203925082600a600033600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a031633600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f87604051808381526020018281526020019250505060405180910390a3839a505b5050505050505050505092915050565b600160a060020a03166000908152600a6020908152604080832054600890925290912054600d54680100000000000000009102919091030490565b60018054604080516020600284861615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610c935780601f10610c6857610100808354040283529160200191610c93565b820191906000526020600020905b815481529060010190602001808311610c7657829003601f168201915b505050505081565b60106020526000908152604090205460ff1681565b600080808080610cc4610806876018611842565b9350610cd4610806876001611842565b9250610ce9610ce38786611884565b84611884565b9150610cf482611b22565b9695505050505050565b600c545b90565b336000818152600e602052604090205460ff161515610d2357600080fd5b60035474010000000000000000000000000000000000000000900460ff1615610d4b57600080fd5b506003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000806000806000600c548611151515610d9457600080fd5b610d9d86611bae565b9350610dad610806856018611842565b9250610dbd610806856001611842565b9150610cf4610dcc8585611884565b83611884565b60035474010000000000000000000000000000000000000000900460ff1681565b600f5460ff1681565b336000818152600e602052604090205460ff161515610e1a57600080fd5b50600160a060020a03919091166000908152601060205260409020805460ff1916911515919091179055565b601281565b6000806000610e5a60016111b0565b11610e6457600080fd5b339150610e7160006111b0565b600160a060020a0383166000818152600a6020908152604080832080546801000000000000000087020190556009909152808220805490839055905193019350909183156108fc0291849190818181858888f19350505050158015610eda573d6000803e3d6000fd5b50604080518281529051600160a060020a038416917fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc919081900360200190a25050565b600080600160a060020a0386161515610f3657600080fd5b600160a060020a03861660009081526010602052604090205460ff161515600114610f6057600080fd5b610f6a86866113d0565b1515610f7557600080fd5b610f7e86611c18565b1561104c57506040517fc0ee0b8a000000000000000000000000000000000000000000000000000000008152336004820181815260248301879052606060448401908152606484018690528893600160a060020a0385169363c0ee0b8a9390928a928a928a929091608401848480828437820191505095505050505050602060405180830381600087803b15801561101557600080fd5b505af1158015611029573d6000803e3d6000fd5b505050506040513d602081101561103f57600080fd5b5051151561104c57600080fd5b50600195945050505050565b6000806000806000600c546000141561107857640218711a0094506110be565b611089670de0b6b3a7640000611bae565b9350611099610806856018611842565b92506110a9610806856001611842565b91506110b8610dcc8585611884565b90508094505b5050505090565b601160205260009081526040902054600160a060020a031681565b60065481565b600354600160a060020a031681565b6000611105600554600454611884565b905090565b336000818152600e602052604090205460ff16151561112857600080fd5b60035474010000000000000000000000000000000000000000900460ff161561115057600080fd5b506003805474ff000000000000000000000000000000000000000019600160a060020a0390931673ffffffffffffffffffffffffffffffffffffffff19909116179190911674010000000000000000000000000000000000000000179055565b600033826111c6576111c181610bd3565b6111ea565b600160a060020a0381166000908152600960205260409020546111e882610bd3565b015b91505b50919050565b303190565b600160a060020a031660009081526008602052604090205490565b600e6020526000908152604090205460ff1681565b60055481565b336000818152600e602052604090205460ff16151561124c57600080fd5b50600655565b6000806000806000600c54600014156112725764028fa6ae0094506110be565b611283670de0b6b3a7640000611bae565b9350611293610806856018611842565b92506112a3610806856001611842565b91506110b86112b2858561182c565b8361182c565b336000818152600e602052604090205460ff1615156112d657600080fd5b50600160a060020a03919091166000908152600e60205260409020805460ff1916911515919091179055565b6000611312600554600454611884565b90506000811161132157600080fd5b61132d6004548261182c565b600455600354604051600160a060020a03909116908290600081818185875af192505050151561135c57600080fd5b50565b60003361136b816111f8565b91505b5090565b6002805460408051602060018416156101000260001901909316849004601f81018490048402820184019092528181529291830182828015610c935780601f10610c6857610100808354040283529160200191610c93565b60045481565b60008060006113dd61135f565b116113e757600080fd5b503360008181526008602052604090205483111561140457600080fd5b600061141060016111b0565b111561141e5761141e610e4b565b600160a060020a0381166000908152600860205260409020546114419084611884565b600160a060020a038083166000908152600860205260408082209390935590861681522054611470908461182c565b600160a060020a03858116600081815260086020908152604080832095909555600d8054948716808452600a83528684208054968b02909603909555548383529185902080549289029092019091558351878152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3600191505b5092915050565b336000818152600e602052604090205460ff16151561151d57600080fd5b8151611530906002906020850190611c55565b505050565b336000818152600e602052604090205460ff16151561155357600080fd5b8151611530906001906020850190611c55565b600080600080600080600080600061157c61135f565b1161158657600080fd5b336000818152600860205260409020549098508911156115a557600080fd5b8896506115b187611bae565b95506115c1610806876018611842565b94506115d1610806876001611842565b93506003850492506115e38584611884565b3360009081526011602052604081205491965061160d91600160a060020a03169085908890611896565b50945061162361161d8787611884565b85611884565b91506116316005548561182c565b600555600c546116419088611884565b600c55600160a060020a0388166000908152600860205260409020546116679088611884565b600160a060020a038916600090815260086020908152604080832093909355600d54600a9091529181208054928a0268010000000000000000860201928390039055600c5491925010156116dd576116d9600d54600c546801000000000000000088028115156116d357fe5b0461182c565b600d555b60408051888152602081018490528151600160a060020a038b16927fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139928290030190a2505050505050505050565b336000818152600860205260408120549081111561174c5761174c81611566565b611754610e4b565b5050565b6000640ba43b74003a111561176c57600080fd5b6111ed348361070f565b60008060008061178660016111b0565b1161179057600080fd5b61179a60006111b0565b336000818152600a60209081526040808320805468010000000000000000870201905560099091528120805490829055909201945092506117dc90849061070f565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab36153264588483604051808381526020018281526020019250505060405180910390a2505050565b60008282018381101561183b57fe5b9392505050565b60008083151561185557600091506114f8565b5082820282848281151561186557fe5b041461183b57fe5b600080828481151561187b57fe5b04949350505050565b60008282111561189057fe5b50900390565b33600090815260116020526040812054819084908490600160a060020a0316838115156118c1578991505b600160a060020a038216158015906118e25750600160a060020a0382163314155b80156119085750600654600160a060020a03831660009081526008602052604090205410155b15611af85733600090815260116020526040902054600160a060020a0316151561196257336000908152601160205260409020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384161790555b600160a060020a0382166000908152600960205260409020546119879060028b6116d3565b600160a060020a0380841660009081526009602090815260408083209490945560119052919091205416905080158015906119dc5750600654600160a060020a03821660009081526008602052604090205410155b15611ad357600160a060020a038116600090815260096020526040902054611a0a90600a8b0460030261182c565b600160a060020a03918216600090815260096020908152604080832093909355601190522054168015801590611a5a5750600654600160a060020a03821660009081526008602052604090205410155b15611aa657600160a060020a038116600090815260096020526040902054611a8890600a8b0460020261182c565b600160a060020a038216600090815260096020526040902055611ace565b611abd84600a8b0460030260028c048c030361182c565b935068010000000000000000840292505b611af3565b611ae28460028b048b0361182c565b935068010000000000000000840292505b611b13565b611b02848a61182c565b935068010000000000000000840292505b50919890975095505050505050565b600c546000906b204fce5e3e25026110000000908290633b9aca00611b9b61161d7259aedfc10d7279c5eed140164540000000000088026002850a670de0b6b3a764000002016f0f0bdc21abb48db201e86d40000000008502017704140c78940f6a24fdffc78873d4490d210000000000000001611c20565b811515611ba457fe5b0403949350505050565b600c54600090670de0b6b3a7640000838101918101908390611c05640218711a00828504633b9aca0002018702600283670de0b6b3a763ffff1982890a8b90030104633b9aca0002811515611bff57fe5b04611884565b811515611c0e57fe5b0495945050505050565b6000903b1190565b80600260018201045b818110156111ed578091506002818285811515611c4257fe5b0401811515611c4d57fe5b049050611c29565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611c9657805160ff1916838001178555611cc3565b82800160010185558215611cc3579182015b82811115611cc3578251825591602001919060010190611ca8565b5061136e92610d029250905b8082111561136e5760008155600101611ccf5600a165627a7a7230582077f481155106458f4f37722aab43a8258741a380852d6819e8f2b0c98c3cc7a20029
Swarm Source
bzzr://77f481155106458f4f37722aab43a8258741a380852d6819e8f2b0c98c3cc7a2
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.