Sponsored:   Ubex.com - Additional 17% of tokens are available for purchase! Trading on exchanges already started.
 Latest 25 txns from a total Of 1717 transactions

TxHash Age From To Value [TxFee]
0xd30241630a9319fa073e2c2c3e994a80f91391bd58e298494f6fde4ca1e0b6fb12 days 19 hrs ago0x44197637e1c3afcac5bddf425439ac6b28ac0b1e  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0x9dc7ff6bbfe039bd9408da8c80c3e7104be169df0d0ae468a68b3f3c5d21266112 days 19 hrs ago0x44197637e1c3afcac5bddf425439ac6b28ac0b1e  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.0000252612
0x99c3579f0a4c3b3bf87dc291833f75a8e25546177ea60591c2b24367ce2f3e2e13 days 11 hrs ago0x4b415ae76f1a6236da46256131095487d33d8259  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.00099056
0xff5c32435c74808ec7e63c76623f66bc3d033dced36dc00ce27320821a954e2614 days 4 hrs ago0x98669bf7f6e8bb84e02861130ac00adcc659fad2  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000252716
0x32e5faa22970b5ff50baa1b3003c2340a351f8fc03bec0a4d0d15d097649964115 days 7 hrs ago0x96e16bcc05853f8c45f3ec90bb4cf557dc4731c1  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001261071
0xe2e382a54e3019c931700c67db7f77db22bc94623b84c2d849525af047855f1c15 days 7 hrs ago0x96e16bcc05853f8c45f3ec90bb4cf557dc4731c1  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000631071
0xc7cea15bd5c6fa26fe616ec844d36e41d334cf100b8480232ff645c20719fd3019 days 16 hrs ago0x86fa50f8e1ce0798a7502a88941610ae61d396f3  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000129456
0x54c35e74fccae1ff665b783e75256840aff8c8eb9527e83258dcf9e03a60d77219 days 19 hrs ago0x86fa50f8e1ce0798a7502a88941610ae61d396f3  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000129456
0x1532e8700ede92054ae7169d5a2de7828c73f06b8b25f64a6bade3d02d6ce60038 days 2 hrs ago0xa1a57bb47c45ef28f937724e44ac51180f557111  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000601464
0x5bab1a1a28ef84ead16000dc4cd558305d2297dc0189ec6aa0fa5f41b1bda14639 days 21 hrs ago0x168875ef625aaceff6eab65a77d5daa2ca4eaaa0  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000601464
0x5dcb300d0c1e1619bcaab901cb37de1cfc186a4778d2f6b3fadf578c9bf30ace41 days 1 hr ago0x96e16bcc05853f8c45f3ec90bb4cf557dc4731c1  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0xbd9918a19666c32021d7a52eeaec1b63e99f472bc0fa68d8035d47700693900542 days 13 hrs ago0x44197637e1c3afcac5bddf425439ac6b28ac0b1e  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0xd4ee69f04f9f3c4bf88d42097eb7010473ec21bbac0e2a4260c6bbf61f98d3c642 days 15 hrs ago0x44197637e1c3afcac5bddf425439ac6b28ac0b1e  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.00105255
0x95cd588d4c79521976e4dba853741ed2346559f37a112033ed5ae8202f09708342 days 15 hrs ago0x44197637e1c3afcac5bddf425439ac6b28ac0b1e  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.00105255
0x1857b19b020e74d223344299f5eba8fac338f60d9c0afcaaa639ac1f16ba026f44 days 4 hrs ago0x98669bf7f6e8bb84e02861130ac00adcc659fad2  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.00222876
0x97610551c2fcdec7d4ca057ce1191e468bbf1a9c92f772dba2f166f3fe60dac544 days 4 hrs ago0x98669bf7f6e8bb84e02861130ac00adcc659fad2  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001318864
0x919975a93970768cb778f4fd7be3462cdece75f41b4d3492aa50a8b60ca2be6545 days 32 mins ago0x5122ef9fca260362bc63a0875a4bec9962051945  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001326759
0x710000f9d29b2ec6666d576642e6adc08213d5f866ee96c09dd3db6215cd293e71 days 9 hrs ago0x028399345b6aa86ccb958bb33a7ae942357ec90c  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.0024764
0xde42a9f17c2ba66d61d71d928bde155950ff120b1e7ad9462ab7446b6276ac0972 days 3 hrs ago0x98669bf7f6e8bb84e02861130ac00adcc659fad2  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000693392
0x4630806116817a3715ee0283824f8cbcc7905f830f85f76449e8f23201cde33072 days 9 hrs ago0x4b415ae76f1a6236da46256131095487d33d8259  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.00099056
0x589e262877c0ad162723422ba719f8b02709bc5a3f9bb19960c361b0ed3cfa1574 days 6 hrs ago0x5122ef9fca260362bc63a0875a4bec9962051945  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0xedb89e018af232c423bb72d58799911243669c89eca6c59201d3cf26e58e047b74 days 8 hrs ago0x44197637e1c3afcac5bddf425439ac6b28ac0b1e  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0x98ac24c9619b66dd1372c0e7bf66c474fbfc695fe8e8a73362d7ce47a9aa53e675 days 7 hrs ago0x96e16bcc05853f8c45f3ec90bb4cf557dc4731c1  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001326759
0x0b1f66425d682aa801d78e3abfd0034884f366c68d9c79cafe65e2fd423f81ee101 days 16 hrs ago0x34331f7296250646b6ed86c5e1fbec55ce35f425  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0xae522f132450fa3e1b8bad0e7cdb4e6051cd0567a05f70752470c0e2380f0a2c101 days 16 hrs ago0x3aed2e24a953904fed7e1498df70495980f3d6f3  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
0x5e927b8728d1691b8e140c62f0223aa7ce9853c26bf2335c87121dcd7da97c4b61473383 days 5 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.004466339783469151 Ether
0xceca843387bc0c315009b14de998ab4a049bf443648926bdff230b22414bda2a61259376 days 20 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002045712373626374 Ether
0x45d56b7084400ffec9a673ea97ae0ea31568cbe223905b4e2bdb3ab440f955a161259296 days 20 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001955712373626374 Ether
0x010c18721231499a8ab6396f211a87366f11586ba7c7ee92684213119020c11861180268 days 4 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.008966819785418836 Ether
0xe8ef4fcd86998ad03002f2567033650fd391b8915045c754da4e0d01836962ba61178878 days 4 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002666819785418836 Ether
0x365dff9283ca4b6a8d1d27a5c4387160f6bbbf0bed95737a2577f2fa853adaf261165938 days 9 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001955819785418836 Ether
0xf65806e6f4019e9302740cf58cd04e447e424c0fd248f3a5fc7ce0471461db7661146868 days 17 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001955819785418836 Ether
0x568f8b76152b4bcc66ca5d5f59f7b851111add8c0d684bc2644dd6230519ca4a610107111 days 1 hr ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002487010037013127 Ether
0x7929e26c79f8d60c1d05ded44dc9bf15a0351a288656026183c206d38f7ff9e0610106311 days 1 hr ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001983010037013127 Ether
0xd02813ebe0f3c7e853f22bc812fef5afa8aeb8b910d6b9569c472c19c9c0a52d610103211 days 1 hr ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001992010037013127 Ether
0x8e8d598aeddafcf8de969d5e106c9232aec3b1fa80cebcc4250275039a74b329610102111 days 1 hr ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001992010037013127 Ether
0x21636016574b4ae6f2bdd7353f23b6a970728fdf6c5739fbf744e3055450b3fa610098711 days 1 hr ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001992010037013127 Ether
0xd0677694ef1defabd33f848ad657da597ef8e0bb145509778e04ac85b1b40788610089911 days 1 hr ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001992010037013127 Ether
0xa98f6ddc6b8bf5ed690999e5dc4ebf08e20ca466c0e35f62f41ecf864a342637610088611 days 1 hr ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001956010037013127 Ether
0x6c11d401924107722495df0b1f50b3f0819f53008fa76d4c84811c6cbad93786609207112 days 13 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001956010037013127 Ether
0x0f74c9b16b54a4652bea23c2eb82be85ce189b74361e7e08c9fa93f86f3129d6609203112 days 13 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001956010037013127 Ether
0xd30241630a9319fa073e2c2c3e994a80f91391bd58e298494f6fde4ca1e0b6fb609067612 days 19 hrs ago0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50x44197637e1c3afcac5bddf425439ac6b28ac0b1e0.080412036983739776 Ether
0x99c3579f0a4c3b3bf87dc291833f75a8e25546177ea60591c2b24367ce2f3e2e608667813 days 11 hrs ago0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50x4b415ae76f1a6236da46256131095487d33d82590.002667831349658016 Ether
0xff5c32435c74808ec7e63c76623f66bc3d033dced36dc00ce27320821a954e26608224214 days 4 hrs ago0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50x98669bf7f6e8bb84e02861130ac00adcc659fad20.018617260067708965 Ether
0xc50eb7c7fc42c5bf15cf26a82b716987e99286be8caae5cf312475cba671322d606695716 days 19 hrs ago0xe8a51be86ad96447d45ddeddc55013f25157688c0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.005907093411328746 Ether
0x653b24d19449c4d43fd1ff2e7c53fb91153983dfff027341bf095f77e2f2408a606695016 days 19 hrs ago0x4e646a576917a6a47d5b0896c3e207693870869d0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.003657093411328746 Ether
0x67a2b001c00a702f33784094b67163a8a89a3d0ddb802ead35d4d24bfbac1756606694416 days 19 hrs ago0x4e646a576917a6a47d5b0896c3e207693870869d0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.003657093411328746 Ether
0xd4bd5dfc621e9aebbf1c4c447e71a1e708aa29c743af95d8a560567bdccb2d87606691416 days 19 hrs ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.038667093411328746 Ether
0x56186c8a4ba744d2162a1cd103a693528d9af940d8e47d46f8d850ad31a9dd79605920118 days 3 hrs ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00446714193085218 Ether
0xfd85b116750cf3ff802ea09c3051e2da34b87279e9ae4ecfa5925218dfb03941605914518 days 3 hrs ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00896714193085218 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.