ETH Price: $3,467.37 (+0.77%)
Gas: 5 Gwei

Contract

0x22c5543d1a35178cB03b33f929A959145E538532
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

TokenTracker

WastedLands (WAL) (@$0.0001)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve191438842024-02-02 23:08:59172 days ago1706915339IN
The Wasted Lands: WAL Token
0 ETH0.0006849714.78244616
Transfer190783632024-01-24 18:44:23181 days ago1706121863IN
The Wasted Lands: WAL Token
0 ETH0.0009111114.53598402
Approve190460262024-01-20 5:37:11186 days ago1705729031IN
The Wasted Lands: WAL Token
0 ETH0.0006451113.92224247
Approve190014342024-01-14 0:05:35192 days ago1705190735IN
The Wasted Lands: WAL Token
0 ETH0.000686414.81338082
Approve190003282024-01-13 20:23:11192 days ago1705177391IN
The Wasted Lands: WAL Token
0 ETH0.0006861414.80769245
Approve189976582024-01-13 11:25:35193 days ago1705145135IN
The Wasted Lands: WAL Token
0 ETH0.0006572714.18457399
Approve189886212024-01-12 5:05:59194 days ago1705035959IN
The Wasted Lands: WAL Token
0 ETH0.0006897514.88553599
Approve189519172024-01-07 1:17:59199 days ago1704590279IN
The Wasted Lands: WAL Token
0 ETH0.0005503411.8769346
Approve189518452024-01-07 1:03:35199 days ago1704589415IN
The Wasted Lands: WAL Token
0 ETH0.0005569912.02050179
Approve189515592024-01-07 0:04:23199 days ago1704585863IN
The Wasted Lands: WAL Token
0 ETH0.0006500314.02845124
Approve189513942024-01-06 23:30:47199 days ago1704583847IN
The Wasted Lands: WAL Token
0 ETH0.0006858714.80187603
Approve189513922024-01-06 23:30:23199 days ago1704583823IN
The Wasted Lands: WAL Token
0 ETH0.0006343413.68981254
Approve189512082024-01-06 22:52:47199 days ago1704581567IN
The Wasted Lands: WAL Token
0 ETH0.0006414213.8426092
Approve189509392024-01-06 21:57:11199 days ago1704578231IN
The Wasted Lands: WAL Token
0 ETH0.0005947312.83508515
Approve189509362024-01-06 21:56:35199 days ago1704578195IN
The Wasted Lands: WAL Token
0 ETH0.000639513.80108788
Approve189509002024-01-06 21:48:59199 days ago1704577739IN
The Wasted Lands: WAL Token
0 ETH0.0006982815.06971488
Transfer187718162023-12-12 18:13:23224 days ago1702404803IN
The Wasted Lands: WAL Token
0 ETH0.003305548.99373209
Approve184553292023-10-29 10:45:11269 days ago1698576311IN
The Wasted Lands: WAL Token
0 ETH0.000240789.88744433
Approve184553292023-10-29 10:45:11269 days ago1698576311IN
The Wasted Lands: WAL Token
0 ETH0.000240789.88744433
Transfer181462582023-09-16 4:10:47312 days ago1694837447IN
The Wasted Lands: WAL Token
0 ETH0.0010510316.76821306
Transfer180959232023-09-09 2:41:11319 days ago1694227271IN
The Wasted Lands: WAL Token
0 ETH0.0007026911.21078378
Approve179890602023-08-25 3:34:35334 days ago1692934475IN
The Wasted Lands: WAL Token
0 ETH0.0011173923.9903532
Transfer178178652023-08-01 4:48:35358 days ago1690865315IN
The Wasted Lands: WAL Token
0 ETH0.0010180116.24141102
Transfer178131872023-07-31 13:07:47359 days ago1690808867IN
The Wasted Lands: WAL Token
0 ETH0.0025681540.97248707
Approve173639312023-05-29 10:03:35422 days ago1685354615IN
The Wasted Lands: WAL Token
0 ETH0.0015175832.58238298
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WastedLandsETH

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : WastedLandsETH.sol
//SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";

import "./utils/TokenWithdrawable.sol";

contract WastedLandsETH is Context, IERC20, TokenWithdrawable, AccessControl {
    using SafeMath for uint256;

    event Blacklist(address indexed user, bool value);
    event ExceptionAddress(address indexed user, bool value);
    event RouterAddresses(address addrRouter, bool value);
    event BurnFund(uint256 amount);
    event TransferToBurnFund(uint256 amount);
    event BurnSwapFund(uint256 amount);

    uint256 private constant PERCENT = 100;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    mapping(address => uint256) private _balances;
    mapping(address => mapping(address => uint256)) private _allowances;

    mapping(address => bool) public blacklist;
    mapping(address => bool) public routerAddresses;
    mapping(address => bool) public exceptionAddress;

    uint256 private _totalSupply;
    uint256 public maxAmountPerTx;

    bool public paused = false;
    uint256 public swapFee;
    bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE");
    bytes32 public constant CONTROLLER_ROLE = keccak256("CONTROLLER_ROLE");

    constructor() {
        _name = "WastedLands";
        _symbol = "WAL";
        _totalSupply = 0;
        _balances[_msgSender()] = _totalSupply;
        _decimals = 18;

        maxAmountPerTx = 100 * 10**3 * 10**18;
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        emit Transfer(address(0), _msgSender(), _totalSupply);
    }

    function name() public view returns (string memory) {
        return _name;
    }

    function symbol() public view returns (string memory) {
        return _symbol;
    }

    function decimals() public view returns (uint8) {
        return _decimals;
    }

    function totalSupply() public view override returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view override returns (uint256) {
        return _balances[account];
    }

    function mint(address account, uint256 amount)
        external
        onlyRole(OPERATOR_ROLE)
    {
        _mint(account, amount);
    }

    function approve(address spender, uint256 amount)
        public
        override
        returns (bool)
    {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    function transfer(address recipient, uint256 amount)
        public
        override
        returns (bool)
    {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(
            sender,
            _msgSender(),
            _allowances[sender][_msgSender()].sub(
                amount,
                "ERC20: transfer amount exceeds allowance"
            )
        );
        return true;
    }

    function transferToBurnFund(uint256 amount)
        public
        onlyRole(CONTROLLER_ROLE)
        returns (bool)
    {
        _transfer(_msgSender(), address(this), amount);
        burnFund = burnFund.add(amount);
        emit TransferToBurnFund(amount);
        return true;
    }

    function allowance(address owner, address spender)
        public
        view
        override
        returns (uint256)
    {
        return _allowances[owner][spender];
    }

    function increaseAllowance(address spender, uint256 addedValue)
        public
        virtual
        returns (bool)
    {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender].add(addedValue)
        );
        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue)
        public
        virtual
        returns (bool)
    {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender].sub(
                subtractedValue,
                "ERC20: decreased allowance below zero"
            )
        );
        return true;
    }

    // pre-define burn token function for swap contract
    function burn(address from, uint256 amount)
        external
        onlyRole(OPERATOR_ROLE)
    {
        require(amount > 0, "WAL: invalid amount");
        _burn(from, amount);
    }

    function burnToken(uint256 amount) external onlyRole(CONTROLLER_ROLE) {
        require(amount > 0 && amount <= burnFund, "invalid amount");
        _burn(address(this), amount);
        burnFund = burnFund.sub(amount);
        emit BurnFund(amount);
    }

    function burnSwapFund(uint256 amount) external onlyRole(CONTROLLER_ROLE) {
        require(swapFund > 0, "not enough");
        _burn(address(this), amount);
        swapFund = swapFund.sub(amount);
        emit BurnSwapFund(amount);
    }

    function setMaxAmountPerTx(uint256 _amount)
        external
        onlyRole(CONTROLLER_ROLE)
    {
        maxAmountPerTx = _amount;
    }

    function setPaused(bool _paused) external onlyRole(CONTROLLER_ROLE) {
        paused = _paused;
    }

    function addToBlacklist(address _user) external onlyRole(CONTROLLER_ROLE) {
        blacklist[_user] = true;
        emit Blacklist(_user, true);
    }

    function removeFromBlacklist(address _user)
        external
        onlyRole(CONTROLLER_ROLE)
    {
        blacklist[_user] = false;
        emit Blacklist(_user, false);
    }

    function addAddrExceptionAddr(address _user)
        external
        onlyRole(CONTROLLER_ROLE)
    {
        exceptionAddress[_user] = true;
        emit ExceptionAddress(_user, true);
    }

    function removeAddrExceptionAddr(address _user)
        external
        onlyRole(CONTROLLER_ROLE)
    {
        exceptionAddress[_user] = false;
        emit ExceptionAddress(_user, false);
    }

    function addAddrRouter(address _addrRouter)
        external
        onlyRole(CONTROLLER_ROLE)
    {
        routerAddresses[_addrRouter] = true;
        emit RouterAddresses(_addrRouter, true);
    }

    function removeAddrRouter(address _addrRouter)
        external
        onlyRole(CONTROLLER_ROLE)
    {
        routerAddresses[_addrRouter] = false;
        emit RouterAddresses(_addrRouter, false);
    }

    function setSwapfee(uint256 _swapFee) external onlyRole(CONTROLLER_ROLE) {
        swapFee = _swapFee;
    }

    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);
    }

    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);
    }

    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) private {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");
        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    function _transfer(
        address fromAddress,
        address toAddress,
        uint256 amount
    ) private {
        require(!paused, "ERC20: transfer paused");
        require(
            fromAddress != address(0) && toAddress != address(0),
            "ERC20: transfer from/to the zero address"
        );
        require(
            amount > 0 && amount <= _balances[fromAddress],
            "Transfer amount invalid"
        );

        if (exceptionAddress[fromAddress] || exceptionAddress[toAddress]) {
            _balances[fromAddress] = _balances[fromAddress].sub(amount);
            _balances[toAddress] = _balances[toAddress].add(amount);

            emit Transfer(fromAddress, toAddress, amount);
        } else {
            if (fromAddress != owner() && toAddress != owner())
                require(
                    amount <= maxAmountPerTx,
                    "Amount exceeds the maxAmountPerTx"
                );

            require(!blacklist[fromAddress], "Address in blacklist");

            _balances[fromAddress] = _balances[fromAddress].sub(amount);

            uint256 realAmount = amount;

            if (
                swapFee > 0 &&
                fromAddress != owner() &&
                (routerAddresses[toAddress] || routerAddresses[fromAddress])
            ) {
                realAmount = _calculateAmount(amount);
            }

            _balances[toAddress] = _balances[toAddress].add(realAmount);

            emit Transfer(fromAddress, toAddress, realAmount);
        }
    }

    function _calculateAmount(uint256 amount) private returns (uint256) {
        uint256 swapFeeOfTx = _addSwapFund(amount);
        uint256 transactionAmount = amount.sub(swapFeeOfTx);

        return transactionAmount;
    }

    function _addSwapFund(uint256 amount) private returns (uint256) {
        uint256 swapFeeOfTx = amount.mul(swapFee).div(PERCENT);

        _balances[address(this)] = _balances[address(this)].add(swapFeeOfTx);
        swapFund = swapFund.add(swapFeeOfTx);

        return swapFeeOfTx;
    }
}

File 2 of 13 : TokenWithdrawable.sol
//SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract TokenWithdrawable is Ownable {
    using SafeERC20 for IERC20;

    mapping(address => bool) internal tokenBlacklist;
    uint256 public swapFund;
    uint256 public burnFund;

    event TokenWithdrawn(address token, uint256 amount, address to);

    /**
     * @notice Blacklists a token to be withdrawn from the contract.
     */
    function blacklistToken(address _token) public onlyOwner {
        tokenBlacklist[_token] = true;
    }

    /**
     * @notice Withdraws any tokens in the contract.
     */
    function withdrawToken(
        IERC20 token,
        uint256 amount,
        address to
    ) external onlyOwner {
        require(
            !tokenBlacklist[address(token)],
            "TokenWithdrawable: blacklisted token"
        );
        if (address(token) == address(this)) {
            require(
                token.balanceOf(address(this)) - amount >= swapFund + burnFund,
                "sufficient funds"
            );
        }
        token.safeTransfer(to, amount);
        emit TokenWithdrawn(address(token), amount, to);
    }
}

File 3 of 13 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 4 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 5 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 6 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 7 of 13 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @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 8 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 9 of 13 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 10 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves `amount` 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 amount) 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 `amount` 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 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` 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 amount
    ) external returns (bool);

    /**
     * @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);
}

File 11 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../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.
 *
 * By default, the owner account will be the one that deploys the contract. 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;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing 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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _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 12 of 13 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 13 of 13 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"bool","name":"value","type":"bool"}],"name":"Blacklist","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BurnFund","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BurnSwapFund","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"bool","name":"value","type":"bool"}],"name":"ExceptionAddress","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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addrRouter","type":"address"},{"indexed":false,"internalType":"bool","name":"value","type":"bool"}],"name":"RouterAddresses","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"TokenWithdrawn","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TransferToBurnFund","type":"event"},{"inputs":[],"name":"CONTROLLER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"addAddrExceptionAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addrRouter","type":"address"}],"name":"addAddrRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"addToBlacklist","outputs":[],"stateMutability":"nonpayable","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":"amount","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":[{"internalType":"address","name":"","type":"address"}],"name":"blacklist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"blacklistToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnFund","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnSwapFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"exceptionAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"removeAddrExceptionAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addrRouter","type":"address"}],"name":"removeAddrRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"removeFromBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"routerAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setMaxAmountPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_swapFee","type":"uint256"}],"name":"setSwapfee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapFund","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","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":"uint256","name":"amount","type":"uint256"}],"name":"transferToBurnFund","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600f805460ff191690553480156200001b57600080fd5b50620000273362000108565b60408051808201909152600b8082526a5761737465644c616e647360a81b60209092019182526200005b916005916200020c565b506040805180820190915260038082526215d05360ea1b602090920191825262000088916006916200020c565b506000600d819055338082526008602052604082208290556007805460ff1916601217905569152d02c7e14af6800000600e55620000c7919062000158565b600d5460405190815233906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3620002ef565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b62000164828262000168565b5050565b60008281526004602090815260408083206001600160a01b038516845290915290205460ff16620001645760008281526004602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001c83390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8280546200021a90620002b2565b90600052602060002090601f0160209004810192826200023e576000855562000289565b82601f106200025957805160ff191683800117855562000289565b8280016001018555821562000289579182015b82811115620002895782518255916020019190600101906200026c565b50620002979291506200029b565b5090565b5b808211156200029757600081556001016200029c565b600181811c90821680620002c757607f821691505b60208210811415620002e957634e487b7160e01b600052602260045260246000fd5b50919050565b6124c480620002ff6000396000f3fe608060405234801561001057600080fd5b50600436106102955760003560e01c80636d09428d11610167578063a217fddf116100ce578063e125455911610087578063e1254559146105ea578063f26a9816146105fd578063f2fde38b14610610578063f5b541a614610623578063f9f92be41461064a578063ffa541f71461066d57600080fd5b8063a217fddf1461055d578063a457c2d714610565578063a9059cbb14610578578063bb334e861461058b578063d547741f1461059e578063dd62ed3e146105b157600080fd5b806385b27c851161012057806385b27c85146104e85780638da5cb5b146104f15780638ff8fa811461050c57806391d148541461052f57806395d89b41146105425780639dc29fac1461054a57600080fd5b80636d09428d1461047557806370a0823114610488578063715018a6146104b157806376303e53146104b95780637b47ec1a146104cc57806384f84333146104df57600080fd5b806336568abe1161020b578063451a484c116101c4578063451a484c1461041d5780634d6c5df214610430578063537df3b61461044357806353d782df1461045657806354cf2aeb1461045f5780635c975abb1461046857600080fd5b806336568abe146103ab57806339509351146103be5780633ccdbb28146103d157806340c10f19146103e457806341cd6bc2146103f757806344337ea11461040a57600080fd5b806318160ddd1161025d57806318160ddd146103225780631f16a0461461032a57806323b872dd1461034d578063248a9ca3146103605780632f2ff15d14610383578063313ce5671461039657600080fd5b806301ffc9a71461029a57806306fdde03146102c2578063092c5b3b146102d7578063095ea7b3146102fa57806316c38b3c1461030d575b600080fd5b6102ad6102a8366004611ff7565b610680565b60405190151581526020015b60405180910390f35b6102ca6106b7565b6040516102b99190612051565b6102ec60008051602061240283398151915281565b6040519081526020016102b9565b6102ad610308366004612099565b610749565b61032061031b3660046120d3565b61075f565b005b600d546102ec565b6102ad6103383660046120f0565b600b6020526000908152604090205460ff1681565b6102ad61035b36600461210d565b61078c565b6102ec61036e36600461214e565b60009081526004602052604090206001015490565b610320610391366004612167565b6107f6565b60075460405160ff90911681526020016102b9565b6103206103b9366004612167565b610821565b6102ad6103cc366004612099565b6108a4565b6103206103df366004612197565b6108da565b6103206103f2366004612099565b610ab2565b6103206104053660046120f0565b610ae7565b6103206104183660046120f0565b610b5f565b61032061042b3660046120f0565b610bcf565b61032061043e36600461214e565b610c4b565b6103206104513660046120f0565b610c6a565b6102ec60035481565b6102ec60105481565b600f546102ad9060ff1681565b6103206104833660046120f0565b610cd2565b6102ec6104963660046120f0565b6001600160a01b031660009081526008602052604090205490565b610320610d3a565b6103206104c73660046120f0565b610d70565b6103206104da36600461214e565b610de0565b6102ec60025481565b6102ec600e5481565b6000546040516001600160a01b0390911681526020016102b9565b6102ad61051a3660046120f0565b600c6020526000908152604090205460ff1681565b6102ad61053d366004612167565b610e92565b6102ca610ebd565b610320610558366004612099565b610ecc565b6102ec600081565b6102ad610573366004612099565b610f47565b6102ad610586366004612099565b610f96565b61032061059936600461214e565b610fa3565b6103206105ac366004612167565b611045565b6102ec6105bf3660046121d9565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205490565b6103206105f83660046120f0565b61106b565b61032061060b36600461214e565b6110bc565b61032061061e3660046120f0565b6110db565b6102ec7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92981565b6102ad6106583660046120f0565b600a6020526000908152604090205460ff1681565b6102ad61067b36600461214e565b611176565b60006001600160e01b03198216637965db0b60e01b14806106b157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600580546106c690612207565b80601f01602080910402602001604051908101604052809291908181526020018280546106f290612207565b801561073f5780601f106107145761010080835404028352916020019161073f565b820191906000526020600020905b81548152906001019060200180831161072257829003601f168201915b5050505050905090565b60006107563384846111ea565b50600192915050565b600080516020612402833981519152610778813361130f565b50600f805460ff1916911515919091179055565b6000610799848484611373565b6107eb84336107e685604051806060016040528060288152602001612422602891396001600160a01b038a166000908152600960209081526040808320338452909152902054919061179c565b6111ea565b5060015b9392505050565b600082815260046020526040902060010154610812813361130f565b61081c83836117c8565b505050565b6001600160a01b03811633146108965760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6108a0828261184e565b5050565b3360008181526009602090815260408083206001600160a01b038716845290915281205490916107569185906107e690866118b5565b6000546001600160a01b031633146109045760405162461bcd60e51b815260040161088d9061223c565b6001600160a01b03831660009081526001602052604090205460ff16156109795760405162461bcd60e51b8152602060048201526024808201527f546f6b656e576974686472617761626c653a20626c61636b6c6973746564207460448201526337b5b2b760e11b606482015260840161088d565b6001600160a01b038316301415610a4f5760035460025461099a9190612287565b6040516370a0823160e01b815230600482015283906001600160a01b038616906370a0823190602401602060405180830381865afa1580156109e0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a04919061229f565b610a0e91906122b8565b1015610a4f5760405162461bcd60e51b815260206004820152601060248201526f73756666696369656e742066756e647360801b604482015260640161088d565b610a636001600160a01b03841682846118c1565b604080516001600160a01b0385811682526020820185905283168183015290517fa0524ee0fd8662d6c046d199da2a6d3dc49445182cec055873a5bb9c2843c8e09181900360600190a1505050565b7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929610add813361130f565b61081c8383611913565b600080516020612402833981519152610b00813361130f565b6001600160a01b0382166000818152600c6020908152604091829020805460ff1916600190811790915591519182527fdda2db1bf83537e9b0366a71fa7c4f4d23e90320f3b3a5ba243c83ae305b74bc91015b60405180910390a25050565b600080516020612402833981519152610b78813361130f565b6001600160a01b0382166000818152600a6020908152604091829020805460ff1916600190811790915591519182527ff7e58a63a036e3a7ef7921f83b6ae47930cf5c293dd3bfe7a857c6863409046d9101610b53565b600080516020612402833981519152610be8813361130f565b6001600160a01b0382166000818152600b6020908152604091829020805460ff191660019081179091558251938452908301527f966e8d8ef2cfe91b683db1945c4f7682856ba1fc773ccd76e5e991906ac96cf791015b60405180910390a15050565b600080516020612402833981519152610c64813361130f565b50601055565b600080516020612402833981519152610c83813361130f565b6001600160a01b0382166000818152600a60209081526040808320805460ff19169055519182527ff7e58a63a036e3a7ef7921f83b6ae47930cf5c293dd3bfe7a857c6863409046d9101610b53565b600080516020612402833981519152610ceb813361130f565b6001600160a01b0382166000818152600c60209081526040808320805460ff19169055519182527fdda2db1bf83537e9b0366a71fa7c4f4d23e90320f3b3a5ba243c83ae305b74bc9101610b53565b6000546001600160a01b03163314610d645760405162461bcd60e51b815260040161088d9061223c565b610d6e60006119e0565b565b600080516020612402833981519152610d89813361130f565b6001600160a01b0382166000818152600b60209081526040808320805460ff191690558051938452908301919091527f966e8d8ef2cfe91b683db1945c4f7682856ba1fc773ccd76e5e991906ac96cf79101610c3f565b600080516020612402833981519152610df9813361130f565b600082118015610e0b57506003548211155b610e485760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b604482015260640161088d565b610e523083611a30565b600354610e5f9083611b64565b6003556040518281527fb8d313a50e8fd91da290e5db562fdd5cde2d194bb4a45cb478daa7aa6b475ee390602001610c3f565b60009182526004602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600680546106c690612207565b7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929610ef7813361130f565b60008211610f3d5760405162461bcd60e51b815260206004820152601360248201527215d0530e881a5b9d985b1a5908185b5bdd5b9d606a1b604482015260640161088d565b61081c8383611a30565b600061075633846107e68560405180606001604052806025815260200161246a602591393360009081526009602090815260408083206001600160a01b038d168452909152902054919061179c565b6000610756338484611373565b600080516020612402833981519152610fbc813361130f565b600060025411610ffb5760405162461bcd60e51b815260206004820152600a6024820152690dcdee840cadcdeeaced60b31b604482015260640161088d565b6110053083611a30565b6002546110129083611b64565b6002556040518281527ff0afb47b0a209ac94f583f28ba790925374d92b462a17838429845c1d2751b0890602001610c3f565b600082815260046020526040902060010154611061813361130f565b61081c838361184e565b6000546001600160a01b031633146110955760405162461bcd60e51b815260040161088d9061223c565b6001600160a01b03166000908152600160208190526040909120805460ff19169091179055565b6000805160206124028339815191526110d5813361130f565b50600e55565b6000546001600160a01b031633146111055760405162461bcd60e51b815260040161088d9061223c565b6001600160a01b03811661116a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161088d565b611173816119e0565b50565b6000600080516020612402833981519152611191813361130f565b61119c333085611373565b6003546111a990846118b5565b6003556040518381527f6753483f00001618c1408e0ac8a931adee8aae12130611f9b8225833b38dab4e9060200160405180910390a1600191505b50919050565b6001600160a01b03831661124c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161088d565b6001600160a01b0382166112ad5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161088d565b6001600160a01b0383811660008181526009602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6113198282610e92565b6108a057611331816001600160a01b03166014611b70565b61133c836020611b70565b60405160200161134d9291906122cf565b60408051601f198184030181529082905262461bcd60e51b825261088d91600401612051565b600f5460ff16156113bf5760405162461bcd60e51b8152602060048201526016602482015275115490cc8c0e881d1c985b9cd9995c881c185d5cd95960521b604482015260640161088d565b6001600160a01b038316158015906113df57506001600160a01b03821615155b61143c5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e736665722066726f6d2f746f20746865207a65726f604482015267206164647265737360c01b606482015260840161088d565b60008111801561146457506001600160a01b0383166000908152600860205260409020548111155b6114b05760405162461bcd60e51b815260206004820152601760248201527f5472616e7366657220616d6f756e7420696e76616c6964000000000000000000604482015260640161088d565b6001600160a01b0383166000908152600c602052604090205460ff16806114ef57506001600160a01b0382166000908152600c602052604090205460ff165b15611588576001600160a01b0383166000908152600860205260409020546115179082611b64565b6001600160a01b03808516600090815260086020526040808220939093559084168152205461154690826118b5565b6001600160a01b03808416600081815260086020526040908190209390935591519085169060008051602061244a833981519152906113029085815260200190565b6000546001600160a01b038481169116148015906115b457506000546001600160a01b03838116911614155b1561161557600e548111156116155760405162461bcd60e51b815260206004820152602160248201527f416d6f756e74206578636565647320746865206d6178416d6f756e74506572546044820152600f60fb1b606482015260840161088d565b6001600160a01b0383166000908152600a602052604090205460ff16156116755760405162461bcd60e51b81526020600482015260146024820152731059191c995cdcc81a5b88189b1858dadb1a5cdd60621b604482015260640161088d565b6001600160a01b0383166000908152600860205260409020546116989082611b64565b6001600160a01b0384166000908152600860205260409020556010548190158015906116d257506000546001600160a01b03858116911614155b801561171857506001600160a01b0383166000908152600b602052604090205460ff168061171857506001600160a01b0384166000908152600b602052604090205460ff165b156117295761172682611d0c565b90505b6001600160a01b03831660009081526008602052604090205461174c90826118b5565b6001600160a01b03808516600081815260086020526040908190209390935591519086169060008051602061244a8339815191529061178e9085815260200190565b60405180910390a350505050565b600081848411156117c05760405162461bcd60e51b815260040161088d9190612051565b505050900390565b6117d28282610e92565b6108a05760008281526004602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561180a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6118588282610e92565b156108a05760008281526004602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006107ef8284612287565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261081c908490611d2e565b6001600160a01b0382166119695760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161088d565b80600d600082825461197b9190612287565b90915550506001600160a01b038216600090815260086020526040812080548392906119a8908490612287565b90915550506040518181526001600160a01b0383169060009060008051602061244a8339815191529060200160405180910390a35050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216611a905760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161088d565b6001600160a01b03821660009081526008602052604090205481811015611b045760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161088d565b6001600160a01b03831660009081526008602052604081208383039055600d8054849290611b339084906122b8565b90915550506040518281526000906001600160a01b0385169060008051602061244a83398151915290602001611302565b60006107ef82846122b8565b60606000611b7f836002612344565b611b8a906002612287565b67ffffffffffffffff811115611ba257611ba2612363565b6040519080825280601f01601f191660200182016040528015611bcc576020820181803683370190505b509050600360fc1b81600081518110611be757611be7612379565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611c1657611c16612379565b60200101906001600160f81b031916908160001a9053506000611c3a846002612344565b611c45906001612287565b90505b6001811115611cbd576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611c7957611c79612379565b1a60f81b828281518110611c8f57611c8f612379565b60200101906001600160f81b031916908160001a90535060049490941c93611cb68161238f565b9050611c48565b5083156107ef5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161088d565b600080611d1883611e00565b90506000611d268483611b64565b949350505050565b6000611d83826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611e669092919063ffffffff16565b80519091501561081c5780806020019051810190611da191906123a6565b61081c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161088d565b600080611e236064611e1d60105486611e7590919063ffffffff16565b90611e81565b30600090815260086020526040902054909150611e4090826118b5565b30600090815260086020526040902055600254611e5d90826118b5565b60025592915050565b6060611d268484600085611e8d565b60006107ef8284612344565b60006107ef82846123c3565b606082471015611eee5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161088d565b6001600160a01b0385163b611f455760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161088d565b600080866001600160a01b03168587604051611f6191906123e5565b60006040518083038185875af1925050503d8060008114611f9e576040519150601f19603f3d011682016040523d82523d6000602084013e611fa3565b606091505b5091509150611fb3828286611fbe565b979650505050505050565b60608315611fcd5750816107ef565b825115611fdd5782518084602001fd5b8160405162461bcd60e51b815260040161088d9190612051565b60006020828403121561200957600080fd5b81356001600160e01b0319811681146107ef57600080fd5b60005b8381101561203c578181015183820152602001612024565b8381111561204b576000848401525b50505050565b6020815260008251806020840152612070816040850160208701612021565b601f01601f19169190910160400192915050565b6001600160a01b038116811461117357600080fd5b600080604083850312156120ac57600080fd5b82356120b781612084565b946020939093013593505050565b801515811461117357600080fd5b6000602082840312156120e557600080fd5b81356107ef816120c5565b60006020828403121561210257600080fd5b81356107ef81612084565b60008060006060848603121561212257600080fd5b833561212d81612084565b9250602084013561213d81612084565b929592945050506040919091013590565b60006020828403121561216057600080fd5b5035919050565b6000806040838503121561217a57600080fd5b82359150602083013561218c81612084565b809150509250929050565b6000806000606084860312156121ac57600080fd5b83356121b781612084565b92506020840135915060408401356121ce81612084565b809150509250925092565b600080604083850312156121ec57600080fd5b82356121f781612084565b9150602083013561218c81612084565b600181811c9082168061221b57607f821691505b602082108114156111e457634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561229a5761229a612271565b500190565b6000602082840312156122b157600080fd5b5051919050565b6000828210156122ca576122ca612271565b500390565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612307816017850160208801612021565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612338816028840160208801612021565b01602801949350505050565b600081600019048311821515161561235e5761235e612271565b500290565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60008161239e5761239e612271565b506000190190565b6000602082840312156123b857600080fd5b81516107ef816120c5565b6000826123e057634e487b7160e01b600052601260045260246000fd5b500490565b600082516123f7818460208701612021565b919091019291505056fe7b765e0e932d348852a6f810bfa1ab891e259123f02db8cdcde614c57022335745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212202afffdcd339a8e24b3886320a489f554eba4f86819247dc9d8d019980a5389bb64736f6c634300080a0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102955760003560e01c80636d09428d11610167578063a217fddf116100ce578063e125455911610087578063e1254559146105ea578063f26a9816146105fd578063f2fde38b14610610578063f5b541a614610623578063f9f92be41461064a578063ffa541f71461066d57600080fd5b8063a217fddf1461055d578063a457c2d714610565578063a9059cbb14610578578063bb334e861461058b578063d547741f1461059e578063dd62ed3e146105b157600080fd5b806385b27c851161012057806385b27c85146104e85780638da5cb5b146104f15780638ff8fa811461050c57806391d148541461052f57806395d89b41146105425780639dc29fac1461054a57600080fd5b80636d09428d1461047557806370a0823114610488578063715018a6146104b157806376303e53146104b95780637b47ec1a146104cc57806384f84333146104df57600080fd5b806336568abe1161020b578063451a484c116101c4578063451a484c1461041d5780634d6c5df214610430578063537df3b61461044357806353d782df1461045657806354cf2aeb1461045f5780635c975abb1461046857600080fd5b806336568abe146103ab57806339509351146103be5780633ccdbb28146103d157806340c10f19146103e457806341cd6bc2146103f757806344337ea11461040a57600080fd5b806318160ddd1161025d57806318160ddd146103225780631f16a0461461032a57806323b872dd1461034d578063248a9ca3146103605780632f2ff15d14610383578063313ce5671461039657600080fd5b806301ffc9a71461029a57806306fdde03146102c2578063092c5b3b146102d7578063095ea7b3146102fa57806316c38b3c1461030d575b600080fd5b6102ad6102a8366004611ff7565b610680565b60405190151581526020015b60405180910390f35b6102ca6106b7565b6040516102b99190612051565b6102ec60008051602061240283398151915281565b6040519081526020016102b9565b6102ad610308366004612099565b610749565b61032061031b3660046120d3565b61075f565b005b600d546102ec565b6102ad6103383660046120f0565b600b6020526000908152604090205460ff1681565b6102ad61035b36600461210d565b61078c565b6102ec61036e36600461214e565b60009081526004602052604090206001015490565b610320610391366004612167565b6107f6565b60075460405160ff90911681526020016102b9565b6103206103b9366004612167565b610821565b6102ad6103cc366004612099565b6108a4565b6103206103df366004612197565b6108da565b6103206103f2366004612099565b610ab2565b6103206104053660046120f0565b610ae7565b6103206104183660046120f0565b610b5f565b61032061042b3660046120f0565b610bcf565b61032061043e36600461214e565b610c4b565b6103206104513660046120f0565b610c6a565b6102ec60035481565b6102ec60105481565b600f546102ad9060ff1681565b6103206104833660046120f0565b610cd2565b6102ec6104963660046120f0565b6001600160a01b031660009081526008602052604090205490565b610320610d3a565b6103206104c73660046120f0565b610d70565b6103206104da36600461214e565b610de0565b6102ec60025481565b6102ec600e5481565b6000546040516001600160a01b0390911681526020016102b9565b6102ad61051a3660046120f0565b600c6020526000908152604090205460ff1681565b6102ad61053d366004612167565b610e92565b6102ca610ebd565b610320610558366004612099565b610ecc565b6102ec600081565b6102ad610573366004612099565b610f47565b6102ad610586366004612099565b610f96565b61032061059936600461214e565b610fa3565b6103206105ac366004612167565b611045565b6102ec6105bf3660046121d9565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205490565b6103206105f83660046120f0565b61106b565b61032061060b36600461214e565b6110bc565b61032061061e3660046120f0565b6110db565b6102ec7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92981565b6102ad6106583660046120f0565b600a6020526000908152604090205460ff1681565b6102ad61067b36600461214e565b611176565b60006001600160e01b03198216637965db0b60e01b14806106b157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600580546106c690612207565b80601f01602080910402602001604051908101604052809291908181526020018280546106f290612207565b801561073f5780601f106107145761010080835404028352916020019161073f565b820191906000526020600020905b81548152906001019060200180831161072257829003601f168201915b5050505050905090565b60006107563384846111ea565b50600192915050565b600080516020612402833981519152610778813361130f565b50600f805460ff1916911515919091179055565b6000610799848484611373565b6107eb84336107e685604051806060016040528060288152602001612422602891396001600160a01b038a166000908152600960209081526040808320338452909152902054919061179c565b6111ea565b5060015b9392505050565b600082815260046020526040902060010154610812813361130f565b61081c83836117c8565b505050565b6001600160a01b03811633146108965760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6108a0828261184e565b5050565b3360008181526009602090815260408083206001600160a01b038716845290915281205490916107569185906107e690866118b5565b6000546001600160a01b031633146109045760405162461bcd60e51b815260040161088d9061223c565b6001600160a01b03831660009081526001602052604090205460ff16156109795760405162461bcd60e51b8152602060048201526024808201527f546f6b656e576974686472617761626c653a20626c61636b6c6973746564207460448201526337b5b2b760e11b606482015260840161088d565b6001600160a01b038316301415610a4f5760035460025461099a9190612287565b6040516370a0823160e01b815230600482015283906001600160a01b038616906370a0823190602401602060405180830381865afa1580156109e0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a04919061229f565b610a0e91906122b8565b1015610a4f5760405162461bcd60e51b815260206004820152601060248201526f73756666696369656e742066756e647360801b604482015260640161088d565b610a636001600160a01b03841682846118c1565b604080516001600160a01b0385811682526020820185905283168183015290517fa0524ee0fd8662d6c046d199da2a6d3dc49445182cec055873a5bb9c2843c8e09181900360600190a1505050565b7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929610add813361130f565b61081c8383611913565b600080516020612402833981519152610b00813361130f565b6001600160a01b0382166000818152600c6020908152604091829020805460ff1916600190811790915591519182527fdda2db1bf83537e9b0366a71fa7c4f4d23e90320f3b3a5ba243c83ae305b74bc91015b60405180910390a25050565b600080516020612402833981519152610b78813361130f565b6001600160a01b0382166000818152600a6020908152604091829020805460ff1916600190811790915591519182527ff7e58a63a036e3a7ef7921f83b6ae47930cf5c293dd3bfe7a857c6863409046d9101610b53565b600080516020612402833981519152610be8813361130f565b6001600160a01b0382166000818152600b6020908152604091829020805460ff191660019081179091558251938452908301527f966e8d8ef2cfe91b683db1945c4f7682856ba1fc773ccd76e5e991906ac96cf791015b60405180910390a15050565b600080516020612402833981519152610c64813361130f565b50601055565b600080516020612402833981519152610c83813361130f565b6001600160a01b0382166000818152600a60209081526040808320805460ff19169055519182527ff7e58a63a036e3a7ef7921f83b6ae47930cf5c293dd3bfe7a857c6863409046d9101610b53565b600080516020612402833981519152610ceb813361130f565b6001600160a01b0382166000818152600c60209081526040808320805460ff19169055519182527fdda2db1bf83537e9b0366a71fa7c4f4d23e90320f3b3a5ba243c83ae305b74bc9101610b53565b6000546001600160a01b03163314610d645760405162461bcd60e51b815260040161088d9061223c565b610d6e60006119e0565b565b600080516020612402833981519152610d89813361130f565b6001600160a01b0382166000818152600b60209081526040808320805460ff191690558051938452908301919091527f966e8d8ef2cfe91b683db1945c4f7682856ba1fc773ccd76e5e991906ac96cf79101610c3f565b600080516020612402833981519152610df9813361130f565b600082118015610e0b57506003548211155b610e485760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b604482015260640161088d565b610e523083611a30565b600354610e5f9083611b64565b6003556040518281527fb8d313a50e8fd91da290e5db562fdd5cde2d194bb4a45cb478daa7aa6b475ee390602001610c3f565b60009182526004602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600680546106c690612207565b7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929610ef7813361130f565b60008211610f3d5760405162461bcd60e51b815260206004820152601360248201527215d0530e881a5b9d985b1a5908185b5bdd5b9d606a1b604482015260640161088d565b61081c8383611a30565b600061075633846107e68560405180606001604052806025815260200161246a602591393360009081526009602090815260408083206001600160a01b038d168452909152902054919061179c565b6000610756338484611373565b600080516020612402833981519152610fbc813361130f565b600060025411610ffb5760405162461bcd60e51b815260206004820152600a6024820152690dcdee840cadcdeeaced60b31b604482015260640161088d565b6110053083611a30565b6002546110129083611b64565b6002556040518281527ff0afb47b0a209ac94f583f28ba790925374d92b462a17838429845c1d2751b0890602001610c3f565b600082815260046020526040902060010154611061813361130f565b61081c838361184e565b6000546001600160a01b031633146110955760405162461bcd60e51b815260040161088d9061223c565b6001600160a01b03166000908152600160208190526040909120805460ff19169091179055565b6000805160206124028339815191526110d5813361130f565b50600e55565b6000546001600160a01b031633146111055760405162461bcd60e51b815260040161088d9061223c565b6001600160a01b03811661116a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161088d565b611173816119e0565b50565b6000600080516020612402833981519152611191813361130f565b61119c333085611373565b6003546111a990846118b5565b6003556040518381527f6753483f00001618c1408e0ac8a931adee8aae12130611f9b8225833b38dab4e9060200160405180910390a1600191505b50919050565b6001600160a01b03831661124c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161088d565b6001600160a01b0382166112ad5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161088d565b6001600160a01b0383811660008181526009602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6113198282610e92565b6108a057611331816001600160a01b03166014611b70565b61133c836020611b70565b60405160200161134d9291906122cf565b60408051601f198184030181529082905262461bcd60e51b825261088d91600401612051565b600f5460ff16156113bf5760405162461bcd60e51b8152602060048201526016602482015275115490cc8c0e881d1c985b9cd9995c881c185d5cd95960521b604482015260640161088d565b6001600160a01b038316158015906113df57506001600160a01b03821615155b61143c5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e736665722066726f6d2f746f20746865207a65726f604482015267206164647265737360c01b606482015260840161088d565b60008111801561146457506001600160a01b0383166000908152600860205260409020548111155b6114b05760405162461bcd60e51b815260206004820152601760248201527f5472616e7366657220616d6f756e7420696e76616c6964000000000000000000604482015260640161088d565b6001600160a01b0383166000908152600c602052604090205460ff16806114ef57506001600160a01b0382166000908152600c602052604090205460ff165b15611588576001600160a01b0383166000908152600860205260409020546115179082611b64565b6001600160a01b03808516600090815260086020526040808220939093559084168152205461154690826118b5565b6001600160a01b03808416600081815260086020526040908190209390935591519085169060008051602061244a833981519152906113029085815260200190565b6000546001600160a01b038481169116148015906115b457506000546001600160a01b03838116911614155b1561161557600e548111156116155760405162461bcd60e51b815260206004820152602160248201527f416d6f756e74206578636565647320746865206d6178416d6f756e74506572546044820152600f60fb1b606482015260840161088d565b6001600160a01b0383166000908152600a602052604090205460ff16156116755760405162461bcd60e51b81526020600482015260146024820152731059191c995cdcc81a5b88189b1858dadb1a5cdd60621b604482015260640161088d565b6001600160a01b0383166000908152600860205260409020546116989082611b64565b6001600160a01b0384166000908152600860205260409020556010548190158015906116d257506000546001600160a01b03858116911614155b801561171857506001600160a01b0383166000908152600b602052604090205460ff168061171857506001600160a01b0384166000908152600b602052604090205460ff165b156117295761172682611d0c565b90505b6001600160a01b03831660009081526008602052604090205461174c90826118b5565b6001600160a01b03808516600081815260086020526040908190209390935591519086169060008051602061244a8339815191529061178e9085815260200190565b60405180910390a350505050565b600081848411156117c05760405162461bcd60e51b815260040161088d9190612051565b505050900390565b6117d28282610e92565b6108a05760008281526004602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561180a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6118588282610e92565b156108a05760008281526004602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006107ef8284612287565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261081c908490611d2e565b6001600160a01b0382166119695760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161088d565b80600d600082825461197b9190612287565b90915550506001600160a01b038216600090815260086020526040812080548392906119a8908490612287565b90915550506040518181526001600160a01b0383169060009060008051602061244a8339815191529060200160405180910390a35050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216611a905760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161088d565b6001600160a01b03821660009081526008602052604090205481811015611b045760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161088d565b6001600160a01b03831660009081526008602052604081208383039055600d8054849290611b339084906122b8565b90915550506040518281526000906001600160a01b0385169060008051602061244a83398151915290602001611302565b60006107ef82846122b8565b60606000611b7f836002612344565b611b8a906002612287565b67ffffffffffffffff811115611ba257611ba2612363565b6040519080825280601f01601f191660200182016040528015611bcc576020820181803683370190505b509050600360fc1b81600081518110611be757611be7612379565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611c1657611c16612379565b60200101906001600160f81b031916908160001a9053506000611c3a846002612344565b611c45906001612287565b90505b6001811115611cbd576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611c7957611c79612379565b1a60f81b828281518110611c8f57611c8f612379565b60200101906001600160f81b031916908160001a90535060049490941c93611cb68161238f565b9050611c48565b5083156107ef5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161088d565b600080611d1883611e00565b90506000611d268483611b64565b949350505050565b6000611d83826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611e669092919063ffffffff16565b80519091501561081c5780806020019051810190611da191906123a6565b61081c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161088d565b600080611e236064611e1d60105486611e7590919063ffffffff16565b90611e81565b30600090815260086020526040902054909150611e4090826118b5565b30600090815260086020526040902055600254611e5d90826118b5565b60025592915050565b6060611d268484600085611e8d565b60006107ef8284612344565b60006107ef82846123c3565b606082471015611eee5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161088d565b6001600160a01b0385163b611f455760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161088d565b600080866001600160a01b03168587604051611f6191906123e5565b60006040518083038185875af1925050503d8060008114611f9e576040519150601f19603f3d011682016040523d82523d6000602084013e611fa3565b606091505b5091509150611fb3828286611fbe565b979650505050505050565b60608315611fcd5750816107ef565b825115611fdd5782518084602001fd5b8160405162461bcd60e51b815260040161088d9190612051565b60006020828403121561200957600080fd5b81356001600160e01b0319811681146107ef57600080fd5b60005b8381101561203c578181015183820152602001612024565b8381111561204b576000848401525b50505050565b6020815260008251806020840152612070816040850160208701612021565b601f01601f19169190910160400192915050565b6001600160a01b038116811461117357600080fd5b600080604083850312156120ac57600080fd5b82356120b781612084565b946020939093013593505050565b801515811461117357600080fd5b6000602082840312156120e557600080fd5b81356107ef816120c5565b60006020828403121561210257600080fd5b81356107ef81612084565b60008060006060848603121561212257600080fd5b833561212d81612084565b9250602084013561213d81612084565b929592945050506040919091013590565b60006020828403121561216057600080fd5b5035919050565b6000806040838503121561217a57600080fd5b82359150602083013561218c81612084565b809150509250929050565b6000806000606084860312156121ac57600080fd5b83356121b781612084565b92506020840135915060408401356121ce81612084565b809150509250925092565b600080604083850312156121ec57600080fd5b82356121f781612084565b9150602083013561218c81612084565b600181811c9082168061221b57607f821691505b602082108114156111e457634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561229a5761229a612271565b500190565b6000602082840312156122b157600080fd5b5051919050565b6000828210156122ca576122ca612271565b500390565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612307816017850160208801612021565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612338816028840160208801612021565b01602801949350505050565b600081600019048311821515161561235e5761235e612271565b500290565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60008161239e5761239e612271565b506000190190565b6000602082840312156123b857600080fd5b81516107ef816120c5565b6000826123e057634e487b7160e01b600052601260045260246000fd5b500490565b600082516123f7818460208701612021565b919091019291505056fe7b765e0e932d348852a6f810bfa1ab891e259123f02db8cdcde614c57022335745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212202afffdcd339a8e24b3886320a489f554eba4f86819247dc9d8d019980a5389bb64736f6c634300080a0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

The Wasted Lands is a gaming platform which includes puzzle, racing and other elements and also its own metaverse called ‘The Wasted-Verse.

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.