Sponsored Link:   PAVOCOIN - IoT blockchain for the AgTech ecosystem. Bringing together IoT, blockchain, and agriculture. Join now!
 Latest 25 txns from a total Of 1694 transactions
View All

TxHash Age From To Value [TxFee]
0x0b1f66425d682aa801d78e3abfd0034884f366c68d9c79cafe65e2fd423f81ee15 days 4 hrs ago0x34331f7296250646b6ed86c5e1fbec55ce35f425  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0xae522f132450fa3e1b8bad0e7cdb4e6051cd0567a05f70752470c0e2380f0a2c15 days 4 hrs ago0x3aed2e24a953904fed7e1498df70495980f3d6f3  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x9ac9cf724a8ac873fce4d93ccf540bdf682ca6f401ec014cf4522a8941de6b7415 days 4 hrs ago0x47743cec7af4bef67be022267ff11eadac1da43b  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x217cbd373d6a127e4c72dc64b8f8fbdf576d3b289f5723a81a034020c091da5f15 days 15 hrs ago0x5122ef9fca260362bc63a0875a4bec9962051945  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x83dbbc7e9b904f97ff64df817ad246b604b3b2a002f3b3bf4a327176493dc52115 days 18 hrs ago0x44197637e1c3afcac5bddf425439ac6b28ac0b1e  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0x1e2313db3685d6c50a25cc3c7058d2a238c32a3cc5f43b1f4b48256a41d6a50416 days 9 hrs ago0x57347d3fcb71deee70a3e25f801e1c6bb6eca135  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0xb1d3c5e3722794c86df90857a15f7042a4c07e8f44759a199274b76b72ffad0c16 days 11 hrs ago0xb1ae2691b988b00daff33567f047cbbecef75714  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0xacc134c9064bfc39e52da5d5ccc5dc8b10c05a463542fbb406edf32b015a031116 days 12 hrs ago0x20117e32de41af89ce66aa67a439f3ecc0f0f68d  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000049528
0x24784dfe2ebdcf0e37d62cead7d3371b8934ac7f103e3a90f4638dc06b99c53016 days 16 hrs ago0x98669bf7f6e8bb84e02861130ac00adcc659fad2  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x36723d688364fd1be883d54901c1326ff433ffe9b1cbfff03284b61f0c83583616 days 20 hrs ago0x21d0d2216fd306803260abd43367dac2f36003b6  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.00012530584
0xfbb072fdb2bc442c7f2564967ccd327b93ccf7ef808f036602b4857c3338c6ed17 days 18 hrs ago0x00317cd2da2044840b1ebe775c676530a7c65ba3  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x7adcf070a8bf0f245e480c87702fbb23f627ae3d6c6651ec815bea5f6cec5e6b18 days 3 hrs ago0xc7b158b10b0bb26bf0072af363c04927b60342df  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0x803f757d45a7217813a7cc55b131e85bd4c0d3f3dcef6a2d7abf930fe3a8aa8618 days 4 hrs ago0x2a4b98c0388382e93164213cdd9eecd4b6434069  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000099056
0x8e63e53aafffaf24b31c45c3b7a36284438d83a119985c7306850e91dfdb80f418 days 14 hrs ago0x8d213107afd8dada51d27352eedbbfa593a5c26f  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000198112
0xc2d67832ba16164fd12a2c74bc19d12db68ae36623afeb0bd57cadc87849172218 days 15 hrs ago0x144793b583539f29f922b283a1caf75ff9607b33  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0x3336f062b78ccb9b5a6c2484697ddffe33e3f9e8c4cb0c56d5ca34a5c9b3c4e918 days 23 hrs ago0xe777000c1e482fd9c2c4a41bb870025f62b30592  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0x61bd87e2a321decc54f5a9d1978e6fec8e56bd61acbe0d0f657af35ed799d07f19 days 39 mins ago0x96e16bcc05853f8c45f3ec90bb4cf557dc4731c1  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001326759
0xa0a4a709997688c59c6f85938b56ee9005433096b75a9f52bdf4efd27a1476cc44 days 17 hrs ago0x8c54268a995cc285e34158d72c3f7d4c3a98db0c  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0x6b775a1002f671f9a6391ced46e6707efe87138cff94f1518ecbe8a2e5243aa944 days 21 hrs ago0x00317cd2da2044840b1ebe775c676530a7c65ba3  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x43d48cc03632c50df43cb2063627f5cce2d30da99bb2580edcea5f02dc67933245 days 11 hrs ago0x4b415ae76f1a6236da46256131095487d33d8259  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.00099056
0xb789cec4f1c075e690b3045cd6c272429a1c5ac1856412154630c040826f9c5046 days 33 mins ago0xc7b158b10b0bb26bf0072af363c04927b60342df  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.001040088
0x933af48d2d3d1821c61fae1c12ce6ffc406df6fdfa9d01e956af8666738c407f46 days 7 hrs ago0x57347d3fcb71deee70a3e25f801e1c6bb6eca135  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0xbeca183c4aaf4892b733bd2fd08bf6708afa73535f22380df13cc6e57dcaa63b46 days 18 hrs ago0x144793b583539f29f922b283a1caf75ff9607b33  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.002030648
0x16dc7c51b7154d5c1292d19fbb7cbec39c9ac316b5480eeb1fb11e5f1f17c70f46 days 21 hrs ago0x2a4b98c0388382e93164213cdd9eecd4b6434069  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000049528
0x0f65353a10fbcbdb1d25dc35dafbb5f7f1f766a685ffdda6f65b7488ee71452b47 days 3 hrs ago0xcdb5a614ee806a41bc00af4bd4a296b5bb9bb267  IN   0x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50 Ether0.000049528
[ 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
0x77e742da1785ccbbf861145281d5026bbf3e0a6b336dc24fb5727e0a7b3e0dbf566264625 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002216885771389133 Ether
0x6f39086133c80af9276a9f39915ba4ded3cf0658a3496591500bcb42962b81f2566264625 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002126885771389133 Ether
0x0dc56c46085c3b116bfb7c077e157b1f2092ab21454eda6df1b917419a1f50b556624251 hr 22 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002216885771389133 Ether
0xccf7d0eeebf4e4252de963c6cbfa6bebd5a625fc07b9a38142ca17b9fc58303b56624171 hr 24 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002036885771389133 Ether
0xb89fdb328af0c055696ab8df8174da060f0428c5430a4756e62e96004f89a1e656623431 hr 42 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002216885771389133 Ether
0xd3be99647eb05c70333f058b8633c79bd70fe794bc5bd46a9e636e40824c869156623431 hr 42 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002036885771389133 Ether
0xf5aa89278d2e600bf7f16d2f6c0594ed552c40d39e3df375e2b0ebf96a13bfea56620273 hrs 6 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002306885771389133 Ether
0xd93ec496dd20a3f9cefea90e308dd4aa461deb254a991661224e505dfaec1e6956620203 hrs 8 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002036885771389133 Ether
0xa4b09609dfe6f2b2388cd5c34aab5554f43c31468e0c735f99964db8da93559856620183 hrs 8 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002126885771389133 Ether
0x9bd4d0a951deda655aa6844a0bb94342e0f92105f78651dca3491c43b597ab0f565935214 hrs 40 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002306885771389133 Ether
0x002b7fe7631144065b7a626e0dba1d1759a67eb8a1c9ac9c931381784f0def4d565934714 hrs 42 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002306885771389133 Ether
0xe65327ff10d459d9a000e6e55b75e8966c62e8e3caa5fbf8cacc5e1671fedb4a565934714 hrs 42 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002126885771389133 Ether
0x627e56c32b3f989acb5d93e9cb1ba4d753fcc15aff2106b4190f933322fd0edc565825719 hrs 28 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002126885771389133 Ether
0xd9bc070b2cea6c9e846b4cc3fcfaceac31b3b807d611881cef94dfce70f1482b565762822 hrs 13 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002306885771389133 Ether
0x882f0a9584d3ce1ed7fd116aa9ed9877948a4c3b08bb2679c09d8ea2835fc44a565726623 hrs 46 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002126885771389133 Ether
0x3c721f7c74547ecd5f28b4617255191ca92a791613581f79081ba918ed2d12e7565726123 hrs 47 mins ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002126885771389133 Ether
0x2b9ac04c2e787c46861c3c757ebbaca5b41c1d0305723055bc2303cda87a10db56546681 day 10 hrs ago0x41ff0796a6c7a201476bff53c4cb2c48b084e5e00x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.000011659809490943 Ether
0x15fc20ce7cf33e7f6ed7929317d7562f623c33f7ad44052eb39dc0c7844f0df656536771 day 15 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002036885771389133 Ether
0x57a958ba643f52fa286550fc14f616f95a347859389139764d93f2840dd22f1b56536681 day 15 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002216885771389133 Ether
0x53ab151a9d11bd04f6284001477c2c48e00fb7c0dd3345f2547d253247aefe5056536601 day 15 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002126885771389133 Ether
0x78eb697b83d73478b682983b33b9d127f9335bc17c43ff80fa3ddd94a916174f56536521 day 15 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002306885771389133 Ether
0x978b110c8307f8613955312fd97882081920a44e7fc6970bb01b5fd3724bc37656534061 day 16 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002036885771389133 Ether
0x09e36b7897fb6346dc7af685011cdad21efd93341e6ea43c493c7ef6e186e62b56534041 day 16 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002306885771389133 Ether
0x760e6ace641e8c74cd0b9c0e76873d830f24b03c5c292c19c8cb4f1453d4183f56534041 day 16 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002036885771389133 Ether
0x3c80c3475105e1763d966705c184fa694c5e0f355542b2b0a4452d4a5a0cc18156534001 day 16 hrs ago0xdd98b423dc61a756e1070de151b14854255059540x51ffc1b089392a5bb65bf24eaf04d07d0e6f88b50.002036885771389133 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.