ETH Price: $3,625.59 (+1.48%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Enter Draw140235852022-01-17 14:36:071083 days ago1642430167IN
0xd8955418...AcE62d9F5
0 ETH0.00423446109.44032072
Enter Draw140227922022-01-17 11:33:471083 days ago1642419227IN
0xd8955418...AcE62d9F5
0 ETH0.0037140495.99012431
Enter Draw140199992022-01-17 1:07:101083 days ago1642381630IN
0xd8955418...AcE62d9F5
0 ETH0.00608898157.37065501
Enter Draw140198222022-01-17 0:24:471083 days ago1642379087IN
0xd8955418...AcE62d9F5
0 ETH0.00416576107.66469803
Enter Draw140198182022-01-17 0:23:501083 days ago1642379030IN
0xd8955418...AcE62d9F5
0 ETH0.0038093398.45277765
Enter Draw140197942022-01-17 0:18:341083 days ago1642378714IN
0xd8955418...AcE62d9F5
0 ETH0.00497248128.51464425
Enter Draw140197902022-01-17 0:17:431083 days ago1642378663IN
0xd8955418...AcE62d9F5
0 ETH0.00535985138.5262166
Enter Draw140197812022-01-17 0:15:101083 days ago1642378510IN
0xd8955418...AcE62d9F5
0 ETH0.0037467796.8360212
Enter Draw140197542022-01-17 0:10:191083 days ago1642378219IN
0xd8955418...AcE62d9F5
0 ETH0.00545824141.06907931
Enter Draw140197342022-01-17 0:06:131083 days ago1642377973IN
0xd8955418...AcE62d9F5
0 ETH0.00454677117.51202955
Enter Draw140197342022-01-17 0:06:131083 days ago1642377973IN
0xd8955418...AcE62d9F5
0 ETH0.00454677117.51202955
Enter Draw140197322022-01-17 0:05:591083 days ago1642377959IN
0xd8955418...AcE62d9F5
0 ETH0.0051672133.54714514
Enter Draw140197322022-01-17 0:05:591083 days ago1642377959IN
0xd8955418...AcE62d9F5
0 ETH0.0051672133.54714514
Enter Draw140197282022-01-17 0:05:141083 days ago1642377914IN
0xd8955418...AcE62d9F5
0 ETH0.00530502137.10920942
Enter Draw140197182022-01-17 0:03:261083 days ago1642377806IN
0xd8955418...AcE62d9F5
0 ETH0.00628807162.51617743
Enter Draw140197182022-01-17 0:03:261083 days ago1642377806IN
0xd8955418...AcE62d9F5
0 ETH0.00628807162.51617743
Enter Draw140197142022-01-17 0:02:111083 days ago1642377731IN
0xd8955418...AcE62d9F5
0 ETH0.00562859145.4717215
Enter Draw140196962022-01-16 23:59:331083 days ago1642377573IN
0xd8955418...AcE62d9F5
0 ETH0.00545018140.86078151
Enter Draw140196962022-01-16 23:59:331083 days ago1642377573IN
0xd8955418...AcE62d9F5
0 ETH0.00545018140.86078151
Enter Draw140196892022-01-16 23:58:151083 days ago1642377495IN
0xd8955418...AcE62d9F5
0 ETH0.0037401396.66422756
Enter Draw140196812022-01-16 23:57:021083 days ago1642377422IN
0xd8955418...AcE62d9F5
0 ETH0.0031404281.164586
Enter Draw140196652022-01-16 23:54:361083 days ago1642377276IN
0xd8955418...AcE62d9F5
0 ETH0.0036837895.20783398
Enter Draw140196582022-01-16 23:53:161083 days ago1642377196IN
0xd8955418...AcE62d9F5
0 ETH0.00445904115.24453871
Enter Draw140196552022-01-16 23:52:361083 days ago1642377156IN
0xd8955418...AcE62d9F5
0 ETH0.00436758112.88082181
Enter Draw140196542022-01-16 23:52:301083 days ago1642377150IN
0xd8955418...AcE62d9F5
0 ETH0.00447326115.61208948
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OilDraw

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 500 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2022-01-16
*/

// SPDX-License-Identifier: MIT License

/*
░███████╗░█████╗░██╗██╗░░░░░  ██████╗░██████╗░░█████╗░░██╗░░░░░░░██╗
██╔██╔══╝██╔══██╗██║██║░░░░░  ██╔══██╗██╔══██╗██╔══██╗░██║░░██╗░░██║
╚██████╗░██║░░██║██║██║░░░░░  ██║░░██║██████╔╝███████║░╚██╗████╗██╔╝
░╚═██╔██╗██║░░██║██║██║░░░░░  ██║░░██║██╔══██╗██╔══██║░░████╔═████║░
███████╔╝╚█████╔╝██║███████╗  ██████╔╝██║░░██║██║░░██║░░╚██╔╝░╚██╔╝░
╚══════╝░░╚════╝░╚═╝╚══════╝  ╚═════╝░╚═╝░░╚═╝╚═╝░░╚═╝░░░╚═╝░░░╚═╝░░
By: BR33D                                                         */

pragma solidity ^0.8.11;

interface iOIL {
    function balanceOf(address address_) external view returns (uint); 
    function transferFrom(address from_, address to_, uint amount) external returns (bool);
    function burn(address from_, uint amount) external;
}

contract OilDraw {

    address public owner;
    address[] public players;
    
    uint256 public ticketPrice = 20000000000000000000000; // 20,000ETH
    uint256 public drawId;
	uint256 public maxTicketsPerTx = 10;
    
    bool public drawLive = false;

    mapping (uint => address) public pastDraw;
    mapping (address => uint256) public userEntries;


    constructor() {
        owner = msg.sender;
        drawId = 1;
    }

    address public oilAddress;
    iOIL public Oil;
    function setOil(address _address) external onlyOwner {
        oilAddress = _address;
        Oil = iOIL(_address);
    }

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


    /*  ======================
        |---Entry Function---|
        ======================
    */

    function enterDraw(uint256 _numOfTickets) public payable {
        uint256 totalTicketCost = ticketPrice * _numOfTickets;
        require(Oil.balanceOf(msg.sender) >= ticketPrice * _numOfTickets, "insufficent $Oil");
        require(drawLive == true, "cannot enter at this time");
        require(_numOfTickets <= maxTicketsPerTx, "too many per TX");

        uint256 ownerTicketsPurchased = userEntries[msg.sender];
        require(ownerTicketsPurchased + _numOfTickets <= maxTicketsPerTx, "only allowed 10 tickets");
        Oil.burn(msg.sender, totalTicketCost);

        // player ticket purchasing loop
        for (uint256 i = 1; i <= _numOfTickets; i++) {
            players.push(msg.sender);
            userEntries[msg.sender]++;
        }
        
    }

    /*  ======================
        |---View Functions---|
        ======================
    */

    function getRandom() public view returns (uint) {
        uint rand = uint(keccak256(abi.encodePacked(block.timestamp, block.difficulty, block.coinbase)));
        uint index = rand % players.length;
        return index;
    }

    function getPlayers() public view returns (address[] memory) {
        return players;
    }

    function drawEntrys() public view returns (uint) {
        return players.length;
    }

    function getWinnerByDraw(uint _drawId) public view returns (address) {
        return pastDraw[_drawId];
    }

    // Retrieves total entries of players address
    function playerEntries(address _player) public view returns (uint256) {
        address addressOfPlayer = _player;
        uint arrayLength = players.length;
        uint totalEntries = 0;
        for (uint256 i; i < arrayLength; i++) {
            if(players[i] == addressOfPlayer) {
                totalEntries++;
            }
            
        }
        return totalEntries;
    }


    /*  ============================
        |---Owner Only Functions---|
        ============================
    */

    // Salt should be a random number from 1 - 1,000,000,000,000,000
    function pickWinner(uint _firstSalt, uint _secondSalt) public onlyOwner {
        uint rand = getRandom();
        uint firstWinner = (rand + _firstSalt) % players.length;
        uint secondWinner = (firstWinner + _secondSalt) % players.length;

        pastDraw[drawId] = players[firstWinner];
        drawId++;
        pastDraw[drawId] = players[secondWinner];
        drawId++;
    }

    function setTicketPrice(uint256 _newTicketPrice) public onlyOwner {
        ticketPrice = _newTicketPrice;
    }

    function setMaxTicket(uint256 _maxTickets) public onlyOwner {
        maxTicketsPerTx = _maxTickets;
    }

    function startEntries() public onlyOwner {
        drawLive = true;
    }

    function stopEntries() public onlyOwner {
        drawLive = false;
    }

    function transferOwnership(address _address) public onlyOwner {
        owner = _address;
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"Oil","outputs":[{"internalType":"contract iOIL","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"drawEntrys","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"drawId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"drawLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numOfTickets","type":"uint256"}],"name":"enterDraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getPlayers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRandom","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_drawId","type":"uint256"}],"name":"getWinnerByDraw","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTicketsPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oilAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pastDraw","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_firstSalt","type":"uint256"},{"internalType":"uint256","name":"_secondSalt","type":"uint256"}],"name":"pickWinner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_player","type":"address"}],"name":"playerEntries","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"players","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTickets","type":"uint256"}],"name":"setMaxTicket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setOil","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newTicketPrice","type":"uint256"}],"name":"setTicketPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startEntries","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopEntries","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ticketPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userEntries","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405269043c33c1937564800000600255600a6004556005805460ff1916905534801561002d57600080fd5b50600080546001600160a01b031916331790556001600355610c73806100546000396000f3fe6080604052600436106101705760003560e01c80639f10a990116100d6578063eb0e81d41161007f578063f71d96cb11610059578063f71d96cb1461041b578063fa3d6dd91461043b578063ffb244461461045057600080fd5b8063eb0e81d4146103af578063ecc69a4d146103c5578063f2fde38b146103fb57600080fd5b8063b4bb447d116100b0578063b4bb447d1461035a578063b5c5cf3a1461037a578063d63fed511461038f57600080fd5b80639f10a99014610305578063aacc5a1714610332578063ac8269c21461034757600080fd5b80632e469efb116101385780638da5cb5b116101125780638da5cb5b146102b057806392a6e84c146102d05780639bf8dd31146102e557600080fd5b80632e469efb1461024457806382d9f087146102645780638b5b9ccc1461028e57600080fd5b80630f7b8f651461017557806311392d9f1461019e5780631209b1f6146101ec578063159816501461020257806324f881a214610224575b600080fd5b34801561018157600080fd5b5061018b60045481565b6040519081526020015b60405180910390f35b3480156101aa57600080fd5b506101d46101b9366004610ad3565b6000908152600660205260409020546001600160a01b031690565b6040516001600160a01b039091168152602001610195565b3480156101f857600080fd5b5061018b60025481565b34801561020e57600080fd5b5061022261021d366004610ad3565b610470565b005b34801561023057600080fd5b5061022261023f366004610aec565b61048c565b34801561025057600080fd5b5061018b61025f366004610aec565b6104cf565b34801561027057600080fd5b5060055461027e9060ff1681565b6040519015158152602001610195565b34801561029a57600080fd5b506102a3610543565b6040516101959190610b15565b3480156102bc57600080fd5b506000546101d4906001600160a01b031681565b3480156102dc57600080fd5b506102226105a5565b3480156102f157600080fd5b506009546101d4906001600160a01b031681565b34801561031157600080fd5b5061018b610320366004610aec565b60076020526000908152604090205481565b34801561033e57600080fd5b5061018b6105c8565b610222610355366004610ad3565b610635565b34801561036657600080fd5b506008546101d4906001600160a01b031681565b34801561038657600080fd5b5060015461018b565b34801561039b57600080fd5b506102226103aa366004610b62565b61090e565b3480156103bb57600080fd5b5061018b60035481565b3480156103d157600080fd5b506101d46103e0366004610ad3565b6006602052600090815260409020546001600160a01b031681565b34801561040757600080fd5b50610222610416366004610aec565b610a2e565b34801561042757600080fd5b506101d4610436366004610ad3565b610a67565b34801561044757600080fd5b50610222610a91565b34801561045c57600080fd5b5061022261046b366004610ad3565b610ab7565b6000546001600160a01b0316331461048757600080fd5b600255565b6000546001600160a01b031633146104a357600080fd5b600880546001600160a01b039092166001600160a01b0319928316811790915560098054909216179055565b600154600090829082805b8281101561053a57836001600160a01b0316600182815481106104ff576104ff610b84565b6000918252602090912001546001600160a01b03161415610528578161052481610bb0565b9250505b8061053281610bb0565b9150506104da565b50949350505050565b6060600180548060200260200160405190810160405280929190818152602001828054801561059b57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161057d575b5050505050905090565b6000546001600160a01b031633146105bc57600080fd5b6005805460ff19169055565b60008042444160405160200161060393929190928352602083019190915260601b6bffffffffffffffffffffffff1916604082015260540190565b60408051601f19818403018152919052805160209091012060015490915060009061062e9083610bcb565b9392505050565b6000816002546106459190610bed565b9050816002546106559190610bed565b6009546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561069d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c19190610c0c565b10156107145760405162461bcd60e51b815260206004820152601060248201527f696e737566666963656e7420244f696c0000000000000000000000000000000060448201526064015b60405180910390fd5b60055460ff16151560011461076b5760405162461bcd60e51b815260206004820152601960248201527f63616e6e6f7420656e74657220617420746869732074696d6500000000000000604482015260640161070b565b6004548211156107bd5760405162461bcd60e51b815260206004820152600f60248201527f746f6f206d616e79207065722054580000000000000000000000000000000000604482015260640161070b565b336000908152600760205260409020546004546107da8483610c25565b11156108285760405162461bcd60e51b815260206004820152601760248201527f6f6e6c7920616c6c6f776564203130207469636b657473000000000000000000604482015260640161070b565b600954604051632770a7eb60e21b8152336004820152602481018490526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b15801561087457600080fd5b505af1158015610888573d6000803e3d6000fd5b506001925050505b83811161090857600180548082019091557fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b0319163390811790915560009081526007602052604081208054916108f083610bb0565b9190505550808061090090610bb0565b915050610890565b50505050565b6000546001600160a01b0316331461092557600080fd5b600061092f6105c8565b6001549091506000906109428584610c25565b61094c9190610bcb565b60015490915060009061095f8584610c25565b6109699190610bcb565b90506001828154811061097e5761097e610b84565b600091825260208083209091015460038054845260069092526040832080546001600160a01b0319166001600160a01b039092169190911790558054916109c483610bb0565b9190505550600181815481106109dc576109dc610b84565b600091825260208083209091015460038054845260069092526040832080546001600160a01b0319166001600160a01b03909216919091179055805491610a2283610bb0565b91905055505050505050565b6000546001600160a01b03163314610a4557600080fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b60018181548110610a7757600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b03163314610aa857600080fd5b6005805460ff19166001179055565b6000546001600160a01b03163314610ace57600080fd5b600455565b600060208284031215610ae557600080fd5b5035919050565b600060208284031215610afe57600080fd5b81356001600160a01b038116811461062e57600080fd5b6020808252825182820181905260009190848201906040850190845b81811015610b565783516001600160a01b031683529284019291840191600101610b31565b50909695505050505050565b60008060408385031215610b7557600080fd5b50508035926020909101359150565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415610bc457610bc4610b9a565b5060010190565b600082610be857634e487b7160e01b600052601260045260246000fd5b500690565b6000816000190483118215151615610c0757610c07610b9a565b500290565b600060208284031215610c1e57600080fd5b5051919050565b60008219821115610c3857610c38610b9a565b50019056fea264697066735822122056320e0abb1501c9fbf960c8b4c4f60d2e058959add9da74e7dbf43377cee40a64736f6c634300080b0033

Deployed Bytecode

0x6080604052600436106101705760003560e01c80639f10a990116100d6578063eb0e81d41161007f578063f71d96cb11610059578063f71d96cb1461041b578063fa3d6dd91461043b578063ffb244461461045057600080fd5b8063eb0e81d4146103af578063ecc69a4d146103c5578063f2fde38b146103fb57600080fd5b8063b4bb447d116100b0578063b4bb447d1461035a578063b5c5cf3a1461037a578063d63fed511461038f57600080fd5b80639f10a99014610305578063aacc5a1714610332578063ac8269c21461034757600080fd5b80632e469efb116101385780638da5cb5b116101125780638da5cb5b146102b057806392a6e84c146102d05780639bf8dd31146102e557600080fd5b80632e469efb1461024457806382d9f087146102645780638b5b9ccc1461028e57600080fd5b80630f7b8f651461017557806311392d9f1461019e5780631209b1f6146101ec578063159816501461020257806324f881a214610224575b600080fd5b34801561018157600080fd5b5061018b60045481565b6040519081526020015b60405180910390f35b3480156101aa57600080fd5b506101d46101b9366004610ad3565b6000908152600660205260409020546001600160a01b031690565b6040516001600160a01b039091168152602001610195565b3480156101f857600080fd5b5061018b60025481565b34801561020e57600080fd5b5061022261021d366004610ad3565b610470565b005b34801561023057600080fd5b5061022261023f366004610aec565b61048c565b34801561025057600080fd5b5061018b61025f366004610aec565b6104cf565b34801561027057600080fd5b5060055461027e9060ff1681565b6040519015158152602001610195565b34801561029a57600080fd5b506102a3610543565b6040516101959190610b15565b3480156102bc57600080fd5b506000546101d4906001600160a01b031681565b3480156102dc57600080fd5b506102226105a5565b3480156102f157600080fd5b506009546101d4906001600160a01b031681565b34801561031157600080fd5b5061018b610320366004610aec565b60076020526000908152604090205481565b34801561033e57600080fd5b5061018b6105c8565b610222610355366004610ad3565b610635565b34801561036657600080fd5b506008546101d4906001600160a01b031681565b34801561038657600080fd5b5060015461018b565b34801561039b57600080fd5b506102226103aa366004610b62565b61090e565b3480156103bb57600080fd5b5061018b60035481565b3480156103d157600080fd5b506101d46103e0366004610ad3565b6006602052600090815260409020546001600160a01b031681565b34801561040757600080fd5b50610222610416366004610aec565b610a2e565b34801561042757600080fd5b506101d4610436366004610ad3565b610a67565b34801561044757600080fd5b50610222610a91565b34801561045c57600080fd5b5061022261046b366004610ad3565b610ab7565b6000546001600160a01b0316331461048757600080fd5b600255565b6000546001600160a01b031633146104a357600080fd5b600880546001600160a01b039092166001600160a01b0319928316811790915560098054909216179055565b600154600090829082805b8281101561053a57836001600160a01b0316600182815481106104ff576104ff610b84565b6000918252602090912001546001600160a01b03161415610528578161052481610bb0565b9250505b8061053281610bb0565b9150506104da565b50949350505050565b6060600180548060200260200160405190810160405280929190818152602001828054801561059b57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161057d575b5050505050905090565b6000546001600160a01b031633146105bc57600080fd5b6005805460ff19169055565b60008042444160405160200161060393929190928352602083019190915260601b6bffffffffffffffffffffffff1916604082015260540190565b60408051601f19818403018152919052805160209091012060015490915060009061062e9083610bcb565b9392505050565b6000816002546106459190610bed565b9050816002546106559190610bed565b6009546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561069d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c19190610c0c565b10156107145760405162461bcd60e51b815260206004820152601060248201527f696e737566666963656e7420244f696c0000000000000000000000000000000060448201526064015b60405180910390fd5b60055460ff16151560011461076b5760405162461bcd60e51b815260206004820152601960248201527f63616e6e6f7420656e74657220617420746869732074696d6500000000000000604482015260640161070b565b6004548211156107bd5760405162461bcd60e51b815260206004820152600f60248201527f746f6f206d616e79207065722054580000000000000000000000000000000000604482015260640161070b565b336000908152600760205260409020546004546107da8483610c25565b11156108285760405162461bcd60e51b815260206004820152601760248201527f6f6e6c7920616c6c6f776564203130207469636b657473000000000000000000604482015260640161070b565b600954604051632770a7eb60e21b8152336004820152602481018490526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b15801561087457600080fd5b505af1158015610888573d6000803e3d6000fd5b506001925050505b83811161090857600180548082019091557fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b0319163390811790915560009081526007602052604081208054916108f083610bb0565b9190505550808061090090610bb0565b915050610890565b50505050565b6000546001600160a01b0316331461092557600080fd5b600061092f6105c8565b6001549091506000906109428584610c25565b61094c9190610bcb565b60015490915060009061095f8584610c25565b6109699190610bcb565b90506001828154811061097e5761097e610b84565b600091825260208083209091015460038054845260069092526040832080546001600160a01b0319166001600160a01b039092169190911790558054916109c483610bb0565b9190505550600181815481106109dc576109dc610b84565b600091825260208083209091015460038054845260069092526040832080546001600160a01b0319166001600160a01b03909216919091179055805491610a2283610bb0565b91905055505050505050565b6000546001600160a01b03163314610a4557600080fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b60018181548110610a7757600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b03163314610aa857600080fd5b6005805460ff19166001179055565b6000546001600160a01b03163314610ace57600080fd5b600455565b600060208284031215610ae557600080fd5b5035919050565b600060208284031215610afe57600080fd5b81356001600160a01b038116811461062e57600080fd5b6020808252825182820181905260009190848201906040850190845b81811015610b565783516001600160a01b031683529284019291840191600101610b31565b50909695505050505050565b60008060408385031215610b7557600080fd5b50508035926020909101359150565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415610bc457610bc4610b9a565b5060010190565b600082610be857634e487b7160e01b600052601260045260246000fd5b500690565b6000816000190483118215151615610c0757610c07610b9a565b500290565b600060208284031215610c1e57600080fd5b5051919050565b60008219821115610c3857610c38610b9a565b50019056fea264697066735822122056320e0abb1501c9fbf960c8b4c4f60d2e058959add9da74e7dbf43377cee40a64736f6c634300080b0033

Deployed Bytecode Sourcemap

1629:3856:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1816:35;;;;;;;;;;;;;;;;;;;160:25:1;;;148:2;133:18;1816:35:0;;;;;;;;3801:112;;;;;;;;;;-1:-1:-1;3801:112:0;;;;;:::i;:::-;3861:7;3888:17;;;:8;:17;;;;;;-1:-1:-1;;;;;3888:17:0;;3801:112;;;;-1:-1:-1;;;;;545:55:1;;;527:74;;515:2;500:18;3801:112:0;381:226:1;1719:52:0;;;;;;;;;;;;;;;;4979:114;;;;;;;;;;-1:-1:-1;4979:114:0;;;;;:::i;:::-;;:::i;:::-;;2141:124;;;;;;;;;;-1:-1:-1;2141:124:0;;;;;:::i;:::-;;:::i;3972:399::-;;;;;;;;;;-1:-1:-1;3972:399:0;;;;;:::i;:::-;;:::i;1864:28::-;;;;;;;;;;-1:-1:-1;1864:28:0;;;;;;;;;;;1091:14:1;;1084:22;1066:41;;1054:2;1039:18;1864:28:0;926:187:1;3602:94:0;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;1655:20::-;;;;;;;;;;-1:-1:-1;1655:20:0;;;;-1:-1:-1;;;;;1655:20:0;;;5300:75;;;;;;;;;;;;;:::i;2119:15::-;;;;;;;;;;-1:-1:-1;2119:15:0;;;;-1:-1:-1;;;;;2119:15:0;;;1949:47;;;;;;;;;;-1:-1:-1;1949:47:0;;;;;:::i;:::-;;;;;;;;;;;;;;3363:231;;;;;;;;;;;;;:::i;2469:780::-;;;;;;:::i;:::-;;:::i;2087:25::-;;;;;;;;;;-1:-1:-1;2087:25:0;;;;-1:-1:-1;;;;;2087:25:0;;;3704:89;;;;;;;;;;-1:-1:-1;3771:7:0;:14;3704:89;;4575:396;;;;;;;;;;-1:-1:-1;4575:396:0;;;;;:::i;:::-;;:::i;1791:21::-;;;;;;;;;;;;;;;;1901:41;;;;;;;;;;-1:-1:-1;1901:41:0;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;1901:41:0;;;5383:97;;;;;;;;;;-1:-1:-1;5383:97:0;;;;;:::i;:::-;;:::i;1682:24::-;;;;;;;;;;-1:-1:-1;1682:24:0;;;;;:::i;:::-;;:::i;5217:75::-;;;;;;;;;;;;;:::i;5101:108::-;;;;;;;;;;-1:-1:-1;5101:108:0;;;;;:::i;:::-;;:::i;4979:114::-;2327:5;;-1:-1:-1;;;;;2327:5:0;2313:10;:19;2305:28;;;;;;5056:11:::1;:29:::0;4979:114::o;2141:124::-;2327:5;;-1:-1:-1;;;;;2327:5:0;2313:10;:19;2305:28;;;;;;2205:10:::1;:21:::0;;-1:-1:-1;;;;;2205:21:0;;::::1;-1:-1:-1::0;;;;;;2205:21:0;;::::1;::::0;::::1;::::0;;;2237:3:::1;:20:::0;;;;::::1;;::::0;;2141:124::o;3972:399::-;4116:7;:14;4033:7;;4079;;4033;;4173:161;4193:11;4189:1;:15;4173:161;;;4243:15;-1:-1:-1;;;;;4229:29:0;:7;4237:1;4229:10;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;4229:10:0;:29;4226:83;;;4279:14;;;;:::i;:::-;;;;4226:83;4206:3;;;;:::i;:::-;;;;4173:161;;;-1:-1:-1;4351:12:0;3972:399;-1:-1:-1;;;;3972:399:0:o;3602:94::-;3645:16;3681:7;3674:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3674:14:0;;;;;;;;;;;;;;;;;;;;;;;3602:94;:::o;5300:75::-;2327:5;;-1:-1:-1;;;;;2327:5:0;2313:10;:19;2305:28;;;;;;5351:8:::1;:16:::0;;-1:-1:-1;;5351:16:0::1;::::0;;5300:75::o;3363:231::-;3405:4;3422:9;3466:15;3483:16;3501:14;3449:67;;;;;;;;;2904:19:1;;;2948:2;2939:12;;2932:28;;;;2998:2;2994:15;-1:-1:-1;;2990:53:1;2985:2;2976:12;;2969:75;3069:2;3060:12;;2703:375;3449:67:0;;;;-1:-1:-1;;3449:67:0;;;;;;;;;3439:78;;3449:67;3439:78;;;;3549:7;:14;3439:78;;-1:-1:-1;3434:84:0;;3542:21;;3439:78;3542:21;:::i;:::-;3529:34;3363:231;-1:-1:-1;;;3363:231:0:o;2469:780::-;2537:23;2577:13;2563:11;;:27;;;;:::i;:::-;2537:53;;2652:13;2638:11;;:27;;;;:::i;:::-;2609:3;;:25;;-1:-1:-1;;;2609:25:0;;2623:10;2609:25;;;527:74:1;-1:-1:-1;;;;;2609:3:0;;;;:13;;500:18:1;;2609:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:56;;2601:85;;;;-1:-1:-1;;;2601:85:0;;3861:2:1;2601:85:0;;;3843:21:1;3900:2;3880:18;;;3873:30;3939:18;3919;;;3912:46;3975:18;;2601:85:0;;;;;;;;;2705:8;;;;:16;;:8;:16;2697:54;;;;-1:-1:-1;;;2697:54:0;;4206:2:1;2697:54:0;;;4188:21:1;4245:2;4225:18;;;4218:30;4284:27;4264:18;;;4257:55;4329:18;;2697:54:0;4004:349:1;2697:54:0;2787:15;;2770:13;:32;;2762:60;;;;-1:-1:-1;;;2762:60:0;;4560:2:1;2762:60:0;;;4542:21:1;4599:2;4579:18;;;4572:30;4638:17;4618:18;;;4611:45;4673:18;;2762:60:0;4358:339:1;2762:60:0;2879:10;2835:29;2867:23;;;:11;:23;;;;;;2950:15;;2909:37;2933:13;2867:23;2909:37;:::i;:::-;:56;;2901:92;;;;-1:-1:-1;;;2901:92:0;;5037:2:1;2901:92:0;;;5019:21:1;5076:2;5056:18;;;5049:30;5115:25;5095:18;;;5088:53;5158:18;;2901:92:0;4835:347:1;2901:92:0;3004:3;;:37;;-1:-1:-1;;;3004:37:0;;3013:10;3004:37;;;5361:74:1;5451:18;;;5444:34;;;-1:-1:-1;;;;;3004:3:0;;;;:8;;5334:18:1;;3004:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3113:1:0;;-1:-1:-1;;;3096:136:0;3121:13;3116:1;:18;3096:136;;3156:7;:24;;;;;;;;;;;;-1:-1:-1;;;;;;3156:24:0;3169:10;3156:24;;;;;;-1:-1:-1;3195:23:0;;;:11;3156:24;3195:23;;;;:25;;;;;;:::i;:::-;;;;;;3136:3;;;;;:::i;:::-;;;;3096:136;;;;2526:723;;2469:780;:::o;4575:396::-;2327:5;;-1:-1:-1;;;;;2327:5:0;2313:10;:19;2305:28;;;;;;4658:9:::1;4670:11;:9;:11::i;:::-;4733:7;:14:::0;4658:23;;-1:-1:-1;4692:16:0::1;::::0;4712:17:::1;4719:10:::0;4658:23;4712:17:::1;:::i;:::-;4711:36;;;;:::i;:::-;4808:7;:14:::0;4692:55;;-1:-1:-1;4758:17:0::1;::::0;4779:25:::1;4793:11:::0;4692:55;4779:25:::1;:::i;:::-;4778:44;;;;:::i;:::-;4758:64;;4854:7;4862:11;4854:20;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;;::::1;::::0;4844:6:::1;::::0;;4835:16;;:8:::1;:16:::0;;;;;;:39;;-1:-1:-1;;;;;;4835:39:0::1;-1:-1:-1::0;;;;;4854:20:0;;::::1;4835:39:::0;;;::::1;::::0;;4885:8;;;::::1;::::0;::::1;:::i;:::-;;;;;;4923:7;4931:12;4923:21;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;;::::1;::::0;4913:6:::1;::::0;;4904:16;;:8:::1;:16:::0;;;;;;:40;;-1:-1:-1;;;;;;4904:40:0::1;-1:-1:-1::0;;;;;4923:21:0;;::::1;4904:40:::0;;;::::1;::::0;;4955:8;;;::::1;::::0;::::1;:::i;:::-;;;;;;4647:324;;;4575:396:::0;;:::o;5383:97::-;2327:5;;-1:-1:-1;;;;;2327:5:0;2313:10;:19;2305:28;;;;;;5456:5:::1;:16:::0;;-1:-1:-1;;;;;;5456:16:0::1;-1:-1:-1::0;;;;;5456:16:0;;;::::1;::::0;;;::::1;::::0;;5383:97::o;1682:24::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1682:24:0;;-1:-1:-1;1682:24:0;:::o;5217:75::-;2327:5;;-1:-1:-1;;;;;2327:5:0;2313:10;:19;2305:28;;;;;;5269:8:::1;:15:::0;;-1:-1:-1;;5269:15:0::1;5280:4;5269:15;::::0;;5217:75::o;5101:108::-;2327:5;;-1:-1:-1;;;;;2327:5:0;2313:10;:19;2305:28;;;;;;5172:15:::1;:29:::0;5101:108::o;196:180:1:-;255:6;308:2;296:9;287:7;283:23;279:32;276:52;;;324:1;321;314:12;276:52;-1:-1:-1;347:23:1;;196:180;-1:-1:-1;196:180:1:o;612:309::-;671:6;724:2;712:9;703:7;699:23;695:32;692:52;;;740:1;737;730:12;692:52;779:9;766:23;-1:-1:-1;;;;;822:5:1;818:54;811:5;808:65;798:93;;887:1;884;877:12;1118:681;1289:2;1341:21;;;1411:13;;1314:18;;;1433:22;;;1260:4;;1289:2;1512:15;;;;1486:2;1471:18;;;1260:4;1555:218;1569:6;1566:1;1563:13;1555:218;;;1634:13;;-1:-1:-1;;;;;1630:62:1;1618:75;;1748:15;;;;1713:12;;;;1591:1;1584:9;1555:218;;;-1:-1:-1;1790:3:1;;1118:681;-1:-1:-1;;;;;;1118:681:1:o;2046:248::-;2114:6;2122;2175:2;2163:9;2154:7;2150:23;2146:32;2143:52;;;2191:1;2188;2181:12;2143:52;-1:-1:-1;;2214:23:1;;;2284:2;2269:18;;;2256:32;;-1:-1:-1;2046:248:1:o;2299:127::-;2360:10;2355:3;2351:20;2348:1;2341:31;2391:4;2388:1;2381:15;2415:4;2412:1;2405:15;2431:127;2492:10;2487:3;2483:20;2480:1;2473:31;2523:4;2520:1;2513:15;2547:4;2544:1;2537:15;2563:135;2602:3;-1:-1:-1;;2623:17:1;;2620:43;;;2643:18;;:::i;:::-;-1:-1:-1;2690:1:1;2679:13;;2563:135::o;3083:209::-;3115:1;3141;3131:132;;3185:10;3180:3;3176:20;3173:1;3166:31;3220:4;3217:1;3210:15;3248:4;3245:1;3238:15;3131:132;-1:-1:-1;3277:9:1;;3083:209::o;3297:168::-;3337:7;3403:1;3399;3395:6;3391:14;3388:1;3385:21;3380:1;3373:9;3366:17;3362:45;3359:71;;;3410:18;;:::i;:::-;-1:-1:-1;3450:9:1;;3297:168::o;3470:184::-;3540:6;3593:2;3581:9;3572:7;3568:23;3564:32;3561:52;;;3609:1;3606;3599:12;3561:52;-1:-1:-1;3632:16:1;;3470:184;-1:-1:-1;3470:184:1:o;4702:128::-;4742:3;4773:1;4769:6;4766:1;4763:13;4760:39;;;4779:18;;:::i;:::-;-1:-1:-1;4815:9:1;;4702:128::o

Swarm Source

ipfs://56320e0abb1501c9fbf960c8b4c4f60d2e058959add9da74e7dbf43377cee40a

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.