Contract 0xc7029Ed9EBa97A096e72607f4340c34049C7AF48

Fomo3D 

 

Contract Overview

Fomo3D_3
Balance:
0.433566230887498157 Ether

EtherValue:
$59.13 (@ $136.37/ETH)
TxHash Block Age From To Value [TxFee]
0x49def6184ac602faa7346833f90146dbe4a788614f27f0b559017de7317ef87774156266 hrs 26 mins ago0x055b5003b21978c09ada00183878b170c6e08cbe IN  Fomo3D_30 Ether0.000454522
0x551416e1430ca9b8e60b2547f61f9c97f65ab7c52303cdc31f1e7b13023431f974149439 hrs 6 mins ago0x4edeb56e0a46258d01b41225f82a5b90dd7904dd IN  Fomo3D_30 Ether0.000095163
0x7704d3b3a4f8365faa9619db6252c1bae66cca1bbbfb1f22f02c07c4270ac92e741455910 hrs 30 mins ago0xd8f2ce72f19834f5e0072ea870a18ef6f57f8ccd IN  Fomo3D_30 Ether0.000190326
0xc1f83c21fbdec16b900ea74f6dec1529cef7d35fd203d1c553c6c26b7a003272741407512 hrs 20 mins ago0xd8f2ce72f19834f5e0072ea870a18ef6f57f8ccd IN  Fomo3D_30 Ether0.000190326
0x04e0658685d40ef5ef858e418880ff18ff17d3b016e8caf4b675bfff22fe17fe74108351 day 27 mins ago0xab4485ca338b91087a09ae8bc141648bb1c6e967 IN  Fomo3D_30 Ether0.002379075
0xb9c2e7d803ffd4a44e7c45ae29524c0804b999be4e3e85f09a4bc3d16ee5181974106861 day 1 hr ago0x89eb4d1ebf4c53bbf45d77ab4c134e350a20b934 IN  Fomo3D_30 Ether0.0014433748
0x1bcd241200a86dda756fc263548a80dd32063b8eb36800080aad3fb6a80497c174100941 day 3 hrs ago0x4edeb56e0a46258d01b41225f82a5b90dd7904dd IN  Fomo3D_30 Ether0.000190326
0x7d3b855d731a75043b089566a21a9f95e9fc535e9d9a5c9a970ce19a4fc904e574098301 day 4 hrs ago0xf710dc1c69a5759d7f4d3e40b2453df5b442c453 IN  Fomo3D_30 Ether0.0002283912
0xbfc880b3fdd21da89b126f096bfe4dfe8627db8ca5de60798c87b4c0de969ae974065061 day 16 hrs ago0xf50fcf9de1b62c329b3f8586b36611caac2f3267 IN  Fomo3D_30 Ether0.000413634
0x301e255f9cdbff9b980b328dcc0ed1431db9a518533d53f76eef431b08ae5d8174057971 day 19 hrs ago0x4edeb56e0a46258d01b41225f82a5b90dd7904dd IN  Fomo3D_30 Ether0.000285489
0x6da5dd9108a468da869d86e23e619842f9c61c15b41e043405791090a3a8537874057101 day 19 hrs ago0x1fcfd25b25ccead63665cf867f4f7cba3e75de64 IN  Fomo3D_30 Ether0.000380652
0xef36b10c2e7e47663f886c08d3420acecf4a223074d6823a041aac7b955c52aa74056451 day 19 hrs ago0xd8f2ce72f19834f5e0072ea870a18ef6f57f8ccd IN  Fomo3D_30 Ether0.000190326
0x1edb23fe5b4ae12648587c95e8d118c72440c658cbf8986214e07ae27e6d05fa74048311 day 22 hrs ago0xb03a329d58681ca200c4c43f9a0c75c865bb6835 IN  Fomo3D_30 Ether0.00021438361
0x1e2698565abc169af2e366685fd53a0479d217976bf2d00c8b243663f31b0a1974032972 days 4 hrs ago0xf4a58b46e7a64341bedc888a5e462f7770b84471 IN  Fomo3D_30 Ether0.000212261
0x537ea0776205d89efc62443c7952660d63b7489672a6a5015d0612eb922ca9a074032972 days 4 hrs ago0x4e4aa3b2136dcdad9bc9a5e0438f281012629d70 IN  Fomo3D_30 Ether0.000212261
0xa1b4e48ccbf6da1e2e6c2f06c64af6a2365a133d15446559b43b243ea303946174028582 days 6 hrs ago0xab4485ca338b91087a09ae8bc141648bb1c6e967 IN  Fomo3D_30 Ether0.005306525
0x0a2698a6764127180d19255ec7d5614e5b9ec7bed29951884dc435d21a33ac3b74012092 days 12 hrs ago0x58e90f6e19563ce82c4a0010cece699b3e1a6723 IN  Fomo3D_30 Ether0.000380652
0x4cee9032f1e5c2ede2fd1f6686f07ccb2f1074c31b1306ed2e2afe5030134fa273989962 days 20 hrs ago0x44a992e1dc8f8256206e26acbe395534e966f797 IN  Fomo3D_30 Ether0.000454522
0x9b7f62d7671a150c7ae159eec68b3922b058b755109f1ba606fd4415b8b245ba73984562 days 22 hrs ago0x92be79705f4fab97894833448def30377bc7267a IN  Fomo3D_30 Ether0.000413634
0xc66fbde488a23c73b22ef1ba55fca1816a06fb6b84046865bf64b079a7df5fc673927583 days 19 hrs ago0x4edeb56e0a46258d01b41225f82a5b90dd7904dd IN  Fomo3D_30 Ether0.000514522
0x5f0679417756d1131553074693b222049280308ae07c88a757481cdccfc076c373883004 days 12 hrs ago0xe1ad43c5bf2696f9315d3931651a920e07f31556 IN  Fomo3D_30 Ether0.000190326
0xdb83f0e836707544c52cae8f89c57dedb646e30a99ad669380c2833bf7e2217573882984 days 12 hrs ago0xe1ad43c5bf2696f9315d3931651a920e07f31556 IN  Fomo3D_30 Ether0.000454522
0xbcf6bc9256a802667e9d1f178e3c1e2915a0b6b6cc9871b71cb9d65caf482cfd73882534 days 13 hrs ago0xaf9c17a385239199764625a3ae859024cd1207e1 IN  Fomo3D_30 Ether0.0002727132
0xbef3510ed336e8aad6139f31e02f6c5651b964c460c056fbae938d8bfb95ed9b73882534 days 13 hrs ago0x97f9effbd56f8c16b2f07e86fc32ad4241eed5c4 IN  Fomo3D_30 Ether0.0002727132
0x940f92b730522701da663512e45879a2133527377a4e8c962a0d47cd9562c36f73882514 days 13 hrs ago0xca5287d4d31f04c1b62a2e5ffca793b1920abef8 IN  Fomo3D_30 Ether0.0002727132
[ Download CSV Export 

Latest 25 internal transaction, Click here to view more Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
0x15677aa2312db762c0dbf050e5283d2e2a3a6fc200d4420a0d4cd0f2c38e064a741712051 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.000044771008049842 Ether
0x8600eea5e7b4758822275fba3c52685ad1f9abc96f11139440a189ae2eff7ed874166882 hrs 29 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.000044769851799842 Ether
0x9bb88d7eb5d8423319b4203c820a88717e6c1295526b4d60a53cbbccc199c35f74166832 hrs 31 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.000044769820549842 Ether
0x75514544188a215ffbdf7539b8142569bbd5ed8c628e9b44d9dccf3654f2748374166432 hrs 42 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.000044769758049864 Ether
0xe55485678e7041caff911a8680ed649f5b77710739f742c3a33581142ce66db174166412 hrs 42 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.000044769758049864 Ether
0xde5f193ca82c22be7062ca5ea62c3aeb5b115acced64a8154a9ea2a13a4ca81f74166302 hrs 44 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.000447695861748458 Ether
0xf71e4af92b69aad42ebf7bb938e1be943353e2202d47336c1a5c693ebcda87fc74166112 hrs 49 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.000044769383049884 Ether
0x0ef5369a7e09dd09b268852ba0d2ff2dc477fb2fdbbb98b08eaff77e1a19d3f974166082 hrs 50 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.000044769383049884 Ether
0x904cc66d3781490c7ecb743882c1cc300553bad0172177420ed605305d85ab6374165922 hrs 54 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.000044769351799884 Ether
0xa61a8ca92b2242d2a24f2bcb9fe518d678fffb89c6d047dd21cff2ba221837a874159535 hrs 12 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.000107446181819685 Ether
0x5315eff4d7a08b5c23ed29c4e35890bc21c926b593e5a138061c3e1b22a0d9c274157615 hrs 57 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.000044769133049884 Ether
0xa0a0219a174e544674c9d11c66c37f07e100581a5f664004f23f3d0a08c0604574157575 hrs 58 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.000044769101799884 Ether
0x49def6184ac602faa7346833f90146dbe4a788614f27f0b559017de7317ef87774156266 hrs 26 mins ago0xb3775fb83f7d12a36e0475abdd1fca35c091efbe0xc7029ed9eba97a096e72607f4340c34049c7af480.43256339229468134 Ether
0x49def6184ac602faa7346833f90146dbe4a788614f27f0b559017de7317ef87774156266 hrs 26 mins ago0xc7029ed9eba97a096e72607f4340c34049c7af480xb3775fb83f7d12a36e0475abdd1fca35c091efbe0.534028770006751361 Ether
0x53fa547feb2b197bedebfd1d91a5957d421eb608309179f87c9741062e224add74150808 hrs 33 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.000022384535274942 Ether
0x151c4511ee8877a7bf5df861152a575c7a5ab37b7c75795f1bbc103d8fb4ece874148959 hrs 15 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.000156691200050074 Ether
0xa67c6e8ee859115c0706aecd17dc1ed5c2933e5ad4f42ee6059dd26a48fab94f74148939 hrs 16 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.000022384410275019 Ether
0xb21d171bd15237f0d1f5e777501106b7fe71333476468bd07bee4a907fe6bea6741370713 hrs 39 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.001365386072911936 Ether
0xca145b7fabcfcfb579c9ec9958929e096982d40ffdde65ef6d9278b9cec9487a741370313 hrs 40 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.000047004110758674 Ether
0x22680a33fb9e71e629825472f07ea9e56be37bef55d8745cc6312430f33ba522741351514 hrs 23 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.00111913531847291 Ether
0x87d274ab409fbaedc2ab5f0df5f28e8079467b9a53c773747e53a8901434ed5f741350814 hrs 24 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.000134294925716766 Ether
0xcd9c5ab4825416ab24207597bc98297a7ba44f6ae938bd66667d27291c0691c3741347614 hrs 32 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.020141053701262046 Ether
0x9e6ed9703ca2e2303573b00b4d7a170cae817b8b166f561aba5b8bf1800deed4741276617 hrs 11 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.000134252456966766 Ether
0x09057eb47a92f4643c1be6cc166d0c202dc398015dd81bff03f0b0e231418b57741136522 hrs 27 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.000044745818988934 Ether
0x34df72148c8e05b94d0a8ce08c2bf8d8b5825298181df21f052ca9f07ca3069b741110523 hrs 26 mins ago0xa62142888aba8370742be823c1782d17a0389da10xc7029ed9eba97a096e72607f4340c34049c7af480.000035560484894417 Ether
[ Download CSV Export 
Warning: The compiled contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) Solidity Compiler Bugs.

Contract Source Code Verified (Exact Match)

Contract Name:
Divies

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes

Runs (Optimizer):
50

Contract Source Code

pragma solidity ^0.4.24;
/** title -Divies- v0.7.1
 * ┌┬┐┌─┐┌─┐┌┬┐   ╦╦ ╦╔═╗╔╦╗  ┌─┐┬─┐┌─┐┌─┐┌─┐┌┐┌┌┬┐┌─┐
 *  │ ├┤ ├─┤│││   ║║ ║╚═╗ ║   ├─┘├┬┘├┤ └─┐├┤ │││ │ └─┐
 *  ┴ └─┘┴ ┴┴ ┴  ╚╝╚═╝╚═╝ ╩   ┴  ┴└─└─┘└─┘└─┘┘└┘ ┴ └─┘
 *                                  _____                      _____
 *                                 (, /     /)       /) /)    (, /      /)          /)
 *          ┌─┐                      /   _ (/_      // //       /  _   // _   __  _(/
 *          ├─┤                  ___/___(/_/(__(_/_(/_(/_   ___/__/_)_(/_(_(_/ (_(_(_
 *          ┴ ┴                /   /          .-/ _____   (__ /                               
 *                            (__ /          (_/ (, /                                      /)™ 
 *                                                 /  __  __ __ __  _   __ __  _  _/_ _  _(/
 * ┌─┐┬─┐┌─┐┌┬┐┬ ┬┌─┐┌┬┐                          /__/ (_(__(_)/ (_/_)_(_)/ (_(_(_(__(/_(_(_
 * ├─┘├┬┘│ │ │││ ││   │                      (__ /              .-/  © Jekyll Island Inc. 2018
 * ┴  ┴└─└─┘─┴┘└─┘└─┘ ┴                                        (_/
 *          ______      .-./`)  ,---.  ,---. .-./`)      .-''-.      .-'''-.   .---.  
 *=========|    _ `''.  \ .-.') |   /  |   | \ .-.')   .'_ _   \    / _     \  \   /=========*
 *         | _ | ) _  \ / `-' \ |  |   |  .' / `-' \  / ( ` )   '  (`' )/`--'  |   |  
 *         |( ''_'  ) |  `-'`"` |  | _ |  |   `-'`"` . (_ o _)  | (_ o _).      \ /   
 *         | . (_) `. |  .---.  |  _( )_  |   .---.  |  (_,_)___|  (_,_). '.     v    
 *         |(_    ._) '  |   |  \ (_ o._) /   |   |  '  \   .---. .---.  \  :   _ _   
 *         |  (_.\.' /   |   |   \ (_,_) /    |   |   \  `-'    / \    `-'  |  (_I_)  
 *=========|       .'    |   |    \     /     |   |    \       /   \       /  (_(=)_)========* 
 *         '-----'`      '---'     `---`      '---'     `'-..-'     `-...-'    (_I_)  
 * ╔═╗┌─┐┌┐┌┌┬┐┬─┐┌─┐┌─┐┌┬┐  ╔═╗┌─┐┌┬┐┌─┐ ┌──────────┐
 * ║  │ ││││ │ ├┬┘├─┤│   │   ║  │ │ ││├┤  │ Inventor │
 * ╚═╝└─┘┘└┘ ┴ ┴└─┴ ┴└─┘ ┴   ╚═╝└─┘─┴┘└─┘ └──────────┘
 *         ┌──────────────────────────────────────────────────────────────────────┐
 *         │ Divies!, is a contract that adds an external dividend system to P3D. │
 *         │ All eth sent to this contract, can be distributed to P3D holders.    │
 *         │ Uses msg.sender as masternode for initial buy order.                 │
 *         └──────────────────────────────────────────────────────────────────────┘
 *                                ┌────────────────────┐
 *                                │ Setup Instructions │
 *                                └────────────────────┘
 * (Step 1) import this contracts interface into your contract
 * 
 *    import "./DiviesInterface.sol";
 * 
 * (Step 2) set up the interface and point it to this contract
 * 
 *    DiviesInterface private Divies = DiviesInterface(0xc7029Ed9EBa97A096e72607f4340c34049C7AF48);
 *                                ┌────────────────────┐
 *                                │ Usage Instructions │
 *                                └────────────────────┘
 * call as follows anywhere in your code:
 *   
 *    Divies.deposit.value(amount)();
 *          ex:  Divies.deposit.value(232000000000000000000)();
 */

interface HourglassInterface {
    function() payable external;
    function buy(address _playerAddress) payable external returns(uint256);
    function sell(uint256 _amountOfTokens) external;
    function reinvest() external;
    function withdraw() external;
    function exit() external;
    function dividendsOf(address _playerAddress) external view returns(uint256);
    function balanceOf(address _playerAddress) external view returns(uint256);
    function transfer(address _toAddress, uint256 _amountOfTokens) external returns(bool);
    function stakingRequirement() external view returns(uint256);
}

contract Divies {
    using SafeMath for uint256;
    using UintCompressor for uint256;

    HourglassInterface constant P3Dcontract_ = HourglassInterface(0xB3775fB83F7D12A36E0475aBdD1FCA35c091efBe);
    
    uint256 public pusherTracker_ = 100;
    mapping (address => Pusher) public pushers_;
    struct Pusher
    {
        uint256 tracker;
        uint256 time;
    }
    uint256 public rateLimiter_;
    
    //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    // MODIFIERS
    //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    modifier isHuman() {
        address _addr = msg.sender;
        uint256 _codeLength;
        
        assembly {_codeLength := extcodesize(_addr)}
        require(_codeLength == 0, "sorry humans only");
        _;
    }
    
    //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    // BALANCE
    //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    function balances()
        public
        view
        returns(uint256)
    {
        return (address(this).balance);
    }
    
    
    //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    // DEPOSIT
    //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    function deposit()
        external
        payable
    {
        
    }
    
    // used so the distribute function can call hourglass's withdraw
    function() external payable {}
    
    
    //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    // EVENTS
    //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    event onDistribute(
        address pusher,
        uint256 startingBalance,
        uint256 masternodePayout,
        uint256 finalBalance,
        uint256 compressedData
    );
    /* compression key
    [0-14] - timestamp
    [15-29] - caller pusher tracker 
    [30-44] - global pusher tracker 
    [45-46] - percent
    [47] - greedy
    */  
    
    
    //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    // DISTRIBUTE
    //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    function distribute(uint256 _percent)
        public
        isHuman()
    {
        // make sure _percent is within boundaries
        require(_percent > 0 && _percent < 100, "please pick a percent between 1 and 99");
        
        // data setup
        address _pusher = msg.sender;
        uint256 _bal = address(this).balance;
        uint256 _mnPayout;
        uint256 _compressedData;
        
        // limit pushers greed (use "if" instead of require for level 42 top kek)
        if (
            pushers_[_pusher].tracker <= pusherTracker_.sub(100) && // pusher is greedy: wait your turn
            pushers_[_pusher].time.add(1 hours) < now               // pusher is greedy: its not even been 1 hour
        )
        {
            // update pushers wait que 
            pushers_[_pusher].tracker = pusherTracker_;
            pusherTracker_++;
            
            // setup mn payout for event
            if (P3Dcontract_.balanceOf(_pusher) >= P3Dcontract_.stakingRequirement())
                _mnPayout = (_bal / 10) / 3;
            
            // setup _stop.  this will be used to tell the loop to stop
            uint256 _stop = (_bal.mul(100 - _percent)) / 100;
            
            // buy & sell    
            P3Dcontract_.buy.value(_bal)(_pusher);
            P3Dcontract_.sell(P3Dcontract_.balanceOf(address(this)));
            
            // setup tracker.  this will be used to tell the loop to stop
            uint256 _tracker = P3Dcontract_.dividendsOf(address(this));
    
            // reinvest/sell loop
            while (_tracker >= _stop) 
            {
                // lets burn some tokens to distribute dividends to p3d holders
                P3Dcontract_.reinvest();
                P3Dcontract_.sell(P3Dcontract_.balanceOf(address(this)));
                
                // update our tracker with estimates (yea. not perfect, but cheaper on gas)
                _tracker = (_tracker.mul(81)) / 100;
            }
            
            // withdraw
            P3Dcontract_.withdraw();
        } else {
            _compressedData = _compressedData.insert(1, 47, 47);
        }
        
        // update pushers timestamp  (do outside of "if" for super saiyan level top kek)
        pushers_[_pusher].time = now;
    
        // prep event compression data 
        _compressedData = _compressedData.insert(now, 0, 14);
        _compressedData = _compressedData.insert(pushers_[_pusher].tracker, 15, 29);
        _compressedData = _compressedData.insert(pusherTracker_, 30, 44);
        _compressedData = _compressedData.insert(_percent, 45, 46);
            
        // fire event
        emit onDistribute(_pusher, _bal, _mnPayout, address(this).balance, _compressedData);
    }
}

/**
* @title -UintCompressor- v0.1.9
* ┌┬┐┌─┐┌─┐┌┬┐   ╦╦ ╦╔═╗╔╦╗  ┌─┐┬─┐┌─┐┌─┐┌─┐┌┐┌┌┬┐┌─┐
*  │ ├┤ ├─┤│││   ║║ ║╚═╗ ║   ├─┘├┬┘├┤ └─┐├┤ │││ │ └─┐
*  ┴ └─┘┴ ┴┴ ┴  ╚╝╚═╝╚═╝ ╩   ┴  ┴└─└─┘└─┘└─┘┘└┘ ┴ └─┘
*                                  _____                      _____
*                                 (, /     /)       /) /)    (, /      /)          /)
*          ┌─┐                      /   _ (/_      // //       /  _   // _   __  _(/
*          ├─┤                  ___/___(/_/(__(_/_(/_(/_   ___/__/_)_(/_(_(_/ (_(_(_
*          ┴ ┴                /   /          .-/ _____   (__ /                               
*                            (__ /          (_/ (, /                                      /)™ 
*                                                 /  __  __ __ __  _   __ __  _  _/_ _  _(/
* ┌─┐┬─┐┌─┐┌┬┐┬ ┬┌─┐┌┬┐                          /__/ (_(__(_)/ (_/_)_(_)/ (_(_(_(__(/_(_(_
* ├─┘├┬┘│ │ │││ ││   │                      (__ /              .-/  © Jekyll Island Inc. 2018
* ┴  ┴└─└─┘─┴┘└─┘└─┘ ┴                                        (_/
*    _  _   __   __ _  ____     ___   __   _  _  ____  ____  ____  ____  ____   __   ____ 
*===/ )( \ (  ) (  ( \(_  _)===/ __) /  \ ( \/ )(  _ \(  _ \(  __)/ ___)/ ___) /  \ (  _ \===*
*   ) \/ (  )(  /    /  )(    ( (__ (  O )/ \/ \ ) __/ )   / ) _) \___ \\___ \(  O ) )   /
*===\____/ (__) \_)__) (__)====\___) \__/ \_)(_/(__)  (__\_)(____)(____/(____/ \__/ (__\_)===*
*
* ╔═╗┌─┐┌┐┌┌┬┐┬─┐┌─┐┌─┐┌┬┐  ╔═╗┌─┐┌┬┐┌─┐ ┌──────────┐
* ║  │ ││││ │ ├┬┘├─┤│   │   ║  │ │ ││├┤  │ Inventor │
* ╚═╝└─┘┘└┘ ┴ ┴└─┴ ┴└─┘ ┴   ╚═╝└─┘─┴┘└─┘ └──────────┘
*/

library UintCompressor {
    using SafeMath for *;
    
    function insert(uint256 _var, uint256 _include, uint256 _start, uint256 _end)
        internal
        pure
        returns(uint256)
    {
        // check conditions 
        require(_end < 77 && _start < 77, "start/end must be less than 77");
        require(_end >= _start, "end must be >= start");
        
        // format our start/end points
        _end = exponent(_end).mul(10);
        _start = exponent(_start);
        
        // check that the include data fits into its segment 
        require(_include < (_end / _start));
        
        // build middle
        if (_include > 0)
            _include = _include.mul(_start);
        
        return((_var.sub((_var / _start).mul(_start))).add(_include).add((_var / _end).mul(_end)));
    }
    
    function extract(uint256 _input, uint256 _start, uint256 _end)
	    internal
	    pure
	    returns(uint256)
    {
        // check conditions
        require(_end < 77 && _start < 77, "start/end must be less than 77");
        require(_end >= _start, "end must be >= start");
        
        // format our start/end points
        _end = exponent(_end).mul(10);
        _start = exponent(_start);
        
        // return requested section
        return((((_input / _start).mul(_start)).sub((_input / _end).mul(_end))) / _start);
    }
    
    function exponent(uint256 _position)
        private
        pure
        returns(uint256)
    {
        return((10).pwr(_position));
    }
}

/**
 * @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 ABI

[{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"pushers_","outputs":[{"name":"tracker","type":"uint256"},{"name":"time","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"pusherTracker_","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"balances","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_percent","type":"uint256"}],"name":"distribute","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rateLimiter_","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"deposit","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"pusher","type":"address"},{"indexed":false,"name":"startingBalance","type":"uint256"},{"indexed":false,"name":"masternodePayout","type":"uint256"},{"indexed":false,"name":"finalBalance","type":"uint256"},{"indexed":false,"name":"compressedData","type":"uint256"}],"name":"onDistribute","type":"event"}]

Contract Creation Code

6080604052606460005534801561001557600080fd5b50610c0f806100256000396000f30060806040526004361061005e5763ffffffff60e060020a6000350416631f75c3908114610060578063521ceba71461009a5780637bb98a68146100c157806391c05b0b146100d6578063b519cf31146100ee578063d0e30db014610103575b005b34801561006c57600080fd5b50610081600160a060020a036004351661010b565b6040805192835260208301919091528051918290030190f35b3480156100a657600080fd5b506100af610124565b60408051918252519081900360200190f35b3480156100cd57600080fd5b506100af61012a565b3480156100e257600080fd5b5061005e60043561012f565b3480156100fa57600080fd5b506100af6108ad565b61005e6108b3565b6001602081905260009182526040909120805491015482565b60005481565b303190565b6000808080808033803b801561018f576040805160e560020a62461bcd02815260206004820152601160248201527f736f7272792068756d616e73206f6e6c79000000000000000000000000000000604482015290519081900360640190fd5b60008911801561019f5750606489105b151561021b576040805160e560020a62461bcd02815260206004820152602660248201527f706c65617365207069636b20612070657263656e74206265747765656e20312060448201527f616e642039390000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b6000543398503031975061023690606463ffffffff6108b516565b600160a060020a0389166000908152600160205260409020541180159061028b5750600160a060020a03881660009081526001602081905260409091200154429061028990610e1063ffffffff61091a16565b105b1561079a5760008054600160a060020a038a168252600160208181526040808520849055919092018355805160e360020a630ada733d0281529051600080516020610bc4833981519152936356d399e893600480850194919392918390030190829087803b1580156102fc57600080fd5b505af1158015610310573d6000803e3d6000fd5b505050506040513d602081101561032657600080fd5b50516040805160e060020a6370a08231028152600160a060020a038b1660048201529051600080516020610bc4833981519152916370a082319160248083019260209291908290030181600087803b15801561038157600080fd5b505af1158015610395573d6000803e3d6000fd5b505050506040513d60208110156103ab57600080fd5b5051106103bc576003600a88040495505b60646103d0888b830363ffffffff61097516565b8115156103d957fe5b049350600080516020610bc4833981519152600160a060020a031663f088d547888a6040518363ffffffff1660e060020a0281526004018082600160a060020a0316600160a060020a031681526020019150506020604051808303818588803b15801561044557600080fd5b505af1158015610459573d6000803e3d6000fd5b50505050506040513d602081101561047057600080fd5b50506040805160e060020a6370a082310281523060048201529051600080516020610bc48339815191529163e4849b329183916370a082319160248083019260209291908290030181600087803b1580156104ca57600080fd5b505af11580156104de573d6000803e3d6000fd5b505050506040513d60208110156104f457600080fd5b50516040805160e060020a63ffffffff8516028152600481019290925251602480830192600092919082900301818387803b15801561053257600080fd5b505af1158015610546573d6000803e3d6000fd5b50506040805160e060020a6265318b0281523060048201529051600080516020610bc483398151915293506265318b925060248083019260209291908290030181600087803b15801561059857600080fd5b505af11580156105ac573d6000803e3d6000fd5b505050506040513d60208110156105c257600080fd5b505192505b83831061073157600080516020610bc4833981519152600160a060020a031663fdb5a03e6040518163ffffffff1660e060020a028152600401600060405180830381600087803b15801561061a57600080fd5b505af115801561062e573d6000803e3d6000fd5b50506040805160e060020a6370a082310281523060048201529051600080516020610bc4833981519152935063e4849b32925083916370a082319160248083019260209291908290030181600087803b15801561068a57600080fd5b505af115801561069e573d6000803e3d6000fd5b505050506040513d60208110156106b457600080fd5b50516040805160e060020a63ffffffff8516028152600481019290925251602480830192600092919082900301818387803b1580156106f257600080fd5b505af1158015610706573d6000803e3d6000fd5b50505050606461072060518561097590919063ffffffff16565b81151561072957fe5b0492506105c7565b600080516020610bc4833981519152600160a060020a0316633ccfd60b6040518163ffffffff1660e060020a028152600401600060405180830381600087803b15801561077d57600080fd5b505af1158015610791573d6000803e3d6000fd5b505050506107b1565b6107ae856001602f8063ffffffff6109ec16565b94505b600160a060020a038816600090815260016020819052604082204291018190556107e591879190600e63ffffffff6109ec16565b600160a060020a038916600090815260016020526040902054909550610816908690600f601d63ffffffff6109ec16565b600054909550610831908690601e602c63ffffffff6109ec16565b9450610847858a602d602e63ffffffff6109ec16565b60408051600160a060020a038b168152602081018a9052808201899052303160608201526080810183905290519196507fa0e5739b8aab1e9b0469db4a982bc2211bdf4b0ed8b8aebe2e0d89d10057657d919081900360a00190a1505050505050505050565b60025481565b565b60008282111561090f576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d61746820737562206661696c656400000000000000000000000000604482015290519081900360640190fd5b508082035b92915050565b81810182811015610914576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d61746820616464206661696c656400000000000000000000000000604482015290519081900360640190fd5b600082151561098657506000610914565b5081810281838281151561099657fe5b0414610914576040805160e560020a62461bcd02815260206004820152601360248201527f536166654d617468206d756c206661696c656400000000000000000000000000604482015290519081900360640190fd5b6000604d821080156109fe5750604d83105b1515610a54576040805160e560020a62461bcd02815260206004820152601e60248201527f73746172742f656e64206d757374206265206c657373207468616e2037370000604482015290519081900360640190fd5b82821015610aac576040805160e560020a62461bcd02815260206004820152601460248201527f656e64206d757374206265203e3d207374617274000000000000000000000000604482015290519081900360640190fd5b610ac6600a610aba84610b5d565b9063ffffffff61097516565b9150610ad183610b5d565b92508282811515610ade57fe5b048410610aea57600080fd5b6000841115610b0657610b03848463ffffffff61097516565b93505b610b54610b25838488811515610b1857fe5b049063ffffffff61097516565b610b4886610b48610b3b88898c811515610b1857fe5b8a9063ffffffff6108b516565b9063ffffffff61091a16565b95945050505050565b6000610914600a8363ffffffff610b7016565b60008080841515610b845760009250610bbb565b831515610b945760019250610bbb565b5083905060015b83811015610bb757610bad8286610975565b9150600101610b9b565b8192505b5050929150505600000000000000000000000000b3775fb83f7d12a36e0475abdd1fca35c091efbea165627a7a72305820f4cd5b28e6e11c5e067d514b6263cff344aa1d96ddc0b7d95052bd9b569ed1790029

Swarm Source

bzzr://f4cd5b28e6e11c5e067d514b6263cff344aa1d96ddc0b7d95052bd9b569ed179
Block Age Transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.