ETH Price: $3,405.84 (+3.95%)

Contract

0x2C36204fbFB0F7595F0195bCf6ee408a98ec83f1
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve215142952024-12-30 9:08:1118 days ago1735549691IN
0x2C36204f...a98ec83f1
0 ETH0.000217844.69232011
Approve215142872024-12-30 9:06:3518 days ago1735549595IN
0x2C36204f...a98ec83f1
0 ETH0.000227614.90281845
Approve215142692024-12-30 9:02:5918 days ago1735549379IN
0x2C36204f...a98ec83f1
0 ETH0.000201334.33672222
Approve214982672024-12-28 3:26:4720 days ago1735356407IN
0x2C36204f...a98ec83f1
0 ETH0.000186223.98873356
Transfer214982592024-12-28 3:25:1120 days ago1735356311IN
0x2C36204f...a98ec83f1
0 ETH0.000108753.65034341
Transfer214982552024-12-28 3:24:2320 days ago1735356263IN
0x2C36204f...a98ec83f1
0 ETH0.000122054.09678956
Approve214693972024-12-24 2:37:3524 days ago1735007855IN
0x2C36204f...a98ec83f1
0 ETH0.00020067.58684824
Set Random214494402024-12-21 7:37:5927 days ago1734766679IN
0x2C36204f...a98ec83f1
0 ETH0.000163146.78150052
Mint214493272024-12-21 7:15:2327 days ago1734765323IN
0x2C36204f...a98ec83f1
0.002 ETH0.000614658.19731807
Approve214492512024-12-21 7:00:1127 days ago1734764411IN
0x2C36204f...a98ec83f1
0 ETH0.000439089.45793161
Approve214490742024-12-21 6:24:4727 days ago1734762287IN
0x2C36204f...a98ec83f1
0 ETH0.000387028.33646741
Approve214490572024-12-21 6:21:2327 days ago1734762083IN
0x2C36204f...a98ec83f1
0 ETH0.000382498.23900173
Mint214490422024-12-21 6:18:1127 days ago1734761891IN
0x2C36204f...a98ec83f1
0.002 ETH0.000611018.14887166
Mint214490362024-12-21 6:16:5927 days ago1734761819IN
0x2C36204f...a98ec83f1
0.002 ETH0.000689979.20189313
Mint214490262024-12-21 6:14:5927 days ago1734761699IN
0x2C36204f...a98ec83f1
0.002 ETH0.000607128.09698397
Mint214490092024-12-21 6:11:3527 days ago1734761495IN
0x2C36204f...a98ec83f1
0.002 ETH0.000693189.2446212
Approve214490002024-12-21 6:09:4727 days ago1734761387IN
0x2C36204f...a98ec83f1
0 ETH0.000419989
Mint214489942024-12-21 6:08:3527 days ago1734761315IN
0x2C36204f...a98ec83f1
0.002 ETH0.000674839
Mint214489902024-12-21 6:07:4727 days ago1734761267IN
0x2C36204f...a98ec83f1
0.002 ETH0.000723999.65559057
Mint214489782024-12-21 6:05:2327 days ago1734761123IN
0x2C36204f...a98ec83f1
0.002 ETH0.0007850210.46956629
Mint214489652024-12-21 6:02:4727 days ago1734760967IN
0x2C36204f...a98ec83f1
0.002 ETH0.00073489.79978992
Mint214489572024-12-21 6:01:1127 days ago1734760871IN
0x2C36204f...a98ec83f1
0.002 ETH0.000716449.55483401
Mint214489492024-12-21 5:59:3527 days ago1734760775IN
0x2C36204f...a98ec83f1
0.002 ETH0.000644478.59505645
Mint214489432024-12-21 5:58:2327 days ago1734760703IN
0x2C36204f...a98ec83f1
0.002 ETH0.000609438.12777696
Mint214489312024-12-21 5:55:5927 days ago1734760559IN
0x2C36204f...a98ec83f1
0.002 ETH0.000615388.20712761
View all transactions

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
214798522024-12-25 13:41:2323 days ago1735134083
0x2C36204f...a98ec83f1
0.194 ETH
214482162024-12-21 3:30:5927 days ago1734751859
0x2C36204f...a98ec83f1
0.297 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MineDog

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : MineDog.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "./openzeppelin-contracts/contracts/access/Ownable.sol";
import "./openzeppelin-contracts/contracts/token/ERC20/ERC20.sol";

interface IRandom {
    function getRandomNumber(uint256 blockNumber,uint256 lastBlockTime) external view returns (uint256) ;
}

contract MineDog is ERC20, Ownable {
    /// @notice Maximum supply of the token
    uint256 public constant MAX_SUPPLY = 420690000000 * 1 ether;
    uint public constant MINT_AMOUNT = 1000000 * 1 ether;

    /// @notice Block interval for mining
    uint256 public BLOCK_INTERVAL = 2 minutes;

    /// @notice The cost to mine
    uint256 public constant MINE_COST = 0.001 ether;

    /// @notice The mining reward
    uint256 public miningReward = 5000000 * 1 ether; 

    /// @notice The current block number
    uint256 public blockNumber;

    /// @notice The last block time
    uint256 public lastBlockTime;

    /// @notice The halving interval
    uint256 public halvingInterval = 21000; 

    /// @notice The last halving block
    uint256 public lastHalvingBlock;

    /// @notice The fee collector address
    address public feeCollector;
    
    /// @notice The staking interest rate
    uint256 public stakingRate = 13888888888 * 3; // daily interest rate

    /// @notice The address of random
    address public random;

    struct Block {
        address[] miners;
        address selectedMiner;
    }

    /// @notice Whether it has been mint
    mapping(address => bool) public hasMinted;

    /// @notice The blocks data
    mapping(uint256 => Block) public blocks;    

    /// @notice The block of staking
    mapping (address => uint256) atBlock;

    /// @notice The amount of staking
    mapping (address => uint) public stakingAmount; 

    /// @notice Total staking rewards
    mapping (address => uint) public totalRewards; 

    event Mine(uint256 indexed blockNumber, address indexed miner, uint256 mineCounts);
    event NewBlock(uint256 indexed blockNumber, address indexed miner);
    event FeeCollectorSet(address feeCollector);
    event Mint(address indexed miner,uint256 amount);

    event Staking(address indexed sender,uint256 amount); 
    event RedeemStaking(address indexed sender,uint256 amount);
    event ReceiveInterest(address indexed sender,uint256 amount);

    constructor() ERC20("MineDog", "MineDog") Ownable(msg.sender) {
        blocks[0].miners.push(msg.sender);
        blocks[1].miners.push(msg.sender);
        lastBlockTime = block.timestamp;

        emit Mine(0, msg.sender, 1);
        emit Mine(1, msg.sender, 1);
    }

    /**
     * @notice Start mint, only once per new address.
     */
    function mint() public payable{
        if (totalSupply()>= 100000000000 * 1 ether && totalSupply() < 110000000000 * 1 ether && feeCollector != address(0)){
            _mint(feeCollector, MAX_SUPPLY / 10); //Used to add liquidity in uniswap
            return ;
        }

        require(msg.value == MINE_COST * 2, "insufficient mine cost");
        require(totalSupply() + MINT_AMOUNT <= 100000000000 * 1 ether, "Total supply exceeded");
        require(!hasMinted[msg.sender], "Address has already minted");
        require(msg.sender == tx.origin, "Contracts are not allowed to mint");

        hasMinted[msg.sender] = true;
        _mint(msg.sender, MINT_AMOUNT);
        emit Mint(msg.sender,MINT_AMOUNT);
    }

    /**
     * @notice Start mint, only once per new address.
     */
    receive() external payable {
        mint();
    }

    /**
     * @notice Get the miners for a specific block.
     * @param _blockNumber The block number
     * @return The miners
     */
    function minersOfBlock(uint256 _blockNumber) public view returns (address[] memory) {
        return blocks[_blockNumber].miners;
    }

    /**
     * @notice Get the miners for a specific block with a range.
     * @dev This function is not recommended to use for on-chain purposes.
     * @param _blockNumber The block number
     * @param _from The start index
     * @param _to The end index
     * @return The miners
     */
    function minersOfBlockWithRange(uint256 _blockNumber, uint256 _from, uint256 _to)
        public
        view
        returns (address[] memory)
    {
        uint256 count = _to - _from;
        address[] memory miners = new address[](count);
        for (uint256 i = 0; i < count; i++) {
            miners[i] = blocks[_blockNumber].miners[_from + i];
        }
        return miners;
    }

    /**
     * @notice Get the number of miners for a specific block.
     * @param _blockNumber The block number
     * @return The number of miners
     */
    function minersOfBlockCount(uint256 _blockNumber) public view returns (uint256) {
        return blocks[_blockNumber].miners.length;
    }

    /**
     * @notice Get the selected miner for a specific block.
     * @param _blockNumber The block number
     * @return The selected miner
     */
    function selectedMinerOfBlock(uint256 _blockNumber) public view returns (address) {
        return blocks[_blockNumber].selectedMiner;
    }

    /**
     * @notice Get the next halving block.
     * @return The next halving block
     */
    function nextHalvingBlock() public view returns (uint256) {
        return lastHalvingBlock + halvingInterval;
    }

    /**
     * @notice Mines the reward multiple times in the current block.
     * @param mineCounts The number of times to mine
     */
    function mine(uint256 mineCounts) external payable {
        require(msg.value == MINE_COST * mineCounts, "insufficient mine cost");

        uint256 targetBlock = blockNumber + 1;
        for (uint256 i = 0; i < mineCounts;) {
            _mine(msg.sender, targetBlock);

            unchecked {
                i++;
            }
        }

        emit Mine(targetBlock, msg.sender, mineCounts);
    }

    /**
     * @notice Mines the reward multiple times in the future block.
     * @param mineCounts The number of times to mine per block
     * @param blockCounts The number of future blocks to mine
     */
    function futureMine(uint256 mineCounts, uint256 blockCounts) external payable {
        require(msg.value == MINE_COST * mineCounts * blockCounts, "insufficient mine cost");

        // The future mine starts with blockNumber + 2.
        uint256 targetBlock = blockNumber + 2;
        for (uint256 i = 0; i < blockCounts;) {
            for (uint256 j = 0; j < mineCounts;) {
                _mine(msg.sender, targetBlock + i);

                unchecked {
                    j++;
                }
            }

            emit Mine(targetBlock + i, msg.sender, mineCounts);

            unchecked {
                i++;
            }
        }
    }

    /**
     * @notice Sets the fee collector address.
     * @param _feeCollector The fee collector address
     */
    function setFeeCollector(address _feeCollector) external onlyOwner {
        feeCollector = _feeCollector;

        emit FeeCollectorSet(_feeCollector);
    }

    /**
     * @notice Collects the Ether.
     * @param amount The amount of Ether to collect
     */
    function collect(uint256 amount) external {
        require(msg.sender == feeCollector, "only feeCollector can collect");

        (bool sent,) = feeCollector.call{value: amount}("");
        require(sent, "failed to send Ether");
    }

    /**
     * @dev Mines the reward.
     * @param user The user address
     * @param targetBlock The target block number to mine
     */
    function _mine(address user, uint256 targetBlock) private {
        blocks[targetBlock].miners.push(user);

        if (block.timestamp >= lastBlockTime + BLOCK_INTERVAL) {
            // Randomly select a miner to receive the reward.
            address selectedMiner = _selectRandomMiner();

            // Proceed halving check & reward only if the whole supply was not minted yet.
            if (totalSupply() + miningReward <= MAX_SUPPLY) {
                // Mint the reward to the selected miner.
                _mint(selectedMiner, miningReward);
                blocks[targetBlock + 1].miners.push(user);
                emit Mine(targetBlock + 1, msg.sender, 1);
            }

            // Record the selected miner.
            blocks[blockNumber].selectedMiner = selectedMiner;
            emit NewBlock(blockNumber, selectedMiner);

            // Proceed to the next block.
            blockNumber++;
            lastBlockTime = block.timestamp;

            // Check if it's time for halving.
            if (blockNumber >= nextHalvingBlock() && BLOCK_INTERVAL < 8 minutes) {
                BLOCK_INTERVAL = BLOCK_INTERVAL * 2;
                halvingInterval = halvingInterval / 2;
                lastHalvingBlock = blockNumber;
            }    
        }
    }

    /**
     * @dev Selects a random miner from the miners of the previous block.
     * @return The selected miner
     */
    function _selectRandomMiner() private view returns (address) {
        uint256 minerCount = minersOfBlockCount(blockNumber);
        uint256 randomIndex = IRandom(random).getRandomNumber(blockNumber,lastBlockTime) % (minerCount);
        return blocks[blockNumber].miners[randomIndex];
    }

    /**
     * @dev Set The address of random
     */
    function setRandom(address _random) external onlyOwner  {           
        random = _random;
    }

    /**
     * @dev Start staking mining.
     * @param amount Staking amount for mining
     */
    function staking(uint amount) public{
        require(amount >= 0);
        _receiveInterest();
        _transfer(msg.sender,address(this), amount);
        stakingAmount[msg.sender] = stakingAmount[msg.sender] + amount;
        emit Staking(msg.sender, amount); 
      }
      
    /**
     * @dev Redeem Staking Mining.
     * @param amount of redemption
     */
    function redeemStaking(uint amount) public{
        require (amount <= stakingAmount[msg.sender] && amount >= 0) ;
        _receiveInterest();
        stakingAmount[msg.sender] = stakingAmount[msg.sender] - amount;
        _transfer(address(this),msg.sender, amount);
        emit RedeemStaking(msg.sender, amount);
      }

    /**
     * @dev Get interest from staking mining.
     */
    function _receiveInterest() private returns (bool) {        
        if(atBlock[msg.sender]==0){
            atBlock[msg.sender] = block.number;
        }
        uint256 _stakingReward = viewStakingInterest(msg.sender);

        if(atBlock[msg.sender] < block.number && totalSupply() + _stakingReward <= MAX_SUPPLY)
        {
            _mint(msg.sender, _stakingReward);
            atBlock[msg.sender] = block.number;
            totalRewards[msg.sender] = totalRewards[msg.sender] + _stakingReward;
            emit ReceiveInterest(msg.sender, _stakingReward);
        }
        return true;
      }

    /**
     * @dev view the unclaimed interest for staking mining.
     */
    function viewStakingInterest(address _user) public view returns (uint _stakingReward) {
        _stakingReward = stakingAmount[_user] * (block.number - atBlock[_user]) * stakingRate / 10**18;
        return _stakingReward;
    }   

    /**
     * @dev view the total Rewards.
     */
    function viewTotalRewards(address _user) public view returns (uint _totalRewards) {
        return totalRewards[_user];
    } 
}

File 2 of 7 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

    mapping(address account => mapping(address spender => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the default value returned by this function, unless
     * it's overridden.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `value`.
     */
    function transfer(address to, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, value);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, value);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `value`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `value`.
     */
    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, value);
        _transfer(from, to, value);
        return true;
    }

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     * ```
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `value`.
     *
     * Does not update the allowance value in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Does not emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            if (currentAllowance < value) {
                revert ERC20InsufficientAllowance(spender, currentAllowance, value);
            }
            unchecked {
                _approve(owner, spender, currentAllowance - value, false);
            }
        }
    }
}

File 3 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

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

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 7 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

File 5 of 7 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 6 of 7 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 7 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "remappings": []
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"feeCollector","type":"address"}],"name":"FeeCollectorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"blockNumber","type":"uint256"},{"indexed":true,"internalType":"address","name":"miner","type":"address"},{"indexed":false,"internalType":"uint256","name":"mineCounts","type":"uint256"}],"name":"Mine","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"miner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"blockNumber","type":"uint256"},{"indexed":true,"internalType":"address","name":"miner","type":"address"}],"name":"NewBlock","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ReceiveInterest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RedeemStaking","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staking","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BLOCK_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINE_COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blockNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"blocks","outputs":[{"internalType":"address","name":"selectedMiner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"collect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeCollector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mineCounts","type":"uint256"},{"internalType":"uint256","name":"blockCounts","type":"uint256"}],"name":"futureMine","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"halvingInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastBlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastHalvingBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mineCounts","type":"uint256"}],"name":"mine","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_blockNumber","type":"uint256"}],"name":"minersOfBlock","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_blockNumber","type":"uint256"}],"name":"minersOfBlockCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_blockNumber","type":"uint256"},{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"minersOfBlockWithRange","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"miningReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextHalvingBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"random","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"redeemStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_blockNumber","type":"uint256"}],"name":"selectedMinerOfBlock","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_feeCollector","type":"address"}],"name":"setFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_random","type":"address"}],"name":"setRandom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"staking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakingAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"viewStakingInterest","outputs":[{"internalType":"uint256","name":"_stakingReward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"viewTotalRewards","outputs":[{"internalType":"uint256","name":"_totalRewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405260786006556a0422ca8b0a00a425000000600755615208600a556409b386e0a8600d55348015610032575f80fd5b506040805180820182526007808252664d696e65446f6760c81b60208084018290528451808601909552918452908301523391600361007183826102b0565b50600461007e82826102b0565b5050506001600160a01b0381166100ae57604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b7816101c7565b50601060209081527f6e0956cda88cad152e89927e53611735b61a5c762d1428573c6931b0a5efcb01805460018082019092557f657f8d371df3bb80d6f4230d5ee472897682cc2505b8922ed0132bcc13495fe5018054336001600160a01b031991821681179092557f8c6065603763fec3f5742441d3833f3f43b982453612d76adb39a885e3006b5f805480850182555f9182527f06b560bfabc26ec993672a10b709f09713733f902ee8e2da7d405c653b386450018054909216831790915542600955604051928352909290915f80516020611f16833981519152910160405180910390a3604051600180825233915f80516020611f168339815191529060200160405180910390a361036a565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061024057607f821691505b60208210810361025e57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156102ab57805f5260205f20601f840160051c810160208510156102895750805b601f840160051c820191505b818110156102a8575f8155600101610295565b50505b505050565b81516001600160401b038111156102c9576102c9610218565b6102dd816102d7845461022c565b84610264565b6020601f82116001811461030f575f83156102f85750848201515b5f19600385901b1c1916600184901b1784556102a8565b5f84815260208120601f198516915b8281101561033e578785015182556020948501946001909201910161031e565b508482101561035b57868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b611b9f806103775f395ff3fe608060405260043610610257575f3560e01c8063714b82461161013f578063c415b95c116100b3578063ce3f865f11610078578063ce3f865f146106f0578063d743041e1461070f578063dd62ed3e14610729578063e8f7b1ee1461076d578063f25b3f9914610798578063f2fde38b146107cf575f80fd5b8063c415b95c14610669578063c6395e2514610688578063c63a6ad2146106a7578063c85ea4ec146106bc578063ca9c0bad146106d1575f80fd5b806395d89b411161010457806395d89b41146105a2578063a412c493146105b6578063a42dce80146105d5578063a84edc08146105f4578063a9059cbb1461061f578063ab7573dd1461063e575f80fd5b8063714b82461461051c578063715018a614610530578063724b2f5a1461054457806380f92972146105595780638da5cb5b14610585575f80fd5b806338e21cce116101d65780635427789c1161019b5780635427789c1461043357806357e871e7146104505780635ec01e4d146104655780636a47aa061461049c5780636db7ebb6146104b157806370a08231146104e8575f80fd5b806338e21cce1461038a5780633f823bfa146103b85780634ac2d103146103ec5780634d474898146104015780635165534714610414575f80fd5b806323b872dd1161021c57806323b872dd14610308578063313ce5671461032757806332cb6b0c1461034257806335c4377b1461036257806338885ac114610377575f80fd5b806306fdde031461026a578063095ea7b3146102945780631249c58b146102c357806318160ddd146102cb5780631dbb2a22146102e9575f80fd5b36610266576102646107ee565b005b5f80fd5b348015610275575f80fd5b5061027e610a42565b60405161028b9190611871565b60405180910390f35b34801561029f575f80fd5b506102b36102ae3660046118c1565b610ad2565b604051901515815260200161028b565b6102646107ee565b3480156102d6575f80fd5b506002545b60405190815260200161028b565b3480156102f4575f80fd5b506102646103033660046118e9565b610aeb565b348015610313575f80fd5b506102b3610322366004611900565b610b69565b348015610332575f80fd5b506040516012815260200161028b565b34801561034d575f80fd5b506102db6c054f529ca52576bc689200000081565b34801561036d575f80fd5b506102db60065481565b61026461038536600461193a565b610b8c565b348015610395575f80fd5b506102b36103a436600461195a565b600f6020525f908152604090205460ff1681565b3480156103c3575f80fd5b506102db6103d236600461195a565b6001600160a01b03165f9081526013602052604090205490565b3480156103f7575f80fd5b506102db60075481565b61026461040f3660046118e9565b610c54565b34801561041f575f80fd5b5061026461042e3660046118e9565b610ced565b34801561043e575f80fd5b506102db69d3c21bcecceda100000081565b34801561045b575f80fd5b506102db60085481565b348015610470575f80fd5b50600e54610484906001600160a01b031681565b6040516001600160a01b03909116815260200161028b565b3480156104a7575f80fd5b506102db600a5481565b3480156104bc575f80fd5b506104846104cb3660046118e9565b5f908152601060205260409020600101546001600160a01b031690565b3480156104f3575f80fd5b506102db61050236600461195a565b6001600160a01b03165f9081526020819052604090205490565b348015610527575f80fd5b506102db610d84565b34801561053b575f80fd5b50610264610d9a565b34801561054f575f80fd5b506102db600b5481565b348015610564575f80fd5b5061057861057336600461197a565b610dab565b60405161028b91906119a3565b348015610590575f80fd5b506005546001600160a01b0316610484565b3480156105ad575f80fd5b5061027e610e88565b3480156105c1575f80fd5b506105786105d03660046118e9565b610e97565b3480156105e0575f80fd5b506102646105ef36600461195a565b610f00565b3480156105ff575f80fd5b506102db61060e3660046118e9565b5f9081526010602052604090205490565b34801561062a575f80fd5b506102b36106393660046118c1565b610f5c565b348015610649575f80fd5b506102db61065836600461195a565b60136020525f908152604090205481565b348015610674575f80fd5b50600c54610484906001600160a01b031681565b348015610693575f80fd5b506102db6106a236600461195a565b610f69565b3480156106b2575f80fd5b506102db600d5481565b3480156106c7575f80fd5b506102db60095481565b3480156106dc575f80fd5b506102646106eb36600461195a565b610fd0565b3480156106fb575f80fd5b5061026461070a3660046118e9565b610ffa565b34801561071a575f80fd5b506102db66038d7ea4c6800081565b348015610734575f80fd5b506102db6107433660046119ee565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b348015610778575f80fd5b506102db61078736600461195a565b60126020525f908152604090205481565b3480156107a3575f80fd5b506104846107b23660046118e9565b60106020525f90815260409020600101546001600160a01b031681565b3480156107da575f80fd5b506102646107e936600461195a565b6110ef565b6c01431e0fae6d7217caa000000061080560025490565b1015801561082757506c01636dde0cab971a2bb000000061082560025490565b105b801561083d5750600c546001600160a01b031615155b1561087157600c5461086f906001600160a01b031661086a600a6c054f529ca52576bc6892000000611a47565b61112c565b565b61088366038d7ea4c680006002611a5a565b34146108aa5760405162461bcd60e51b81526004016108a190611a71565b60405180910390fd5b6c01431e0fae6d7217caa000000069d3c21bcecceda10000006108cc60025490565b6108d69190611aa1565b111561091c5760405162461bcd60e51b8152602060048201526015602482015274151bdd185b081cdd5c1c1b1e48195e18d959591959605a1b60448201526064016108a1565b335f908152600f602052604090205460ff161561097b5760405162461bcd60e51b815260206004820152601a60248201527f416464726573732068617320616c7265616479206d696e74656400000000000060448201526064016108a1565b3332146109d45760405162461bcd60e51b815260206004820152602160248201527f436f6e74726163747320617265206e6f7420616c6c6f77656420746f206d696e6044820152601d60fa1b60648201526084016108a1565b335f818152600f60205260409020805460ff19166001179055610a019069d3c21bcecceda100000061112c565b60405169d3c21bcecceda1000000815233907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859060200160405180910390a2565b606060038054610a5190611ab4565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7d90611ab4565b8015610ac85780601f10610a9f57610100808354040283529160200191610ac8565b820191905f5260205f20905b815481529060010190602001808311610aab57829003601f168201915b5050505050905090565b5f33610adf818585611160565b60019150505b92915050565b610af3611172565b50610aff33308361126f565b335f90815260126020526040902054610b19908290611aa1565b335f81815260126020526040908190209290925590517fb831f69f1cebc12b23cd864ce5bfea2669d01956050a0147d71d418074559c2190610b5e9084815260200190565b60405180910390a250565b5f33610b768582856112cc565b610b8185858561126f565b506001949350505050565b80610b9e8366038d7ea4c68000611a5a565b610ba89190611a5a565b3414610bc65760405162461bcd60e51b81526004016108a190611a71565b5f6008546002610bd69190611aa1565b90505f5b82811015610c4e575f5b84811015610c0757610bff33610bfa8486611aa1565b611341565b600101610be4565b5033610c138284611aa1565b6040518681527f6624a09eb96dea85bd37279bab3c70e7198a4bf6a00a69c9361c5b3d85e560899060200160405180910390a3600101610bda565b50505050565b610c658166038d7ea4c68000611a5a565b3414610c835760405162461bcd60e51b81526004016108a190611a71565b5f6008546001610c939190611aa1565b90505f5b82811015610cb157610ca93383611341565b600101610c97565b50604051828152339082907f6624a09eb96dea85bd37279bab3c70e7198a4bf6a00a69c9361c5b3d85e560899060200160405180910390a35050565b335f908152601260205260409020548111801590610d09575060015b610d11575f80fd5b610d19611172565b50335f90815260126020526040902054610d34908290611aec565b335f81815260126020526040902091909155610d529030908361126f565b60405181815233907ffcf66a2b9224d2fbbc5f69cc97ccc57112fc88d5984d45948d3f5d6790171fe590602001610b5e565b5f600a54600b54610d959190611aa1565b905090565b610da261151c565b61086f5f611549565b60605f610db88484611aec565b90505f8167ffffffffffffffff811115610dd457610dd4611aff565b604051908082528060200260200182016040528015610dfd578160200160208202803683370190505b5090505f5b82811015610e7e575f878152601060205260409020610e218288611aa1565b81548110610e3157610e31611b13565b905f5260205f20015f9054906101000a90046001600160a01b0316828281518110610e5e57610e5e611b13565b6001600160a01b0390921660209283029190910190910152600101610e02565b5095945050505050565b606060048054610a5190611ab4565b5f81815260106020908152604091829020805483518184028101840190945280845260609392830182828015610ef457602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610ed6575b50505050509050919050565b610f0861151c565b600c80546001600160a01b0319166001600160a01b0383169081179091556040519081527f12e1d17016b94668449f97876f4a8d5cc2c19f314db337418894734037cc19d49060200160405180910390a150565b5f33610adf81858561126f565b600d546001600160a01b0382165f908152601160205260408120549091670de0b6b3a764000091610f9a9043611aec565b6001600160a01b0385165f90815260126020526040902054610fbc9190611a5a565b610fc69190611a5a565b610ae59190611a47565b610fd861151c565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b600c546001600160a01b031633146110545760405162461bcd60e51b815260206004820152601d60248201527f6f6e6c7920666565436f6c6c6563746f722063616e20636f6c6c65637400000060448201526064016108a1565b600c546040515f916001600160a01b03169083908381818185875af1925050503d805f811461109e576040519150601f19603f3d011682016040523d82523d5f602084013e6110a3565b606091505b50509050806110eb5760405162461bcd60e51b81526020600482015260146024820152733330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064016108a1565b5050565b6110f761151c565b6001600160a01b03811661112057604051631e4fbdf760e01b81525f60048201526024016108a1565b61112981611549565b50565b6001600160a01b0382166111555760405163ec442f0560e01b81525f60048201526024016108a1565b6110eb5f838361159a565b61116d83838360016116c0565b505050565b335f90815260116020526040812054810361119957335f9081526011602052604090204390555b5f6111a333610f69565b335f90815260116020526040902054909150431180156111e357506c054f529ca52576bc6892000000816111d660025490565b6111e09190611aa1565b11155b15611267576111f2338261112c565b335f9081526011602090815260408083204390556013909152902054611219908290611aa1565b335f81815260136020526040908190209290925590517f775a28ed323afff28235547894af27c60c6033d06a0c606912305dcb4f6312189061125e9084815260200190565b60405180910390a25b600191505090565b6001600160a01b03831661129857604051634b637e8f60e11b81525f60048201526024016108a1565b6001600160a01b0382166112c15760405163ec442f0560e01b81525f60048201526024016108a1565b61116d83838361159a565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610c4e578181101561133357604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016108a1565b610c4e84848484035f6116c0565b5f8181526010602090815260408220805460018101825590835291200180546001600160a01b0319166001600160a01b0384161790556006546009546113879190611aa1565b42106110eb575f611396611792565b90506c054f529ca52576bc68920000006007546113b260025490565b6113bc9190611aa1565b1161145b576113cd8160075461112c565b60105f6113db846001611aa1565b81526020808201929092526040015f9081208054600180820183559183529290912090910180546001600160a01b0319166001600160a01b0386161790553390611426908490611aa1565b604051600181527f6624a09eb96dea85bd37279bab3c70e7198a4bf6a00a69c9361c5b3d85e560899060200160405180910390a35b600880545f9081526010602052604080822060010180546001600160a01b0319166001600160a01b0386169081179091559254905190917f58ab9d8b9ae9ad7e2baee835f3d3fe920b93baf574a51df42c0390491f7297e991a360088054905f6114c483611b27565b9091555050426009556114d5610d84565b600854101580156114e957506101e0600654105b1561116d576006546114fc906002611a5a565b600655600a5461150e90600290611a47565b600a55600854600b55505050565b6005546001600160a01b0316331461086f5760405163118cdaa760e01b81523360048201526024016108a1565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0383166115c4578060025f8282546115b99190611aa1565b909155506116349050565b6001600160a01b0383165f90815260208190526040902054818110156116165760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016108a1565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166116505760028054829003905561166e565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516116b391815260200190565b60405180910390a3505050565b6001600160a01b0384166116e95760405163e602df0560e01b81525f60048201526024016108a1565b6001600160a01b03831661171257604051634a1406b160e11b81525f60048201526024016108a1565b6001600160a01b038085165f9081526001602090815260408083209387168352929052208290558015610c4e57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161178491815260200190565b60405180910390a350505050565b6008545f908152601060205260408120548190600e546008546009546040516337347e0560e11b81529394505f9385936001600160a01b031692636e68fc0a926117e792600401918252602082015260400190565b602060405180830381865afa158015611802573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118269190611b3f565b6118309190611b56565b6008545f9081526010602052604090208054919250908290811061185657611856611b13565b5f918252602090912001546001600160a01b03169392505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b03811681146118bc575f80fd5b919050565b5f80604083850312156118d2575f80fd5b6118db836118a6565b946020939093013593505050565b5f602082840312156118f9575f80fd5b5035919050565b5f805f60608486031215611912575f80fd5b61191b846118a6565b9250611929602085016118a6565b929592945050506040919091013590565b5f806040838503121561194b575f80fd5b50508035926020909101359150565b5f6020828403121561196a575f80fd5b611973826118a6565b9392505050565b5f805f6060848603121561198c575f80fd5b505081359360208301359350604090920135919050565b602080825282518282018190525f918401906040840190835b818110156119e35783516001600160a01b03168352602093840193909201916001016119bc565b509095945050505050565b5f80604083850312156119ff575f80fd5b611a08836118a6565b9150611a16602084016118a6565b90509250929050565b634e487b7160e01b5f52601260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b5f82611a5557611a55611a1f565b500490565b8082028115828204841417610ae557610ae5611a33565b6020808252601690820152751a5b9cdd59999a58da595b9d081b5a5b994818dbdcdd60521b604082015260600190565b80820180821115610ae557610ae5611a33565b600181811c90821680611ac857607f821691505b602082108103611ae657634e487b7160e01b5f52602260045260245ffd5b50919050565b81810381811115610ae557610ae5611a33565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b5f60018201611b3857611b38611a33565b5060010190565b5f60208284031215611b4f575f80fd5b5051919050565b5f82611b6457611b64611a1f565b50069056fea264697066735822122006c32878cb7ad0a42c7bee4134999b9ec3ba994a49e31a89580c9f2c628037c664736f6c634300081a00336624a09eb96dea85bd37279bab3c70e7198a4bf6a00a69c9361c5b3d85e56089

Deployed Bytecode

0x608060405260043610610257575f3560e01c8063714b82461161013f578063c415b95c116100b3578063ce3f865f11610078578063ce3f865f146106f0578063d743041e1461070f578063dd62ed3e14610729578063e8f7b1ee1461076d578063f25b3f9914610798578063f2fde38b146107cf575f80fd5b8063c415b95c14610669578063c6395e2514610688578063c63a6ad2146106a7578063c85ea4ec146106bc578063ca9c0bad146106d1575f80fd5b806395d89b411161010457806395d89b41146105a2578063a412c493146105b6578063a42dce80146105d5578063a84edc08146105f4578063a9059cbb1461061f578063ab7573dd1461063e575f80fd5b8063714b82461461051c578063715018a614610530578063724b2f5a1461054457806380f92972146105595780638da5cb5b14610585575f80fd5b806338e21cce116101d65780635427789c1161019b5780635427789c1461043357806357e871e7146104505780635ec01e4d146104655780636a47aa061461049c5780636db7ebb6146104b157806370a08231146104e8575f80fd5b806338e21cce1461038a5780633f823bfa146103b85780634ac2d103146103ec5780634d474898146104015780635165534714610414575f80fd5b806323b872dd1161021c57806323b872dd14610308578063313ce5671461032757806332cb6b0c1461034257806335c4377b1461036257806338885ac114610377575f80fd5b806306fdde031461026a578063095ea7b3146102945780631249c58b146102c357806318160ddd146102cb5780631dbb2a22146102e9575f80fd5b36610266576102646107ee565b005b5f80fd5b348015610275575f80fd5b5061027e610a42565b60405161028b9190611871565b60405180910390f35b34801561029f575f80fd5b506102b36102ae3660046118c1565b610ad2565b604051901515815260200161028b565b6102646107ee565b3480156102d6575f80fd5b506002545b60405190815260200161028b565b3480156102f4575f80fd5b506102646103033660046118e9565b610aeb565b348015610313575f80fd5b506102b3610322366004611900565b610b69565b348015610332575f80fd5b506040516012815260200161028b565b34801561034d575f80fd5b506102db6c054f529ca52576bc689200000081565b34801561036d575f80fd5b506102db60065481565b61026461038536600461193a565b610b8c565b348015610395575f80fd5b506102b36103a436600461195a565b600f6020525f908152604090205460ff1681565b3480156103c3575f80fd5b506102db6103d236600461195a565b6001600160a01b03165f9081526013602052604090205490565b3480156103f7575f80fd5b506102db60075481565b61026461040f3660046118e9565b610c54565b34801561041f575f80fd5b5061026461042e3660046118e9565b610ced565b34801561043e575f80fd5b506102db69d3c21bcecceda100000081565b34801561045b575f80fd5b506102db60085481565b348015610470575f80fd5b50600e54610484906001600160a01b031681565b6040516001600160a01b03909116815260200161028b565b3480156104a7575f80fd5b506102db600a5481565b3480156104bc575f80fd5b506104846104cb3660046118e9565b5f908152601060205260409020600101546001600160a01b031690565b3480156104f3575f80fd5b506102db61050236600461195a565b6001600160a01b03165f9081526020819052604090205490565b348015610527575f80fd5b506102db610d84565b34801561053b575f80fd5b50610264610d9a565b34801561054f575f80fd5b506102db600b5481565b348015610564575f80fd5b5061057861057336600461197a565b610dab565b60405161028b91906119a3565b348015610590575f80fd5b506005546001600160a01b0316610484565b3480156105ad575f80fd5b5061027e610e88565b3480156105c1575f80fd5b506105786105d03660046118e9565b610e97565b3480156105e0575f80fd5b506102646105ef36600461195a565b610f00565b3480156105ff575f80fd5b506102db61060e3660046118e9565b5f9081526010602052604090205490565b34801561062a575f80fd5b506102b36106393660046118c1565b610f5c565b348015610649575f80fd5b506102db61065836600461195a565b60136020525f908152604090205481565b348015610674575f80fd5b50600c54610484906001600160a01b031681565b348015610693575f80fd5b506102db6106a236600461195a565b610f69565b3480156106b2575f80fd5b506102db600d5481565b3480156106c7575f80fd5b506102db60095481565b3480156106dc575f80fd5b506102646106eb36600461195a565b610fd0565b3480156106fb575f80fd5b5061026461070a3660046118e9565b610ffa565b34801561071a575f80fd5b506102db66038d7ea4c6800081565b348015610734575f80fd5b506102db6107433660046119ee565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b348015610778575f80fd5b506102db61078736600461195a565b60126020525f908152604090205481565b3480156107a3575f80fd5b506104846107b23660046118e9565b60106020525f90815260409020600101546001600160a01b031681565b3480156107da575f80fd5b506102646107e936600461195a565b6110ef565b6c01431e0fae6d7217caa000000061080560025490565b1015801561082757506c01636dde0cab971a2bb000000061082560025490565b105b801561083d5750600c546001600160a01b031615155b1561087157600c5461086f906001600160a01b031661086a600a6c054f529ca52576bc6892000000611a47565b61112c565b565b61088366038d7ea4c680006002611a5a565b34146108aa5760405162461bcd60e51b81526004016108a190611a71565b60405180910390fd5b6c01431e0fae6d7217caa000000069d3c21bcecceda10000006108cc60025490565b6108d69190611aa1565b111561091c5760405162461bcd60e51b8152602060048201526015602482015274151bdd185b081cdd5c1c1b1e48195e18d959591959605a1b60448201526064016108a1565b335f908152600f602052604090205460ff161561097b5760405162461bcd60e51b815260206004820152601a60248201527f416464726573732068617320616c7265616479206d696e74656400000000000060448201526064016108a1565b3332146109d45760405162461bcd60e51b815260206004820152602160248201527f436f6e74726163747320617265206e6f7420616c6c6f77656420746f206d696e6044820152601d60fa1b60648201526084016108a1565b335f818152600f60205260409020805460ff19166001179055610a019069d3c21bcecceda100000061112c565b60405169d3c21bcecceda1000000815233907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859060200160405180910390a2565b606060038054610a5190611ab4565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7d90611ab4565b8015610ac85780601f10610a9f57610100808354040283529160200191610ac8565b820191905f5260205f20905b815481529060010190602001808311610aab57829003601f168201915b5050505050905090565b5f33610adf818585611160565b60019150505b92915050565b610af3611172565b50610aff33308361126f565b335f90815260126020526040902054610b19908290611aa1565b335f81815260126020526040908190209290925590517fb831f69f1cebc12b23cd864ce5bfea2669d01956050a0147d71d418074559c2190610b5e9084815260200190565b60405180910390a250565b5f33610b768582856112cc565b610b8185858561126f565b506001949350505050565b80610b9e8366038d7ea4c68000611a5a565b610ba89190611a5a565b3414610bc65760405162461bcd60e51b81526004016108a190611a71565b5f6008546002610bd69190611aa1565b90505f5b82811015610c4e575f5b84811015610c0757610bff33610bfa8486611aa1565b611341565b600101610be4565b5033610c138284611aa1565b6040518681527f6624a09eb96dea85bd37279bab3c70e7198a4bf6a00a69c9361c5b3d85e560899060200160405180910390a3600101610bda565b50505050565b610c658166038d7ea4c68000611a5a565b3414610c835760405162461bcd60e51b81526004016108a190611a71565b5f6008546001610c939190611aa1565b90505f5b82811015610cb157610ca93383611341565b600101610c97565b50604051828152339082907f6624a09eb96dea85bd37279bab3c70e7198a4bf6a00a69c9361c5b3d85e560899060200160405180910390a35050565b335f908152601260205260409020548111801590610d09575060015b610d11575f80fd5b610d19611172565b50335f90815260126020526040902054610d34908290611aec565b335f81815260126020526040902091909155610d529030908361126f565b60405181815233907ffcf66a2b9224d2fbbc5f69cc97ccc57112fc88d5984d45948d3f5d6790171fe590602001610b5e565b5f600a54600b54610d959190611aa1565b905090565b610da261151c565b61086f5f611549565b60605f610db88484611aec565b90505f8167ffffffffffffffff811115610dd457610dd4611aff565b604051908082528060200260200182016040528015610dfd578160200160208202803683370190505b5090505f5b82811015610e7e575f878152601060205260409020610e218288611aa1565b81548110610e3157610e31611b13565b905f5260205f20015f9054906101000a90046001600160a01b0316828281518110610e5e57610e5e611b13565b6001600160a01b0390921660209283029190910190910152600101610e02565b5095945050505050565b606060048054610a5190611ab4565b5f81815260106020908152604091829020805483518184028101840190945280845260609392830182828015610ef457602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610ed6575b50505050509050919050565b610f0861151c565b600c80546001600160a01b0319166001600160a01b0383169081179091556040519081527f12e1d17016b94668449f97876f4a8d5cc2c19f314db337418894734037cc19d49060200160405180910390a150565b5f33610adf81858561126f565b600d546001600160a01b0382165f908152601160205260408120549091670de0b6b3a764000091610f9a9043611aec565b6001600160a01b0385165f90815260126020526040902054610fbc9190611a5a565b610fc69190611a5a565b610ae59190611a47565b610fd861151c565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b600c546001600160a01b031633146110545760405162461bcd60e51b815260206004820152601d60248201527f6f6e6c7920666565436f6c6c6563746f722063616e20636f6c6c65637400000060448201526064016108a1565b600c546040515f916001600160a01b03169083908381818185875af1925050503d805f811461109e576040519150601f19603f3d011682016040523d82523d5f602084013e6110a3565b606091505b50509050806110eb5760405162461bcd60e51b81526020600482015260146024820152733330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064016108a1565b5050565b6110f761151c565b6001600160a01b03811661112057604051631e4fbdf760e01b81525f60048201526024016108a1565b61112981611549565b50565b6001600160a01b0382166111555760405163ec442f0560e01b81525f60048201526024016108a1565b6110eb5f838361159a565b61116d83838360016116c0565b505050565b335f90815260116020526040812054810361119957335f9081526011602052604090204390555b5f6111a333610f69565b335f90815260116020526040902054909150431180156111e357506c054f529ca52576bc6892000000816111d660025490565b6111e09190611aa1565b11155b15611267576111f2338261112c565b335f9081526011602090815260408083204390556013909152902054611219908290611aa1565b335f81815260136020526040908190209290925590517f775a28ed323afff28235547894af27c60c6033d06a0c606912305dcb4f6312189061125e9084815260200190565b60405180910390a25b600191505090565b6001600160a01b03831661129857604051634b637e8f60e11b81525f60048201526024016108a1565b6001600160a01b0382166112c15760405163ec442f0560e01b81525f60048201526024016108a1565b61116d83838361159a565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610c4e578181101561133357604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016108a1565b610c4e84848484035f6116c0565b5f8181526010602090815260408220805460018101825590835291200180546001600160a01b0319166001600160a01b0384161790556006546009546113879190611aa1565b42106110eb575f611396611792565b90506c054f529ca52576bc68920000006007546113b260025490565b6113bc9190611aa1565b1161145b576113cd8160075461112c565b60105f6113db846001611aa1565b81526020808201929092526040015f9081208054600180820183559183529290912090910180546001600160a01b0319166001600160a01b0386161790553390611426908490611aa1565b604051600181527f6624a09eb96dea85bd37279bab3c70e7198a4bf6a00a69c9361c5b3d85e560899060200160405180910390a35b600880545f9081526010602052604080822060010180546001600160a01b0319166001600160a01b0386169081179091559254905190917f58ab9d8b9ae9ad7e2baee835f3d3fe920b93baf574a51df42c0390491f7297e991a360088054905f6114c483611b27565b9091555050426009556114d5610d84565b600854101580156114e957506101e0600654105b1561116d576006546114fc906002611a5a565b600655600a5461150e90600290611a47565b600a55600854600b55505050565b6005546001600160a01b0316331461086f5760405163118cdaa760e01b81523360048201526024016108a1565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0383166115c4578060025f8282546115b99190611aa1565b909155506116349050565b6001600160a01b0383165f90815260208190526040902054818110156116165760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016108a1565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166116505760028054829003905561166e565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516116b391815260200190565b60405180910390a3505050565b6001600160a01b0384166116e95760405163e602df0560e01b81525f60048201526024016108a1565b6001600160a01b03831661171257604051634a1406b160e11b81525f60048201526024016108a1565b6001600160a01b038085165f9081526001602090815260408083209387168352929052208290558015610c4e57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161178491815260200190565b60405180910390a350505050565b6008545f908152601060205260408120548190600e546008546009546040516337347e0560e11b81529394505f9385936001600160a01b031692636e68fc0a926117e792600401918252602082015260400190565b602060405180830381865afa158015611802573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118269190611b3f565b6118309190611b56565b6008545f9081526010602052604090208054919250908290811061185657611856611b13565b5f918252602090912001546001600160a01b03169392505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b03811681146118bc575f80fd5b919050565b5f80604083850312156118d2575f80fd5b6118db836118a6565b946020939093013593505050565b5f602082840312156118f9575f80fd5b5035919050565b5f805f60608486031215611912575f80fd5b61191b846118a6565b9250611929602085016118a6565b929592945050506040919091013590565b5f806040838503121561194b575f80fd5b50508035926020909101359150565b5f6020828403121561196a575f80fd5b611973826118a6565b9392505050565b5f805f6060848603121561198c575f80fd5b505081359360208301359350604090920135919050565b602080825282518282018190525f918401906040840190835b818110156119e35783516001600160a01b03168352602093840193909201916001016119bc565b509095945050505050565b5f80604083850312156119ff575f80fd5b611a08836118a6565b9150611a16602084016118a6565b90509250929050565b634e487b7160e01b5f52601260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b5f82611a5557611a55611a1f565b500490565b8082028115828204841417610ae557610ae5611a33565b6020808252601690820152751a5b9cdd59999a58da595b9d081b5a5b994818dbdcdd60521b604082015260600190565b80820180821115610ae557610ae5611a33565b600181811c90821680611ac857607f821691505b602082108103611ae657634e487b7160e01b5f52602260045260245ffd5b50919050565b81810381811115610ae557610ae5611a33565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b5f60018201611b3857611b38611a33565b5060010190565b5f60208284031215611b4f575f80fd5b5051919050565b5f82611b6457611b64611a1f565b50069056fea264697066735822122006c32878cb7ad0a42c7bee4134999b9ec3ba994a49e31a89580c9f2c628037c664736f6c634300081a0033

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  ]
[ 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.