ETH Price: $2,122.97 (+7.38%)

Contract

0x22dccFA39DbE59CD3F27E6531B33B5101bb2A70D
 

Overview

ETH Balance

29.705554773767514106 ETH

Eth Value

$63,064.00 (@ $2,122.97/ETH)

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw64670492018-10-06 23:49:502706 days ago1538869790IN
0x22dccFA3...01bb2A70D
0 ETH0.000043642
Withdraw64097052018-09-27 15:09:272715 days ago1538060967IN
0x22dccFA3...01bb2A70D
0 ETH0.0002110610
Buy63980252018-09-25 17:08:192717 days ago1537895299IN
0x22dccFA3...01bb2A70D
1.54563402 ETH0.0002715612
Buy63980172018-09-25 17:06:462717 days ago1537895206IN
0x22dccFA3...01bb2A70D
2.29748649 ETH0.000226310
Buy63980102018-09-25 17:04:322717 days ago1537895072IN
0x22dccFA3...01bb2A70D
2.29748649 ETH0.000226310
Buy63980052018-09-25 17:03:292717 days ago1537895009IN
0x22dccFA3...01bb2A70D
0.72104968 ETH0.000158417
Buy63979352018-09-25 16:44:572717 days ago1537893897IN
0x22dccFA3...01bb2A70D
0.6554997 ETH0.00009734.3
Withdraw63976672018-09-25 15:40:112717 days ago1537890011IN
0x22dccFA3...01bb2A70D
0 ETH0.0003165915
Withdraw63971512018-09-25 13:40:452717 days ago1537882845IN
0x22dccFA3...01bb2A70D
0 ETH0.000126636
Withdraw63968402018-09-25 12:21:342717 days ago1537878094IN
0x22dccFA3...01bb2A70D
0 ETH0.000105535
Withdraw63960312018-09-25 9:14:342717 days ago1537866874IN
0x22dccFA3...01bb2A70D
0 ETH0.000126636
Withdraw63958762018-09-25 8:40:162717 days ago1537864816IN
0x22dccFA3...01bb2A70D
0 ETH0.000147747
Withdraw63958742018-09-25 8:39:202717 days ago1537864760IN
0x22dccFA3...01bb2A70D
0 ETH0.0005487526
Withdraw63954462018-09-25 6:57:542717 days ago1537858674IN
0x22dccFA3...01bb2A70D
0 ETH0.000189959
Withdraw63953562018-09-25 6:35:182717 days ago1537857318IN
0x22dccFA3...01bb2A70D
0 ETH0.000147747
Withdraw63953082018-09-25 6:24:332717 days ago1537856673IN
0x22dccFA3...01bb2A70D
0 ETH0.000168848
Buy63952142018-09-25 6:02:202717 days ago1537855340IN
0x22dccFA3...01bb2A70D
4.59497298 ETH0.000135786
Withdraw63952002018-09-25 5:58:482717 days ago1537855128IN
0x22dccFA3...01bb2A70D
0 ETH0.000147747
Withdraw63951892018-09-25 5:55:272717 days ago1537854927IN
0x22dccFA3...01bb2A70D
0 ETH0.0002532712
Buy63951662018-09-25 5:50:202717 days ago1537854620IN
0x22dccFA3...01bb2A70D
23.83635307 ETH0.0036441615
Buy63951642018-09-25 5:49:222717 days ago1537854562IN
0x22dccFA3...01bb2A70D
32.56109975 ETH0.0036345612
Buy63950932018-09-25 5:33:542717 days ago1537853634IN
0x22dccFA3...01bb2A70D
4.59497298 ETH0.000135786
Withdraw63941132018-09-25 1:49:052717 days ago1537840145IN
0x22dccFA3...01bb2A70D
0 ETH0.000168848
Withdraw63940372018-09-25 1:31:452717 days ago1537839105IN
0x22dccFA3...01bb2A70D
0 ETH0.0002743713
Withdraw63939172018-09-25 0:58:352717 days ago1537837115IN
0x22dccFA3...01bb2A70D
0 ETH0.000152767
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer64097052018-09-27 15:09:272715 days ago1538060967
0x22dccFA3...01bb2A70D
0.9 ETH
Transfer63976672018-09-25 15:40:112717 days ago1537890011
0x22dccFA3...01bb2A70D
0.05204994 ETH
Transfer63971512018-09-25 13:40:452717 days ago1537882845
0x22dccFA3...01bb2A70D
0.31922737 ETH
Transfer63968402018-09-25 12:21:342717 days ago1537878094
0x22dccFA3...01bb2A70D
0.08849217 ETH
Transfer63960312018-09-25 9:14:342717 days ago1537866874
0x22dccFA3...01bb2A70D
22.88413038 ETH
Transfer63958762018-09-25 8:40:162717 days ago1537864816
0x22dccFA3...01bb2A70D
0.14444756 ETH
Transfer63958742018-09-25 8:39:202717 days ago1537864760
0x22dccFA3...01bb2A70D
0.05663792 ETH
Transfer63954462018-09-25 6:57:542717 days ago1537858674
0x22dccFA3...01bb2A70D
0.08065173 ETH
Transfer63953562018-09-25 6:35:182717 days ago1537857318
0x22dccFA3...01bb2A70D
0.3363431 ETH
Transfer63953082018-09-25 6:24:332717 days ago1537856673
0x22dccFA3...01bb2A70D
31.44283545 ETH
Transfer63952002018-09-25 5:58:482717 days ago1537855128
0x22dccFA3...01bb2A70D
0.08270825 ETH
Transfer63951892018-09-25 5:55:272717 days ago1537854927
0x22dccFA3...01bb2A70D
0.08647202 ETH
Transfer63951662018-09-25 5:50:202717 days ago1537854620
0x22dccFA3...01bb2A70D
0.21669411 ETH
Transfer63951642018-09-25 5:49:222717 days ago1537854562
0x22dccFA3...01bb2A70D
0.29600999 ETH
Transfer63941132018-09-25 1:49:052717 days ago1537840145
0x22dccFA3...01bb2A70D
0.17113078 ETH
Transfer63940372018-09-25 1:31:452717 days ago1537839105
0x22dccFA3...01bb2A70D
0.04516922 ETH
Transfer63939102018-09-25 0:56:232717 days ago1537836983
0x22dccFA3...01bb2A70D
0.02253972 ETH
Transfer63938872018-09-25 0:51:102717 days ago1537836670
0x22dccFA3...01bb2A70D
22.91759077 ETH
Transfer63938742018-09-25 0:48:522717 days ago1537836532
0x22dccFA3...01bb2A70D
0.06951742 ETH
Transfer63938482018-09-25 0:42:182717 days ago1537836138
0x22dccFA3...01bb2A70D
0.13595061 ETH
Transfer63938352018-09-25 0:39:262717 days ago1537835966
0x22dccFA3...01bb2A70D
0.08593597 ETH
Transfer63937592018-09-25 0:22:222717 days ago1537834942
0x22dccFA3...01bb2A70D
0.19012931 ETH
Transfer63937422018-09-25 0:18:132717 days ago1537834693
0x22dccFA3...01bb2A70D
0.4984269 ETH
Transfer63937242018-09-25 0:14:332717 days ago1537834473
0x22dccFA3...01bb2A70D
0.18068921 ETH
Transfer63937212018-09-25 0:14:002717 days ago1537834440
0x22dccFA3...01bb2A70D
0.28440986 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DailyDivsCardGame

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-09-24
*/

pragma solidity ^0.4.24;

/*
*
* 
*/

contract DailyDivsCardGame {
    /*=================================
    =        MODIFIERS        =
    =================================*/



    modifier onlyOwner(){

        require(msg.sender == dev);
        _;
    }


    /*==============================
    =            EVENTS            =
    ==============================*/
    event oncardPurchase(
        address customerAddress,
        uint256 incomingEthereum,
        uint256 card,
        uint256 newPrice
    );

    event onWithdraw(
        address customerAddress,
        uint256 ethereumWithdrawn
    );

    // ERC20
    event Transfer(
        address from,
        address to,
        uint256 card
    );


    /*=====================================
    =            CONFIGURABLES            =
    =====================================*/
    string public name = "DIVIDEND CARDS";
    string public symbol = "DIVCARD";

    uint8 constant public cardsDivRate = 10;
    uint8 constant public ownerDivRate = 50;
    uint8 constant public distDivRate = 40;
    uint8 constant public referralRate = 5;
    uint8 constant public decimals = 18;
    uint public totalCardValue = 9.75 ether; // Make sure this is sum of constructor values
    uint public precisionFactor = 9;


   /*================================
    =            DATASETS            =
    ================================*/

    mapping(uint => address) internal cardOwner;
    mapping(uint => uint) public cardPrice;
    mapping(uint => uint) internal cardPreviousPrice;
    mapping(address => uint) internal ownerAccounts;
    mapping(uint => uint) internal totalCardDivs;

    uint cardPriceIncrement = 110;
    uint totalDivsProduced = 0;

    uint public totalCards;

    bool allowReferral = true;

    address dev;
    address promoter;
    address promoter2;
    address promoter3;
    address supporter1;
    address ddtDivsAddr;


    /*=======================================
    =            PUBLIC FUNCTIONS            =
    =======================================*/
    /*
    * -- APPLICATION ENTRY POINTS --
    */
    constructor()
        public
    {
        dev = msg.sender;
        promoter = 0x3C0119B400834a5e9c24b6B654B85bF77283f9e5;
        promoter2 = 0x642e0ce9ae8c0d8007e0acaf82c8d716ff8c74c1;
        promoter3 = 0x4A42500b817439cF9B10b4d3edf68bb63Ed0A89B;
        supporter1 = 0x12b353d1a2842d2272ab5a18c6814d69f4296873;
        ddtDivsAddr = 0x93c5371707D2e015aEB94DeCBC7892eC1fa8dd80;

        totalCards = 12;

        cardOwner[0] = dev;
        cardPrice[0] = 4 ether;
        cardPreviousPrice[0] = cardPrice[0];

        cardOwner[1] = dev;
        cardPrice[1] = 2 ether;
        cardPreviousPrice[1] = cardPrice[1];

        cardOwner[2] = promoter3;
        cardPrice[2] = 1 ether;
        cardPreviousPrice[2] = cardPrice[2];

        cardOwner[3] = promoter2;
        cardPrice[3] = 0.9 ether;
        cardPreviousPrice[3] = cardPrice[3];

        cardOwner[4] = dev;
        cardPrice[4] = 0.75 ether;
        cardPreviousPrice[4] = cardPrice[4];

        cardOwner[5] = promoter;
        cardPrice[5] = 0.50 ether;
        cardPreviousPrice[5] = cardPrice[5];

        cardOwner[6] = supporter1;
        cardPrice[6] = 0.25 ether;
        cardPreviousPrice[6] = cardPrice[6];

        cardOwner[7] = dev;
        cardPrice[7] = 0.12 ether;
        cardPreviousPrice[7] = cardPrice[7];

        cardOwner[8] = dev;
        cardPrice[8] = 0.08 ether;
        cardPreviousPrice[8] = cardPrice[8];

        cardOwner[9] = dev;
        cardPrice[9] = 0.05 ether;
        cardPreviousPrice[9] = cardPrice[9];

        cardOwner[10] = dev;
        cardPrice[10] = 0.05 ether;
        cardPreviousPrice[10] = cardPrice[10];

        cardOwner[11] = dev;
        cardPrice[11] = 0.05 ether;
        cardPreviousPrice[11] = cardPrice[11];

    }

    function addtotalCardValue(uint _new, uint _old)
    internal
    {
        uint newPrice = SafeMath.div(SafeMath.mul(_new,cardPriceIncrement),100);
        totalCardValue = SafeMath.add(totalCardValue, SafeMath.sub(newPrice,_old));
    }

    function buy(uint _card, address _referrer)
        public
        payable

    {
        require(_card < totalCards);
        require(msg.value == cardPrice[_card]);
        require(msg.sender != cardOwner[_card]);

        addtotalCardValue(msg.value, cardPreviousPrice[_card]);

        uint _newPrice = SafeMath.div(SafeMath.mul(msg.value, cardPriceIncrement), 100);

         //Determine the total dividends
        uint _baseDividends = SafeMath.sub(msg.value, cardPreviousPrice[_card]);

        totalDivsProduced = SafeMath.add(totalDivsProduced, _baseDividends);

        uint _cardsDividends = SafeMath.div(SafeMath.mul(_baseDividends, cardsDivRate),100);

        uint _ownerDividends = SafeMath.div(SafeMath.mul(_baseDividends, ownerDivRate), 100);

        totalCardDivs[_card] = SafeMath.add(totalCardDivs[_card], _ownerDividends);

        _ownerDividends = SafeMath.add(_ownerDividends, cardPreviousPrice[_card]);

        uint _distDividends = SafeMath.div(SafeMath.mul(_baseDividends, distDivRate), 100);

        if (allowReferral && (_referrer != msg.sender) && (_referrer != 0x0000000000000000000000000000000000000000)) {

            uint _referralDividends = SafeMath.div(SafeMath.mul(_baseDividends, referralRate), 100);

            _distDividends = SafeMath.sub(_distDividends, _referralDividends);

            ownerAccounts[_referrer] = SafeMath.add(ownerAccounts[_referrer], _referralDividends);
        }


        //distribute dividends to accounts
        address _previousOwner = cardOwner[_card];
        address _newOwner = msg.sender;

        ownerAccounts[_previousOwner] = SafeMath.add(ownerAccounts[_previousOwner], _ownerDividends);

        ddtDivsAddr.transfer(_cardsDividends);

        distributeDivs(_distDividends);

        //Increment the card Price
        cardPreviousPrice[_card] = msg.value;
        cardPrice[_card] = _newPrice;
        cardOwner[_card] = _newOwner;

        emit oncardPurchase(msg.sender, msg.value, _card, SafeMath.div(SafeMath.mul(msg.value, cardPriceIncrement), 100));
    }


    function distributeDivs(uint _distDividends) internal{

            for (uint _card=0; _card < totalCards; _card++){

                uint _divShare = SafeMath.div(SafeMath.div(SafeMath.mul(cardPreviousPrice[_card], 10 ** (precisionFactor + 1)), totalCardValue) + 5, 10);
                uint _cardDivs = SafeMath.div(SafeMath.mul(_distDividends, _divShare), 10 ** precisionFactor);

                ownerAccounts[cardOwner[_card]] += _cardDivs;

                totalCardDivs[_card] = SafeMath.add(totalCardDivs[_card], _cardDivs);
            }
        }


    function withdraw()

        public
    {
        address _customerAddress = msg.sender;
        require(ownerAccounts[_customerAddress] >= 0.001 ether);

        uint _dividends = ownerAccounts[_customerAddress];
        ownerAccounts[_customerAddress] = 0;

        _customerAddress.transfer(_dividends);

        emit onWithdraw(_customerAddress, _dividends);
    }



    /*----------  ADMINISTRATOR ONLY FUNCTIONS  ----------*/
    function setName(string _name)
        onlyOwner()
        public
    {
        name = _name;
    }


    function setSymbol(string _symbol)
        onlyOwner()
        public
    {
        symbol = _symbol;
    }

    function setcardPrice(uint _card, uint _price)   //Allow the changing of a card price owner if the dev owns it
        onlyOwner()
        public
    {
        require(cardOwner[_card] == dev);
        cardPrice[_card] = _price;
    }

    function addNewcard(uint _price)
        onlyOwner()
        public
    {
        cardPrice[totalCards-1] = _price;
        cardOwner[totalCards-1] = dev;
        totalCardDivs[totalCards-1] = 0;
        totalCards = totalCards + 1;
    }

    function setAllowReferral(bool _allowReferral)
        onlyOwner()
        public
    {
        allowReferral = _allowReferral;
    }



    /*----------  HELPERS AND CALCULATORS  ----------*/
    /**
     * Method to view the current Ethereum stored in the contract
     * Example: totalEthereumBalance()
     */


    function getMyBalance()
        public
        view
        returns(uint)
    {
        return ownerAccounts[msg.sender];
    }

    function getOwnerBalance(address _cardOwner)
        public
        view
        returns(uint)
    {
        return ownerAccounts[_cardOwner];
    }

    function getcardPrice(uint _card)
        public
        view
        returns(uint)
    {
        require(_card < totalCards);
        return cardPrice[_card];
    }

    function getcardOwner(uint _card)
        public
        view
        returns(address)
    {
        require(_card < totalCards);
        return cardOwner[_card];
    }

    function gettotalCardDivs(uint _card)
        public
        view
        returns(uint)
    {
        require(_card < totalCards);
        return totalCardDivs[_card];
    }

    function getTotalDivsProduced()
        public
        view
        returns(uint)
    {
        return totalDivsProduced;
    }

    function getCardDivShare(uint _card)
        public
        view
        returns(uint)
    {
        require(_card < totalCards);
        return SafeMath.div(SafeMath.div(SafeMath.mul(cardPreviousPrice[_card], 10 ** (precisionFactor + 1)), totalCardValue) + 5, 10);
    }

    function getCardDivs(uint  _card, uint _amt)
        public
        view
        returns(uint)
    {
        uint _share = getCardDivShare(_card);
        return SafeMath.div(SafeMath.mul( _share, _amt), 10 ** precisionFactor);
    }

    function gettotalCardValue()
        public
        view
        returns(uint)
    {

        return totalCardValue;
    }

    function totalEthereumBalance()
        public
        view
        returns(uint)
    {
        return address (this).balance;
    }

    function gettotalCards()
        public
        view
        returns(uint)
    {
        return totalCards;
    }

}

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {

    /**
    * @dev Multiplies two numbers, throws on overflow.
    */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }
        uint256 c = a * b;
        assert(c / a == b);
        return c;
    }

    /**
    * @dev Integer division of two numbers, truncating the quotient.
    */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        // assert(b > 0); // Solidity automatically throws when dividing by 0
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold
        return c;
    }

    /**
    * @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
    */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        assert(b <= a);
        return a - b;
    }

    /**
    * @dev Adds two numbers, throws on overflow.
    */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        assert(c >= a);
        return c;
    }
}

Contract Security Audit

Contract ABI

API
[{"constant":true,"inputs":[{"name":"_card","type":"uint256"}],"name":"getCardDivShare","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_card","type":"uint256"}],"name":"getcardPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_card","type":"uint256"}],"name":"getcardOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"cardPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_card","type":"uint256"},{"name":"_price","type":"uint256"}],"name":"setcardPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getMyBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_card","type":"uint256"},{"name":"_amt","type":"uint256"}],"name":"getCardDivs","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"cardsDivRate","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_card","type":"uint256"}],"name":"gettotalCardDivs","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalEthereumBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_allowReferral","type":"bool"}],"name":"setAllowReferral","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_card","type":"uint256"},{"name":"_referrer","type":"address"}],"name":"buy","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"_cardOwner","type":"address"}],"name":"getOwnerBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_price","type":"uint256"}],"name":"addNewcard","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"precisionFactor","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"referralRate","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getTotalDivsProduced","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalCardValue","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_symbol","type":"string"}],"name":"setSymbol","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"gettotalCards","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"distDivRate","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"setName","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"gettotalCardValue","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalCards","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ownerDivRate","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"customerAddress","type":"address"},{"indexed":false,"name":"incomingEthereum","type":"uint256"},{"indexed":false,"name":"card","type":"uint256"},{"indexed":false,"name":"newPrice","type":"uint256"}],"name":"oncardPurchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"customerAddress","type":"address"},{"indexed":false,"name":"ethereumWithdrawn","type":"uint256"}],"name":"onWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"from","type":"address"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"card","type":"uint256"}],"name":"Transfer","type":"event"}]

60c0604052600e60808190527f4449564944454e4420434152445300000000000000000000000000000000000060a090815262000040916000919062000758565b506040805180820190915260078082527f44495643415244000000000000000000000000000000000000000000000000006020909201918252620000879160019162000758565b5067874ef557a00f000060025560096003819055606e90556000600a55600c805460ff19166001179055348015620000be57600080fd5b50600c805461010033810261010060a860020a031990921691909117808355600d8054600160a060020a0319908116733c0119b400834a5e9c24b6b654b85bf77283f9e51791829055600e8054821673642e0ce9ae8c0d8007e0acaf82c8d716ff8c74c11790819055600f80548316734a42500b817439cf9b10b4d3edf68bb63ed0a89b17908190556010805484167312b353d1a2842d2272ab5a18c6814d69f429687317908190556011805485167393c5371707d2e015aeb94decbc7892ec1fa8dd80179055600b9788557f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec8054851697909604600160a060020a03908116978817909655673782dace9d9000007f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc8190557f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8557fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe058054851688179055671bc16d674ec800007f1471eb6eb2c5e789fc3de43f8ce62938c7d1836ec861730447e2ada8fd81017b8190557f3e5fec24aa4dc4e5aee2e025e51e1392c72a2500577559fae9665c6d52bd6a31557f91da3fd0782e51c6b3986e9e672fd566868e71f3dbc2d6c2cd6fbb3e361af2a78054851692871692909217909155670de0b6b3a76400007f89832631fb3c3307a103ba2c84ab569c64d6182a18893dcd163f0f1c2090733a8190557f8819ef417987f8ae7a81f42cdfb18815282fe989326fbff903d13cf0e03ace29557f2e174c10e159ea99b867ce3205125c24a42d128804e4070ed6fcc8cc98166aa08054841692861692909217909155670c7d713b49da00007fa9bc9a3a348c357ba16b37005d7e6b3236198c0e939f4af8c5f19b8deeb8ebc08190557f75f96ab15d697e93042dc45b5c896c4b27e89bb6eaf39475c5c371cb2513f7d2557f1a1e6821cde7d0159c0d293177871e09677b4e42307c7db3ba94f8648a5a050f8054831686179055670a688906bd8b00007f3eec716f11ba9e820c81ca75eb978ffb45831ef8b7a53e5e422c26008e1ca6d58190557fc5069e24aaadb2addc3e52e868fcf3f4f8acf5a87e24300992fd4540c2a87eed557f04cde762ef08b6b6c5ded8e8c4c0b3f4e5c9ad7342c88fcc93681b4588b73f0580548316938516939093179092556706f05b59d3b200007f458b30c2d72bfd2c6317304a4594ecbafe5f729d3111b65fdc3a33bd48e5432d8190557fbfd358e93f18da3ed276c3afdbdba00b8f0b6008a03476a6a86bd6320ee6938b557fc59312466997bb42aaaf719ece141047820e6b34531e1670dc1852a453648f0f8054821692909316919091179091556703782dace9d900007f069400f22b28c6c362558d92f66163cec5671cba50b61abd2eecfcd0eaeac5188190557f697b2bd7bb2984c4e0dc14c79c987d37818484a62958b9c45a0e8b962f20650f557fbeb3bad75134cb432e5707980e3245c52c5998a1125ee30f2f0dbf3925b1e55180548216831790556701aa535d3d0c00007feddb6698d7c569ff62ff64f1f1492bf14a54594835ba0faac91f84b4f5d814608190557f4ced6d0d36392b04cc5d8761b1327b3bbba6e1089c77f60a9a9ca18e05e4f00e557f2645749a946633740611cfc8178319f0958659d6922e4bf7e3a08b44789f53a4805482168317905567011c37937e0800007ffb33122aa9f93cc639ebe80a7bc4784c11e6053dde89c6f4f7e268c6a623da1e8190557fb8d683c9d414f481826f3e7fe14b3ac6ae8c73450778287390c4bb8cb9f2e80b557f4ad5a04d53b5856f318545bb721f67d3f6d0a5a999f25eec7e20eaeb4c47b933805482168317905566b1a2bc2ec500007fc0a4a8be475dfebc377ebef2d7c4ff47656f572a08dd92b81017efcdba0febe18190557fca4d0c6c94a9477136dd41a99cc19ecbe441c8f6609efe7c6fa65be007a473238190557f5c6b02db8b672415ffad906d7ccee10bd53dbad7d0b29e2bc0e50c93d5f3109380548316841790557fa18b128af1c8fc61ff46f02d146e54546f34d340574cf2cef6a753cba6b6701d8190557f4da38fc8e544afc56a4c2a17752b8ddb67d8e23ac4583c9029d2e2d1dbe6c9888190556000939093527f0c1469ad586d86b6976c45826d7ae56d76ee516e37a2bccffbe904b74dbae7ea805490911690911790557f40f28f99a40bc9f6beea1013afdbc3cdcc689eb76b82c4de06c0acf1e1932ed581905560066020527f85291c2e7881182c13e19eca9b58927ebfdc2c5d04882018eeb33d8241d3571155620007fd565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200079b57805160ff1916838001178555620007cb565b82800160010185558215620007cb579182015b82811115620007cb578251825591602001919060010190620007ae565b50620007d9929150620007dd565b5090565b620007fa91905b80821115620007d95760008155600101620007e4565b90565b610f01806200080d6000396000f3006080604052600436106101745763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166304dd2dea811461017957806306fdde03146101a35780631ae4dfb71461022d5780631b7e090214610245578063287ad8fa14610279578063313ce567146102915780633ccfd60b146102bc5780634b419b5f146102d35780634c738909146102ee5780634e3c2f471461030357806353ba3d431461031e5780635bdff855146103335780636b2f46321461034b578063763f337e146103605780637deb60251461037a5780637fcf440a1461039157806395d89b41146103b25780639ba65fff146103c75780639d902fc0146103df578063a053ce1f146103f4578063ae88241214610409578063af3922061461041e578063b84c824614610433578063b987f6881461048c578063baf3a4d4146104a1578063c47f0027146104b6578063d5c96b361461050f578063e994c15d14610524578063fd01d4a114610539575b600080fd5b34801561018557600080fd5b5061019160043561054e565b60408051918252519081900360200190f35b3480156101af57600080fd5b506101b86105a2565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101f25781810151838201526020016101da565b50505050905090810190601f16801561021f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561023957600080fd5b50610191600435610630565b34801561025157600080fd5b5061025d600435610654565b60408051600160a060020a039092168252519081900360200190f35b34801561028557600080fd5b50610191600435610681565b34801561029d57600080fd5b506102a6610693565b6040805160ff9092168252519081900360200190f35b3480156102c857600080fd5b506102d1610698565b005b3480156102df57600080fd5b506102d160043560243561074f565b3480156102fa57600080fd5b506101916107ab565b34801561030f57600080fd5b506101916004356024356107bf565b34801561032a57600080fd5b506102a66107ef565b34801561033f57600080fd5b506101916004356107f4565b34801561035757600080fd5b50610191610818565b34801561036c57600080fd5b506102d1600435151561081d565b6102d1600435600160a060020a036024351661084c565b34801561039d57600080fd5b50610191600160a060020a0360043516610b57565b3480156103be57600080fd5b506101b8610b72565b3480156103d357600080fd5b506102d1600435610bcc565b3480156103eb57600080fd5b50610191610c63565b34801561040057600080fd5b506102a6610c69565b34801561041557600080fd5b50610191610c6e565b34801561042a57600080fd5b50610191610c74565b34801561043f57600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526102d1943694929360249392840191908190840183828082843750949750610c7a9650505050505050565b34801561049857600080fd5b50610191610cad565b3480156104ad57600080fd5b506102a6610cb3565b3480156104c257600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526102d1943694929360249392840191908190840183828082843750949750610cb89650505050505050565b34801561051b57600080fd5b50610191610ce7565b34801561053057600080fd5b50610191610ced565b34801561054557600080fd5b506102a6610cf3565b600b54600090821061055f57600080fd5b61059c61059261058a6006600086815260200190815260200160002054600354600101600a0a610cf8565b600254610d2a565b600501600a610d2a565b92915050565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106285780601f106105fd57610100808354040283529160200191610628565b820191906000526020600020905b81548152906001019060200180831161060b57829003601f168201915b505050505081565b600b54600090821061064157600080fd5b5060009081526005602052604090205490565b600b54600090821061066557600080fd5b50600090815260046020526040902054600160a060020a031690565b60056020526000908152604090205481565b601281565b3360008181526007602052604081205466038d7ea4c6800011156106bb57600080fd5b50600160a060020a038116600081815260076020526040808220805490839055905190929183156108fc02918491818181858888f19350505050158015610706573d6000803e3d6000fd5b5060408051600160a060020a03841681526020810183905281517fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc929181900390910190a15050565b600c546101009004600160a060020a0316331461076b57600080fd5b600c54600083815260046020526040902054600160a060020a03908116610100909204161461079957600080fd5b60009182526005602052604090912055565b336000908152600760205260409020545b90565b6000806107cb8461054e565b90506107e56107da8285610cf8565b600354600a0a610d2a565b91505b5092915050565b600a81565b600b54600090821061080557600080fd5b5060009081526008602052604090205490565b303190565b600c546101009004600160a060020a0316331461083957600080fd5b600c805460ff1916911515919091179055565b600080600080600080600080600b548a10151561086857600080fd5b60008a815260056020526040902054341461088257600080fd5b60008a815260046020526040902054600160a060020a03163314156108a657600080fd5b60008a8152600660205260409020546108c0903490610d41565b6108d66108cf34600954610cf8565b6064610d2a565b60008b8152600660205260409020549098506108f3903490610d71565b9650610901600a5488610d83565b600a908155610915906108cf908990610cf8565b95506109256108cf886032610cf8565b60008b8152600860205260409020549095506109419086610d83565b60008b815260086020908152604080832093909355600690522054610967908690610d83565b94506109776108cf886028610cf8565b600c5490945060ff1680156109955750600160a060020a0389163314155b80156109a95750600160a060020a03891615155b15610a08576109bc6108cf886005610cf8565b92506109c88484610d71565b600160a060020a038a166000908152600760205260409020549094506109ee9084610d83565b600160a060020a038a166000908152600760205260409020555b5050600088815260046020908152604080832054600160a060020a03168084526007909252909120543390610a3d9086610d83565b600160a060020a03808416600090815260076020526040808220939093556011549251929091169188156108fc0291899190818181858888f19350505050158015610a8c573d6000803e3d6000fd5b50610a9684610d92565b60008a81526006602090815260408083203490819055600583528184208c90556004909252909120805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384161790556009547fb6058ac11d669cce504a48b05012e6920f1058599371108c7eacf6dfa9b976bb9133918d90610b1c906108cf908490610cf8565b60408051600160a060020a0390951685526020850193909352838301919091526060830152519081900360800190a150505050505050505050565b600160a060020a031660009081526007602052604090205490565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106285780601f106105fd57610100808354040283529160200191610628565b600c546101009004600160a060020a03163314610be857600080fd5b600b8054600019908101600090815260056020908152604080832095909555600c54845484018352600482528583208054610100909204600160a060020a031673ffffffffffffffffffffffffffffffffffffffff199092169190911790558354909201815260089091529182209190915580546001019055565b60035481565b600581565b600a5490565b60025481565b600c546101009004600160a060020a03163314610c9657600080fd5b8051610ca9906001906020840190610e3d565b5050565b600b5490565b602881565b600c546101009004600160a060020a03163314610cd457600080fd5b8051610ca9906000906020840190610e3d565b60025490565b600b5481565b603281565b600080831515610d0b57600091506107e8565b50828202828482811515610d1b57fe5b0414610d2357fe5b9392505050565b6000808284811515610d3857fe5b04949350505050565b6000610d526108cf84600954610cf8565b9050610d69600254610d648385610d71565b610d83565b600255505050565b600082821115610d7d57fe5b50900390565b600082820183811015610d2357fe5b600080805b600b54831015610e3757610dcc61059261058a6006600087815260200190815260200160002054600354600101600a0a610cf8565b9150610ddb6107da8584610cf8565b600084815260046020908152604080832054600160a060020a03168352600782528083208054850190558683526008909152902054909150610e1d9082610d83565b600084815260086020526040902055600190920191610d97565b50505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610e7e57805160ff1916838001178555610eab565b82800160010185558215610eab579182015b82811115610eab578251825591602001919060010190610e90565b50610eb7929150610ebb565b5090565b6107bc91905b80821115610eb75760008155600101610ec15600a165627a7a7230582033440b321f1622164e971a14ed6b9dc7dde76f74134175651bc4bdb9a3e04bea0029

Deployed Bytecode

0x6080604052600436106101745763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166304dd2dea811461017957806306fdde03146101a35780631ae4dfb71461022d5780631b7e090214610245578063287ad8fa14610279578063313ce567146102915780633ccfd60b146102bc5780634b419b5f146102d35780634c738909146102ee5780634e3c2f471461030357806353ba3d431461031e5780635bdff855146103335780636b2f46321461034b578063763f337e146103605780637deb60251461037a5780637fcf440a1461039157806395d89b41146103b25780639ba65fff146103c75780639d902fc0146103df578063a053ce1f146103f4578063ae88241214610409578063af3922061461041e578063b84c824614610433578063b987f6881461048c578063baf3a4d4146104a1578063c47f0027146104b6578063d5c96b361461050f578063e994c15d14610524578063fd01d4a114610539575b600080fd5b34801561018557600080fd5b5061019160043561054e565b60408051918252519081900360200190f35b3480156101af57600080fd5b506101b86105a2565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101f25781810151838201526020016101da565b50505050905090810190601f16801561021f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561023957600080fd5b50610191600435610630565b34801561025157600080fd5b5061025d600435610654565b60408051600160a060020a039092168252519081900360200190f35b34801561028557600080fd5b50610191600435610681565b34801561029d57600080fd5b506102a6610693565b6040805160ff9092168252519081900360200190f35b3480156102c857600080fd5b506102d1610698565b005b3480156102df57600080fd5b506102d160043560243561074f565b3480156102fa57600080fd5b506101916107ab565b34801561030f57600080fd5b506101916004356024356107bf565b34801561032a57600080fd5b506102a66107ef565b34801561033f57600080fd5b506101916004356107f4565b34801561035757600080fd5b50610191610818565b34801561036c57600080fd5b506102d1600435151561081d565b6102d1600435600160a060020a036024351661084c565b34801561039d57600080fd5b50610191600160a060020a0360043516610b57565b3480156103be57600080fd5b506101b8610b72565b3480156103d357600080fd5b506102d1600435610bcc565b3480156103eb57600080fd5b50610191610c63565b34801561040057600080fd5b506102a6610c69565b34801561041557600080fd5b50610191610c6e565b34801561042a57600080fd5b50610191610c74565b34801561043f57600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526102d1943694929360249392840191908190840183828082843750949750610c7a9650505050505050565b34801561049857600080fd5b50610191610cad565b3480156104ad57600080fd5b506102a6610cb3565b3480156104c257600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526102d1943694929360249392840191908190840183828082843750949750610cb89650505050505050565b34801561051b57600080fd5b50610191610ce7565b34801561053057600080fd5b50610191610ced565b34801561054557600080fd5b506102a6610cf3565b600b54600090821061055f57600080fd5b61059c61059261058a6006600086815260200190815260200160002054600354600101600a0a610cf8565b600254610d2a565b600501600a610d2a565b92915050565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106285780601f106105fd57610100808354040283529160200191610628565b820191906000526020600020905b81548152906001019060200180831161060b57829003601f168201915b505050505081565b600b54600090821061064157600080fd5b5060009081526005602052604090205490565b600b54600090821061066557600080fd5b50600090815260046020526040902054600160a060020a031690565b60056020526000908152604090205481565b601281565b3360008181526007602052604081205466038d7ea4c6800011156106bb57600080fd5b50600160a060020a038116600081815260076020526040808220805490839055905190929183156108fc02918491818181858888f19350505050158015610706573d6000803e3d6000fd5b5060408051600160a060020a03841681526020810183905281517fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc929181900390910190a15050565b600c546101009004600160a060020a0316331461076b57600080fd5b600c54600083815260046020526040902054600160a060020a03908116610100909204161461079957600080fd5b60009182526005602052604090912055565b336000908152600760205260409020545b90565b6000806107cb8461054e565b90506107e56107da8285610cf8565b600354600a0a610d2a565b91505b5092915050565b600a81565b600b54600090821061080557600080fd5b5060009081526008602052604090205490565b303190565b600c546101009004600160a060020a0316331461083957600080fd5b600c805460ff1916911515919091179055565b600080600080600080600080600b548a10151561086857600080fd5b60008a815260056020526040902054341461088257600080fd5b60008a815260046020526040902054600160a060020a03163314156108a657600080fd5b60008a8152600660205260409020546108c0903490610d41565b6108d66108cf34600954610cf8565b6064610d2a565b60008b8152600660205260409020549098506108f3903490610d71565b9650610901600a5488610d83565b600a908155610915906108cf908990610cf8565b95506109256108cf886032610cf8565b60008b8152600860205260409020549095506109419086610d83565b60008b815260086020908152604080832093909355600690522054610967908690610d83565b94506109776108cf886028610cf8565b600c5490945060ff1680156109955750600160a060020a0389163314155b80156109a95750600160a060020a03891615155b15610a08576109bc6108cf886005610cf8565b92506109c88484610d71565b600160a060020a038a166000908152600760205260409020549094506109ee9084610d83565b600160a060020a038a166000908152600760205260409020555b5050600088815260046020908152604080832054600160a060020a03168084526007909252909120543390610a3d9086610d83565b600160a060020a03808416600090815260076020526040808220939093556011549251929091169188156108fc0291899190818181858888f19350505050158015610a8c573d6000803e3d6000fd5b50610a9684610d92565b60008a81526006602090815260408083203490819055600583528184208c90556004909252909120805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384161790556009547fb6058ac11d669cce504a48b05012e6920f1058599371108c7eacf6dfa9b976bb9133918d90610b1c906108cf908490610cf8565b60408051600160a060020a0390951685526020850193909352838301919091526060830152519081900360800190a150505050505050505050565b600160a060020a031660009081526007602052604090205490565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106285780601f106105fd57610100808354040283529160200191610628565b600c546101009004600160a060020a03163314610be857600080fd5b600b8054600019908101600090815260056020908152604080832095909555600c54845484018352600482528583208054610100909204600160a060020a031673ffffffffffffffffffffffffffffffffffffffff199092169190911790558354909201815260089091529182209190915580546001019055565b60035481565b600581565b600a5490565b60025481565b600c546101009004600160a060020a03163314610c9657600080fd5b8051610ca9906001906020840190610e3d565b5050565b600b5490565b602881565b600c546101009004600160a060020a03163314610cd457600080fd5b8051610ca9906000906020840190610e3d565b60025490565b600b5481565b603281565b600080831515610d0b57600091506107e8565b50828202828482811515610d1b57fe5b0414610d2357fe5b9392505050565b6000808284811515610d3857fe5b04949350505050565b6000610d526108cf84600954610cf8565b9050610d69600254610d648385610d71565b610d83565b600255505050565b600082821115610d7d57fe5b50900390565b600082820183811015610d2357fe5b600080805b600b54831015610e3757610dcc61059261058a6006600087815260200190815260200160002054600354600101600a0a610cf8565b9150610ddb6107da8584610cf8565b600084815260046020908152604080832054600160a060020a03168352600782528083208054850190558683526008909152902054909150610e1d9082610d83565b600084815260086020526040902055600190920191610d97565b50505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610e7e57805160ff1916838001178555610eab565b82800160010185558215610eab579182015b82811115610eab578251825591602001919060010190610e90565b50610eb7929150610ebb565b5090565b6107bc91905b80821115610eb75760008155600101610ec15600a165627a7a7230582033440b321f1622164e971a14ed6b9dc7dde76f74134175651bc4bdb9a3e04bea0029

Swarm Source

bzzr://33440b321f1622164e971a14ed6b9dc7dde76f74134175651bc4bdb9a3e04bea

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.