Sponsored Link:   Ducatur - EOS Hackathon Won! MVP Ready! Softcap reached! - Buy 1st Multichain Token - 3in1 (ETH,NEO,EOS)
 Latest 25 txns from a total Of 1700 transactions
View All

TxHash Age From To Value [TxFee]
0x710000f9d29b2ec6666d576642e6adc08213d5f866ee96c09dd3db6215cd293e11 days 23 hrs ago0x028399345b6aa86ccb958bb33a7ae942357ec90c  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.0024764
0xde42a9f17c2ba66d61d71d928bde155950ff120b1e7ad9462ab7446b6276ac0912 days 16 hrs ago0x98669bf7f6e8bb84e02861130ac00adcc659fad2  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000693392
0x4630806116817a3715ee0283824f8cbcc7905f830f85f76449e8f23201cde33012 days 23 hrs ago0x4b415ae76f1a6236da46256131095487d33d8259  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.00099056
0x589e262877c0ad162723422ba719f8b02709bc5a3f9bb19960c361b0ed3cfa1514 days 19 hrs ago0x5122ef9fca260362bc63a0875a4bec9962051945  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0xedb89e018af232c423bb72d58799911243669c89eca6c59201d3cf26e58e047b14 days 21 hrs ago0x44197637e1c3afcac5bddf425439ac6b28ac0b1e  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0x98ac24c9619b66dd1372c0e7bf66c474fbfc695fe8e8a73362d7ce47a9aa53e615 days 20 hrs ago0x96e16bcc05853f8c45f3ec90bb4cf557dc4731c1  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001326759
0x0b1f66425d682aa801d78e3abfd0034884f366c68d9c79cafe65e2fd423f81ee42 days 5 hrs ago0x34331f7296250646b6ed86c5e1fbec55ce35f425  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0xae522f132450fa3e1b8bad0e7cdb4e6051cd0567a05f70752470c0e2380f0a2c42 days 5 hrs ago0x3aed2e24a953904fed7e1498df70495980f3d6f3  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x9ac9cf724a8ac873fce4d93ccf540bdf682ca6f401ec014cf4522a8941de6b7442 days 6 hrs ago0x47743cec7af4bef67be022267ff11eadac1da43b  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x217cbd373d6a127e4c72dc64b8f8fbdf576d3b289f5723a81a034020c091da5f42 days 16 hrs ago0x5122ef9fca260362bc63a0875a4bec9962051945  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x83dbbc7e9b904f97ff64df817ad246b604b3b2a002f3b3bf4a327176493dc52142 days 19 hrs ago0x44197637e1c3afcac5bddf425439ac6b28ac0b1e  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0x1e2313db3685d6c50a25cc3c7058d2a238c32a3cc5f43b1f4b48256a41d6a50443 days 11 hrs ago0x57347d3fcb71deee70a3e25f801e1c6bb6eca135  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0xb1d3c5e3722794c86df90857a15f7042a4c07e8f44759a199274b76b72ffad0c43 days 13 hrs ago0xb1ae2691b988b00daff33567f047cbbecef75714  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0xacc134c9064bfc39e52da5d5ccc5dc8b10c05a463542fbb406edf32b015a031143 days 13 hrs ago0x20117e32de41af89ce66aa67a439f3ecc0f0f68d  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000049528
0x24784dfe2ebdcf0e37d62cead7d3371b8934ac7f103e3a90f4638dc06b99c53043 days 18 hrs ago0x98669bf7f6e8bb84e02861130ac00adcc659fad2  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x36723d688364fd1be883d54901c1326ff433ffe9b1cbfff03284b61f0c83583643 days 22 hrs ago0x21d0d2216fd306803260abd43367dac2f36003b6  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.00012530584
0xfbb072fdb2bc442c7f2564967ccd327b93ccf7ef808f036602b4857c3338c6ed44 days 19 hrs ago0x00317cd2da2044840b1ebe775c676530a7c65ba3  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x7adcf070a8bf0f245e480c87702fbb23f627ae3d6c6651ec815bea5f6cec5e6b45 days 5 hrs ago0xc7b158b10b0bb26bf0072af363c04927b60342df  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0x803f757d45a7217813a7cc55b131e85bd4c0d3f3dcef6a2d7abf930fe3a8aa8645 days 6 hrs ago0x2a4b98c0388382e93164213cdd9eecd4b6434069  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000099056
0x8e63e53aafffaf24b31c45c3b7a36284438d83a119985c7306850e91dfdb80f445 days 15 hrs ago0x8d213107afd8dada51d27352eedbbfa593a5c26f  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000198112
0xc2d67832ba16164fd12a2c74bc19d12db68ae36623afeb0bd57cadc87849172245 days 17 hrs ago0x144793b583539f29f922b283a1caf75ff9607b33  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0x3336f062b78ccb9b5a6c2484697ddffe33e3f9e8c4cb0c56d5ca34a5c9b3c4e946 days 35 mins ago0xe777000c1e482fd9c2c4a41bb870025f62b30592  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0x61bd87e2a321decc54f5a9d1978e6fec8e56bd61acbe0d0f657af35ed799d07f46 days 1 hr ago0x96e16bcc05853f8c45f3ec90bb4cf557dc4731c1  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001326759
0xa0a4a709997688c59c6f85938b56ee9005433096b75a9f52bdf4efd27a1476cc71 days 19 hrs ago0x8c54268a995cc285e34158d72c3f7d4c3a98db0c  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0x6b775a1002f671f9a6391ced46e6707efe87138cff94f1518ecbe8a2e5243aa971 days 22 hrs ago0x00317cd2da2044840b1ebe775c676530a7c65ba3  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
0x016ea63536f99f2471258a951462d6ad84a602f156f85ae6909ac165d80e5fe258154395 hrs 30 mins ago0xe642b6f79041c60d8447679b3a499f18d8b03b810x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.022196885771389133 Ether
0x003fa7dfbdbc3a7faa469bd6f7de7178cf382ea98ed0e42c9812a1c58b4681b658153585 hrs 49 mins ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.039476885771389133 Ether
0x5a835506555441c3193214e6a4b214a3401ea0e7b4e07cc9e8933f269ec6f62058147868 hrs 14 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002666885771389133 Ether
0x02e05c64b313b600a992d3e1d7a7f6083c1baeaa3125f280aa03868a701ce84958147528 hrs 22 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001955885771389133 Ether
0x7d9f89718ed1cc52d85e28e52a7c9945088e259e832878a409a9866c4f0c487f581312814 hrs 55 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.005000833543651613 Ether
0xd2b4dd89c2ca08439911dc16c6172c98ab3632c4391ce39a3f1ae8d1f5afa0a0581286215 hrs 53 mins ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.039278885771389133 Ether
0x7d67fa90e05a8ca341f2b7e1ca8ec92f47d098fefe247b32e525f143ea8bbaf5581285715 hrs 55 mins ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.039026885771389133 Ether
0x4a5fd7e01d8a4a23d11d41464d58e240cacf625b41374d80966b3201f94b3fca581279716 hrs 7 mins ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.039116885771389133 Ether
0x8f9ce98cd7e0a78f61963c5615ad4fab126e532597ffb8f6acc89fb26da617ad581274016 hrs 21 mins ago0xe642b6f79041c60d8447679b3a499f18d8b03b810x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.019766885771389133 Ether
0xf7a738f1641d2f6db6382e2f6e3a21413edb41207876c660c322634d0f1ee0d8581244717 hrs 37 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001955885771389133 Ether
0x0411c712ab8c1633ed6bea70c1299b8a3394fcdb9047dd651d1f65eb0f300036581223918 hrs 25 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002666885771389133 Ether
0xa39d571d83d7dc594cafb4a2b0b384db2adb64da1d169113db5336f6b6b31911581221418 hrs 33 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001955885771389133 Ether
0xbdc078368864295c28c413b68c3ee9ae07f25f88b7cd4cd299bd35e1d93091fa581219618 hrs 37 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001955885771389133 Ether
0xf6c8faaf084dca58f43f5966277e1ab1c03175cb4804cea76ccc8685e7b10eb2581138321 hrs 56 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001955885771389133 Ether
0xbd8668aa01439fd2f8ece2b6bd9e38c0686fd84a61f6f3a122af3915879cb02458095551 day 5 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002666885771389133 Ether
0x770509707a06862ca43c1a9906c56df5b974703ac698af2555b1f40cc2af00f958095131 day 5 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001955885771389133 Ether
0x1ed5f5fe9e697d6e4fb7ed7a09e4c8df7c85a2fe554fb91f62ef805c237c856c58094831 day 5 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001955885771389133 Ether
0x518963e8a115a6c0e15c41459102e8ea298d957d90d899dd945a4178fe99b29f58082701 day 10 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002135885771389133 Ether
0xdd5b52c1bbea14cb6d703fe8a044533a3eb4a9c93d90eade24c6aa95aac05de458082621 day 10 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001955885771389133 Ether
0xa4a8feae21b9ec97788582f0086ef70b8ff9841f73faeb62519b35e633f6341458071451 day 15 hrs ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.017966885771389133 Ether
0x06fdcfe30d309d96a88f14caecbd394b7bc5dc14b190936a58d8111969868c1058068051 day 16 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001955885771389133 Ether
0xe95bc29d2d9b92e4c0c3140f7d634cf6c3d3b32c37f8ad87861781eb6e55236558057551 day 20 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.008966885771389133 Ether
0x6339264d387cc4eb7f13be719b46fbe4ab48a6bcf63c3d8cfad1962d3c87a63b58055451 day 21 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.004025885771389133 Ether
0x87270aeeec8f08c12d2486bdd476376d745a7ebc9526c8cf51b2fb30c0a9573158055341 day 21 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.003935885771389133 Ether
0x602893141064cd3c2fc1a6175d1aee2e619b4048b829e39aa09d5f68acb0754d58055231 day 21 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001955885771389133 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.