Sponsored Link:  Download the Monaco app for Android and iOS on Aug 31 - www.mona.co
Contract Overview
ETH Balance: 17.984518158794063036 Ether
ETH USD Value: $6,313.64 (@ $351.06/ETH)
No Of Transactions: 1493 txns
  Latest 25 txns from a total Of 1493 transactions View All

TxHash Age From To Value [TxFee]
0xcf2ae9e86ac70755b314c6a2a912e3c5d2a0db1e9b2e4eedf3a4497f6fa713b17 days 3 hrs ago0x9e206dbbd35c0cf7e27e166ef79103c03ea73aeb  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.004
0x1882294e39a3565b7289bf6f29600e42515a2e1ff7b6c7f383cf587b713d076d10 days 11 hrs ago0x05ce3588c52902dc8cef16a63a3cb7b353d191ea  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.00099056
0xe097ca398946ea577c562103e47ae99d2ac25e0752c27e3ccadcf12560eeaf7710 days 18 hrs ago0xb425c25a09400a2ea9d7a91098a40dd1ee358e70  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.0024764
0x83388759f25948519ccbbae67674c8bbe1bba8c533333afd9768e338ef50ad6110 days 23 hrs ago0xb1a7a09a01c9d43e08d60846c91167da3cf22643  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x07d496b98cbfaedacfd7ebd3c5e30f941f91d7949d250def6fee34574522392f10 days 23 hrs ago0xc480334141e5abb335b8e931d8601b326d20da88  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x93002f36814a5d06b225d56be16758fedc752a414a030682953c7f90733cb01311 days 16 mins ago0x8c54268a995cc285e34158d72c3f7d4c3a98db0c  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.00049528
0xa01b5bf6a05079a0bdd1639a127944822d0482499374054c59352b9ab511790611 days 58 mins ago0x7bbb6e620481c4ccf33acfb8e26ca2e13f04d50c  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0xa67729bc908fccd0465fa78858065fd47f5328cb3077320b4831a2e1fe817aad11 days 3 hrs ago0xf7c1b443968b117b5dd9b755572fcd39ca5ec04b  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.00193584
0x373e882aaab0e135cd0d229b343bfebe6c3466870615e9e4363e5d465b487dc511 days 4 hrs ago0x83156c79d8e9adf4dbc940c6a56dc58f5e5f8cd5  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.00099056
0x6306d6b36a6007976577c144c97e7c9384e1c02b4c0dceb53321994947454f0e11 days 7 hrs ago0x00acb450c00c9d7470448b37d64efd8f8bc838ce  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001355088
0x90232e43695354ca9cebeedc16f36c7df0c7f87fa890e066c0c9a827210dcf0f11 days 11 hrs ago0x8d213107afd8dada51d27352eedbbfa593a5c26f  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0xcc26bbdc22d727eb1ea025176f06735f038bfa531a7009027eddf96673fc111611 days 15 hrs ago0xc7d682370cd7cd0b14650e4917564821bf311321  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.0024764
0xfc8f85cb8a2458d0c5d96a7f8e8ec9f8053d1d4ab42525815ad665ca1c7de7c011 days 16 hrs ago0xc308bb9793e21779720d802d2160be26314fe6fd  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x04ba75b12e8ddd602671de24483475c4d5a2c338c7eb0c91ba6f5241dea640d811 days 16 hrs ago0x932fa7f07fdf6224184fd5fd9f9cec1710e03449  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x2fe7f36374753451f69c7685d426388c14cc8255bf8ed8be60a39def90449d3d11 days 17 hrs ago0x3833f8dbdbd6bdcb6a883ff209b869148965b364  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000891504
0x29b6b347c45e9eaa954179c108eb3d890d62948b817a3d96b1aa51770a83be2311 days 22 hrs ago0x60334fe7f5c0ee0018d8752f9912ecf39059a753  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001419616
0xf037d34a4a320f95c4d943254e91c1aa9105f2ded34c9154184d60d447c4a1d312 days 3 hrs ago0x659afd2e8bbafc882c3e2249d40e9d68b94b240c  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001355088
0x6e7630aea433b21a03c189856aecbcdbcfa516a200d9dfe619a122535a37ada312 days 8 hrs ago0x3aed2e24a953904fed7e1498df70495980f3d6f3  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0xf9b5d0952a3ffce672f7cd12a3128e61212434632aab8f215ed5214ea13bce1312 days 9 hrs ago0x3aed2e24a953904fed7e1498df70495980f3d6f3  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000446712
0x280d5a4f2b68374495d2d5efe460f4f64feef44e436dda865df27cc4e14492b712 days 9 hrs ago0x34331f7296250646b6ed86c5e1fbec55ce35f425  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x499f737e882a5a9cf7856771ec790a3f1092b4eb54f7f1a604c9468410a2fe5912 days 9 hrs ago0x311949a1230dbc30eaaac3dc315ec8c4236429ba  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0xbafd9ec4544f26e57e8e5af660b2ca34e830cf87ddc82a9636e6908652f6c7da12 days 9 hrs ago0x3aed2e24a953904fed7e1498df70495980f3d6f3  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000446712
0xa98f42f900741b2dae82d9e58a4bf9418652deb2a232986e569af4f5fd5c67bf12 days 10 hrs ago0x47743cec7af4bef67be022267ff11eadac1da43b  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x118496675db7be1b95330f5cc5984e9213a267cd14fdc317ed680107c81c2f3a12 days 13 hrs ago0x51b7c915795b28542240d0ff405fc640fd0378ab  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.00297168
0x07eba378fa151ed65027baf89c8bc3f25301d916c1a2bafd8d8a9defeb0b84c412 days 17 hrs ago0x460d35a3eb7be555059ac3c3b2e19c9a789c3534  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
  Latest 25 Internal Txns, Click here to View More View All
ParentTxHash Block Age From To Value
0xa3d8ef6c768ebc990a4c4e234889de88ea13a2abbf8cc2c408c0c2203a7d531f458392320 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00204108878606116 Ether
0x93aa5d84cce3ff3243a7a098b8f2ef6515045812d5ed0086a0a66c10e5783821458391323 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00195738878606116 Ether
0x165c1e0f4ac699360ac290aabbfc52a7a47081d0d575d1876206d0b59565d46f458386535 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00195558878606116 Ether
0x81aa8285590b75d991326c1a24d5cf9f14555cfd2cb7cbee8ac50f2602da438d458384440 mins ago0x7da90089a73edd14c75b0c827cb54f4248d47ecc0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00196458878606116 Ether
0x5d2f929636f3ccd4946e152cafaa6f19645fa4890a74b5eaebd9b5b25460b8a7458377557 mins ago0x41ff0796a6c7a201476bff53c4cb2c48b084e5e00x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.000023730558312731 Ether
0xd1117174ffb48d12ad6e4dc45e90683ec82f4e330758116dadf9d2918b747f43458376659 mins ago0x7da90089a73edd14c75b0c827cb54f4248d47ecc0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00195558878606116 Ether
0x624d4a1f676e4e82005874022445de349e1a83a80aa9788dcf107d832b309b8945836351 hr 29 mins ago0x7da90089a73edd14c75b0c827cb54f4248d47ecc0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00195558878606116 Ether
0xf2a52551e863cabd9baaed5bf9db4adc28ecc228519f384e665af25bfbb3c98445835141 hr 55 mins ago0x7da90089a73edd14c75b0c827cb54f4248d47ecc0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00195558878606116 Ether
0x84d0ecb1aec76e7d0667f2148e60ded1410e54bf6517fffa397329f72717e77845831983 hrs 5 mins ago0x7da90089a73edd14c75b0c827cb54f4248d47ecc0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00196458878606116 Ether
0x0faafa3fd52db6954ec79a221170c98bf36c87f4bd48ce3596f55c5acada6e9945830553 hrs 39 mins ago0x7da90089a73edd14c75b0c827cb54f4248d47ecc0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00195558878606116 Ether
0xdd5ee220459a4fc119a3bf72cc55f2168fb1fff6b1ea2721122ed1bb1271a57045830453 hrs 41 mins ago0x7da90089a73edd14c75b0c827cb54f4248d47ecc0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00196458878606116 Ether
0x75f9169a1185ea5388c20a3e716a533036ec905f51507952161c0d3fedcb348f45822456 hrs 48 mins ago0x49fddeae0b521dab8d0c4b77e7161094f971320d0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.01796658878606116 Ether
0x4e4d84af28453ad299889fff8d1b5ccc2ad0a47eed64d100f8957fca2d66f7ef45821357 hrs 12 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00896658878606116 Ether
0x786ec1d9fe0369bee21a7843bd32d18658509dd763fe2d10d9645ba3b62a230045821237 hrs 15 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00896658878606116 Ether
0x459adc32aefceaf8399861f390d20cfc9369c48af7d77d5ff2b6c84bc6f133da45815089 hrs 36 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00203658878606116 Ether
0xd585d1b79cbbe814eeb9d8ec25b59277063514d7a9990911b96771cc85e3ef4745814869 hrs 41 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00203658878606116 Ether
0x9dcf52b3d75da8e252abae32db2b68edd5608ba303a40a4e4053dec17880f2e145814259 hrs 55 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.01445658878606116 Ether
0xa51f8bc7cadfdfc84092f210be358c87b628bea706c2f645bdbf0dc7d79fc2ce458139710 hrs 1 min ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00941658878606116 Ether
0x546ff29fc570a887adf19e5db8b29fc4c499a143d0a8a02d90dcf1942749a8a2458137710 hrs 5 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00492558878606116 Ether
0xaf026ca8a457f9fb7c030582f5070882053f574dce919924f0fa178388a62e7b458136810 hrs 9 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00222558878606116 Ether
0x240ad29e61a0f064178ac8334ac689c9740221836276f2625b569aec0b707059458135510 hrs 11 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00195558878606116 Ether
0x314ceeedaf4c165cc2af01a06e8640e94b6748d11fd9d3b96fa2b8ad1afa2a80458118210 hrs 57 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00545658878606116 Ether
0x45b8c095396cb08040d36e1b5f7eb204b4c34aed3fb17ce01a6e987350bc5bae458117011 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00213558878606116 Ether
0x0e7987073ba6684fc68be298b796120a4c1f9a3b75ef86db655c8e052445bbb8458116011 hrs 1 min ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00196458878606116 Ether
0xd80e3d94154a80ac9aa61553e999112473bce5b02b8067c454294b35c456897d457830421 hrs 53 mins ago0x41ff0796a6c7a201476bff53c4cb2c48b084e5e00x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.000014792786061159 Ether
[ Download CSV Export  ] 
Contract Name: ProfitContainer
Compiler Version: v0.4.6+commit.2dabbdf0
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts
pragma solidity ^0.4.0;
/*
This vSlice token contract is based on the ERC20 token contract. Additional
functionality has been integrated:
* the contract Lockable, which is used as a parent of the Token contract
* the function mintTokens(), which makes use of the currentSwapRate() and safeToAdd() helpers
* the function disableTokenSwapLock()
*/

contract Lockable {
    uint public numOfCurrentEpoch;
    uint public creationTime;
    uint public constant UNLOCKED_TIME = 25 days;
    uint public constant LOCKED_TIME = 5 days;
    uint public constant EPOCH_LENGTH = 30 days;
    bool public lock;
    bool public tokenSwapLock;

    event Locked();
    event Unlocked();

    // This modifier should prevent tokens transfers while the tokenswap
    // is still ongoing
    modifier isTokenSwapOn {
        if (tokenSwapLock) throw;
        _;
    }

    // This modifier checks and, if needed, updates the value of current
    // token contract epoch, before executing a token transfer of any
    // kind
    modifier isNewEpoch {
        if (numOfCurrentEpoch * EPOCH_LENGTH + creationTime < now ) {
            numOfCurrentEpoch = (now - creationTime) / EPOCH_LENGTH + 1;
        }
        _;
    }

    // This modifier check whether the contract should be in a locked
    // or unlocked state, then acts and updates accordingly if
    // necessary
    modifier checkLock {
        if ((creationTime + numOfCurrentEpoch * UNLOCKED_TIME) +
        (numOfCurrentEpoch - 1) * LOCKED_TIME < now) {
            // avoids needless lock state change and event spamming
            if (lock) throw;

            lock = true;
            Locked();
            return;
        }
        else {
            // only set to false if in a locked state, to avoid
            // needless state change and event spam
            if (lock) {
                lock = false;
                Unlocked();
            }
        }
        _;
    }

    function Lockable() {
        creationTime = now;
        numOfCurrentEpoch = 1;
        tokenSwapLock = true;
    }
}


contract ERC20 {
    function totalSupply() constant returns (uint);
    function balanceOf(address who) constant returns (uint);
    function allowance(address owner, address spender) constant returns (uint);

    function transfer(address to, uint value) returns (bool ok);
    function transferFrom(address from, address to, uint value) returns (bool ok);
    function approve(address spender, uint value) returns (bool ok);

    event Transfer(address indexed from, address indexed to, uint value);
    event Approval(address indexed owner, address indexed spender, uint value);
}

contract Token is ERC20, Lockable {

  mapping( address => uint ) _balances;
  mapping( address => mapping( address => uint ) ) _approvals;
  uint _supply;
  address public walletAddress;

  event TokenMint(address newTokenHolder, uint amountOfTokens);
  event TokenSwapOver();

  modifier onlyFromWallet {
      if (msg.sender != walletAddress) throw;
      _;
  }

  function Token( uint initial_balance, address wallet) {
    _balances[msg.sender] = initial_balance;
    _supply = initial_balance;
    walletAddress = wallet;
  }

  function totalSupply() constant returns (uint supply) {
    return _supply;
  }

  function balanceOf( address who ) constant returns (uint value) {
    return _balances[who];
  }

  function allowance(address owner, address spender) constant returns (uint _allowance) {
    return _approvals[owner][spender];
  }

  // A helper to notify if overflow occurs
  function safeToAdd(uint a, uint b) internal returns (bool) {
    return (a + b >= a && a + b >= b);
  }

  function transfer( address to, uint value)
    isTokenSwapOn
    isNewEpoch
    checkLock
    returns (bool ok) {

    if( _balances[msg.sender] < value ) {
        throw;
    }
    if( !safeToAdd(_balances[to], value) ) {
        throw;
    }

    _balances[msg.sender] -= value;
    _balances[to] += value;
    Transfer( msg.sender, to, value );
    return true;
  }

  function transferFrom( address from, address to, uint value)
    isTokenSwapOn
    isNewEpoch
    checkLock
    returns (bool ok) {
    // if you don't have enough balance, throw
    if( _balances[from] < value ) {
        throw;
    }
    // if you don't have approval, throw
    if( _approvals[from][msg.sender] < value ) {
        throw;
    }
    if( !safeToAdd(_balances[to], value) ) {
        throw;
    }
    // transfer and return true
    _approvals[from][msg.sender] -= value;
    _balances[from] -= value;
    _balances[to] += value;
    Transfer( from, to, value );
    return true;
  }

  function approve(address spender, uint value)
    isTokenSwapOn
    isNewEpoch
    checkLock
    returns (bool ok) {
    _approvals[msg.sender][spender] = value;
    Approval( msg.sender, spender, value );
    return true;
  }

  // The function currentSwapRate() returns the current exchange rate
  // between vSlice tokens and Ether during the token swap period
  function currentSwapRate() constant returns(uint) {
      if (creationTime + 1 weeks > now) {
          return 130;
      }
      else if (creationTime + 2 weeks > now) {
          return 120;
      }
      else if (creationTime + 4 weeks > now) {
          return 100;
      }
      else {
          return 0;
      }
  }

  // The function mintTokens is only usable by the chosen wallet
  // contract to mint a number of tokens proportional to the
  // amount of ether sent to the wallet contract. The function
  // can only be called during the tokenswap period
  function mintTokens(address newTokenHolder, uint etherAmount)
    external
    onlyFromWallet {

        uint tokensAmount = currentSwapRate() * etherAmount;
        if(!safeToAdd(_balances[newTokenHolder],tokensAmount )) throw;
        if(!safeToAdd(_supply,tokensAmount)) throw;

        _balances[newTokenHolder] += tokensAmount;
        _supply += tokensAmount;

        TokenMint(newTokenHolder, tokensAmount);
  }

  // The function disableTokenSwapLock() is called by the wallet
  // contract once the token swap has reached its end conditions
  function disableTokenSwapLock()
    external
    onlyFromWallet {
        tokenSwapLock = false;
        TokenSwapOver();
  }
}


pragma solidity ^0.4.0;
/*
The ProfitContainer contract receives profits from the vDice games and allows a
a fair distribution between token holders.
*/

contract Ownable {
  address public owner;

  function Ownable() {
    owner = msg.sender;
  }

  modifier onlyOwner() {
    if (msg.sender == owner)
      _;
  }

  function transferOwnership(address _newOwner)
      external
      onlyOwner {
      if (_newOwner == address(0x0)) throw;
      owner = _newOwner;
  }

}

contract ProfitContainer is Ownable {
    uint public currentEpoch;
    //This is to mitigate supersend and the possibility of
    //different payouts for same token ownership during payout phase
    uint public initEpochBalance;
    mapping (address => uint) lastPaidOutEpoch;
    Token public tokenCtr;

    event WithdrawalEnabled();
    event ProfitWithdrawn(address tokenHolder, uint amountPaidOut);
    event TokenContractChanged(address newTokenContractAddr);

    // The modifier onlyNotPaidOut prevents token holders who have
    // already withdrawn their share of profits in the epoch, to cash
    // out additional shares.
    modifier onlyNotPaidOut {
        if (lastPaidOutEpoch[msg.sender] == currentEpoch) throw;
        _;
    }

    // The modifier onlyLocked prevents token holders from collecting
    // their profits when the token contract is in an unlocked state
    modifier onlyLocked {
        if (!tokenCtr.lock()) throw;
        _;
    }

    // The modifier resetPaidOut updates the currenct epoch, and
    // enables the smart contract to track when a token holder
    // has already received their fair share of profits or not
    // and sets the balance for the epoch using current balance
    modifier resetPaidOut {
        if(currentEpoch < tokenCtr.numOfCurrentEpoch()) {
            currentEpoch = tokenCtr.numOfCurrentEpoch();
            initEpochBalance = this.balance;
            WithdrawalEnabled();
        }
        _;
    }

    function ProfitContainer(address _token) {
        tokenCtr = Token(_token);
    }

    function ()
        payable {

    }

    // The function withdrawalProfit() enables token holders
    // to collect a fair share of profits from the ProfitContainer,
    // proportional to the amount of tokens they own. Token holders
    // will be able to collect their profits only once
    function withdrawalProfit()
        external
        resetPaidOut
        onlyLocked
        onlyNotPaidOut {
        uint currentEpoch = tokenCtr.numOfCurrentEpoch();
        uint tokenBalance = tokenCtr.balanceOf(msg.sender);
        uint totalSupply = tokenCtr.totalSupply();

        if (tokenBalance == 0) throw;

        lastPaidOutEpoch[msg.sender] = currentEpoch;

        // Overflow risk only exists if balance is greater than
        // 1e+33 ether, assuming max of 96M tokens minted.
        // Functions throws, as such a state should never be reached
        // Unless significantly more tokens are minted
        if (!safeToMultiply(tokenBalance, initEpochBalance)) throw;
        uint senderPortion = (tokenBalance * initEpochBalance);

        uint amountToPayOut = senderPortion / totalSupply;

        if(!msg.sender.send(amountToPayOut)) {
            throw;
        }

        ProfitWithdrawn(msg.sender, amountToPayOut);
    }

    function changeTokenContract(address _newToken)
        external
        onlyOwner {

        if (_newToken == address(0x0)) throw;

        tokenCtr = Token(_newToken);
        TokenContractChanged(_newToken);
    }

    // returns expected payout for tokenholder during lock phase
    function expectedPayout(address _tokenHolder)
        external
        constant returns (uint) {

        if (!tokenCtr.lock())
            return 0;

        return (tokenCtr.balanceOf(_tokenHolder) * initEpochBalance) / tokenCtr.totalSupply();
    }

    function safeToMultiply(uint _a, uint _b)
        private
        constant returns (bool) {

        return (_b == 0 || ((_a * _b) / _b) == _a);
    }
}

    Contract ABI  
[{"constant":false,"inputs":[],"name":"withdrawalProfit","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_tokenHolder","type":"address"}],"name":"expectedPayout","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"initEpochBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newToken","type":"address"}],"name":"changeTokenContract","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"currentEpoch","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenCtr","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"_token","type":"address"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[],"name":"WithdrawalEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"tokenHolder","type":"address"},{"indexed":false,"name":"amountPaidOut","type":"uint256"}],"name":"ProfitWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newTokenContractAddr","type":"address"}],"name":"TokenContractChanged","type":"event"}]

  Contract Creation Code Switch To Opcodes View
6060604052346100005760405160208061085483398101604052515b5b60008054600160a060020a0319166c01000000000000000000000000338102041790555b60048054600160a060020a0319166c01000000000000000000000000838102041790555b505b6107e0806100746000396000f36060604052361561006c5760e060020a60003504632ebec916811461007557806336bc32a21461008457806350148ed2146100a6578063523aee69146100c557806376671808146100d75780638da5cb5b146100f6578063aef251a71461011f578063f2fde38b14610148575b6100735b5b565b005b346100005761007361015a565b005b346100005761009460043561052c565b60408051918252519081900360200190f35b3461000057610094610694565b60408051918252519081900360200190f35b346100005761007360043561069a565b005b3461000057610094610739565b60408051918252519081900360200190f35b346100005761010361073f565b60408051600160a060020a039092168252519081900360200190f35b346100005761010361074e565b60408051600160a060020a039092168252519081900360200190f35b346100005761007360043561075d565b005b60006000600060006000600460009054906101000a9004600160a060020a0316600160a060020a031663018e13d06000604051602001526040518160e060020a028152600401809050602060405180830381600087803b156100005760325a03f115610000575050604051516001541015905061026d57600460009054906101000a9004600160a060020a0316600160a060020a031663018e13d06000604051602001526040518160e060020a028152600401809050602060405180830381600087803b156100005760325a03f1156100005750506040518051600155600160a060020a033016316002557f66f7d730c9ba098beec19ac6c1d94380c4f8b016455b36cb348ca4c646a075bc9150600090a15b600460009054906101000a9004600160a060020a0316600160a060020a031663f83d08ba6000604051602001526040518160e060020a028152600401809050602060405180830381600087803b156100005760325a03f11561000057505060405151151590506102dc57610000565b600154600160a060020a033316600090815260036020526040902054141561030357610000565b600460009054906101000a9004600160a060020a0316600160a060020a031663018e13d06000604051602001526040518160e060020a028152600401809050602060405180830381600087803b156100005760325a03f115610000575050604080518051600480546000602094850181905285517f70a08231000000000000000000000000000000000000000000000000000000008152600160a060020a03338116948201949094529551939b50911694506370a08231936024808201949392918390030190829087803b156100005760325a03f115610000575050604080518051600480546000602094850181905285517f18160ddd0000000000000000000000000000000000000000000000000000000081529551939a50600160a060020a0390911695506318160ddd94808301949392908390030190829087803b156100005760325a03f1156100005750506040515193505083151561046557610000565b600160a060020a033316600090815260036020526040902085905560025461048e9085906107bf565b151561049957610000565b6002548402915082828115610000576040519190049150600160a060020a0333169082156108fc029083906000818181858888f1935050505015156104dd57610000565b60408051600160a060020a03331681526020810183905281517f016e128b6bdadd9e9068abd0b18db2fc8b27ed3dbced50e4aa6cc0a6934251ab929181900390910190a15b5b5b5b5050505050565b6000600460009054906101000a9004600160a060020a0316600160a060020a031663f83d08ba6000604051602001526040518160e060020a028152600401809050602060405180830381600087803b156100005760325a03f11561000057505060405151151590506105a05750600061068f565b600460009054906101000a9004600160a060020a0316600160a060020a03166318160ddd6000604051602001526040518160e060020a028152600401809050602060405180830381600087803b156100005760325a03f1156100005750505060405180519060200150600254600460009054906101000a9004600160a060020a0316600160a060020a03166370a08231856000604051602001526040518260e060020a0281526004018082600160a060020a03168152602001915050602060405180830381600087803b156100005760325a03f115610000575050604051519190910290508115610000570490505b919050565b60025481565b60005433600160a060020a039081169116141561073457600160a060020a03811615156106c657610000565b6004805473ffffffffffffffffffffffffffffffffffffffff19166c010000000000000000000000008381020417905560408051600160a060020a038316815290517fe89f98a27789c8313baa22de83cdb921b7026d66af0ee02973c97d45f952b6be916020908290030190a15b5b5b50565b60015481565b600054600160a060020a031681565b600454600160a060020a031681565b60005433600160a060020a039081169116141561073457600160a060020a038116151561078957610000565b6000805473ffffffffffffffffffffffffffffffffffffffff19166c01000000000000000000000000838102041790555b5b5b50565b60008115806107d75750828283850281156100005704145b90505b9291505056

    Constructor Arguments (ABI-encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000005c543e7ae0a1104f78406c340e9c64fd9fce5170

-----Decoded View---------------
Found 1 constructor arguments :
Arg [0] : 0000000000000000000000005c543e7ae0a1104f78406c340e9c64fd9fce5170

View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.