ETH Price: $2,099.89 (+2.53%)

Contract

0x727e60De92D5aa6Fc6D9C1b9B3147812e02eA25A
 

Overview

ETH Balance

0.0000000615 ETH

Eth Value

Less Than $0.01 (@ $2,099.89/ETH)

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Place Bet59540242018-07-13 1:39:102800 days ago1531445950IN
0x727e60De...2e02eA25A
0.01 ETH0.0005706226
Place Bet59540242018-07-13 1:39:102800 days ago1531445950IN
0x727e60De...2e02eA25A
0.01 ETH0.0005925627
Claim_reward59528322018-07-12 20:50:402800 days ago1531428640IN
0x727e60De...2e02eA25A
0 ETH0.0008844422
Claim_reward59525952018-07-12 19:53:582800 days ago1531425238IN
0x727e60De...2e02eA25A
0 ETH0.0010452526
Claim_reward59525812018-07-12 19:50:252800 days ago1531425025IN
0x727e60De...2e02eA25A
0 ETH0.0011658529
Place Bet59521832018-07-12 18:15:052800 days ago1531419305IN
0x727e60De...2e02eA25A
0.01 ETH0.0003730917
Place Bet59521792018-07-12 18:14:082800 days ago1531419248IN
0x727e60De...2e02eA25A
0.01 ETH0.0003730917
Place Bet59521712018-07-12 18:13:082800 days ago1531419188IN
0x727e60De...2e02eA25A
0.04 ETH0.0005486725
Place Bet59521422018-07-12 18:04:452800 days ago1531418685IN
0x727e60De...2e02eA25A
0.025 ETH0.0015038427
Place Bet59521422018-07-12 18:04:452800 days ago1531418685IN
0x727e60De...2e02eA25A
0.1 ETH0.0022783830
Place Bet59521292018-07-12 18:01:422800 days ago1531418502IN
0x727e60De...2e02eA25A
0.02 ETH0.0020505427
Place Bet59521272018-07-12 18:01:352800 days ago1531418495IN
0x727e60De...2e02eA25A
0.02 ETH0.0024302732
Place Bet59519042018-07-12 17:05:122800 days ago1531415112IN
0x727e60De...2e02eA25A
0.87 ETH0.0013723719.41176422
Place Bet59519022018-07-12 17:04:512800 days ago1531415091IN
0x727e60De...2e02eA25A
0.83 ETH0.0013723719.41176422
Place Bet59519002018-07-12 17:04:272800 days ago1531415067IN
0x727e60De...2e02eA25A
0.8 ETH0.0020565919.41176422

Latest 6 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer59528322018-07-12 20:50:402800 days ago1531428640
0x727e60De...2e02eA25A
2.2136909 ETH
Transfer59525952018-07-12 19:53:582800 days ago1531425238
0x727e60De...2e02eA25A
0.0636118 ETH
Transfer59525812018-07-12 19:50:252800 days ago1531425025
0x727e60De...2e02eA25A
0.25444723 ETH
Transfer59525552018-07-12 19:43:022800 days ago1531424582
0x727e60De...2e02eA25A
0.13325 ETH
Transfer59524602018-07-12 19:20:342800 days ago1531423234
0x727e60De...2e02eA25A
0.13325 ETH
Transfer59518972018-07-12 17:03:582800 days ago1531415038  Contract Creation0 ETH
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

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x996486AE...286513D51
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Betting

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2018-07-11
*/

pragma solidity ^0.4.20;

pragma solidity ^0.4.21;
library SafeMath {
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a * b;
    assert(a == 0 || c / a == b);
    return c;
  }

  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;
  }

  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    assert(c >= a);
    return c;
  }
}


contract Betting{
    using SafeMath for uint256; //using safemath

    address public owner; //owner address
    address house_takeout = 0xf783A81F046448c38f3c863885D9e99D10209779;

    uint public winnerPoolTotal;
    string public constant version = "0.2.3";

    struct chronus_info {
        bool  betting_open; // boolean: check if betting is open
        bool  race_start; //boolean: check if race has started
        bool  race_end; //boolean: check if race has ended
        bool  voided_bet; //boolean: check if race has been voided
        uint32  starting_time; // timestamp of when the race starts
        uint32  betting_duration;
        uint32  race_duration; // duration of the race
        uint32 voided_timestamp;
    }

    struct horses_info{
        int64  BTC_delta; //horses.BTC delta value
        int64  ETH_delta; //horses.ETH delta value
        int64  LTC_delta; //horses.LTC delta value
        bytes32 BTC; //32-bytes equivalent of horses.BTC
        bytes32 ETH; //32-bytes equivalent of horses.ETH
        bytes32 LTC;  //32-bytes equivalent of horses.LTC
    }

    struct bet_info{
        bytes32 horse; // coin on which amount is bet on
        uint amount; // amount bet by Bettor
    }
    struct coin_info{
        uint256 pre; // locking price
        uint256 post; // ending price
        uint160 total; // total coin pool
        uint32 count; // number of bets
        bool price_check;
    }
    struct voter_info {
        uint160 total_bet; //total amount of bet placed
        bool rewarded; // boolean: check for double spending
        mapping(bytes32=>uint) bets; //array of bets
    }

    mapping (bytes32 => coin_info) public coinIndex; // mapping coins with pool information
    mapping (address => voter_info) voterIndex; // mapping voter address with Bettor information

    uint public total_reward; // total reward to be awarded
    uint32 total_bettors;
    mapping (bytes32 => bool) public winner_horse;


    // tracking events
    event Deposit(address _from, uint256 _value, bytes32 _horse, uint256 _date);
    event Withdraw(address _to, uint256 _value);
    event PriceCallback(bytes32 coin_pointer, uint256 result, bool isPrePrice);
    event RefundEnabled(string reason);

    // constructor
    constructor() public payable {
        
        owner = msg.sender;
        
        horses.BTC = bytes32("BTC");
        horses.ETH = bytes32("ETH");
        horses.LTC = bytes32("LTC");
        
    }

    // data access structures
    horses_info public horses;
    chronus_info public chronus;

    // modifiers for restricting access to methods
    modifier onlyOwner {
        require(owner == msg.sender);
        _;
    }

    modifier duringBetting {
        require(chronus.betting_open);
        require(now < chronus.starting_time + chronus.betting_duration);
        _;
    }

    modifier beforeBetting {
        require(!chronus.betting_open && !chronus.race_start);
        _;
    }

    modifier afterRace {
        require(chronus.race_end);
        _;
    }

    //function to change owner
    function changeOwnership(address _newOwner) onlyOwner external {
        owner = _newOwner;
    }

    function priceCallback (bytes32 coin_pointer, uint256 result, bool isPrePrice ) external onlyOwner {
        require (!chronus.race_end);
        emit PriceCallback(coin_pointer, result, isPrePrice);
        chronus.race_start = true;
        chronus.betting_open = false;
        if (isPrePrice) {
            if (now >= chronus.starting_time+chronus.betting_duration+ 60 minutes) {
                emit RefundEnabled("Late start price");
                forceVoidRace();
            } else {
                coinIndex[coin_pointer].pre = result;
            }
        } else if (!isPrePrice){
            if (coinIndex[coin_pointer].pre > 0 ){
                if (now >= chronus.starting_time+chronus.race_duration+ 60 minutes) {
                    emit RefundEnabled("Late end price");
                    forceVoidRace();
                } else {
                    coinIndex[coin_pointer].post = result;
                    coinIndex[coin_pointer].price_check = true;

                    if (coinIndex[horses.ETH].price_check && coinIndex[horses.BTC].price_check && coinIndex[horses.LTC].price_check) {
                        reward();
                    }
                }
            } else {
                emit RefundEnabled("End price came before start price");
                forceVoidRace();
            }
        }
    }

    // place a bet on a coin(horse) lockBetting
    function placeBet(bytes32 horse) external duringBetting payable  {
        require(msg.value >= 0.01 ether);
        if (voterIndex[msg.sender].total_bet==0) {
            total_bettors+=1;
        }
        uint _newAmount = voterIndex[msg.sender].bets[horse] + msg.value;
        voterIndex[msg.sender].bets[horse] = _newAmount;
        voterIndex[msg.sender].total_bet += uint160(msg.value);
        uint160 _newTotal = coinIndex[horse].total + uint160(msg.value);
        uint32 _newCount = coinIndex[horse].count + 1;
        coinIndex[horse].total = _newTotal;
        coinIndex[horse].count = _newCount;
        emit Deposit(msg.sender, msg.value, horse, now);
    }

    // fallback method for accepting payments
    function () private payable {}

    // method to place the oraclize queries
    function setupRace(uint32 _bettingDuration, uint32 _raceDuration) onlyOwner beforeBetting external payable {
            chronus.starting_time = uint32(block.timestamp);
            chronus.betting_open = true;
            chronus.betting_duration = _bettingDuration;
            chronus.race_duration = _raceDuration;
    }

    // method to calculate reward (called internally by callback)
    function reward() internal {
        /*
        calculating the difference in price with a precision of 5 digits
        not using safemath since signed integers are handled
        */
        horses.BTC_delta = int64(coinIndex[horses.BTC].post - coinIndex[horses.BTC].pre)*100000/int64(coinIndex[horses.BTC].pre);
        horses.ETH_delta = int64(coinIndex[horses.ETH].post - coinIndex[horses.ETH].pre)*100000/int64(coinIndex[horses.ETH].pre);
        horses.LTC_delta = int64(coinIndex[horses.LTC].post - coinIndex[horses.LTC].pre)*100000/int64(coinIndex[horses.LTC].pre);

        total_reward = (coinIndex[horses.BTC].total) + (coinIndex[horses.ETH].total) + (coinIndex[horses.LTC].total);
        if (total_bettors <= 1) {
            emit RefundEnabled("Not enough participants");
            forceVoidRace();
        } else {
            uint house_fee = total_reward.mul(5).div(100);
            require(house_fee < address(this).balance);
            total_reward = total_reward.sub(house_fee);
            house_takeout.transfer(house_fee);
        }

        if (horses.BTC_delta > horses.ETH_delta) {
            if (horses.BTC_delta > horses.LTC_delta) {
                winner_horse[horses.BTC] = true;
                winnerPoolTotal = coinIndex[horses.BTC].total;
            }
            else if(horses.LTC_delta > horses.BTC_delta) {
                winner_horse[horses.LTC] = true;
                winnerPoolTotal = coinIndex[horses.LTC].total;
            } else {
                winner_horse[horses.BTC] = true;
                winner_horse[horses.LTC] = true;
                winnerPoolTotal = coinIndex[horses.BTC].total + (coinIndex[horses.LTC].total);
            }
        } else if(horses.ETH_delta > horses.BTC_delta) {
            if (horses.ETH_delta > horses.LTC_delta) {
                winner_horse[horses.ETH] = true;
                winnerPoolTotal = coinIndex[horses.ETH].total;
            }
            else if (horses.LTC_delta > horses.ETH_delta) {
                winner_horse[horses.LTC] = true;
                winnerPoolTotal = coinIndex[horses.LTC].total;
            } else {
                winner_horse[horses.ETH] = true;
                winner_horse[horses.LTC] = true;
                winnerPoolTotal = coinIndex[horses.ETH].total + (coinIndex[horses.LTC].total);
            }
        } else {
            if (horses.LTC_delta > horses.ETH_delta) {
                winner_horse[horses.LTC] = true;
                winnerPoolTotal = coinIndex[horses.LTC].total;
            } else if(horses.LTC_delta < horses.ETH_delta){
                winner_horse[horses.ETH] = true;
                winner_horse[horses.BTC] = true;
                winnerPoolTotal = coinIndex[horses.ETH].total + (coinIndex[horses.BTC].total);
            } else {
                winner_horse[horses.LTC] = true;
                winner_horse[horses.ETH] = true;
                winner_horse[horses.BTC] = true;
                winnerPoolTotal = coinIndex[horses.ETH].total + (coinIndex[horses.BTC].total) + (coinIndex[horses.LTC].total);
            }
        }
        chronus.race_end = true;
    }

    // method to calculate an invidual's reward
    function calculateReward(address candidate) internal afterRace constant returns(uint winner_reward) {
        voter_info storage bettor = voterIndex[candidate];
        if(chronus.voided_bet) {
            winner_reward = bettor.total_bet;
        } else {
            uint winning_bet_total;
            if(winner_horse[horses.BTC]) {
                winning_bet_total += bettor.bets[horses.BTC];
            } if(winner_horse[horses.ETH]) {
                winning_bet_total += bettor.bets[horses.ETH];
            } if(winner_horse[horses.LTC]) {
                winning_bet_total += bettor.bets[horses.LTC];
            }
            winner_reward += (((total_reward.mul(10000000)).div(winnerPoolTotal)).mul(winning_bet_total)).div(10000000);
        }
    }

    // method to just check the reward amount
    function checkReward() afterRace external constant returns (uint) {
        require(!voterIndex[msg.sender].rewarded);
        return calculateReward(msg.sender);
    }

    // method to claim the reward amount
    function claim_reward() afterRace external {
        require(!voterIndex[msg.sender].rewarded);
        uint transfer_amount = calculateReward(msg.sender);
        require(address(this).balance >= transfer_amount);
        voterIndex[msg.sender].rewarded = true;
        msg.sender.transfer(transfer_amount);
        emit Withdraw(msg.sender, transfer_amount);
    }

    function forceVoidRace() internal {
        chronus.voided_bet=true;
        chronus.race_end = true;
        chronus.voided_timestamp=uint32(now);
    }

    // exposing the coin pool details for DApp
    function getCoinIndex(bytes32 index, address candidate) external constant returns (uint, uint, uint, bool, uint) {
        uint256 coinPrePrice;
        uint256 coinPostPrice;
        if (coinIndex[horses.ETH].pre > 0 && coinIndex[horses.BTC].pre > 0 && coinIndex[horses.LTC].pre > 0) {
            coinPrePrice = coinIndex[index].pre;
        } 
        if (coinIndex[horses.ETH].post > 0 && coinIndex[horses.BTC].post > 0 && coinIndex[horses.LTC].post > 0) {
            coinPostPrice = coinIndex[index].post;
        }
        return (coinIndex[index].total, coinPrePrice, coinPostPrice, coinIndex[index].price_check, voterIndex[candidate].bets[index]);
    }

    // exposing the total reward amount for DApp
    function reward_total() external constant returns (uint) {
        return ((coinIndex[horses.BTC].total) + (coinIndex[horses.ETH].total) + (coinIndex[horses.LTC].total));
    }

    // in case of any errors in race, enable full refund for the Bettors to claim
    function refund() external onlyOwner {
        require(now > chronus.starting_time + chronus.race_duration);
        require((chronus.betting_open && !chronus.race_start)
            || (chronus.race_start && !chronus.race_end));
        chronus.voided_bet = true;
        chronus.race_end = true;
        chronus.voided_timestamp=uint32(now);
    }

    // method to claim unclaimed winnings after 30 day notice period
    function recovery() external onlyOwner{
        require((chronus.race_end && now > chronus.starting_time + chronus.race_duration + (30 days))
            || (chronus.voided_bet && now > chronus.voided_timestamp + (30 days)));
        house_takeout.transfer(address(this).balance);
    }
}

Contract Security Audit

Contract ABI

API
[{"constant":false,"inputs":[{"name":"horse","type":"bytes32"}],"name":"placeBet","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"claim_reward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"winner_horse","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"coin_pointer","type":"bytes32"},{"name":"result","type":"uint256"},{"name":"isPrePrice","type":"bool"}],"name":"priceCallback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"winnerPoolTotal","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"changeOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"horses","outputs":[{"name":"BTC_delta","type":"int64"},{"name":"ETH_delta","type":"int64"},{"name":"LTC_delta","type":"int64"},{"name":"BTC","type":"bytes32"},{"name":"ETH","type":"bytes32"},{"name":"LTC","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"refund","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"index","type":"bytes32"},{"name":"candidate","type":"address"}],"name":"getCoinIndex","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"bool"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"chronus","outputs":[{"name":"betting_open","type":"bool"},{"name":"race_start","type":"bool"},{"name":"race_end","type":"bool"},{"name":"voided_bet","type":"bool"},{"name":"starting_time","type":"uint32"},{"name":"betting_duration","type":"uint32"},{"name":"race_duration","type":"uint32"},{"name":"voided_timestamp","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_bettingDuration","type":"uint32"},{"name":"_raceDuration","type":"uint32"}],"name":"setupRace","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"reward_total","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"checkReward","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"coinIndex","outputs":[{"name":"pre","type":"uint256"},{"name":"post","type":"uint256"},{"name":"total","type":"uint160"},{"name":"count","type":"uint32"},{"name":"price_check","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"total_reward","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"recovery","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":true,"stateMutability":"payable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_from","type":"address"},{"indexed":false,"name":"_value","type":"uint256"},{"indexed":false,"name":"_horse","type":"bytes32"},{"indexed":false,"name":"_date","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"coin_pointer","type":"bytes32"},{"indexed":false,"name":"result","type":"uint256"},{"indexed":false,"name":"isPrePrice","type":"bool"}],"name":"PriceCallback","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"reason","type":"string"}],"name":"RefundEnabled","type":"event"}]

0x608060405260018054600160a060020a031990811673f783a81f046448c38f3c863885d9e99d102097791790915560008054909116331790557f42544300000000000000000000000000000000000000000000000000000000006009557f4554480000000000000000000000000000000000000000000000000000000000600a557f4c54430000000000000000000000000000000000000000000000000000000000600b55611810806100b36000396000f3006080604052600436106100fb5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663042b5fed81146100fd578063055ee253146101085780630f7696441461011d57806311dcee2f1461014957806329114d65146101695780632af4c31e1461019057806343bddf40146101b157806354fd4d5014610208578063590e1ae3146102925780637274f35b146102a757806384304ee5146102f85780638b63c86f1461035b5780638da5cb5b14610372578063aa93038b146103a3578063c4b24a46146103b8578063d2aed6d7146103cd578063d3d2172e14610420578063ddceafa914610435575b005b6100fb60043561044a565b34801561011457600080fd5b506100fb6105e5565b34801561012957600080fd5b506101356004356106d5565b604080519115158252519081900360200190f35b34801561015557600080fd5b506100fb60043560243560443515156106ea565b34801561017557600080fd5b5061017e6109ee565b60408051918252519081900360200190f35b34801561019c57600080fd5b506100fb600160a060020a03600435166109f4565b3480156101bd57600080fd5b506101c6610a3a565b60408051600797880b880b815295870b870b602087015293860b90950b848401526060840191909152608083015260a082019290925290519081900360c00190f35b34801561021457600080fd5b5061021d610a6c565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561025757818101518382015260200161023f565b50505050905090810190601f1680156102845780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561029e57600080fd5b506100fb610aa3565b3480156102b357600080fd5b506102cb600435600160a060020a0360243516610b85565b60408051958652602086019490945284840192909252151560608401526080830152519081900360a00190f35b34801561030457600080fd5b5061030d610cb1565b604080519815158952961515602089015294151587870152921515606087015263ffffffff9182166080870152811660a086015290811660c08501521660e083015251908190036101000190f35b6100fb63ffffffff60043581169060243516610d13565b34801561037e57600080fd5b50610387610dd1565b60408051600160a060020a039092168252519081900360200190f35b3480156103af57600080fd5b5061017e610de0565b3480156103c457600080fd5b5061017e610e25565b3480156103d957600080fd5b506103e5600435610e71565b604080519586526020860194909452600160a060020a039092168484015263ffffffff16606084015215156080830152519081900360a00190f35b34801561042c57600080fd5b5061017e610eb5565b34801561044157600080fd5b506100fb610ebb565b600c546000908190819060ff16151561046257600080fd5b600c54640100000000810463ffffffff9081166801000000000000000090920481169190910116421061049457600080fd5b662386f26fc100003410156104a857600080fd5b33600090815260046020526040902054600160a060020a031615156104e4576006805463ffffffff8082166001011663ffffffff199091161790555b50503360008181526004602090815260408083208684526001808201845282852080543490810191829055835473ffffffffffffffffffffffffffffffffffffffff19808216600160a060020a0392831684018316179095556003875296859020600201805494851685891683019889161777ffffffff0000000000000000000000000000000000000000191660a060020a9586900463ffffffff90811690950194851690950294909417909355835196875293860191909152848201879052426060860152905191945091927f60452eb7177e8d41c9d9fbc4c6e9ccf55a4d44d412355fbf2f02668e0d1a0ce1916080918190039190910190a150505050565b600c5460009062010000900460ff1615156105ff57600080fd5b3360009081526004602052604090205460a060020a900460ff161561062357600080fd5b61062c33610f95565b9050303181111561063c57600080fd5b33600081815260046020526040808220805474ff0000000000000000000000000000000000000000191660a060020a1790555183156108fc0291849190818181858888f19350505050158015610696573d6000803e3d6000fd5b50604080513381526020810183905281517f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364929181900390910190a150565b60076020526000908152604090205460ff1681565b600054600160a060020a0316331461070157600080fd5b600c5462010000900460ff161561071757600080fd5b60408051848152602081018490528215158183015290517fde16ef9c49ad256644606beb97130511ba3d64bbd230380f8edd107527e5a9da9181900360600190a1600c805460ff1961ff001990911661010017169055801561081657600c54610e10640100000000820463ffffffff90811668010000000000000000909304811692909201011642106107ff576040805160208082526010908201527f4c617465207374617274207072696365000000000000000000000000000000008183015290516000805160206117c58339815191529181900360600190a16107fa610b3b565b610811565b60008381526003602052604090208290555b6109e9565b8015156109e957600083815260036020526040812054111561096d57600c54610e10640100000000820463ffffffff9081166c01000000000000000000000000909304811692909201011642106108bd57604080516020808252600e908201527f4c61746520656e642070726963650000000000000000000000000000000000008183015290516000805160206117c58339815191529181900360600190a16107fa610b3b565b600083815260036020526040808220600181018590556002908101805478ff000000000000000000000000000000000000000000000000191660c060020a908117909155600a54845291909220909101540460ff168015610939575060095460009081526003602052604090206002015460c060020a900460ff165b80156109605750600b5460009081526003602052604090206002015460c060020a900460ff165b15610811576108116110cf565b6040805160208082526021908201527f456e642070726963652063616d65206265666f72652073746172742070726963818301527f6500000000000000000000000000000000000000000000000000000000000000606082015290516000805160206117c58339815191529181900360800190a16109e9610b3b565b505050565b60025481565b600054600160a060020a03163314610a0b57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600854600954600a54600b54600784810b94680100000000000000008104820b94608060020a90910490910b92909186565b60408051808201909152600581527f302e322e33000000000000000000000000000000000000000000000000000000602082015281565b600054600160a060020a03163314610aba57600080fd5b600c54640100000000810463ffffffff9081166c01000000000000000000000000909204811691909101164211610af057600080fd5b600c5460ff168015610b0a5750600c54610100900460ff16155b80610b305750600c54610100900460ff168015610b305750600c5462010000900460ff16155b1515610b3b57600080fd5b600c805462010000630100000063ff000000199092169190911762ff000019161773ffffffff000000000000000000000000000000001916608060020a4263ffffffff1602179055565b600a5460009081526003602052604081205481908190819081908190819081108015610bc05750600954600090815260036020526040812054115b8015610bdb5750600b54600090815260036020526040812054115b15610bf25760008981526003602052604090205491505b600a54600090815260036020526040812060010154118015610c265750600954600090815260036020526040812060010154115b8015610c445750600b54600090815260036020526040812060010154115b15610c5d57506000888152600360205260409020600101545b600089815260036020908152604080832060020154600160a060020a039b8c168452600483528184209c84526001909c01909152902054978916999198909760c060020a90910460ff169650945092505050565b600c5460ff808216916101008104821691620100008204811691630100000081049091169063ffffffff64010000000082048116916801000000000000000081048216916c010000000000000000000000008204811691608060020a90041688565b600054600160a060020a03163314610d2a57600080fd5b600c5460ff16158015610d455750600c54610100900460ff16155b1515610d5057600080fd5b600c805463ffffffff9283166c01000000000000000000000000026fffffffff0000000000000000000000001994841668010000000000000000026bffffffff00000000000000001960ff1942969096166401000000000267ffffffff00000000199094169390931794909416600117919091169290921792909216179055565b600054600160a060020a031681565b600b54600090815260036020526040808220600290810154600a5484528284208201546009548552929093200154600160a060020a0392831691831690831601011690565b600c5460009062010000900460ff161515610e3f57600080fd5b3360009081526004602052604090205460a060020a900460ff1615610e6357600080fd5b610e6c33610f95565b905090565b600360205260009081526040902080546001820154600290920154909190600160a060020a0381169060a060020a810463ffffffff169060c060020a900460ff1685565b60055481565b600054600160a060020a03163314610ed257600080fd5b600c5462010000900460ff168015610f185750600c5462278d00640100000000820463ffffffff9081166c01000000000000000000000000909304811692909201011642115b80610f4d5750600c546301000000900460ff168015610f4d5750600c5462278d0063ffffffff608060020a9092048216011642115b1515610f5857600080fd5b600154604051600160a060020a0390911690303180156108fc02916000818181858888f19350505050158015610f92573d6000803e3d6000fd5b50565b600c546000908190819062010000900460ff161515610fb357600080fd5b600160a060020a0384166000908152600460205260409020600c549092506301000000900460ff1615610ff2578154600160a060020a031692506110c8565b60095460009081526007602052604090205460ff1615611022576009546000908152600183016020526040902054015b600a5460009081526007602052604090205460ff161561105257600a546000908152600183016020526040902054015b600b5460009081526007602052604090205460ff161561108257600b546000908152600183016020526040902054015b6110c3629896806110ab836110b76002546110ab6298968060055461177090919063ffffffff16565b9063ffffffff61179b16565b9063ffffffff61177016565b830192505b5050919050565b60095460009081526003602052604081208054600190910154600782810b92909103620186a002900b81151561110157fe5b6008805467ffffffffffffffff191667ffffffffffffffff93909205600790810b93909316919091179055600a54600090815260036020526040902080546001919091015481830b92919003620186a002900b81151561115d57fe5b6008805492909105600790810b67ffffffffffffffff1668010000000000000000026fffffffffffffffff000000000000000019909316929092179055600b54600090815260036020526040902080546001919091015481830b92620186a09290910391909102900b8115156111cf57fe5b6008805477ffffffffffffffff000000000000000000000000000000001916608060020a67ffffffffffffffff9490930560070b9390931691909102919091179055600b54600090815260036020526040808220600290810154600a5484528284208201546009548552929093200154600160a060020a03928316918316908316010116600555600654600163ffffffff909116116112c3576040805160208082526017908201527f4e6f7420656e6f756768207061727469636970616e74730000000000000000008183015290516000805160206117c58339815191529181900360600190a16112be610b3b565b61133e565b6112dd60646110ab6005805461177090919063ffffffff16565b9050303181106112ec57600080fd5b6005546112ff908263ffffffff6117b216565b600555600154604051600160a060020a039091169082156108fc029083906000818181858888f1935050505015801561133c573d6000803e3d6000fd5b505b600854680100000000000000008104600790810b810b91810b900b131561148057600854608060020a8104600790810b810b91810b900b13156113ba57600980546000908152600760209081526040808320805460ff19166001179055925482526003905220600290810154600160a060020a0316905561147b565b600854600781810b810b608060020a909204810b900b131561141557600b80546000908152600760209081526040808320805460ff19166001179055925482526003905220600290810154600160a060020a0316905561147b565b6009805460009081526007602090815260408083208054600160ff199182168117909255600b80548652838620805490921690921790555483526003909152808220600290810154935483529120810154600160a060020a039283169083160190911690555b61175c565b600854600781810b810b68010000000000000000909204810b900b13156115d957600854608060020a8104600790810b810b68010000000000000000909204810b900b131561150857600a80546000908152600760209081526040808320805460ff19166001179055925482526003905220600290810154600160a060020a0316905561147b565b600854680100000000000000008104600790810b810b608060020a909204810b900b131561156f57600b80546000908152600760209081526040808320805460ff19166001179055925482526003905220600290810154600160a060020a0316905561147b565b600a805460009081526007602090815260408083208054600160ff199182168117909255600b80548652838620805490921690921790555483526003909152808220600290810154935483529120810154600160a060020a0392831690831601909116905561175c565b600854680100000000000000008104600790810b810b608060020a909204810b900b131561164057600b80546000908152600760209081526040808320805460ff19166001179055925482526003905220600290810154600160a060020a0316905561175c565b600854680100000000000000008104600790810b810b608060020a909204810b900b12156116d257600a805460009081526007602090815260408083208054600160ff199182168117909255600980548652838620805490921690921790555483526003909152808220600290810154935483529120810154600160a060020a0392831690831601909116905561175c565b600b805460009081526007602090815260408083208054600160ff199182168117909255600a805486528386208054831684179055600980548752848720805490931690931790915594548452600390925280832060029081015492548452818420810154945484529220820154600160a060020a03918216938216908216019290920190911690555b50600c805462ff0000191662010000179055565b600082820283158061178c575082848281151561178957fe5b04145b151561179457fe5b9392505050565b60008082848115156117a957fe5b04949350505050565b6000828211156117be57fe5b5090039056009267bd1e840f8c032ec399dab88550ddacce435477212b384a3d761f395efa7fa165627a7a72305820d6cf55395eeb05855af453fbbb4790633860d08acc9e7f164423a9426d672bf80029

Deployed Bytecode

0x6080604052600436106100fb5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663042b5fed81146100fd578063055ee253146101085780630f7696441461011d57806311dcee2f1461014957806329114d65146101695780632af4c31e1461019057806343bddf40146101b157806354fd4d5014610208578063590e1ae3146102925780637274f35b146102a757806384304ee5146102f85780638b63c86f1461035b5780638da5cb5b14610372578063aa93038b146103a3578063c4b24a46146103b8578063d2aed6d7146103cd578063d3d2172e14610420578063ddceafa914610435575b005b6100fb60043561044a565b34801561011457600080fd5b506100fb6105e5565b34801561012957600080fd5b506101356004356106d5565b604080519115158252519081900360200190f35b34801561015557600080fd5b506100fb60043560243560443515156106ea565b34801561017557600080fd5b5061017e6109ee565b60408051918252519081900360200190f35b34801561019c57600080fd5b506100fb600160a060020a03600435166109f4565b3480156101bd57600080fd5b506101c6610a3a565b60408051600797880b880b815295870b870b602087015293860b90950b848401526060840191909152608083015260a082019290925290519081900360c00190f35b34801561021457600080fd5b5061021d610a6c565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561025757818101518382015260200161023f565b50505050905090810190601f1680156102845780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561029e57600080fd5b506100fb610aa3565b3480156102b357600080fd5b506102cb600435600160a060020a0360243516610b85565b60408051958652602086019490945284840192909252151560608401526080830152519081900360a00190f35b34801561030457600080fd5b5061030d610cb1565b604080519815158952961515602089015294151587870152921515606087015263ffffffff9182166080870152811660a086015290811660c08501521660e083015251908190036101000190f35b6100fb63ffffffff60043581169060243516610d13565b34801561037e57600080fd5b50610387610dd1565b60408051600160a060020a039092168252519081900360200190f35b3480156103af57600080fd5b5061017e610de0565b3480156103c457600080fd5b5061017e610e25565b3480156103d957600080fd5b506103e5600435610e71565b604080519586526020860194909452600160a060020a039092168484015263ffffffff16606084015215156080830152519081900360a00190f35b34801561042c57600080fd5b5061017e610eb5565b34801561044157600080fd5b506100fb610ebb565b600c546000908190819060ff16151561046257600080fd5b600c54640100000000810463ffffffff9081166801000000000000000090920481169190910116421061049457600080fd5b662386f26fc100003410156104a857600080fd5b33600090815260046020526040902054600160a060020a031615156104e4576006805463ffffffff8082166001011663ffffffff199091161790555b50503360008181526004602090815260408083208684526001808201845282852080543490810191829055835473ffffffffffffffffffffffffffffffffffffffff19808216600160a060020a0392831684018316179095556003875296859020600201805494851685891683019889161777ffffffff0000000000000000000000000000000000000000191660a060020a9586900463ffffffff90811690950194851690950294909417909355835196875293860191909152848201879052426060860152905191945091927f60452eb7177e8d41c9d9fbc4c6e9ccf55a4d44d412355fbf2f02668e0d1a0ce1916080918190039190910190a150505050565b600c5460009062010000900460ff1615156105ff57600080fd5b3360009081526004602052604090205460a060020a900460ff161561062357600080fd5b61062c33610f95565b9050303181111561063c57600080fd5b33600081815260046020526040808220805474ff0000000000000000000000000000000000000000191660a060020a1790555183156108fc0291849190818181858888f19350505050158015610696573d6000803e3d6000fd5b50604080513381526020810183905281517f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364929181900390910190a150565b60076020526000908152604090205460ff1681565b600054600160a060020a0316331461070157600080fd5b600c5462010000900460ff161561071757600080fd5b60408051848152602081018490528215158183015290517fde16ef9c49ad256644606beb97130511ba3d64bbd230380f8edd107527e5a9da9181900360600190a1600c805460ff1961ff001990911661010017169055801561081657600c54610e10640100000000820463ffffffff90811668010000000000000000909304811692909201011642106107ff576040805160208082526010908201527f4c617465207374617274207072696365000000000000000000000000000000008183015290516000805160206117c58339815191529181900360600190a16107fa610b3b565b610811565b60008381526003602052604090208290555b6109e9565b8015156109e957600083815260036020526040812054111561096d57600c54610e10640100000000820463ffffffff9081166c01000000000000000000000000909304811692909201011642106108bd57604080516020808252600e908201527f4c61746520656e642070726963650000000000000000000000000000000000008183015290516000805160206117c58339815191529181900360600190a16107fa610b3b565b600083815260036020526040808220600181018590556002908101805478ff000000000000000000000000000000000000000000000000191660c060020a908117909155600a54845291909220909101540460ff168015610939575060095460009081526003602052604090206002015460c060020a900460ff165b80156109605750600b5460009081526003602052604090206002015460c060020a900460ff165b15610811576108116110cf565b6040805160208082526021908201527f456e642070726963652063616d65206265666f72652073746172742070726963818301527f6500000000000000000000000000000000000000000000000000000000000000606082015290516000805160206117c58339815191529181900360800190a16109e9610b3b565b505050565b60025481565b600054600160a060020a03163314610a0b57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600854600954600a54600b54600784810b94680100000000000000008104820b94608060020a90910490910b92909186565b60408051808201909152600581527f302e322e33000000000000000000000000000000000000000000000000000000602082015281565b600054600160a060020a03163314610aba57600080fd5b600c54640100000000810463ffffffff9081166c01000000000000000000000000909204811691909101164211610af057600080fd5b600c5460ff168015610b0a5750600c54610100900460ff16155b80610b305750600c54610100900460ff168015610b305750600c5462010000900460ff16155b1515610b3b57600080fd5b600c805462010000630100000063ff000000199092169190911762ff000019161773ffffffff000000000000000000000000000000001916608060020a4263ffffffff1602179055565b600a5460009081526003602052604081205481908190819081908190819081108015610bc05750600954600090815260036020526040812054115b8015610bdb5750600b54600090815260036020526040812054115b15610bf25760008981526003602052604090205491505b600a54600090815260036020526040812060010154118015610c265750600954600090815260036020526040812060010154115b8015610c445750600b54600090815260036020526040812060010154115b15610c5d57506000888152600360205260409020600101545b600089815260036020908152604080832060020154600160a060020a039b8c168452600483528184209c84526001909c01909152902054978916999198909760c060020a90910460ff169650945092505050565b600c5460ff808216916101008104821691620100008204811691630100000081049091169063ffffffff64010000000082048116916801000000000000000081048216916c010000000000000000000000008204811691608060020a90041688565b600054600160a060020a03163314610d2a57600080fd5b600c5460ff16158015610d455750600c54610100900460ff16155b1515610d5057600080fd5b600c805463ffffffff9283166c01000000000000000000000000026fffffffff0000000000000000000000001994841668010000000000000000026bffffffff00000000000000001960ff1942969096166401000000000267ffffffff00000000199094169390931794909416600117919091169290921792909216179055565b600054600160a060020a031681565b600b54600090815260036020526040808220600290810154600a5484528284208201546009548552929093200154600160a060020a0392831691831690831601011690565b600c5460009062010000900460ff161515610e3f57600080fd5b3360009081526004602052604090205460a060020a900460ff1615610e6357600080fd5b610e6c33610f95565b905090565b600360205260009081526040902080546001820154600290920154909190600160a060020a0381169060a060020a810463ffffffff169060c060020a900460ff1685565b60055481565b600054600160a060020a03163314610ed257600080fd5b600c5462010000900460ff168015610f185750600c5462278d00640100000000820463ffffffff9081166c01000000000000000000000000909304811692909201011642115b80610f4d5750600c546301000000900460ff168015610f4d5750600c5462278d0063ffffffff608060020a9092048216011642115b1515610f5857600080fd5b600154604051600160a060020a0390911690303180156108fc02916000818181858888f19350505050158015610f92573d6000803e3d6000fd5b50565b600c546000908190819062010000900460ff161515610fb357600080fd5b600160a060020a0384166000908152600460205260409020600c549092506301000000900460ff1615610ff2578154600160a060020a031692506110c8565b60095460009081526007602052604090205460ff1615611022576009546000908152600183016020526040902054015b600a5460009081526007602052604090205460ff161561105257600a546000908152600183016020526040902054015b600b5460009081526007602052604090205460ff161561108257600b546000908152600183016020526040902054015b6110c3629896806110ab836110b76002546110ab6298968060055461177090919063ffffffff16565b9063ffffffff61179b16565b9063ffffffff61177016565b830192505b5050919050565b60095460009081526003602052604081208054600190910154600782810b92909103620186a002900b81151561110157fe5b6008805467ffffffffffffffff191667ffffffffffffffff93909205600790810b93909316919091179055600a54600090815260036020526040902080546001919091015481830b92919003620186a002900b81151561115d57fe5b6008805492909105600790810b67ffffffffffffffff1668010000000000000000026fffffffffffffffff000000000000000019909316929092179055600b54600090815260036020526040902080546001919091015481830b92620186a09290910391909102900b8115156111cf57fe5b6008805477ffffffffffffffff000000000000000000000000000000001916608060020a67ffffffffffffffff9490930560070b9390931691909102919091179055600b54600090815260036020526040808220600290810154600a5484528284208201546009548552929093200154600160a060020a03928316918316908316010116600555600654600163ffffffff909116116112c3576040805160208082526017908201527f4e6f7420656e6f756768207061727469636970616e74730000000000000000008183015290516000805160206117c58339815191529181900360600190a16112be610b3b565b61133e565b6112dd60646110ab6005805461177090919063ffffffff16565b9050303181106112ec57600080fd5b6005546112ff908263ffffffff6117b216565b600555600154604051600160a060020a039091169082156108fc029083906000818181858888f1935050505015801561133c573d6000803e3d6000fd5b505b600854680100000000000000008104600790810b810b91810b900b131561148057600854608060020a8104600790810b810b91810b900b13156113ba57600980546000908152600760209081526040808320805460ff19166001179055925482526003905220600290810154600160a060020a0316905561147b565b600854600781810b810b608060020a909204810b900b131561141557600b80546000908152600760209081526040808320805460ff19166001179055925482526003905220600290810154600160a060020a0316905561147b565b6009805460009081526007602090815260408083208054600160ff199182168117909255600b80548652838620805490921690921790555483526003909152808220600290810154935483529120810154600160a060020a039283169083160190911690555b61175c565b600854600781810b810b68010000000000000000909204810b900b13156115d957600854608060020a8104600790810b810b68010000000000000000909204810b900b131561150857600a80546000908152600760209081526040808320805460ff19166001179055925482526003905220600290810154600160a060020a0316905561147b565b600854680100000000000000008104600790810b810b608060020a909204810b900b131561156f57600b80546000908152600760209081526040808320805460ff19166001179055925482526003905220600290810154600160a060020a0316905561147b565b600a805460009081526007602090815260408083208054600160ff199182168117909255600b80548652838620805490921690921790555483526003909152808220600290810154935483529120810154600160a060020a0392831690831601909116905561175c565b600854680100000000000000008104600790810b810b608060020a909204810b900b131561164057600b80546000908152600760209081526040808320805460ff19166001179055925482526003905220600290810154600160a060020a0316905561175c565b600854680100000000000000008104600790810b810b608060020a909204810b900b12156116d257600a805460009081526007602090815260408083208054600160ff199182168117909255600980548652838620805490921690921790555483526003909152808220600290810154935483529120810154600160a060020a0392831690831601909116905561175c565b600b805460009081526007602090815260408083208054600160ff199182168117909255600a805486528386208054831684179055600980548752848720805490931690931790915594548452600390925280832060029081015492548452818420810154945484529220820154600160a060020a03918216938216908216019290920190911690555b50600c805462ff0000191662010000179055565b600082820283158061178c575082848281151561178957fe5b04145b151561179457fe5b9392505050565b60008082848115156117a957fe5b04949350505050565b6000828211156117be57fe5b5090039056009267bd1e840f8c032ec399dab88550ddacce435477212b384a3d761f395efa7fa165627a7a72305820d6cf55395eeb05855af453fbbb4790633860d08acc9e7f164423a9426d672bf80029

Swarm Source

bzzr://d6cf55395eeb05855af453fbbb4790633860d08acc9e7f164423a9426d672bf8

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.