Sponsored:   Ubex.com - Token sale will end in just 4 days. 98% hard cap already reached. Don't Miss Out!
 Latest 25 txns From a total of 12174 Transactions

TxHash Age From To Value [TxFee]
0x8ebfb9f6852e7967f5f06bbf20342a215f112160a05fe08b28751a4f1c55864a1 day 3 hrs agoHitBTC_2  IN   DaoCasino0 Ether0.0003980194
0xe79791226efdfe31bb88df695af1e3a1ba5f8f0a778ca18ebc4359eed8175cf21 day 18 hrs ago0xfede1d2ac9f78771e2816b75f584f0cacf1d6d37  IN   DaoCasino0 Ether0.00037549
0xed2d3ee5da7bad3c4f0b3194ae27bf6b84f7260387735b92758e4142d144dbd82 days 11 hrs ago0x70133d5413e281425d8e0adccde756909e53418b  IN   DaoCasino0 Ether0.000789873
0x69f69ef8d783eed170b6de4d3cdaa806d9cbc5f4bf0f8ee322af3dbcb3556e004 days 22 hrs ago0xeda01675e826bddfd4ee4159116b0c812336acb9  IN   DaoCasino0 Ether0.001542133
0x402b31467082c79cd2fe9d565e526ef520815cb22f1e9442e92c51406bad723e4 days 22 hrs ago0x4ca773fbd7bea77b7c74f4b7c0158cce0a186bb1  IN   DaoCasino0 Ether0.001542133
0x4635f906ad45c81fe24b5e87e17164a18af7a6c14dabd60920230b4140723fea4 days 22 hrs ago0x4ca773fbd7bea77b7c74f4b7c0158cce0a186bb1  IN   DaoCasino0 Ether0.001542133
0xe109e5eba4a685ece10006c627a9e0753f04b1e3e274084349b35da82579fa845 days 14 hrs ago0x7fed65a11b8e458d59878744c0f45506e6cc8525  IN   DaoCasino0 Ether0.001539509
0xe3679f6985436819e48a5ff33065261603ad28129bfef6d2ab3ca4a26be739ef6 days 5 hrs agoHitBTC_2  IN   DaoCasino0 Ether0.000338517
0xf0339f57a5095ec626bd94328e99762e52bc384097bb3caef646e22e2b4edaa26 days 5 hrs ago0xa12431d0b9db640034b0cdfceef9cce161e62be4  IN   DaoCasino0 Ether0.0002938806
0xf87fc869cc3880efb85a59101077ec7aba4ce8e258be5da449281a4f8fd21a9c6 days 9 hrs ago0xdd523cea28eb21355a754b26010941a7b93eacd8  IN   DaoCasino0 Ether0.001104873
0x94b5cfa15fed94077ab9347e74538321e4817c08a724361c245515a21cabc0406 days 16 hrs ago0xecbba6a93bfe43484c8771f5b9d1dfc940d20631  IN   DaoCasino0 Ether0.000927133
0x9703197b022095b8f52d3a158dac77464015975837c247164889bff06b98f6a76 days 17 hrs ago0xa89083d5a0e9d774ff2b378251ab3159db31c199  IN   DaoCasino0 Ether0.001542133
0x05a8bc8f9260c34220528575f872fc5b02a380e68a97e13416f9b7a6b2a727616 days 23 hrs ago0x364fcdc8081107b94993aaca3cfe3c8d0c3fe699  IN   DaoCasino0 Ether0.000135678
0x4570c2f61470a7b194cd346aa923ccd4bd2fa5a027eb150bab805454dc9083af7 days 33 mins ago0xad8b73eb5a70ed32a3ffe5359b3536e526e0fe54  IN   DaoCasino0 Ether0.0026
0x6551d24b6ae419ae43e06f90f056efc787d37ceaea9f734943460622a52185267 days 6 hrs ago0xf676f73f8f1ee5e10200148d64b0ac7f46c7f68d  IN   DaoCasino0 Ether0.000474873
0x1a3a2eb134089ef045a2c16c4d22d55ad697fa2dc6d0c3875825490e5d3da19f7 days 6 hrs ago0xaed9a23e2afc6896b283c72a73b1b69f3c1f21a4  IN   DaoCasino0 Ether0.000474873
0x897746823a0187dd16d3741feeb88fd159fd7e3883c737231aa6215157e889857 days 9 hrs agoHitBTC_2  IN   DaoCasino0 Ether0.000424045456
0x6749474ac200df83b50220bfad6a91829bf58d24995f0547cdb6a2f2346b597a7 days 9 hrs ago0xa12431d0b9db640034b0cdfceef9cce161e62be4  IN   DaoCasino0 Ether0.0002449005
0x215b6e0e44846fbb1ab2cd698b49372c89458556678212e28b91ea856844c7e28 days 14 hrs agoHitBTC_2  IN   DaoCasino0 Ether0.00039775428
0xa17d47c2071a9e3f485da4c5cd57f47be3ff526f13ac32f5936a54d2bf634f518 days 14 hrs ago0xa12431d0b9db640034b0cdfceef9cce161e62be4  IN   DaoCasino0 Ether0.0002444845
0x1c46f322644a963eaaeff271df3cc20adaead0cebb96bfbdbab322f9e5caab328 days 21 hrs ago0xf25f0735b45d35dba3f8fe47c26c16eb1292dbb8  IN   DaoCasino0 Ether0.000789873
0xb06594f095c11ab6b324e064241fc8296ede8dad72002bb88f0689c7d9e6556d9 days 4 hrs ago0x2558b0ff9d7be92606cbaff005723b231423fe7f  IN   DaoCasino0 Ether0.00037613
0xfc037dfc0622a655201771ecc11273b26ca194af53e4b63f56074ddeee98289a10 days 9 hrs ago0x41445d3a09fd3895eb8ec6fdd5876174e1d5ee5e  IN   DaoCasino0 Ether0.000927133
0xa6356d1c2ed94235ced3ab1dbf9e00cce807216fac90d70f5707cbc599a8c34b10 days 15 hrs ago0xc18dbdf5ed049defb5d57a9bbc876dd0ae355bd8  IN   DaoCasino0 Ether0.000788529
0x173c08b01ec3a0cf507d53a072626037f6227c838e8e688a90cc7ae85fff624811 days 1 hr ago0xfdff7df6bf68bf29e28ea733127403af4eb97f05  IN   DaoCasino0 Ether0.00187425
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Contract Name: DaoCasinoToken
Compiler Text: v0.4.11+commit.68ef5810
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.11;

// ----------------------------------------------------------------------------
// Dao.Casino Crowdsale Token Contract
//
// NOTE: This is the new Dao.Casino token contract as the old Dao.Casino
//       crowdsale/token contract was attached to a buggy Parity multisig that
//       was vulnerable to hackers
//
// Enjoy. (c) BokkyPooBah / Bok Consulting Pty Ltd for Dao.Casino 2017
// The MIT Licence.
// ----------------------------------------------------------------------------


// ----------------------------------------------------------------------------
// Safe maths, borrowed from OpenZeppelin
// ----------------------------------------------------------------------------
library SafeMath {

    // ------------------------------------------------------------------------
    // Add a number to another number, checking for overflows
    // ------------------------------------------------------------------------
    function add(uint a, uint b) internal returns (uint) {
        uint c = a + b;
        assert(c >= a && c >= b);
        return c;
    }

    // ------------------------------------------------------------------------
    // Subtract a number from another number, checking for underflows
    // ------------------------------------------------------------------------
    function sub(uint a, uint b) internal returns (uint) {
        assert(b <= a);
        return a - b;
    }
}


// ----------------------------------------------------------------------------
// Owned contract
// ----------------------------------------------------------------------------
contract Owned {
    address public owner;
    address public newOwner;
    event OwnershipTransferred(address indexed _from, address indexed _to);

    function Owned() {
        owner = msg.sender;
    }

    modifier onlyOwner {
        require(msg.sender == owner);
        _;
    }

    function transferOwnership(address _newOwner) onlyOwner {
        newOwner = _newOwner;
    }
 
    function acceptOwnership() {
        if (msg.sender == newOwner) {
            OwnershipTransferred(owner, newOwner);
            owner = newOwner;
        }
    }
}


// ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals
// https://github.com/ethereum/EIPs/issues/20
// ----------------------------------------------------------------------------
contract ERC20Token {
    using SafeMath for uint;

    // ------------------------------------------------------------------------
    // Total Supply
    // ------------------------------------------------------------------------
    uint256 _totalSupply = 0;

    // ------------------------------------------------------------------------
    // Balances for each account
    // ------------------------------------------------------------------------
    mapping(address => uint256) balances;

    // ------------------------------------------------------------------------
    // Owner of account approves the transfer of an amount to another account
    // ------------------------------------------------------------------------
    mapping(address => mapping (address => uint256)) allowed;

    // ------------------------------------------------------------------------
    // Get the total token supply
    // ------------------------------------------------------------------------
    function totalSupply() constant returns (uint256 totalSupply) {
        totalSupply = _totalSupply;
    }

    // ------------------------------------------------------------------------
    // Get the account balance of another account with address _owner
    // ------------------------------------------------------------------------
    function balanceOf(address _owner) constant returns (uint256 balance) {
        return balances[_owner];
    }

    // ------------------------------------------------------------------------
    // Transfer the balance from owner's account to another account
    // ------------------------------------------------------------------------
    function transfer(address _to, uint256 _amount) returns (bool success) {
        if (balances[msg.sender] >= _amount                // User has balance
            && _amount > 0                                 // Non-zero transfer
            && balances[_to] + _amount > balances[_to]     // Overflow check
        ) {
            balances[msg.sender] = balances[msg.sender].sub(_amount);
            balances[_to] = balances[_to].add(_amount);
            Transfer(msg.sender, _to, _amount);
            return true;
        } else {
            return false;
        }
    }

    // ------------------------------------------------------------------------
    // Allow _spender to withdraw from your account, multiple times, up to the
    // _value amount. If this function is called again it overwrites the
    // current allowance with _value.
    // ------------------------------------------------------------------------
    function approve(
        address _spender,
        uint256 _amount
    ) returns (bool success) {
        // Borrowed from the MiniMeToken contract
        // To change the approve amount you first have to reduce the addresses`
        //  allowance to zero by calling `approve(_spender,0)` if it is not
        //  already 0 to mitigate the race condition described here:
        //  https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
        require((_amount == 0) || (allowed[msg.sender][_spender] == 0));

        allowed[msg.sender][_spender] = _amount;
        Approval(msg.sender, _spender, _amount);
        return true;
    }

    // ------------------------------------------------------------------------
    // Spender of tokens transfer an amount of tokens from the token owner's
    // balance to the spender's account. The owner of the tokens must already
    // have approve(...)-d this transfer
    // ------------------------------------------------------------------------
    function transferFrom(
        address _from,
        address _to,
        uint256 _amount
    ) returns (bool success) {
        if (balances[_from] >= _amount                  // From a/c has balance
            && allowed[_from][msg.sender] >= _amount    // Transfer approved
            && _amount > 0                              // Non-zero transfer
            && balances[_to] + _amount > balances[_to]  // Overflow check
        ) {
            balances[_from] = balances[_from].sub(_amount);
            allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_amount);
            balances[_to] = balances[_to].add(_amount);
            Transfer(_from, _to, _amount);
            return true;
        } else {
            return false;
        }
    }

    // ------------------------------------------------------------------------
    // Returns the amount of tokens approved by the owner that can be
    // transferred to the spender's account
    // ------------------------------------------------------------------------
    function allowance(
        address _owner, 
        address _spender
    ) constant returns (uint256 remaining) {
        return allowed[_owner][_spender];
    }

    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender,
        uint256 _value);
}


contract DaoCasinoToken is ERC20Token, Owned {

    // ------------------------------------------------------------------------
    // Token information
    // ------------------------------------------------------------------------
    string public constant name = "Dao.Casino";
    string public constant symbol = "BET";
    uint8 public constant decimals = 18;

    function DaoCasinoToken() {
    }

    // ------------------------------------------------------------------------
    // Fill - to populate tokens from the old token contract
    // ------------------------------------------------------------------------
    // From https://github.com/BitySA/whetcwithdraw/tree/master/daobalance
    bool public sealed;
    uint256 constant D160 = 0x0010000000000000000000000000000000000000000;
    // The 160 LSB is the address of the balance
    // The 96 MSB is the balance of that address.
    function fill(uint256[] data) onlyOwner {
        require(!sealed);
        for (uint256 i = 0; i < data.length; i++) {
            address account = address(data[i] & (D160-1));
            uint256 amount = data[i] / D160;
            // Prevent duplicates
            if (balances[account] == 0) {
                balances[account] = amount;
                _totalSupply = _totalSupply.add(amount);
                Transfer(0x0, account, amount);
            }
        }
    }

    // ------------------------------------------------------------------------
    // After sealing, no more filling is possible
    // ------------------------------------------------------------------------
    function seal() onlyOwner {
        require(!sealed);
        sealed = true;
    }

    // ------------------------------------------------------------------------
    // Owner can transfer out any accidentally sent ERC20 tokens
    // ------------------------------------------------------------------------
    function transferAnyERC20Token(address tokenAddress, uint amount)
      onlyOwner returns (bool success) 
    {
        return ERC20Token(tokenAddress).transfer(owner, amount);
    }
}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"totalSupply","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"seal","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"data","type":"uint256[]"}],"name":"fill","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"newOwner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"tokenAddress","type":"address"},{"name":"amount","type":"uint256"}],"name":"transferAnyERC20Token","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"sealed","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]

  Contract Creation Code Switch To Opcodes View
60606040526000600055341561001157fe5b5b5b60038054600160a060020a03191633600160a060020a03161790555b5b5b610c82806100406000396000f300606060405236156100ee5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100f0578063095ea7b31461018057806318160ddd146101b357806323b872dd146101d5578063313ce5671461020e5780633fb27b851461023457806370a082311461024657806379ba509714610274578063884b5dc2146102865780638da5cb5b146102db57806395d89b4114610307578063a9059cbb14610397578063d4ee1d90146103ca578063dc39d06d146103f6578063dd62ed3e14610429578063e4b203ef1461045d578063f2fde38b14610481575bfe5b34156100f857fe5b61010061049f565b604080516020808252835181830152835191928392908301918501908083838215610146575b80518252602083111561014657601f199092019160209182019101610126565b505050905090810190601f1680156101725780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561018857fe5b61019f600160a060020a03600435166024356104d6565b604080519115158252519081900360200190f35b34156101bb57fe5b6101c361057b565b60408051918252519081900360200190f35b34156101dd57fe5b61019f600160a060020a0360043581169060243516604435610582565b604080519115158252519081900360200190f35b341561021657fe5b61021e610725565b6040805160ff9092168252519081900360200190f35b341561023c57fe5b61024461072a565b005b341561024e57fe5b6101c3600160a060020a0360043516610786565b60408051918252519081900360200190f35b341561027c57fe5b6102446107a5565b005b341561028e57fe5b61024460048080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284375094965061082e95505050505050565b005b34156102e357fe5b6102eb61096b565b60408051600160a060020a039092168252519081900360200190f35b341561030f57fe5b61010061097a565b604080516020808252835181830152835191928392908301918501908083838215610146575b80518252602083111561014657601f199092019160209182019101610126565b505050905090810190601f1680156101725780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561039f57fe5b61019f600160a060020a03600435166024356109b1565b604080519115158252519081900360200190f35b34156103d257fe5b6102eb610ad1565b60408051600160a060020a039092168252519081900360200190f35b34156103fe57fe5b61019f600160a060020a0360043516602435610ae0565b604080519115158252519081900360200190f35b341561043157fe5b6101c3600160a060020a0360043581169060243516610b91565b60408051918252519081900360200190f35b341561046557fe5b61019f610bbe565b604080519115158252519081900360200190f35b341561048957fe5b610244600160a060020a0360043516610bce565b005b60408051808201909152600a81527f44616f2e436173696e6f00000000000000000000000000000000000000000000602082015281565b60008115806105085750600160a060020a03338116600090815260026020908152604080832093871683529290522054155b15156105145760006000fd5b600160a060020a03338116600081815260026020908152604080832094881680845294825291829020869055815186815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a35060015b92915050565b6000545b90565b600160a060020a0383166000908152600160205260408120548290108015906105d25750600160a060020a0380851660009081526002602090815260408083203390941683529290522054829010155b80156105de5750600082115b80156106035750600160a060020a038316600090815260016020526040902054828101115b1561071957600160a060020a038416600090815260016020526040902054610631908363ffffffff610c1716565b600160a060020a0380861660009081526001602090815260408083209490945560028152838220339093168252919091522054610674908363ffffffff610c1716565b600160a060020a03808616600090815260026020908152604080832033851684528252808320949094559186168152600190915220546106ba908363ffffffff610c2e16565b600160a060020a0380851660008181526001602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350600161071d565b5060005b5b9392505050565b601281565b60035433600160a060020a039081169116146107465760006000fd5b60045460a060020a900460ff161561075e5760006000fd5b6004805474ff0000000000000000000000000000000000000000191660a060020a1790555b5b565b600160a060020a0381166000908152600160205260409020545b919050565b60045433600160a060020a039081169116141561078357600454600354604051600160a060020a0392831692909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36004546003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039092169190911790555b5b565b6003546000908190819033600160a060020a039081169116146108515760006000fd5b60045460a060020a900460ff16156108695760006000fd5b600092505b8351831015610963578351600160a060020a039085908590811061088e57fe5b9060200190602002015116915060a060020a84848151811015156108ae57fe5b906020019060200201518115156108c157fe5b600160a060020a0384166000908152600160205260409020549190049150151561095757600160a060020a038216600090815260016020526040812082905554610911908263ffffffff610c2e16565b6000908155604080518381529051600160a060020a03851692917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef919081900360200190a35b5b60019092019161086e565b5b5b50505050565b600354600160a060020a031681565b60408051808201909152600381527f4245540000000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a0333166000908152600160205260408120548290108015906109da5750600082115b80156109ff5750600160a060020a038316600090815260016020526040902054828101115b15610ac257600160a060020a033316600090815260016020526040902054610a2d908363ffffffff610c1716565b600160a060020a033381166000908152600160205260408082209390935590851681522054610a62908363ffffffff610c2e16565b600160a060020a038085166000818152600160209081526040918290209490945580518681529051919333909316927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3506001610575565b506000610575565b5b92915050565b600454600160a060020a031681565b60035460009033600160a060020a03908116911614610aff5760006000fd5b600354604080516000602091820181905282517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a0394851660048201526024810187905292519387169363a9059cbb9360448082019493918390030190829087803b1515610b7257fe5b6102c65a03f11515610b8057fe5b5050604051519150505b5b92915050565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b92915050565b60045460a060020a900460ff1681565b60035433600160a060020a03908116911614610bea5760006000fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b600082821115610c2357fe5b508082035b92915050565b6000828201838110801590610c435750828110155b1515610c4b57fe5b8091505b50929150505600a165627a7a72305820019b6f2d38bf2d2ed958b67ed08cca4c12fb0874f2c36aa372e5cc9f201c1aa40029

   Swarm Source:
bzzr://019b6f2d38bf2d2ed958b67ed08cca4c12fb0874f2c36aa372e5cc9f201c1aa4

 

View All
Block Age transaction Difficulty 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.