ETH Price: $2,641.87 (-3.14%)

Contract

0x03347ABb58cc3071FDBBa7F7bD7cca03C8E04229
 

Overview

ETH Balance

0.034630916393364376 ETH

Eth Value

$91.49 (@ $2,641.87/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw61975482018-08-23 5:36:382374 days ago1535002598IN
0x03347ABb...3C8E04229
0 ETH0.000041312
Withdraw61975452018-08-23 5:35:422374 days ago1535002542IN
0x03347ABb...3C8E04229
0 ETH0.000051642.5
Withdraw61975422018-08-23 5:34:512374 days ago1535002491IN
0x03347ABb...3C8E04229
0 ETH0.000051642.5
Withdraw61975272018-08-23 5:31:462374 days ago1535002306IN
0x03347ABb...3C8E04229
0 ETH0.000061973

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
62023932018-08-24 1:45:522373 days ago1535075152
0x03347ABb...3C8E04229
0.00005833 ETH
62023772018-08-24 1:40:542373 days ago1535074854
0x03347ABb...3C8E04229
0.0000075 ETH
62023772018-08-24 1:40:542373 days ago1535074854
0x03347ABb...3C8E04229
0.00000975 ETH
61998812018-08-23 15:25:262374 days ago1535037926
0x03347ABb...3C8E04229
0.00028925 ETH
61998652018-08-23 15:22:292374 days ago1535037749
0x03347ABb...3C8E04229
0.0000075 ETH
61998652018-08-23 15:22:292374 days ago1535037749
0x03347ABb...3C8E04229
0.00000975 ETH
61979342018-08-23 7:22:282374 days ago1535008948
0x03347ABb...3C8E04229
0.00075039 ETH
61979342018-08-23 7:22:282374 days ago1535008948
0x03347ABb...3C8E04229
0.00097551 ETH
61979212018-08-23 7:19:022374 days ago1535008742
0x03347ABb...3C8E04229
0.01 ETH
61979082018-08-23 7:13:522374 days ago1535008432
0x03347ABb...3C8E04229
0.0000075 ETH
61979082018-08-23 7:13:522374 days ago1535008432
0x03347ABb...3C8E04229
0.00000975 ETH
61978972018-08-23 7:12:162374 days ago1535008336
0x03347ABb...3C8E04229
0.00075024 ETH
61978972018-08-23 7:12:162374 days ago1535008336
0x03347ABb...3C8E04229
0.00097531 ETH
61978842018-08-23 7:09:162374 days ago1535008156
0x03347ABb...3C8E04229
0.01 ETH
61978602018-08-23 7:01:462374 days ago1535007706
0x03347ABb...3C8E04229
0.0000075 ETH
61978552018-08-23 7:00:152374 days ago1535007615
0x03347ABb...3C8E04229
0.00075758 ETH
61978522018-08-23 6:58:432374 days ago1535007523
0x03347ABb...3C8E04229
0.0000075 ETH
61976272018-08-23 5:59:412374 days ago1535003981
0x03347ABb...3C8E04229
0.0000075 ETH
61976092018-08-23 5:53:212374 days ago1535003601
0x03347ABb...3C8E04229
0.01 ETH
61975482018-08-23 5:36:382374 days ago1535002598
0x03347ABb...3C8E04229
0.00823933 ETH
61975452018-08-23 5:35:422374 days ago1535002542
0x03347ABb...3C8E04229
0.01647867 ETH
61975422018-08-23 5:34:512374 days ago1535002491
0x03347ABb...3C8E04229
0.00823933 ETH
61975272018-08-23 5:31:462374 days ago1535002306
0x03347ABb...3C8E04229
0.03295735 ETH
61972182018-08-23 4:17:262374 days ago1534997846
0x03347ABb...3C8E04229
0.00000787 ETH
61972022018-08-23 4:12:012374 days ago1534997521
0x03347ABb...3C8E04229
0.01 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CompanyShare

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.24;

contract CompanyShare {
    using SafeMath for *;

    mapping (address => uint256) public pIDxAddr_;          // (addr => pID) returns player id by address
    mapping (uint256 => CompanySharedatasets.Player) public team_;          // (team => fees) fee distribution by team

    /**
     * @dev prevents contracts from interacting with fomo3d
     */
    modifier isHuman() {
        address _addr = msg.sender;
        uint256 _codeLength;

        assembly {_codeLength := extcodesize(_addr)}
        require(_codeLength == 0, "sorry humans only");
        _;
    }

    constructor()
        public
    {
        address first = 0x7ce07aa2fc356fa52f622c1f4df1e8eaad7febf0;
        address second = 0x6b5d2ba1691e30376a394c13e38f48e25634724f;
        address third = 0x459b5286e28d0dd452af4f38ffed4d302fc833c8;
        address fourth = 0xd775c5063bef4eda77a21646a6880494d9a1156b;

        //creatTeam
        team_[1] = CompanySharedatasets.Player(first,0, 500);
        pIDxAddr_[first] = 1;
        team_[2] = CompanySharedatasets.Player(second,0, 250);
        pIDxAddr_[second] = 2;
        team_[3] = CompanySharedatasets.Player(third,0, 125);
        pIDxAddr_[third] = 3;
        team_[4] = CompanySharedatasets.Player(fourth,0, 125);
        pIDxAddr_[fourth] = 4;
	}

    /**
     * @dev emergency buy uses last stored affiliate ID and team snek
     */
    function()
        public
        payable
    {
        uint256 _eth = msg.value;
        //giveTeam Gen
        giveGen(_eth);
    }

    function deposit()
        public
        payable
        returns(bool)
    {
        uint256 _eth = msg.value;
        //giveTeam Gen
        giveGen(_eth);
        return true;
    }

	function giveGen(uint256 _eth)
		private
		returns(uint256)
    {
        uint256 _genFirst = _eth.mul(team_[1].percent) /1000;
        uint256 _genSecond = _eth.mul(team_[2].percent) /1000;
        uint256 _genThird = _eth.mul(team_[3].percent) /1000;
        uint256 _genFourth = _eth.sub(_genFirst).sub(_genSecond).sub(_genThird);
        //give gen
        team_[1].gen = _genFirst.add(team_[1].gen);
        team_[2].gen = _genSecond.add(team_[2].gen);
        team_[3].gen = _genThird.add(team_[3].gen);
        team_[4].gen = _genFourth.add(team_[4].gen);
    }

        /**
     * @dev withdraws all of your earnings.
     * -functionhash- 0x3ccfd60b
     */
    function withdraw()
        isHuman()
        public
    {
        // fetch player ID
        uint256 _pID = pIDxAddr_[msg.sender];
        require(_pID != 0, "sorry not team");
        // setup temp var for player eth
        uint256 _eth;
        // get their earnings
        _eth = withdrawEarnings(_pID);
        team_[_pID].addr.transfer(_eth);
    }

        /**
     * @dev adds up unmasked earnings, & vault earnings, sets them all to 0
     * @return earnings in wei format
     */
    function withdrawEarnings(uint256 _pID)
        private
        returns(uint256)
    {

        // from vaults
        uint256 _earnings = team_[_pID].gen;
        if (_earnings > 0)
        {
            team_[_pID].gen = 0;
        }

        return(_earnings);
    }

    function getGen()
		public
		view
		returns(uint256)
    {
        uint256 _pID = pIDxAddr_[msg.sender];
        require(_pID != 0, "sorry not in team");
        uint256 _earnings = team_[_pID].gen;
        return _earnings;
    }
    
    
     function destroy() public{ // so funds not locked in contract forever
         require(msg.sender == 0x7ce07aa2fc356fa52f622c1f4df1e8eaad7febf0, "sorry not the admin");
         suicide(0x7ce07aa2fc356fa52f622c1f4df1e8eaad7febf0); // send funds to organizer
     }
}


//==============================================================================
//   __|_ _    __|_ _  .
//  _\ | | |_|(_ | _\  .
//==============================================================================
library CompanySharedatasets {
    //compressedData key
    struct Player {
        address addr;   // player address
        uint256 gen;    // general vault
        uint256 percent;    // gen percent vault
    }
}

/**
 * @title SafeMath v0.1.9
 * @dev Math operations with safety checks that throw on error
 * change notes:  original SafeMath library from OpenZeppelin modified by Inventor
 * - added sqrt
 * - added sq
 * - added pwr
 * - changed asserts to requires with error log outputs
 * - removed div, its useless
 */
library SafeMath {

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

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

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

    /**
     * @dev gives square root of given x.
     */
    function sqrt(uint256 x)
        internal
        pure
        returns (uint256 y)
    {
        uint256 z = ((add(x,1)) / 2);
        y = x;
        while (z < y)
        {
            y = z;
            z = ((add((x / z),z)) / 2);
        }
    }

    /**
     * @dev gives square. multiplies x by x
     */
    function sq(uint256 x)
        internal
        pure
        returns (uint256)
    {
        return (mul(x,x));
    }

    /**
     * @dev x to the power of y
     */
    function pwr(uint256 x, uint256 y)
        internal
        pure
        returns (uint256)
    {
        if (x==0)
            return (0);
        else if (y==0)
            return (1);
        else
        {
            uint256 z = x;
            for (uint256 i=1; i < y; i++)
                z = mul(z,x);
            return (z);
        }
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"pIDxAddr_","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"team_","outputs":[{"name":"addr","type":"address"},{"name":"gen","type":"uint256"},{"name":"percent","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"destroy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getGen","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"deposit","outputs":[{"name":"","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

608060405234801561001057600080fd5b506040805160608181018352737ce07aa2fc356fa52f622c1f4df1e8eaad7febf08252600060208084018281526101f4858701908152600180855280845295517fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f8054600160a060020a03928316600160a060020a03199182161790915592517fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b68879305590517fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b6887931557f4a151257bd25c9fadd83f4e1ec16c22dee083cd2c51131acaa08df028690518986905586518086018852736b5d2ba1691e30376a394c13e38f48e25634724f815280840185815260fa828a01908152600280885289875292517fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec330f805491861691871691909117905590517fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec331055517fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec3311557f4f1626a1499e6c732cf3f82aa03b275c454acc4869d0ebb16eb529b92022229a558651808601885273459b5286e28d0dd452af4f38ffed4d302fc833c88152808401858152607d828a0181815260038089528a885293517f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60b805491871691881691909117905591517f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60c5590517f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60d557f2080cb44f3d4542abc22a17dbd6c7560fe8fcdc29aff6a3da62155f94d9ce6c2919091558751958601885273d775c5063bef4eda77a21646a6880494d9a1156b808752868501868152988701918252600480875297855295517fedc95719e9a3b28dd8e80877cb5880a9be7de1a13fc8b05e7999683b6b567643805491909316931692909217905594517fedc95719e9a3b28dd8e80877cb5880a9be7de1a13fc8b05e7999683b6b5676445593517fedc95719e9a3b28dd8e80877cb5880a9be7de1a13fc8b05e7999683b6b567645559081529091527ff1e7241d2a16bc549f60e1ffc93c7b9e979e56bd47f5d2e9f35022aeeb25e5ba5561083b8061037d6000396000f3006080604052600436106100775763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166310f01eba81146100855780633ccfd60b146100c55780636e7d3025146100dc57806383197ef014610129578063a5ae65ba1461013e578063d0e30db014610153575b346100818161016f565b5050005b34801561009157600080fd5b506100b373ffffffffffffffffffffffffffffffffffffffff6004351661041a565b60408051918252519081900360200190f35b3480156100d157600080fd5b506100da61042c565b005b3480156100e857600080fd5b506100f4600435610554565b6040805173ffffffffffffffffffffffffffffffffffffffff9094168452602084019290925282820152519081900360600190f35b34801561013557600080fd5b506100da61058d565b34801561014a57600080fd5b506100b361060f565b61015b610690565b604080519115158252519081900360200190f35b600160008181526020919091527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b68879315481908190819081906103e8906101bb90889063ffffffff6106a516565b8115156101c457fe5b600260005260016020527fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec33115491900494506103e89061020a90889063ffffffff6106a516565b81151561021357fe5b600360005260016020527f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60d5491900493506103e89061025990889063ffffffff6106a516565b81151561026257fe5b0491506102878261027b85818a8963ffffffff61072216565b9063ffffffff61072216565b600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b6887930549091506102c790859063ffffffff61078216565b60016020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b68879305560026000527fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec33105461032690849063ffffffff61078216565b60016020527fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec33105560036000527f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60c5461038590839063ffffffff61078216565b60016020527f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60c5560046000527fedc95719e9a3b28dd8e80877cb5880a9be7de1a13fc8b05e7999683b6b567644546103e490829063ffffffff61078216565b600460005260016020527fedc95719e9a3b28dd8e80877cb5880a9be7de1a13fc8b05e7999683b6b567644555092949350505050565b60006020819052908152604090205481565b60008033803b8015610488576040805160e560020a62461bcd02815260206004820152601160248201527f736f7272792068756d616e73206f6e6c79000000000000000000000000000000604482015290519081900360640190fd5b3360009081526020819052604090205493508315156104f1576040805160e560020a62461bcd02815260206004820152600e60248201527f736f727279206e6f74207465616d000000000000000000000000000000000000604482015290519081900360640190fd5b6104fa846107dd565b60008581526001602052604080822054905192955073ffffffffffffffffffffffffffffffffffffffff169185156108fc0291869190818181858888f1935050505015801561054d573d6000803e3d6000fd5b5050505050565b600160208190526000918252604090912080549181015460029091015473ffffffffffffffffffffffffffffffffffffffff9092169183565b737ce07aa2fc356fa52f622c1f4df1e8eaad7febf033146105f8576040805160e560020a62461bcd02815260206004820152601360248201527f736f727279206e6f74207468652061646d696e00000000000000000000000000604482015290519081900360640190fd5b737ce07aa2fc356fa52f622c1f4df1e8eaad7febf0ff5b3360009081526020819052604081205481811515610677576040805160e560020a62461bcd02815260206004820152601160248201527f736f727279206e6f7420696e207465616d000000000000000000000000000000604482015290519081900360640190fd5b5060009081526001602081905260409091200154919050565b60003461069c8161016f565b50600191505090565b60008215156106b65750600061071c565b508181028183828115156106c657fe5b041461071c576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d617468206d756c206661696c656400000000000000000000000000604482015290519081900360640190fd5b92915050565b60008282111561077c576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d61746820737562206661696c656400000000000000000000000000604482015290519081900360640190fd5b50900390565b8181018281101561071c576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d61746820616464206661696c656400000000000000000000000000604482015290519081900360640190fd5b6000818152600160208190526040822001548181111561071c57600083815260016020819052604082200155929150505600a165627a7a723058206341ee81a15bce872683d2e22bafeabf2716dc3bab800a45e3f48aa38ce6b3190029

Deployed Bytecode

0x6080604052600436106100775763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166310f01eba81146100855780633ccfd60b146100c55780636e7d3025146100dc57806383197ef014610129578063a5ae65ba1461013e578063d0e30db014610153575b346100818161016f565b5050005b34801561009157600080fd5b506100b373ffffffffffffffffffffffffffffffffffffffff6004351661041a565b60408051918252519081900360200190f35b3480156100d157600080fd5b506100da61042c565b005b3480156100e857600080fd5b506100f4600435610554565b6040805173ffffffffffffffffffffffffffffffffffffffff9094168452602084019290925282820152519081900360600190f35b34801561013557600080fd5b506100da61058d565b34801561014a57600080fd5b506100b361060f565b61015b610690565b604080519115158252519081900360200190f35b600160008181526020919091527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b68879315481908190819081906103e8906101bb90889063ffffffff6106a516565b8115156101c457fe5b600260005260016020527fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec33115491900494506103e89061020a90889063ffffffff6106a516565b81151561021357fe5b600360005260016020527f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60d5491900493506103e89061025990889063ffffffff6106a516565b81151561026257fe5b0491506102878261027b85818a8963ffffffff61072216565b9063ffffffff61072216565b600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b6887930549091506102c790859063ffffffff61078216565b60016020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b68879305560026000527fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec33105461032690849063ffffffff61078216565b60016020527fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec33105560036000527f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60c5461038590839063ffffffff61078216565b60016020527f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60c5560046000527fedc95719e9a3b28dd8e80877cb5880a9be7de1a13fc8b05e7999683b6b567644546103e490829063ffffffff61078216565b600460005260016020527fedc95719e9a3b28dd8e80877cb5880a9be7de1a13fc8b05e7999683b6b567644555092949350505050565b60006020819052908152604090205481565b60008033803b8015610488576040805160e560020a62461bcd02815260206004820152601160248201527f736f7272792068756d616e73206f6e6c79000000000000000000000000000000604482015290519081900360640190fd5b3360009081526020819052604090205493508315156104f1576040805160e560020a62461bcd02815260206004820152600e60248201527f736f727279206e6f74207465616d000000000000000000000000000000000000604482015290519081900360640190fd5b6104fa846107dd565b60008581526001602052604080822054905192955073ffffffffffffffffffffffffffffffffffffffff169185156108fc0291869190818181858888f1935050505015801561054d573d6000803e3d6000fd5b5050505050565b600160208190526000918252604090912080549181015460029091015473ffffffffffffffffffffffffffffffffffffffff9092169183565b737ce07aa2fc356fa52f622c1f4df1e8eaad7febf033146105f8576040805160e560020a62461bcd02815260206004820152601360248201527f736f727279206e6f74207468652061646d696e00000000000000000000000000604482015290519081900360640190fd5b737ce07aa2fc356fa52f622c1f4df1e8eaad7febf0ff5b3360009081526020819052604081205481811515610677576040805160e560020a62461bcd02815260206004820152601160248201527f736f727279206e6f7420696e207465616d000000000000000000000000000000604482015290519081900360640190fd5b5060009081526001602081905260409091200154919050565b60003461069c8161016f565b50600191505090565b60008215156106b65750600061071c565b508181028183828115156106c657fe5b041461071c576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d617468206d756c206661696c656400000000000000000000000000604482015290519081900360640190fd5b92915050565b60008282111561077c576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d61746820737562206661696c656400000000000000000000000000604482015290519081900360640190fd5b50900390565b8181018281101561071c576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d61746820616464206661696c656400000000000000000000000000604482015290519081900360640190fd5b6000818152600160208190526040822001548181111561071c57600083815260016020819052604082200155929150505600a165627a7a723058206341ee81a15bce872683d2e22bafeabf2716dc3bab800a45e3f48aa38ce6b3190029

Swarm Source

bzzr://6341ee81a15bce872683d2e22bafeabf2716dc3bab800a45e3f48aa38ce6b319

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.