Sponsored Link:   SHIFT.cash - smart-contract based car title lending platform, 30 billion market, 35+ employees. Join NOW.
Contract Overview
ETH Balance: 5.326058367447341527 Ether
ETH USD Value: $4,438.90 (@ $833.43/ETH)
No Of Transactions: 1617 txns
  Latest 25 txns from a total Of 1617 transactions View All

TxHash Age From To Value [TxFee]
0x6b641377d3ef5f768821b9b4b7863789ba8fbf1a188fb3a9cdd1356e587b8bb217 days 7 hrs ago0xe777000c1e482fd9c2c4a41bb870025f62b30592  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x9d4c7e0629f1eeb0179d583e4b70349b652a0f2595edf407d19d0ca473bb4ae617 days 23 hrs ago0xf34ccdcc38409720f6e757cf4194b592f2d4129b  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0xdc51dcc0972f0a52ab1d2b11017c52db85f7c3a6b129d9417c88eb63c8abffff18 days 6 hrs ago0x144793b583539f29f922b283a1caf75ff9607b33  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0xfe83edd3bfa34e98aacbbdb17ca0e55d59e1807ea588f1c398f37c4f19fccdee18 days 9 hrs ago0x57347d3fcb71deee70a3e25f801e1c6bb6eca135  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0x9fe90ce35ef5713aa162ed7edba398e0952e00865e51bb4ecca0840b73f1c61518 days 11 hrs ago0x34331f7296250646b6ed86c5e1fbec55ce35f425  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x128592b54c00f088043bd7dadaee2fe027c21a8aadacd5c05a37cfb01da7d35e18 days 11 hrs ago0x44197637e1c3afcac5bddf425439ac6b28ac0b1e  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0x59c6c678c9d68608c5a4b091211cbe145371decf610c62fbc5dedb5a81e7ffa018 days 11 hrs ago0x3aed2e24a953904fed7e1498df70495980f3d6f3  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x3a963234be22cbf01888f938691f9e3f1860d217049cd6f227e6e555a57f3cf618 days 11 hrs ago0x47743cec7af4bef67be022267ff11eadac1da43b  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0xf8b57718dc48181ec30011d43f5c8d6fd7b7491813e09379cba1092dccd43c7718 days 17 hrs ago0x1e9617222811e77efde66969214487259370fc6e  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x72ff4a99d55705df5547f4017a0d373ddfb6c37b2f04a7e4dd98298ddeea965d18 days 17 hrs ago0x2b5e27087178ff94732e1d528009297c0097a43a  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0xa6db1ea6b19d0f8b6711f007a8c298ef4c7c687a7cf696d049f92678388daa0a18 days 20 hrs ago0x2a4b98c0388382e93164213cdd9eecd4b6434069  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000049528
0x50816afc96bbf8dbc5e96b6bc545066a98f61aa5a35a701a21871d254e2d225318 days 21 hrs ago0x5122ef9fca260362bc63a0875a4bec9962051945  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0xe00a1bede8b05ab4efca33808a510c075aa7859b3b6411462ba293d20e226c1418 days 22 hrs ago0xbd86fc80fdc7cb7e5635fb7fb7129b2f557a38d9  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x8665c737c2e85bb8f350201dd344baab14d6f92184563bd2ee9af936c7afa0a518 days 22 hrs ago0x00317cd2da2044840b1ebe775c676530a7c65ba3  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0xd97925739ecd45b04b65e477193c6447894cf64d1938cb5904746d5d96f8424319 days 2 hrs ago0x62f9a5b8f09227320b5aee8d765e11b29007999e  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.00198112
0x1235b397f1cc84643e498127196f46697dd51e0b1314133bd58fcf36ac4c20c819 days 2 hrs ago0x20117e32de41af89ce66aa67a439f3ecc0f0f68d  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000049528
0xca4a7505e3ddb90cdf12cbd337ca74814e67a86979959a45512c5371f953dc8119 days 15 hrs ago0x4b415ae76f1a6236da46256131095487d33d8259  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.00198112
0x5773d0aa4d7bf88a395bf80bf49c9af59ee2a8d6ba31e77ecad53c9d3e43a5d819 days 17 hrs ago0x96e16bcc05853f8c45f3ec90bb4cf557dc4731c1  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x47ab8455e9923b1f5d3758bf0e594e7762e120defe43f74c1e7f441a8bc37a8c19 days 19 hrs ago0x8d213107afd8dada51d27352eedbbfa593a5c26f  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000198112
0x31cddc0002b6133a821ec6ef069e8e2e0601c47b2a1faa3cd3576e45496a9d2d20 days 52 mins ago0x93175c10d38623b552dee991de9e77742b0ca38a  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002
0xea5f6c22c3e51c839d6150fbae0b18438688e2ddfaeabfd64b186ef5c26ebbb020 days 17 hrs ago0x21d0d2216fd306803260abd43367dac2f36003b6  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.00000544808
0x55e38aa4ac73e5c8fc532f98cdac8272b0b834df0cc728d227fe5fe5c06a580c20 days 19 hrs ago0xcdb5a614ee806a41bc00af4bd4a296b5bb9bb267  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000049528
0xe4d8240d1a77c0d1bcd3d42465826e458d22db7d7361155df54f8800dfb54aa120 days 21 hrs ago0x2fb74c562bcec53e85978b232e5ff7f512621765  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.00297168
0x53eb0af4a77303efced4d95f317c3e70055670b8cb63de19f9873c535fe622d420 days 21 hrs ago0x441b0b151bf9f8d466002d72b63c2911871bbe3f  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000064528
0xc0ac39d14d81afb26dfeb4214c295f53c63270a15bc7198f200e9d8783b7e5f620 days 22 hrs ago0xf7b60de840ace172038f4cededec65c3125f86a5  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.004903272
[ 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
0x64b6653cc8214665c2cdf4331b2c6610ed4eae2ec57cd57618afde32df76fefb514770135 mins ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.005367672 Ether
0xf846886933a5ac732c2bacf77b8d669f8845561723b393606b03062dbf291ee4514770035 mins ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.003567672 Ether
0x3d499ea5b9c43ab3aa562de1ecf068024428279dd0b57b2d664c3bc9787e47ff51474301 hr 36 mins ago0x4e646a576917a6a47d5b0896c3e207693870869d0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.003117672 Ether
0x11aaf5c6b92bc8be3efe122b75660928f7d5b4bb56c54ad7b1c0fa9c3c2a156451469593 hrs 26 mins ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001965672 Ether
0xdc8dd57d713739b3656eec8c938ba38dcb80f14abcdc30b5bf26a2cd88ecd3e751459057 hrs 39 mins ago0x41ff0796a6c7a201476bff53c4cb2c48b084e5e00x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.000253386666666666 Ether
0xf4c9c1da27b662410cb293ec6767247b9a78430fa1c7d9b69793dcf4c727f60c51457888 hrs 15 mins ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.003567672 Ether
0xefbc69b7f27af63d3a4586ff850784f0cd2b8b7c1a7ab8e01dd904212c68ebf251456568 hrs 48 mins ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.004467672 Ether
0x692de5fe4a6376880932d9b0ce9de5baeb9ebad8be999f0943f3c34d74b9e0af51456348 hrs 54 mins ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.004467672 Ether
0x261b0c72bf83cc7c421a835bcf9ad1f98278bbd300b34df42632713c5f5f291451455909 hrs 8 mins ago0x41ff0796a6c7a201476bff53c4cb2c48b084e5e00x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.000019056 Ether
0xacbed05911e233f6f652fcd7fbb14bc9c204f9a492127460e18a0d15201dedaa51455889 hrs 9 mins ago0x41ff0796a6c7a201476bff53c4cb2c48b084e5e00x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.000075528 Ether
0xa7ded252afa2ccd1563a4bbb9bbb3e24e279ea7a59af7ba220fdf8e5bcd3ed0c51455339 hrs 22 mins ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.004467672 Ether
0x2e387c7041ace39ca786aeacfb7ddcc1ff529bfb39ffdd8b459549da6c40939451455079 hrs 28 mins ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.003567672 Ether
0xdf045c1fd40e534a8dbbbdadc0fa502b64882758c4496f06d5d85d016428c8e451454729 hrs 38 mins ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.004467672 Ether
0x5611cffd7b018db008151620bffec87e37c2584df1938b147e8126fd5a8801a851454729 hrs 38 mins ago0x41ff0796a6c7a201476bff53c4cb2c48b084e5e00x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.000005348 Ether
0xa6cfb053edc78acc3b0594ec17783f3303bbad2e721af97241a2626344ed238051454729 hrs 38 mins ago0x41ff0796a6c7a201476bff53c4cb2c48b084e5e00x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00001008 Ether
0x4eccc811976a01a362270e7e80a6855cac8de4f26cf11272779a38c33a7fbdb551454729 hrs 38 mins ago0x41ff0796a6c7a201476bff53c4cb2c48b084e5e00x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00000336 Ether
0xa9cc8713ef9a61909ac2609ea1b3452da15e494f440fa89534a253305dc8438f51454389 hrs 47 mins ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.003567672 Ether
0x038959c32bf6379f8d0b66e3bb9d56dd3e54ac5ca90a73d6a8cac72af61d813251454349 hrs 48 mins ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.003567672 Ether
0x0c83525e7072f852c4ffb2890f807c7fd14b41023501e2a29ea40c1567ca36db514498111 hrs 48 mins ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.004467672 Ether
0x746a268143240d0795e1dee4fc0b1ad7e3577d844861b23431f69722036621d5514490712 hrs 9 mins ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.026967672 Ether
0xdca1349ceada9359de88d7424af976bacb536b92c421f53e9d6b9ffd68ca3dd1514490712 hrs 9 mins ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.004467672 Ether
0xe681b5713ccf46799182cba5e129983b0042c94d41d48c8046e59ffa4a108eb6514486812 hrs 18 mins ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.015717672 Ether
0xbf218960bff7f5eef17b538a0966763eb8f642bbf63dbef1e8ef734416d6c4fc514483512 hrs 28 mins ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.007617672 Ether
0x9028f55268fbbd3facc47bb7204df4f6f146f901e1db6c6174f3d5310e6f1ab5514483512 hrs 28 mins ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.004467672 Ether
0xb43918a349887129548fd293e3f8ff3eabacb719b5eef20be69bb24a18b42b0b514461513 hrs 18 mins ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.004467672 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.