Overview
ETH Balance
0.034630916393364376 ETH
Eth Value
$91.49 (@ $2,641.87/ETH)More Info
Private Name Tags
ContractCreator
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
6202393 | 2373 days ago | 0.00005833 ETH | ||||
6202377 | 2373 days ago | 0.0000075 ETH | ||||
6202377 | 2373 days ago | 0.00000975 ETH | ||||
6199881 | 2374 days ago | 0.00028925 ETH | ||||
6199865 | 2374 days ago | 0.0000075 ETH | ||||
6199865 | 2374 days ago | 0.00000975 ETH | ||||
6197934 | 2374 days ago | 0.00075039 ETH | ||||
6197934 | 2374 days ago | 0.00097551 ETH | ||||
6197921 | 2374 days ago | 0.01 ETH | ||||
6197908 | 2374 days ago | 0.0000075 ETH | ||||
6197908 | 2374 days ago | 0.00000975 ETH | ||||
6197897 | 2374 days ago | 0.00075024 ETH | ||||
6197897 | 2374 days ago | 0.00097531 ETH | ||||
6197884 | 2374 days ago | 0.01 ETH | ||||
6197860 | 2374 days ago | 0.0000075 ETH | ||||
6197855 | 2374 days ago | 0.00075758 ETH | ||||
6197852 | 2374 days ago | 0.0000075 ETH | ||||
6197627 | 2374 days ago | 0.0000075 ETH | ||||
6197609 | 2374 days ago | 0.01 ETH | ||||
6197548 | 2374 days ago | 0.00823933 ETH | ||||
6197545 | 2374 days ago | 0.01647867 ETH | ||||
6197542 | 2374 days ago | 0.00823933 ETH | ||||
6197527 | 2374 days ago | 0.03295735 ETH | ||||
6197218 | 2374 days ago | 0.00000787 ETH | ||||
6197202 | 2374 days ago | 0.01 ETH |
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
Contract Source Code (Solidity)
/** *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
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
608060405234801561001057600080fd5b506040805160608181018352737ce07aa2fc356fa52f622c1f4df1e8eaad7febf08252600060208084018281526101f4858701908152600180855280845295517fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f8054600160a060020a03928316600160a060020a03199182161790915592517fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b68879305590517fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b6887931557f4a151257bd25c9fadd83f4e1ec16c22dee083cd2c51131acaa08df028690518986905586518086018852736b5d2ba1691e30376a394c13e38f48e25634724f815280840185815260fa828a01908152600280885289875292517fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec330f805491861691871691909117905590517fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec331055517fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec3311557f4f1626a1499e6c732cf3f82aa03b275c454acc4869d0ebb16eb529b92022229a558651808601885273459b5286e28d0dd452af4f38ffed4d302fc833c88152808401858152607d828a0181815260038089528a885293517f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60b805491871691881691909117905591517f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60c5590517f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60d557f2080cb44f3d4542abc22a17dbd6c7560fe8fcdc29aff6a3da62155f94d9ce6c2919091558751958601885273d775c5063bef4eda77a21646a6880494d9a1156b808752868501868152988701918252600480875297855295517fedc95719e9a3b28dd8e80877cb5880a9be7de1a13fc8b05e7999683b6b567643805491909316931692909217905594517fedc95719e9a3b28dd8e80877cb5880a9be7de1a13fc8b05e7999683b6b5676445593517fedc95719e9a3b28dd8e80877cb5880a9be7de1a13fc8b05e7999683b6b567645559081529091527ff1e7241d2a16bc549f60e1ffc93c7b9e979e56bd47f5d2e9f35022aeeb25e5ba5561083b8061037d6000396000f3006080604052600436106100775763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166310f01eba81146100855780633ccfd60b146100c55780636e7d3025146100dc57806383197ef014610129578063a5ae65ba1461013e578063d0e30db014610153575b346100818161016f565b5050005b34801561009157600080fd5b506100b373ffffffffffffffffffffffffffffffffffffffff6004351661041a565b60408051918252519081900360200190f35b3480156100d157600080fd5b506100da61042c565b005b3480156100e857600080fd5b506100f4600435610554565b6040805173ffffffffffffffffffffffffffffffffffffffff9094168452602084019290925282820152519081900360600190f35b34801561013557600080fd5b506100da61058d565b34801561014a57600080fd5b506100b361060f565b61015b610690565b604080519115158252519081900360200190f35b600160008181526020919091527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b68879315481908190819081906103e8906101bb90889063ffffffff6106a516565b8115156101c457fe5b600260005260016020527fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec33115491900494506103e89061020a90889063ffffffff6106a516565b81151561021357fe5b600360005260016020527f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60d5491900493506103e89061025990889063ffffffff6106a516565b81151561026257fe5b0491506102878261027b85818a8963ffffffff61072216565b9063ffffffff61072216565b600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b6887930549091506102c790859063ffffffff61078216565b60016020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b68879305560026000527fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec33105461032690849063ffffffff61078216565b60016020527fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec33105560036000527f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60c5461038590839063ffffffff61078216565b60016020527f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60c5560046000527fedc95719e9a3b28dd8e80877cb5880a9be7de1a13fc8b05e7999683b6b567644546103e490829063ffffffff61078216565b600460005260016020527fedc95719e9a3b28dd8e80877cb5880a9be7de1a13fc8b05e7999683b6b567644555092949350505050565b60006020819052908152604090205481565b60008033803b8015610488576040805160e560020a62461bcd02815260206004820152601160248201527f736f7272792068756d616e73206f6e6c79000000000000000000000000000000604482015290519081900360640190fd5b3360009081526020819052604090205493508315156104f1576040805160e560020a62461bcd02815260206004820152600e60248201527f736f727279206e6f74207465616d000000000000000000000000000000000000604482015290519081900360640190fd5b6104fa846107dd565b60008581526001602052604080822054905192955073ffffffffffffffffffffffffffffffffffffffff169185156108fc0291869190818181858888f1935050505015801561054d573d6000803e3d6000fd5b5050505050565b600160208190526000918252604090912080549181015460029091015473ffffffffffffffffffffffffffffffffffffffff9092169183565b737ce07aa2fc356fa52f622c1f4df1e8eaad7febf033146105f8576040805160e560020a62461bcd02815260206004820152601360248201527f736f727279206e6f74207468652061646d696e00000000000000000000000000604482015290519081900360640190fd5b737ce07aa2fc356fa52f622c1f4df1e8eaad7febf0ff5b3360009081526020819052604081205481811515610677576040805160e560020a62461bcd02815260206004820152601160248201527f736f727279206e6f7420696e207465616d000000000000000000000000000000604482015290519081900360640190fd5b5060009081526001602081905260409091200154919050565b60003461069c8161016f565b50600191505090565b60008215156106b65750600061071c565b508181028183828115156106c657fe5b041461071c576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d617468206d756c206661696c656400000000000000000000000000604482015290519081900360640190fd5b92915050565b60008282111561077c576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d61746820737562206661696c656400000000000000000000000000604482015290519081900360640190fd5b50900390565b8181018281101561071c576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d61746820616464206661696c656400000000000000000000000000604482015290519081900360640190fd5b6000818152600160208190526040822001548181111561071c57600083815260016020819052604082200155929150505600a165627a7a723058206341ee81a15bce872683d2e22bafeabf2716dc3bab800a45e3f48aa38ce6b3190029
Deployed Bytecode
0x6080604052600436106100775763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166310f01eba81146100855780633ccfd60b146100c55780636e7d3025146100dc57806383197ef014610129578063a5ae65ba1461013e578063d0e30db014610153575b346100818161016f565b5050005b34801561009157600080fd5b506100b373ffffffffffffffffffffffffffffffffffffffff6004351661041a565b60408051918252519081900360200190f35b3480156100d157600080fd5b506100da61042c565b005b3480156100e857600080fd5b506100f4600435610554565b6040805173ffffffffffffffffffffffffffffffffffffffff9094168452602084019290925282820152519081900360600190f35b34801561013557600080fd5b506100da61058d565b34801561014a57600080fd5b506100b361060f565b61015b610690565b604080519115158252519081900360200190f35b600160008181526020919091527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b68879315481908190819081906103e8906101bb90889063ffffffff6106a516565b8115156101c457fe5b600260005260016020527fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec33115491900494506103e89061020a90889063ffffffff6106a516565b81151561021357fe5b600360005260016020527f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60d5491900493506103e89061025990889063ffffffff6106a516565b81151561026257fe5b0491506102878261027b85818a8963ffffffff61072216565b9063ffffffff61072216565b600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b6887930549091506102c790859063ffffffff61078216565b60016020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b68879305560026000527fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec33105461032690849063ffffffff61078216565b60016020527fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec33105560036000527f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60c5461038590839063ffffffff61078216565b60016020527f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60c5560046000527fedc95719e9a3b28dd8e80877cb5880a9be7de1a13fc8b05e7999683b6b567644546103e490829063ffffffff61078216565b600460005260016020527fedc95719e9a3b28dd8e80877cb5880a9be7de1a13fc8b05e7999683b6b567644555092949350505050565b60006020819052908152604090205481565b60008033803b8015610488576040805160e560020a62461bcd02815260206004820152601160248201527f736f7272792068756d616e73206f6e6c79000000000000000000000000000000604482015290519081900360640190fd5b3360009081526020819052604090205493508315156104f1576040805160e560020a62461bcd02815260206004820152600e60248201527f736f727279206e6f74207465616d000000000000000000000000000000000000604482015290519081900360640190fd5b6104fa846107dd565b60008581526001602052604080822054905192955073ffffffffffffffffffffffffffffffffffffffff169185156108fc0291869190818181858888f1935050505015801561054d573d6000803e3d6000fd5b5050505050565b600160208190526000918252604090912080549181015460029091015473ffffffffffffffffffffffffffffffffffffffff9092169183565b737ce07aa2fc356fa52f622c1f4df1e8eaad7febf033146105f8576040805160e560020a62461bcd02815260206004820152601360248201527f736f727279206e6f74207468652061646d696e00000000000000000000000000604482015290519081900360640190fd5b737ce07aa2fc356fa52f622c1f4df1e8eaad7febf0ff5b3360009081526020819052604081205481811515610677576040805160e560020a62461bcd02815260206004820152601160248201527f736f727279206e6f7420696e207465616d000000000000000000000000000000604482015290519081900360640190fd5b5060009081526001602081905260409091200154919050565b60003461069c8161016f565b50600191505090565b60008215156106b65750600061071c565b508181028183828115156106c657fe5b041461071c576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d617468206d756c206661696c656400000000000000000000000000604482015290519081900360640190fd5b92915050565b60008282111561077c576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d61746820737562206661696c656400000000000000000000000000604482015290519081900360640190fd5b50900390565b8181018281101561071c576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d61746820616464206661696c656400000000000000000000000000604482015290519081900360640190fd5b6000818152600160208190526040822001548181111561071c57600083815260016020819052604082200155929150505600a165627a7a723058206341ee81a15bce872683d2e22bafeabf2716dc3bab800a45e3f48aa38ce6b3190029
Swarm Source
bzzr://6341ee81a15bce872683d2e22bafeabf2716dc3bab800a45e3f48aa38ce6b319
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $2,643.16 | 0.0346 | $91.53 |
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.