Latest 25 transactions from a total of 1727 transactions

TxHash Age From To Value [TxFee]
0x9bc694d6594678269851db8afdf888b4d3278c071bd7d3c0f9bdfbb4ac3164e317 days 22 hrs ago0x096a492573308a2d7af74335dff6f7051b4fd193  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.0008733
0xba3aa00786cd78e6eea66a388a39a3ce4098996116b5c1a6a48ec33c0184300218 days 1 min ago0x89bd96e09ed1bc15ccc464e13e65cff8ed0a7f78  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000544808
0x16c6b5cf29f25ac4b9d79a4810ddf45cab05c2fc5a20f699cfc48f33849b690618 days 1 hr ago0x44197637e1c3afcac5bddf425439ac6b28ac0b1e  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002590339
0xdfd4085c91699fd594a776156ac144e028556ea10cb0225fbddadb47fe85294248 days 11 hrs ago0x5122ef9fca260362bc63a0875a4bec9962051945  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002377344
0xb5f24583943e093ed8ed0b25abb6e0c9b4043df806c3dffb2c940ab020a7ff9548 days 20 hrs ago0x44197637e1c3afcac5bddf425439ac6b28ac0b1e  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0xbd625016f3c85ae9b96bd550a52a0eb912dc2842111149cb8f88e0c07e56b5f750 days 8 hrs ago0x98669bf7f6e8bb84e02861130ac00adcc659fad2  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000884506
0x7711036d3a646e214aae27f20b580aa28ba815276b109571075495c2c8362dac76 days 11 hrs ago0x5122ef9fca260362bc63a0875a4bec9962051945  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000462
0x07fabd52f19800b9820c0d115b31255ffcb9be347bc00b4e3d3b06a8e986c28776 days 11 hrs ago0x2a4b98c0388382e93164213cdd9eecd4b6434069  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000099056
0x1378d9c5f8610241531f4168fe6ffd95827edb406bfcf388d056a76f637962d778 days 8 hrs ago0x98669bf7f6e8bb84e02861130ac00adcc659fad2  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000198112
0x3ae509b380fac06d1b5d5897fb9fadd94fc2f4c9aab67090a5ebab6dd9ca821178 days 12 hrs ago0x44197637e1c3afcac5bddf425439ac6b28ac0b1e  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002590339
0xd30241630a9319fa073e2c2c3e994a80f91391bd58e298494f6fde4ca1e0b6fb107 days 23 hrs ago0x44197637e1c3afcac5bddf425439ac6b28ac0b1e  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0x9dc7ff6bbfe039bd9408da8c80c3e7104be169df0d0ae468a68b3f3c5d212661108 days 11 mins ago0x44197637e1c3afcac5bddf425439ac6b28ac0b1e  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.0000252612
0x99c3579f0a4c3b3bf87dc291833f75a8e25546177ea60591c2b24367ce2f3e2e108 days 15 hrs ago0x4b415ae76f1a6236da46256131095487d33d8259  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.00099056
0xff5c32435c74808ec7e63c76623f66bc3d033dced36dc00ce27320821a954e26109 days 9 hrs ago0x98669bf7f6e8bb84e02861130ac00adcc659fad2  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000252716
0x32e5faa22970b5ff50baa1b3003c2340a351f8fc03bec0a4d0d15d0976499641110 days 12 hrs ago0x96e16bcc05853f8c45f3ec90bb4cf557dc4731c1  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001261071
0xe2e382a54e3019c931700c67db7f77db22bc94623b84c2d849525af047855f1c110 days 12 hrs ago0x96e16bcc05853f8c45f3ec90bb4cf557dc4731c1  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000631071
0xc7cea15bd5c6fa26fe616ec844d36e41d334cf100b8480232ff645c20719fd30114 days 20 hrs ago0x86fa50f8e1ce0798a7502a88941610ae61d396f3  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000129456
0x54c35e74fccae1ff665b783e75256840aff8c8eb9527e83258dcf9e03a60d772114 days 23 hrs ago0x86fa50f8e1ce0798a7502a88941610ae61d396f3  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000129456
0x1532e8700ede92054ae7169d5a2de7828c73f06b8b25f64a6bade3d02d6ce600133 days 6 hrs ago0xa1a57bb47c45ef28f937724e44ac51180f557111  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000601464
0x5bab1a1a28ef84ead16000dc4cd558305d2297dc0189ec6aa0fa5f41b1bda146135 days 1 hr ago0x168875ef625aaceff6eab65a77d5daa2ca4eaaa0  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000601464
0x5dcb300d0c1e1619bcaab901cb37de1cfc186a4778d2f6b3fadf578c9bf30ace136 days 6 hrs ago0x96e16bcc05853f8c45f3ec90bb4cf557dc4731c1  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0xbd9918a19666c32021d7a52eeaec1b63e99f472bc0fa68d8035d477006939005137 days 18 hrs ago0x44197637e1c3afcac5bddf425439ac6b28ac0b1e  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0xd4ee69f04f9f3c4bf88d42097eb7010473ec21bbac0e2a4260c6bbf61f98d3c6137 days 19 hrs ago0x44197637e1c3afcac5bddf425439ac6b28ac0b1e  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.00105255
0x95cd588d4c79521976e4dba853741ed2346559f37a112033ed5ae8202f097083137 days 20 hrs ago0x44197637e1c3afcac5bddf425439ac6b28ac0b1e  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.00105255
0x1857b19b020e74d223344299f5eba8fac338f60d9c0afcaaa639ac1f16ba026f139 days 9 hrs ago0x98669bf7f6e8bb84e02861130ac00adcc659fad2  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.00222876
[ 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
0x6c76f86337fe1d4b1b23290e16f5d180a8a41f1755bc1aa4e94be57b33e4b70a67203093 days 19 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00203557805818425 Ether
0x08093aa2103e57486bbbc5eaf9389308334fba6386e7e29f5fcb5d643812ba2567104515 days 9 hrs ago0xe642b6f79041c60d8447679b3a499f18d8b03b810x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.00266557805818425 Ether
0xba3aa00786cd78e6eea66a388a39a3ce4098996116b5c1a6a48ec33c01843002663361018 days 1 min ago0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50x89bd96e09ed1bc15ccc464e13e65cff8ed0a7f780.015053840577478292 Ether
0x16c6b5cf29f25ac4b9d79a4810ddf45cab05c2fc5a20f699cfc48f33849b6906663324618 days 1 hr ago0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50x44197637e1c3afcac5bddf425439ac6b28ac0b1e0.090531481257480991 Ether
0xdd7c4c2c7417206a4ad91176541a8217644ff9d9730a65cbfcde2b79f86aea30662337119 days 16 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002126033642068777 Ether
0x4fed5c20b0c8e82f079324b00ee2e6f791d0bce64ab2a76f1d2c89482dbb2098656070529 days 22 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.003566033642068777 Ether
0xbdbee11445a7be6ae6213005ee96bb707f67dd1c84f37533043a38024f03c8aa655672830 days 13 hrs ago0xe642b6f79041c60d8447679b3a499f18d8b03b810x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001955033642068777 Ether
0x9dba4c93a2253baa1cc26c882c919a4d73965fb1266a4f3b712cb89cfe373a80655668930 days 14 hrs ago0xe642b6f79041c60d8447679b3a499f18d8b03b810x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001955033642068777 Ether
0x8f1767bfcbbcfd396f4ac2cc661f408a86aa8c386b8b891e03c10f27b4ae1cc9655666730 days 14 hrs ago0xe642b6f79041c60d8447679b3a499f18d8b03b810x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001955033642068777 Ether
0x5b2efb8d3d504f8af8b3d0f4e9e9142a96f837cf7bad83ccab6e2fe60a53a45b655134831 days 11 hrs ago0xe642b6f79041c60d8447679b3a499f18d8b03b810x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.008966033642068777 Ether
0x059f67e75aaeefe472c66a5fd3a256f3eca3407a877522ef41f9d9077dd7a784655112131 days 12 hrs ago0xe642b6f79041c60d8447679b3a499f18d8b03b810x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.003566033642068777 Ether
0x873eebd492d9ab97d3bb30670d4e7c833dabd712aaabbe04410c15c46e8d5cb1654873331 days 21 hrs ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.021566033642068777 Ether
0xa41564a82fe655a756f920e218e00e02c67aa537f3051f4e9b09592c7f236d9e654872331 days 21 hrs ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.014366033642068777 Ether
0x7dbc2b2c09be42ba43ec67363f1cc1c5cae683ac942bc71155f9d5e28437c463651873336 days 19 hrs ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.004916033642068777 Ether
0xf6553d53d7a48fe97fde63302980f922adc00a5ddf061fe7ce39a30781393cf6651481237 days 10 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001955033642068777 Ether
0xf7d7c0fae25dec6704d0b6f596dd06237bf29cc5e2300281697c2dd80a5b050e648855841 days 16 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001955033642068777 Ether
0xc6d9f61f479774ccc11e95f42c795c1490e932ebf13156aa254c14d8f0e49b4d648854541 days 17 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001955033642068777 Ether
0x139433b152869c4df4f5bd4cf4e1438490e2a2c19a8d13b6668e1cb0a2920675646539845 days 10 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001955033642068777 Ether
0x4555848887e1f809e292ba4224da67003cd1e507ddc32ca2bac7bb7dba1ff62b646536545 days 10 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002054033642068777 Ether
0x450e85ba2e129949b46589c6d32da243337ad426cb01b588242b2dd81d6f6038646535245 days 10 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001955033642068777 Ether
0x859cc5ac74a0cfa7481cc36f364494b6d6a5da91724ac1717df0f8ab42194e71646522445 days 11 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.001955033642068777 Ether
0xdfd4085c91699fd594a776156ac144e028556ea10cb0225fbddadb47fe852942644669548 days 11 hrs ago0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50x5122ef9fca260362bc63a0875a4bec99620519450.003296505307814553 Ether
0xb5f24583943e093ed8ed0b25abb6e0c9b4043df806c3dffb2c940ab020a7ff95644450148 days 20 hrs ago0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50x44197637e1c3afcac5bddf425439ac6b28ac0b1e0.090403808229833119 Ether
0xbd625016f3c85ae9b96bd550a52a0eb912dc2842111149cb8f88e0c07e56b5f7643524750 days 8 hrs ago0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50x98669bf7f6e8bb84e02861130ac00adcc659fad20.019821040530202815 Ether
0x7cc1ab39176d50481dae910270afaa5346ad6d27d9a02a3c8199ac11a93b4e16643384350 days 13 hrs ago0x1e2fbe6be9eb39fc894d38be976111f332172d830x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002216033642068777 Ether
[ Download CSV Export  ] 
Contract Name: ProfitContainer
Compiler Text: 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

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005c543e7ae0a1104f78406c340e9c64fd9fce5170


 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.