ETH Price: $2,394.83 (-10.78%)

Contract

0x9Dc43d05A1F643bc882012b1b8ae85A83aA93Bf0
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Get Award88200902019-10-27 6:38:491948 days ago1572158329IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000057512
Get Award88200862019-10-27 6:37:201948 days ago1572158240IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000057512
Get Award88200862019-10-27 6:37:201948 days ago1572158240IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000057512
Get Award88200832019-10-27 6:37:051948 days ago1572158225IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000057512
Get Award88200792019-10-27 6:36:251948 days ago1572158185IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000057512
Get Award88200752019-10-27 6:35:501948 days ago1572158150IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000057512
Get Award88200742019-10-27 6:35:161948 days ago1572158116IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000115034
Get Award88200722019-10-27 6:35:031948 days ago1572158103IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000115034
Get Award88200652019-10-27 6:33:481948 days ago1572158028IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000057512
Get Award88200632019-10-27 6:33:201948 days ago1572158000IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000057512
Get Award88200612019-10-27 6:32:531948 days ago1572157973IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000057512
Get Award88200572019-10-27 6:32:281948 days ago1572157948IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000057512
Get Award88200542019-10-27 6:32:031948 days ago1572157923IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000115034
Get Award88200492019-10-27 6:31:341948 days ago1572157894IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000115034
Get Award88200262019-10-27 6:26:021948 days ago1572157562IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000115034
Get Award88194742019-10-27 4:09:291948 days ago1572149369IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000115034
Get Award88190482019-10-27 2:35:131948 days ago1572143713IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000172556
Get Award88186342019-10-27 0:59:331948 days ago1572137973IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000115034
Get Award88186282019-10-27 0:58:471948 days ago1572137927IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000057512
Get Award88182042019-10-26 23:25:461948 days ago1572132346IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000115034
Get Award88181742019-10-26 23:18:101948 days ago1572131890IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000115034
Get Award88180032019-10-26 22:38:281948 days ago1572129508IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000057512
Get Award88180032019-10-26 22:38:281948 days ago1572129508IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000115034
Get Award88179332019-10-26 22:19:351948 days ago1572128375IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000115034
Get Award88176412019-10-26 21:12:211948 days ago1572124341IN
0x9Dc43d05...83aA93Bf0
0 ETH0.000115034
View all transactions

Advanced mode:
Parent Transaction Hash Block
From
To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GachaDrop

Compiler Version
v0.5.10+commit.5a6ea5b1

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2019-08-09
*/

/**
 *Submitted for verification at Etherscan.io on 2019-07-31
*/

pragma solidity 0.5.10;

/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
    address public owner;


    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);


    /**
     * @dev The Ownable constructor sets the original `owner` of the contract to the sender
     * account.
     */
    constructor() public {
        owner = msg.sender;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(msg.sender == owner);
        _;
    }

    /**
     * @dev Allows the current owner to transfer control of the contract to a newOwner.
     * @param newOwner The address to transfer ownership to.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        require(newOwner != address(0));
        emit OwnershipTransferred(owner, newOwner);
        owner = newOwner;
    }

}
contract ERC20BasicInterface {
    function totalSupply() public view returns (uint256);

    function balanceOf(address who) public view returns (uint256);

    function transfer(address to, uint256 value) public returns (bool);

    function transferFrom(address from, address to, uint256 value) public returns (bool);

    event Transfer(address indexed from, address indexed to, uint256 value);

    uint8 public decimals;
}
contract GachaDrop is Ownable {
    uint public periodToPlay = 86400; // 86400; // seconds
    bool public isEnded;
    mapping(address => uint) public timeTrackUser;
    event _random(address _from, uint _ticket);
    constructor() public {}
    function getAward() public {
        require(isValidToPlay());
        timeTrackUser[msg.sender] = block.timestamp;
        emit _random(msg.sender, block.timestamp);
    }

    function isValidToPlay() public view returns (bool){
        return (!isEnded
        && periodToPlay <= now - timeTrackUser[msg.sender]);
    }
    function changePeriodToPlay(uint _period) onlyOwner public{
        periodToPlay = _period;
    }
    function updateGetAward() onlyOwner public{
        isEnded = true;
    }

}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"_period","type":"uint256"}],"name":"changePeriodToPlay","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"periodToPlay","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"updateGetAward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isValidToPlay","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isEnded","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getAward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"timeTrackUser","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_from","type":"address"},{"indexed":false,"name":"_ticket","type":"uint256"}],"name":"_random","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

60806040526201518060015534801561001757600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610600806100676000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80638da5cb5b116100665780638da5cb5b14610110578063a4fd6f561461015a578063f2fde38b1461017c578063fee50359146101c0578063ff61d1a9146101ca57610093565b806308621db8146100985780633e54c123146100c65780637c363988146100e45780637d950a26146100ee575b600080fd5b6100c4600480360360208110156100ae57600080fd5b8101908080359060200190929190505050610222565b005b6100ce610285565b6040518082815260200191505060405180910390f35b6100ec61028b565b005b6100f6610301565b604051808215151515815260200191505060405180910390f35b610118610368565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61016261038d565b604051808215151515815260200191505060405180910390f35b6101be6004803603602081101561019257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103a0565b005b6101c86104f1565b005b61020c600480360360208110156101e057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506105b3565b6040518082815260200191505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461027b57600080fd5b8060018190555050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146102e457600080fd5b6001600260006101000a81548160ff021916908315150217905550565b6000600260009054906101000a900460ff161580156103635750600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054420360015411155b905090565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900460ff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103f957600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561043357600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6104f9610301565b61050257600080fd5b42600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f759d68a0a9880e705858082d6bf7a17a03894588f024b61cc0ea17b1e68807ca3342604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a1565b6003602052806000526040600020600091509050548156fea265627a7a72305820f460b8d5cb64d15a79658456a1456341212d73bff87445ec8e7247181ce96ff164736f6c634300050a0032

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100935760003560e01c80638da5cb5b116100665780638da5cb5b14610110578063a4fd6f561461015a578063f2fde38b1461017c578063fee50359146101c0578063ff61d1a9146101ca57610093565b806308621db8146100985780633e54c123146100c65780637c363988146100e45780637d950a26146100ee575b600080fd5b6100c4600480360360208110156100ae57600080fd5b8101908080359060200190929190505050610222565b005b6100ce610285565b6040518082815260200191505060405180910390f35b6100ec61028b565b005b6100f6610301565b604051808215151515815260200191505060405180910390f35b610118610368565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61016261038d565b604051808215151515815260200191505060405180910390f35b6101be6004803603602081101561019257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103a0565b005b6101c86104f1565b005b61020c600480360360208110156101e057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506105b3565b6040518082815260200191505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461027b57600080fd5b8060018190555050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146102e457600080fd5b6001600260006101000a81548160ff021916908315150217905550565b6000600260009054906101000a900460ff161580156103635750600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054420360015411155b905090565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900460ff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103f957600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561043357600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6104f9610301565b61050257600080fd5b42600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f759d68a0a9880e705858082d6bf7a17a03894588f024b61cc0ea17b1e68807ca3342604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a1565b6003602052806000526040600020600091509050548156fea265627a7a72305820f460b8d5cb64d15a79658456a1456341212d73bff87445ec8e7247181ce96ff164736f6c634300050a0032

Deployed Bytecode Sourcemap

1619:775:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1619:775:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2209:99;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2209:99:0;;;;;;;;;;;;;;;;;:::i;:::-;;1656:32;;;:::i;:::-;;;;;;;;;;;;;;;;;;;2314:75;;;:::i;:::-;;2056:147;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;317:20;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1716:19;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;978:192;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;978:192:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;1872:176;;;:::i;:::-;;1742:45;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1742:45:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;2209:99;775:5;;;;;;;;;;;761:19;;:10;:19;;;753:28;;;;;;2293:7;2278:12;:22;;;;2209:99;:::o;1656:32::-;;;;:::o;2314:75::-;775:5;;;;;;;;;;;761:19;;:10;:19;;;753:28;;;;;;2377:4;2367:7;;:14;;;;;;;;;;;;;;;;;;2314:75::o;2056:147::-;2102:4;2127:7;;;;;;;;;;;2126:8;:68;;;;;2169:13;:25;2183:10;2169:25;;;;;;;;;;;;;;;;2163:3;:31;2147:12;;:47;;2126:68;2118:77;;2056:147;:::o;317:20::-;;;;;;;;;;;;;:::o;1716:19::-;;;;;;;;;;;;;:::o;978:192::-;775:5;;;;;;;;;;;761:19;;:10;:19;;;753:28;;;;;;1079:1;1059:22;;:8;:22;;;;1051:31;;;;;;1126:8;1098:37;;1119:5;;;;;;;;;;;1098:37;;;;;;;;;;;;1154:8;1146:5;;:16;;;;;;;;;;;;;;;;;;978:192;:::o;1872:176::-;1918:15;:13;:15::i;:::-;1910:24;;;;;;1973:15;1945:13;:25;1959:10;1945:25;;;;;;;;;;;;;;;:43;;;;2004:36;2012:10;2024:15;2004:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;1872:176::o;1742:45::-;;;;;;;;;;;;;;;;;:::o

Swarm Source

bzzr://f460b8d5cb64d15a79658456a1456341212d73bff87445ec8e7247181ce96ff1

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.