Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Transactions Sent
Latest:
N/A
First:
N/A
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
6408450 | 2186 days ago | 0.07346063 ETH | ||||
6408114 | 2186 days ago | 0.0117425 ETH | ||||
6364858 | 2193 days ago | 0.000075 ETH | ||||
6364858 | 2193 days ago | 0.0000975 ETH | ||||
6364858 | 2193 days ago | 0.00675002 ETH | ||||
6364808 | 2193 days ago | 0.000075 ETH | ||||
6364808 | 2193 days ago | 0.0000975 ETH | ||||
6364747 | 2193 days ago | 0.000075 ETH | ||||
6364747 | 2193 days ago | 0.0000975 ETH | ||||
6364737 | 2193 days ago | 0.00001 ETH | ||||
6364719 | 2193 days ago | 0.0001 ETH | ||||
6364719 | 2193 days ago | 0.00013 ETH | ||||
6364719 | 2193 days ago | 0.009 ETH | ||||
6364009 | 2193 days ago | 0.01 ETH | ||||
6363982 | 2193 days ago | 0.00351683 ETH | ||||
6359903 | 2194 days ago | 0.01059272 ETH | ||||
6359278 | 2194 days ago | 0.000075 ETH | ||||
6359261 | 2194 days ago | 0.00008648 ETH | ||||
6359147 | 2194 days ago | 0.000075 ETH | ||||
6359147 | 2194 days ago | 0.0000975 ETH | ||||
6359147 | 2194 days ago | 0.00675021 ETH | ||||
6359115 | 2194 days ago | 0.000075 ETH | ||||
6359115 | 2194 days ago | 0.0000975 ETH | ||||
6359111 | 2194 days ago | 0.001 ETH | ||||
6359073 | 2194 days ago | 0.000075 ETH |
Loading...
Loading
Contract Self Destruct called at Txn Hash 0x42e233d7a7364a013ee300acc41f03b9736834fb9f8a17add6f0dde83277802c
Contract Name:
CompanyShare
Compiler Version
v0.4.25+commit.59dbf8f1
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-09-19 */ 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 destory(){ uint256 _pID = pIDxAddr_[msg.sender]; require(_pID != 0, "sorry not in team"); selfdestruct(0x7ce07aa2fc356fa52f622c1f4df1e8eaad7febf0); } } //============================================================================== // __|_ _ __|_ _ . // _\ | | |_|(_ | _\ . //============================================================================== 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":false,"inputs":[],"name":"destory","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":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
608060405234801561001057600080fd5b506040805160608181018352737ce07aa2fc356fa52f622c1f4df1e8eaad7febf08252600060208084018281526101f4858701908152600180855280845295517fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f8054600160a060020a03928316600160a060020a03199182161790915592517fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b68879305590517fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b6887931557f4a151257bd25c9fadd83f4e1ec16c22dee083cd2c51131acaa08df028690518986905586518086018852736b5d2ba1691e30376a394c13e38f48e25634724f815280840185815260fa828a01908152600280885289875292517fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec330f805491861691871691909117905590517fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec331055517fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec3311557f4f1626a1499e6c732cf3f82aa03b275c454acc4869d0ebb16eb529b92022229a558651808601885273459b5286e28d0dd452af4f38ffed4d302fc833c88152808401858152607d828a0181815260038089528a885293517f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60b805491871691881691909117905591517f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60c5590517f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60d557f2080cb44f3d4542abc22a17dbd6c7560fe8fcdc29aff6a3da62155f94d9ce6c2919091558751958601885273d775c5063bef4eda77a21646a6880494d9a1156b808752868501868152988701918252600480875297855295517fedc95719e9a3b28dd8e80877cb5880a9be7de1a13fc8b05e7999683b6b567643805491909316931692909217905594517fedc95719e9a3b28dd8e80877cb5880a9be7de1a13fc8b05e7999683b6b5676445593517fedc95719e9a3b28dd8e80877cb5880a9be7de1a13fc8b05e7999683b6b567645559081529091527ff1e7241d2a16bc549f60e1ffc93c7b9e979e56bd47f5d2e9f35022aeeb25e5ba556108378061037d6000396000f3006080604052600436106100775763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166310f01eba81146100855780633ccfd60b146100c55780636bdebcc9146100dc5780636e7d3025146100f1578063a5ae65ba1461013e578063d0e30db014610153575b346100818161016f565b5050005b34801561009157600080fd5b506100b373ffffffffffffffffffffffffffffffffffffffff6004351661041a565b60408051918252519081900360200190f35b3480156100d157600080fd5b506100da61042c565b005b3480156100e857600080fd5b506100da610554565b3480156100fd57600080fd5b506101096004356105d2565b6040805173ffffffffffffffffffffffffffffffffffffffff9094168452602084019290925282820152519081900360600190f35b34801561014a57600080fd5b506100b361060b565b61015b61068c565b604080519115158252519081900360200190f35b600160008181526020919091527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b68879315481908190819081906103e8906101bb90889063ffffffff6106a116565b8115156101c457fe5b600260005260016020527fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec33115491900494506103e89061020a90889063ffffffff6106a116565b81151561021357fe5b600360005260016020527f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60d5491900493506103e89061025990889063ffffffff6106a116565b81151561026257fe5b0491506102878261027b85818a8963ffffffff61071e16565b9063ffffffff61071e16565b600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b6887930549091506102c790859063ffffffff61077e16565b60016020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b68879305560026000527fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec33105461032690849063ffffffff61077e16565b60016020527fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec33105560036000527f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60c5461038590839063ffffffff61077e16565b60016020527f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60c5560046000527fedc95719e9a3b28dd8e80877cb5880a9be7de1a13fc8b05e7999683b6b567644546103e490829063ffffffff61077e16565b600460005260016020527fedc95719e9a3b28dd8e80877cb5880a9be7de1a13fc8b05e7999683b6b567644555092949350505050565b60006020819052908152604090205481565b60008033803b8015610488576040805160e560020a62461bcd02815260206004820152601160248201527f736f7272792068756d616e73206f6e6c79000000000000000000000000000000604482015290519081900360640190fd5b3360009081526020819052604090205493508315156104f1576040805160e560020a62461bcd02815260206004820152600e60248201527f736f727279206e6f74207465616d000000000000000000000000000000000000604482015290519081900360640190fd5b6104fa846107d9565b60008581526001602052604080822054905192955073ffffffffffffffffffffffffffffffffffffffff169185156108fc0291869190818181858888f1935050505015801561054d573d6000803e3d6000fd5b5050505050565b336000908152602081905260409020548015156105bb576040805160e560020a62461bcd02815260206004820152601160248201527f736f727279206e6f7420696e207465616d000000000000000000000000000000604482015290519081900360640190fd5b737ce07aa2fc356fa52f622c1f4df1e8eaad7febf0ff5b600160208190526000918252604090912080549181015460029091015473ffffffffffffffffffffffffffffffffffffffff9092169183565b3360009081526020819052604081205481811515610673576040805160e560020a62461bcd02815260206004820152601160248201527f736f727279206e6f7420696e207465616d000000000000000000000000000000604482015290519081900360640190fd5b5060009081526001602081905260409091200154919050565b6000346106988161016f565b50600191505090565b60008215156106b257506000610718565b508181028183828115156106c257fe5b0414610718576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d617468206d756c206661696c656400000000000000000000000000604482015290519081900360640190fd5b92915050565b600082821115610778576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d61746820737562206661696c656400000000000000000000000000604482015290519081900360640190fd5b50900390565b81810182811015610718576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d61746820616464206661696c656400000000000000000000000000604482015290519081900360640190fd5b6000818152600160208190526040822001548181111561071857600083815260016020819052604082200155929150505600a165627a7a72305820d91221b2f528dea9a6a83a7a15e6982048173637d4e818acb3ee4a2f8120822a0029
Deployed Bytecode
0x6080604052600436106100775763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166310f01eba81146100855780633ccfd60b146100c55780636bdebcc9146100dc5780636e7d3025146100f1578063a5ae65ba1461013e578063d0e30db014610153575b346100818161016f565b5050005b34801561009157600080fd5b506100b373ffffffffffffffffffffffffffffffffffffffff6004351661041a565b60408051918252519081900360200190f35b3480156100d157600080fd5b506100da61042c565b005b3480156100e857600080fd5b506100da610554565b3480156100fd57600080fd5b506101096004356105d2565b6040805173ffffffffffffffffffffffffffffffffffffffff9094168452602084019290925282820152519081900360600190f35b34801561014a57600080fd5b506100b361060b565b61015b61068c565b604080519115158252519081900360200190f35b600160008181526020919091527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b68879315481908190819081906103e8906101bb90889063ffffffff6106a116565b8115156101c457fe5b600260005260016020527fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec33115491900494506103e89061020a90889063ffffffff6106a116565b81151561021357fe5b600360005260016020527f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60d5491900493506103e89061025990889063ffffffff6106a116565b81151561026257fe5b0491506102878261027b85818a8963ffffffff61071e16565b9063ffffffff61071e16565b600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b6887930549091506102c790859063ffffffff61077e16565b60016020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b68879305560026000527fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec33105461032690849063ffffffff61077e16565b60016020527fd9d16d34ffb15ba3a3d852f0d403e2ce1d691fb54de27ac87cd2f993f3ec33105560036000527f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60c5461038590839063ffffffff61077e16565b60016020527f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60c5560046000527fedc95719e9a3b28dd8e80877cb5880a9be7de1a13fc8b05e7999683b6b567644546103e490829063ffffffff61077e16565b600460005260016020527fedc95719e9a3b28dd8e80877cb5880a9be7de1a13fc8b05e7999683b6b567644555092949350505050565b60006020819052908152604090205481565b60008033803b8015610488576040805160e560020a62461bcd02815260206004820152601160248201527f736f7272792068756d616e73206f6e6c79000000000000000000000000000000604482015290519081900360640190fd5b3360009081526020819052604090205493508315156104f1576040805160e560020a62461bcd02815260206004820152600e60248201527f736f727279206e6f74207465616d000000000000000000000000000000000000604482015290519081900360640190fd5b6104fa846107d9565b60008581526001602052604080822054905192955073ffffffffffffffffffffffffffffffffffffffff169185156108fc0291869190818181858888f1935050505015801561054d573d6000803e3d6000fd5b5050505050565b336000908152602081905260409020548015156105bb576040805160e560020a62461bcd02815260206004820152601160248201527f736f727279206e6f7420696e207465616d000000000000000000000000000000604482015290519081900360640190fd5b737ce07aa2fc356fa52f622c1f4df1e8eaad7febf0ff5b600160208190526000918252604090912080549181015460029091015473ffffffffffffffffffffffffffffffffffffffff9092169183565b3360009081526020819052604081205481811515610673576040805160e560020a62461bcd02815260206004820152601160248201527f736f727279206e6f7420696e207465616d000000000000000000000000000000604482015290519081900360640190fd5b5060009081526001602081905260409091200154919050565b6000346106988161016f565b50600191505090565b60008215156106b257506000610718565b508181028183828115156106c257fe5b0414610718576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d617468206d756c206661696c656400000000000000000000000000604482015290519081900360640190fd5b92915050565b600082821115610778576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d61746820737562206661696c656400000000000000000000000000604482015290519081900360640190fd5b50900390565b81810182811015610718576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d61746820616464206661696c656400000000000000000000000000604482015290519081900360640190fd5b6000818152600160208190526040822001548181111561071857600083815260016020819052604082200155929150505600a165627a7a72305820d91221b2f528dea9a6a83a7a15e6982048173637d4e818acb3ee4a2f8120822a0029
Swarm Source
bzzr://d91221b2f528dea9a6a83a7a15e6982048173637d4e818acb3ee4a2f8120822a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.