ETH Price: $3,163.45 (-7.95%)
Gas: 10 Gwei

Token

GoldPesa Option (GPO)
 

Overview

Max Total Supply

100,000,000 GPO

Holders

2,458 (0.00%)

Market

Price

$0.00 @ 0.000000 ETH

Onchain Market Cap

$79,121,700.00

Circulating Supply Market Cap

$0.00

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
zknoob.eth
Balance
77 GPO

Value
$60.92 ( ~0.0192574767454698 Eth) [0.0001%]
0xecf8fa864cdc912052a9c5410619ccd0e12451ca
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

A gold-backed value generating digital currency. Innovative financial engineering and quantitative science to create a value-generating token.

Market

Volume (24H):$3,154.37
Market Capitalization:$0.00
Circulating Supply:0.00 GPO
Market Data Source: Coinmarketcap

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
GPO

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Audited
File 1 of 17 : GPO.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetFixedSupply.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol";
import "@uniswap/v3-periphery/contracts/libraries/TransferHelper.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";

contract GPO is ERC20PresetFixedSupply, Pausable, Ownable, AccessControl {
    
    // TokenSwaped event is emitted anytime there is a swap between GPO and USDC on the GoldPesa.com decentralized exchange powered by Uniswap
    event TokensSwaped(
        address indexed purchaser,
        uint256 amountIn,
        uint256 amountOut,
        bool direction // false: GPO-X, true: X-GPO
    );

    // FeeSplit stores the "recipient" wallet address and the respective percentage of the feeOnSwap which are to be sent to it.  
    struct FeeSplit {
        address recipient;
        uint16 fee;
    }

    // Token Name
    string public _name = "GoldPesa Option";
    // Token Symbol
    string public _symbol = "GPO";
    // GPO Hard Cap
    uint256 public constant fixedSupply = 100_000_000;
    // Wallet Hard Cap
    uint256 public constant capOnWallet = 100_000;
    // GoldPesa fee on swap percentage
    uint256 public feeOnSwap = 10;
    // Uniswap Router Address
    ISwapRouter public immutable swapRouter;
    // USDC ERC20 token Address
    address public addrUSDC;
    // Uniswap V3 Pool Fee * 10000 = 1 %
    uint24 private swapPoolFee = 10000;
    // Uniswap V3 GPO/USDC liquidity pool address
    address public authorizedPool;
    // Time when Pre-Sale and Sale tokens will be unlocked (Unix Time)
    uint256 public walletsTimelockedUntil;
    // When freeTrade is true the token bypasses the hard cap on wallet and can be traded freely on any exchange
    bool public freeTrade = false;
    // The feeOnSwap percentage is distributed to the addresses and their respective percentage which are held in the feeSplits array
    FeeSplit[] public feeSplits;
    // Keeps a record of the number of addresses in the feeSplits array 
    uint256 public feeSplitsLength;

    // Defines an Access Control role called "CAN_LOCK" which is granted to addresses which are allowed to lock wallet addresses during the Sale and Pre-Sale phase
    bytes32 public constant AUTHORIZED_LOCK =
        keccak256("CAN_LOCK");
    modifier authorizedLocker() {
        require(hasRole(AUTHORIZED_LOCK, _msgSender()));
        _;
    }
    // Mapping which holds information of the wallet addresses which are locked (true) /unlocked (false)
    mapping(address => bool) public lockedWallets;
    // Mapping which holds details of the wallet addresses which bypass the wallet hard cap and are able to swap with the Uniswap GPO/USDC liquidity pool
    mapping(address => bool) public whitelistedWallets;
    // Mapping which holds details of the amount of GPO tokens are locked in the lockedWallets mapping 
    mapping(address => uint256) public lockedWalletsAmount;
    bool public swapEnabled = false;

    // Upon deployment, the constructor is only executed once
    constructor(
        ISwapRouter _swapRouter,
        uint256 _walletsTimelockedUntil
    ) ERC20PresetFixedSupply(_name, _symbol, hardCapOnToken(), address(this)) {
        swapRouter = _swapRouter;
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        walletsTimelockedUntil = _walletsTimelockedUntil;
        whitelistedWallets[address(0x0)] = true;
        whitelistedWallets[address(this)] = true;
    }

    // Enables GoldPesa to manually transfer GPO tokens from the GPO contract to another wallet address
    function transferTokensTo(address _to, uint256 amount) public onlyOwner {
        _transfer(address(this), _to, amount);
    }
    // Enables GoldPesa to manually add or remove wallet addresses from the whitelistedWallets mapping
    function changeWalletWhitelist(address _addr, bool yesOrNo) public onlyOwner {
        whitelistedWallets[_addr] = yesOrNo;
    }
    // Sets the USDC contract address, the Uniswap pool fee and accordingly includes the derived Uniswap liquidity pool address to the whitelistedWallets mapping
    function setPoolParameters(address USDC, uint24 poolFee) public onlyOwner {
        addrUSDC = USDC;
        swapPoolFee = poolFee;
        whitelistedWallets[authorizedPool] = false;

        // taken from @uniswap/v3-periphery/contracts/libraries/PoolAddress.sol
        address token0 = address(this);
        address token1 = USDC;
        if (token0 > token1) (token0, token1) = (token1, token0);

        authorizedPool = address(
            uint160(
                uint256(
                    keccak256(
                        abi.encodePacked(
                            hex'ff',
                            0x1F98431c8aD98523631AE4a59f267346ea31F984,
                            keccak256(abi.encode(token0, token1, poolFee)),
                            bytes32(0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54)
                        )
                    )
                )
            )
        );
        whitelistedWallets[authorizedPool] = true;
    }
    // Enables GoldPesa to set the state of the contract to "freeTrade" 
    function switchFreeTrade() public onlyOwner {
        freeTrade = !freeTrade;
    }

    function switchSwapEnabled() public onlyOwner {
        swapEnabled = !swapEnabled;
    }

    // Enables GoldPesa to set the feeOnSwap 
    function setFeeOnSwap(uint24 _feeOnSwap) public onlyOwner {
        feeOnSwap = _feeOnSwap;
    }
    // Enables GoldPesa to set the "feeOnSwap" distribution details 
    function setFeeSplits(FeeSplit[] memory _feeSplits) public onlyOwner {
        uint256 grandTotal = 0;
        for (uint256 i = 0; i < _feeSplits.length; i++) {
            FeeSplit memory f = _feeSplits[i];
            grandTotal += f.fee;
        }
        require(_feeSplits.length == 0 || grandTotal == 100);
        // temporarily allow 0 fee splits for tests for manual fee distribution
        delete feeSplits;
        for (uint256 i = 0; i < _feeSplits.length; i++) {
            feeSplits.push(_feeSplits[i]);
        }
        feeSplitsLength = _feeSplits.length;
    }
    // Distributes the feeOnSwap amount collected during any swap transaction to the addresses defined in the "feeSplits" array
    function distributeFee(uint256 amount) internal {
        uint256 grandTotal = 0;
        for (uint256 i = 0; i < feeSplits.length; i++) {
            FeeSplit storage f = feeSplits[i];
            uint256 distributeAmount = amount * f.fee / 100;
            IERC20(addrUSDC).transfer(f.recipient, distributeAmount);
            grandTotal += distributeAmount;
        }
        if (grandTotal != amount && feeSplits.length > 0) {
            FeeSplit storage f = feeSplits[0];
            IERC20(addrUSDC).transfer(f.recipient, amount - grandTotal);
        }
    }
    // Defines the rules that must be satisfied before GPO can be transferred
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, amount);
        // Ensures that GPO token holders cannot burn their own tokens
        require(to != address(0x0) || whitelistedWallets[from], "GPO_ERR: Cannot burn");
        // Ensures that GPO token holders cannot execute a swap directly with the GPO/USDC liquidity pool on Uniswap. All swaps must be executed on the GoldPesa DEX unless 
        // "freeTrade" has be enabled
        if (authorizedPool != address(0x0) && (from == authorizedPool || to == authorizedPool)) 
            require(freeTrade || (whitelistedWallets[to] && whitelistedWallets[from]), "GPO_ERR: UniswapV3 functionality is only allowed through GPO's protocol"); 
        // Unless "freeTrade" has been enabled this require statement rejects any transfers to wallets which will break the 100,000 GPO wallet hard cap unless the 
        // receiving wallet address is a "whitelistedWallet"
        require(
            freeTrade || 
            from == address(0x0) ||
            whitelistedWallets[to] || 
            balanceOf(to) + amount <= hardCapOnWallet(),
            "GPO_ERR: Hard cap on wallet reached"
        );
        // Disables all GPO transfers if the token has been paused by GoldPesa
        require(!paused(), "ERC20Pausable: token transfer while paused");
        // Rejects transfers made from locked wallets which are greater than the wallet's "lockedWalletsAmount" until the date where all tokens are unlocked
        require(block.timestamp >= walletsTimelockedUntil || 
            !lockedWallets[from] || 
            (lockedWallets[from] && amount <= (balanceOf(from) - lockedWalletsAmount[from])), "Cannot transfer token as the wallet is locked");
    }
    // Internal mint function which cannot be called externally after the GPO contract is deployed ensuring that the GPO token hard cap of 100,000,000 is not breached
    function _mint(address account, uint256 amount) internal virtual override {
        // Ensures that GPO token hard cap of 100,000,000 is not breached even if the mint function is called internally
        require(
            ERC20.totalSupply() + amount <= hardCapOnToken(),
            "ERC20Capped: cap exceeded"
        );
        super._mint(account, amount);
    }

    // Returns the GPO token hard cap ("fixedSupply") in wei
    function hardCapOnToken() public view returns (uint256) {
        return fixedSupply * (10**(uint256(decimals())));
    }
    // Returns the GPO token wallet hard cap ("capOnWallet") in wei
    function hardCapOnWallet() public view returns (uint256) {
        return capOnWallet * (10**(uint256(decimals())));
    }
    // Returns the GoldPesa feeOnSwap in USDC which is used in the swap functions
    function calculateFeeOnSwap(uint256 amount)
        internal
        view
        returns (uint256)
    {
        return amount * feeOnSwap / 100;
    }
    // Enables GoldPesa to lock and unlock wallet address manually 
    function lockUnlockWallet(address account, bool yesOrNo, uint256 amount) public authorizedLocker {
        lockedWallets[account] = yesOrNo;
        if (yesOrNo) {
            uint256 lockedValue = lockedWalletsAmount[account] + amount;
            require(lockedValue <= balanceOf(account));
            lockedWalletsAmount[account] = lockedValue;
        } else {
            lockedWalletsAmount[account] = 0;
        }
    }
    // Pause the GPO token transfers
    function pause() public onlyOwner {
        _pause();
    }
    // Unpause the GPO token transfer
    function unpause() public onlyOwner {
        _unpause();
    }

    // User defines the exact amount of USDC they would like to receive while swaping GPO for USDC using the GPO/USDC Uniswap V3 liquidity pool.
    // Any extra GPO tokens not used in the Swap are returned back to the user.
    function swapToExactOutput(uint256 amountInMaximum, uint256 amountOut, uint256 deadline) external returns (uint256 amountIn) {
        require(swapEnabled || whitelistedWallets[_msgSender()]);
        
        _transfer(_msgSender(), address(this), amountInMaximum);
        _approve(address(this), address(swapRouter), amountInMaximum);

        if (deadline == 0)
            deadline = block.timestamp + 30*60;
        
        ISwapRouter.ExactOutputSingleParams memory params =
            ISwapRouter.ExactOutputSingleParams({
                tokenIn: address(this),
                tokenOut: addrUSDC,
                fee: swapPoolFee,
                recipient: address(this),
                deadline: deadline,
                amountOut: amountOut,
                amountInMaximum: amountInMaximum,
                sqrtPriceLimitX96: 0
            });
        amountIn = swapRouter.exactOutputSingle(params);
        uint256 fee = calculateFeeOnSwap(amountOut);
        uint256 amountSwap = amountOut - fee;
        
        TransferHelper.safeTransfer(addrUSDC, _msgSender(), amountSwap);
        distributeFee(fee); 

        if (amountIn < amountInMaximum) {
            _transfer(address(this), _msgSender(), amountInMaximum - amountIn);
        } 
        emit TokensSwaped(_msgSender(), amountIn, amountOut, false);
    }
    // User defines the exact amount of GPO they would like to spend while swaping GPO for USDC using the GPO/USDC Uniswap V3 liquidity pool.
    function swapToExactInput(uint256 amountIn, uint256 amountOutMinimum, uint256 deadline ) external returns (uint256 amountOut) {
        require(swapEnabled || whitelistedWallets[_msgSender()]);

        _transfer(_msgSender(), address(this), amountIn);
        _approve(address(this), address(swapRouter), amountIn);

        if (deadline == 0)
            deadline = block.timestamp + 30*60;

        ISwapRouter.ExactInputSingleParams memory params = ISwapRouter
            .ExactInputSingleParams({
                tokenIn: address(this),
                tokenOut: addrUSDC,
                fee: swapPoolFee,
                recipient: address(this),
                deadline: deadline,
                amountIn: amountIn,
                amountOutMinimum: amountOutMinimum,
                sqrtPriceLimitX96: 0
            });

        amountOut = swapRouter.exactInputSingle(params);

        uint256 fee = calculateFeeOnSwap(amountOut);
        uint256 amountSwap = amountOut - fee;

        TransferHelper.safeTransfer(addrUSDC, _msgSender(), amountSwap);
        distributeFee(fee);

        emit TokensSwaped(_msgSender(), amountIn, amountOut, false);

        return amountSwap;
    }
    // User defines the exact amount of GPO they would like to receive while swaping USDC for GPO using the GPO/USDC Uniswap V3 liquidity pool.
    // Any extra USDC tokens not used in the Swap are returned back to the user.
    function swapFromExactOutput(uint256 amountInMaximum, uint256 amountOut, uint256 deadline) external returns (uint256 amountIn) {
        require(swapEnabled || whitelistedWallets[_msgSender()]);

        TransferHelper.safeTransferFrom(addrUSDC, _msgSender(), address(this), amountInMaximum);
        uint256 fee = calculateFeeOnSwap(amountInMaximum);
        uint256 amountSwap = amountInMaximum - fee;
        distributeFee(fee);

        
        if (deadline == 0)
            deadline = block.timestamp + 30*60;
        
        TransferHelper.safeApprove(addrUSDC, address(swapRouter), amountSwap);
        ISwapRouter.ExactOutputSingleParams memory params = ISwapRouter.ExactOutputSingleParams({
                tokenIn: addrUSDC,
                tokenOut: address(this),
                fee: swapPoolFee,
                recipient: address(this),
                deadline: deadline,
                amountOut: amountOut,
                amountInMaximum: amountSwap,
                sqrtPriceLimitX96: 0
        });
        amountIn = swapRouter.exactOutputSingle(params);
        
        _transfer(address(this), _msgSender(), amountOut);

        if (amountIn < amountSwap) {
            TransferHelper.safeTransfer(addrUSDC, _msgSender(), amountSwap - amountIn);
        } 

        emit TokensSwaped(_msgSender(), amountIn, amountOut, true);
    }
    // User defines the exact amount of USDC they would like to spend while swaping USDC for GPO using the GPO/USDC Uniswap V3 liquidity pool.
    function swapFromExactInput(uint256 amountIn, uint256 amountOutMinimum, uint256 deadline) external returns (uint256 amountOut) {
        require(swapEnabled || whitelistedWallets[_msgSender()]);

        uint256 fee = calculateFeeOnSwap(amountIn);
        TransferHelper.safeTransferFrom(addrUSDC, _msgSender(), address(this), amountIn);
        uint256 amountSwap = amountIn - fee;
        distributeFee(fee);
        TransferHelper.safeApprove(addrUSDC, address(swapRouter), amountSwap);

        if (deadline == 0)
            deadline = block.timestamp + 30*60;

        ISwapRouter.ExactInputSingleParams memory params = ISwapRouter
            .ExactInputSingleParams({
                tokenIn: addrUSDC,
                tokenOut: address(this),
                fee: swapPoolFee,
                recipient: address(this),
                deadline: deadline,
                amountIn: amountSwap,
                amountOutMinimum: amountOutMinimum,
                sqrtPriceLimitX96: 0
            });
        amountOut = swapRouter.exactInputSingle(params);
        _transfer(address(this), _msgSender(), amountOut);

        emit TokensSwaped(_msgSender(), amountIn, amountOut, true);
    }


}

File 2 of 17 : TransferHelper.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.6.0;

import '@openzeppelin/contracts/token/ERC20/IERC20.sol';

library TransferHelper {
    /// @notice Transfers tokens from the targeted address to the given destination
    /// @notice Errors with 'STF' if transfer fails
    /// @param token The contract address of the token to be transferred
    /// @param from The originating address from which the tokens will be transferred
    /// @param to The destination address of the transfer
    /// @param value The amount to be transferred
    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) =
            token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'STF');
    }

    /// @notice Transfers tokens from msg.sender to a recipient
    /// @dev Errors with ST if transfer fails
    /// @param token The contract address of the token which will be transferred
    /// @param to The recipient of the transfer
    /// @param value The value of the transfer
    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'ST');
    }

    /// @notice Approves the stipulated contract to spend the given allowance in the given token
    /// @dev Errors with 'SA' if transfer fails
    /// @param token The contract address of the token to be approved
    /// @param to The target of the approval
    /// @param value The amount of the given token the target will be allowed to spend
    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.approve.selector, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'SA');
    }

    /// @notice Transfers ETH to the recipient address
    /// @dev Fails with `STE`
    /// @param to The destination of the transfer
    /// @param value The value to be transferred
    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, 'STE');
    }
}

File 3 of 17 : ISwapRouter.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.7.5;
pragma abicoder v2;

import '@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol';

/// @title Router token swapping functionality
/// @notice Functions for swapping tokens via Uniswap V3
interface ISwapRouter is IUniswapV3SwapCallback {
    struct ExactInputSingleParams {
        address tokenIn;
        address tokenOut;
        uint24 fee;
        address recipient;
        uint256 deadline;
        uint256 amountIn;
        uint256 amountOutMinimum;
        uint160 sqrtPriceLimitX96;
    }

    /// @notice Swaps `amountIn` of one token for as much as possible of another token
    /// @param params The parameters necessary for the swap, encoded as `ExactInputSingleParams` in calldata
    /// @return amountOut The amount of the received token
    function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut);

    struct ExactInputParams {
        bytes path;
        address recipient;
        uint256 deadline;
        uint256 amountIn;
        uint256 amountOutMinimum;
    }

    /// @notice Swaps `amountIn` of one token for as much as possible of another along the specified path
    /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactInputParams` in calldata
    /// @return amountOut The amount of the received token
    function exactInput(ExactInputParams calldata params) external payable returns (uint256 amountOut);

    struct ExactOutputSingleParams {
        address tokenIn;
        address tokenOut;
        uint24 fee;
        address recipient;
        uint256 deadline;
        uint256 amountOut;
        uint256 amountInMaximum;
        uint160 sqrtPriceLimitX96;
    }

    /// @notice Swaps as little as possible of one token for `amountOut` of another token
    /// @param params The parameters necessary for the swap, encoded as `ExactOutputSingleParams` in calldata
    /// @return amountIn The amount of the input token
    function exactOutputSingle(ExactOutputSingleParams calldata params) external payable returns (uint256 amountIn);

    struct ExactOutputParams {
        bytes path;
        address recipient;
        uint256 deadline;
        uint256 amountOut;
        uint256 amountInMaximum;
    }

    /// @notice Swaps as little as possible of one token for `amountOut` of another along the specified path (reversed)
    /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactOutputParams` in calldata
    /// @return amountIn The amount of the input token
    function exactOutput(ExactOutputParams calldata params) external payable returns (uint256 amountIn);
}

File 4 of 17 : IUniswapV3SwapCallback.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Callback for IUniswapV3PoolActions#swap
/// @notice Any contract that calls IUniswapV3PoolActions#swap must implement this interface
interface IUniswapV3SwapCallback {
    /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.
    /// @dev In the implementation you must pay the pool tokens owed for the swap.
    /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.
    /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.
    /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by
    /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.
    /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by
    /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.
    /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call
    function uniswapV3SwapCallback(
        int256 amount0Delta,
        int256 amount1Delta,
        bytes calldata data
    ) external;
}

File 5 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT

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 6 of 17 : ERC165.sol
// SPDX-License-Identifier: MIT

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 7 of 17 : Strings.sol
// SPDX-License-Identifier: MIT

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 8 of 17 : Context.sol
// SPDX-License-Identifier: MIT

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 9 of 17 : ERC20PresetFixedSupply.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "../extensions/ERC20Burnable.sol";

/**
 * @dev {ERC20} token, including:
 *
 *  - Preminted initial supply
 *  - Ability for holders to burn (destroy) their tokens
 *  - No access control mechanism (for minting/pausing) and hence no governance
 *
 * This contract uses {ERC20Burnable} to include burn capabilities - head to
 * its documentation for details.
 *
 * _Available since v3.4._
 */
contract ERC20PresetFixedSupply is ERC20Burnable {
    /**
     * @dev Mints `initialSupply` amount of token and transfers them to `owner`.
     *
     * See {ERC20-constructor}.
     */
    constructor(
        string memory name,
        string memory symbol,
        uint256 initialSupply,
        address owner
    ) ERC20(name, symbol) {
        _mint(owner, initialSupply);
    }
}

File 10 of 17 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

File 11 of 17 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC20.sol";
import "../../../utils/Context.sol";

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 currentAllowance = allowance(account, _msgSender());
        require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
        unchecked {
            _approve(account, _msgSender(), currentAllowance - amount);
        }
        _burn(account, amount);
    }
}

File 12 of 17 : IERC20.sol
// SPDX-License-Identifier: MIT

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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        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 13 of 17 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

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

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

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

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        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);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 14 of 17 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 15 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 16 of 17 : IAccessControl.sol
// SPDX-License-Identifier: MIT

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 17 of 17 : AccessControl.sol
// SPDX-License-Identifier: MIT

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 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 {
        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 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 granted `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}.
     * ====
     */
    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);
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        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":[{"internalType":"contract ISwapRouter","name":"_swapRouter","type":"address"},{"internalType":"uint256","name":"_walletsTimelockedUntil","type":"uint256"}],"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":true,"internalType":"address","name":"purchaser","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"},{"indexed":false,"internalType":"bool","name":"direction","type":"bool"}],"name":"TokensSwaped","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":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"AUTHORIZED_LOCK","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":"_name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"addrUSDC","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"authorizedPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"capOnWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"bool","name":"yesOrNo","type":"bool"}],"name":"changeWalletWhitelist","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":[],"name":"feeOnSwap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"feeSplits","outputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint16","name":"fee","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeSplitsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fixedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeTrade","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":[],"name":"hardCapOnToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hardCapOnWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"yesOrNo","type":"bool"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"lockUnlockWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lockedWallets","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lockedWalletsAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"uint24","name":"_feeOnSwap","type":"uint24"}],"name":"setFeeOnSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint16","name":"fee","type":"uint16"}],"internalType":"struct GPO.FeeSplit[]","name":"_feeSplits","type":"tuple[]"}],"name":"setFeeSplits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"USDC","type":"address"},{"internalType":"uint24","name":"poolFee","type":"uint24"}],"name":"setPoolParameters","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":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMinimum","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapFromExactInput","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountInMaximum","type":"uint256"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapFromExactOutput","outputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapRouter","outputs":[{"internalType":"contract ISwapRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMinimum","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapToExactInput","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountInMaximum","type":"uint256"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapToExactOutput","outputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"switchFreeTrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"switchSwapEnabled","outputs":[],"stateMutability":"nonpayable","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":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferTokensTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"walletsTimelockedUntil","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedWallets","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60e0604052600f60a08190526e23b7b6322832b9b09027b83a34b7b760891b60c09081526200003291600791906200099f565b506040805180820190915260038082526247504f60e81b60209092019182526200005f916008916200099f565b50600a6009819055805462ffffff60a01b191661027160a41b179055600d805460ff199081169091556013805490911690553480156200009e57600080fd5b50604051620041c1380380620041c1833981016040819052620000c19162000a45565b60078054620000d09062000bea565b80601f0160208091040260200160405190810160405280929190818152602001828054620000fe9062000bea565b80156200014f5780601f1062000123576101008083540402835291602001916200014f565b820191906000526020600020905b8154815290600101906020018083116200013157829003601f168201915b505050505060088054620001639062000bea565b80601f0160208091040260200160405190810160405280929190818152602001828054620001919062000bea565b8015620001e25780601f10620001b657610100808354040283529160200191620001e2565b820191906000526020600020905b815481529060010190602001808311620001c457829003601f168201915b5050505050620001f7620002c960201b60201c565b3083838160039080519060200190620002129291906200099f565b508051620002289060049060208401906200099f565b5050506200023d8183620002ee60201b60201c565b50506005805460ff19169055506200025790503362000389565b606082901b6001600160601b03191660805262000276600033620003e3565b600c555060116020527f4ad3b33220dddc71b994a52d72c06b10862965f7d926534c05c00fb7e819e7b78054600160ff199182168117909255306000908152604090208054909116909117905562000c3d565b6000620002d96012600a62000ae5565b620002e9906305f5e10062000bae565b905090565b620002f8620002c9565b816200030e620003ef60201b620008dc1760201c565b6200031a919062000a81565b11156200036e5760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a206361702065786365656465640000000000000060448201526064015b60405180910390fd5b620003858282620003f560201b62001b151760201c565b5050565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620003858282620004e8565b60025490565b6001600160a01b0382166200044d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000365565b6200045b6000838362000572565b80600260008282546200046f919062000a81565b90915550506001600160a01b038216600090815260208190526040812080548392906200049e90849062000a81565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b620004f4828262000953565b620003855760008281526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200052e3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6200058a8383836200094e60201b620009f61760201c565b6001600160a01b038216151580620005ba57506001600160a01b03831660009081526011602052604090205460ff165b620006085760405162461bcd60e51b815260206004820152601460248201527f47504f5f4552523a2043616e6e6f74206275726e000000000000000000000000604482015260640162000365565b600b546001600160a01b031615801590620006485750600b546001600160a01b0384811691161480620006485750600b546001600160a01b038381169116145b156200072057600d5460ff16806200069c57506001600160a01b03821660009081526011602052604090205460ff1680156200069c57506001600160a01b03831660009081526011602052604090205460ff165b620007205760405162461bcd60e51b815260206004820152604760248201527f47504f5f4552523a20556e697377617056332066756e6374696f6e616c69747960448201527f206973206f6e6c7920616c6c6f776564207468726f7567682047504f277320706064820152661c9bdd1bd8dbdb60ca1b608482015260a40162000365565b600d5460ff16806200073957506001600160a01b038316155b806200075d57506001600160a01b03821660009081526011602052604090205460ff165b806200079e57506200076e62000980565b816200078f846001600160a01b031660009081526020819052604090205490565b6200079b919062000a81565b11155b620007f85760405162461bcd60e51b815260206004820152602360248201527f47504f5f4552523a204861726420636170206f6e2077616c6c657420726561636044820152621a195960ea1b606482015260840162000365565b60055460ff1615620008605760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b606482015260840162000365565b600c54421015806200088b57506001600160a01b03831660009081526010602052604090205460ff16155b80620008ea57506001600160a01b03831660009081526010602052604090205460ff168015620008ea57506001600160a01b0383166000908152601260209081526040808320549183905290912054620008e6919062000bd0565b8111155b6200094e5760405162461bcd60e51b815260206004820152602d60248201527f43616e6e6f74207472616e7366657220746f6b656e206173207468652077616c60448201526c1b195d081a5cc81b1bd8dad959609a1b606482015260840162000365565b505050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff165b92915050565b6000620009906012600a62000ae5565b620002e990620186a062000bae565b828054620009ad9062000bea565b90600052602060002090601f016020900481019282620009d1576000855562000a1c565b82601f10620009ec57805160ff191683800117855562000a1c565b8280016001018555821562000a1c579182015b8281111562000a1c578251825591602001919060010190620009ff565b5062000a2a92915062000a2e565b5090565b5b8082111562000a2a576000815560010162000a2f565b6000806040838503121562000a5957600080fd5b82516001600160a01b038116811462000a7157600080fd5b6020939093015192949293505050565b6000821982111562000a975762000a9762000c27565b500190565b600181815b8085111562000add57816000190482111562000ac15762000ac162000c27565b8085161562000acf57918102915b93841c939080029062000aa1565b509250929050565b600062000af3838362000afa565b9392505050565b60008262000b0b575060016200097a565b8162000b1a575060006200097a565b816001811462000b33576002811462000b3e5762000b5e565b60019150506200097a565b60ff84111562000b525762000b5262000c27565b50506001821b6200097a565b5060208310610133831016604e8410600b841016171562000b83575081810a6200097a565b62000b8f838362000a9c565b806000190482111562000ba65762000ba662000c27565b029392505050565b600081600019048311821515161562000bcb5762000bcb62000c27565b500290565b60008282101562000be55762000be562000c27565b500390565b600181811c9082168062000bff57607f821691505b6020821081141562000c2157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60805160601c61352d62000c94600039600081816106e401528181610ef401528181610f94015281816112640152818161130501528181611405015281816114a5015281816117f60152611883015261352d6000f3fe608060405234801561001057600080fd5b50600436106103835760003560e01c8063727945b8116101de578063b0b399f81161010f578063dd62ed3e116100ad578063e44fafb11161007c578063e44fafb1146107b0578063e987412a146107b8578063f2fde38b146107df578063ff99574b146107f257600080fd5b8063dd62ed3e1461073e578063de73a31414610777578063deed12971461078a578063e266903b1461079d57600080fd5b8063c61b1be7116100e9578063c61b1be714610706578063d28d885214610719578063d547741f14610721578063d73452fa1461073457600080fd5b8063b0b399f8146106b9578063b200059d146106cc578063c31c9c07146106df57600080fd5b806395d89b411161017c578063a457c2d711610156578063a457c2d714610668578063a80dcfee1461067b578063a9059cbb1461069e578063b09f1266146106b157600080fd5b806395d89b41146106455780639bf8e4ff1461064d578063a217fddf1461066057600080fd5b80638c4a1116116101b85780638c4a1116146105c45780638da5cb5b146105f957806391d148541461060f5780639533d8d41461062257600080fd5b8063727945b81461058957806379cc6790146105a95780638456cb59146105bc57600080fd5b806336568abe116102b8578063514b1bec116102565780636b10b820116102305780636b10b820146105385780636ddd17131461054b57806370a0823114610558578063715018a61461058157600080fd5b8063514b1bec146105125780635c975abb1461052557806364d86dc31461053057600080fd5b80633b8a7506116102925780633b8a7506146104e65780633f4ba83a146104ee57806342028644146104f657806342966c68146104ff57600080fd5b806336568abe146104b857806339509351146104cb57806339eb5e8f146104de57600080fd5b806323b872dd116103255780632be8c2a5116102ff5780632be8c2a51461046e5780632f2ff15d14610483578063313ce5671461049657806334c05dd6146104a557600080fd5b806323b872dd1461040d578063248a9ca3146104205780632a337c261461044357600080fd5b8063095ea7b311610361578063095ea7b3146103dc5780630ae36eb7146103ef5780630e6c197f146103fc57806318160ddd1461040557600080fd5b8063014300e51461038857806301ffc9a7146103a457806306fdde03146103c7575b600080fd5b61039160095481565b6040519081526020015b60405180910390f35b6103b76103b236600461304c565b6107fd565b604051901515815260200161039b565b6103cf610834565b60405161039b9190613167565b6103b76103ea366004612ee2565b6108c6565b600d546103b79060ff1681565b610391600c5481565b600254610391565b6103b761041b366004612e06565b6108e2565b61039161042e366004613010565b60009081526006602052604090206001015490565b600b54610456906001600160a01b031681565b6040516001600160a01b03909116815260200161039b565b61048161047c366004612ee2565b610991565b005b610481610491366004613029565b6109d0565b6040516012815260200161039b565b600a54610456906001600160a01b031681565b6104816104c6366004613029565b6109fb565b6103b76104d9366004612ee2565b610a75565b610481610ab1565b610391610af5565b610481610b15565b610391600f5481565b61048161050d366004613010565b610b4f565b610481610520366004612eb8565b610b5c565b60055460ff166103b7565b610481610cd5565b610481610546366004613076565b610d19565b6013546103b79060ff1681565b610391610566366004612db8565b6001600160a01b031660009081526020819052604090205490565b610481610d53565b610391610597366004612db8565b60126020526000908152604090205481565b6104816105b7366004612ee2565b610d8d565b610481610e0e565b6105d76105d2366004613010565b610e46565b604080516001600160a01b03909316835261ffff90911660208301520161039b565b60055461010090046001600160a01b0316610456565b6103b761061d366004613029565b610e7c565b6103b7610630366004612db8565b60106020526000908152604090205460ff1681565b6103cf610ea7565b61039161065b3660046130aa565b610eb6565b610391600081565b6103b7610676366004612ee2565b6110b5565b6103b7610689366004612db8565b60116020526000908152604090205460ff1681565b6103b76106ac366004612ee2565b61114e565b6103cf61115b565b6103916106c73660046130aa565b6111e9565b6103916106da3660046130aa565b6113ca565b6104567f000000000000000000000000000000000000000000000000000000000000000081565b610481610714366004612e42565b6115a4565b6103cf6115ff565b61048161072f366004613029565b61160c565b610391620186a081565b61039161074c366004612dd3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610481610785366004612f0c565b611632565b6103916107983660046130aa565b611768565b6104816107ab366004612e79565b611970565b610391611a5b565b6103917f53af0b0ef1da26cd82018c8e2471da658bf76a4c1c40b81ef9a34d1083f1ad3f81565b6104816107ed366004612db8565b611a77565b6103916305f5e10081565b60006001600160e01b03198216637965db0b60e01b148061082e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606003805461084390613431565b80601f016020809104026020016040519081016040528092919081815260200182805461086f90613431565b80156108bc5780601f10610891576101008083540402835291602001916108bc565b820191906000526020600020905b81548152906001019060200180831161089f57829003601f168201915b5050505050905090565b60006108d3338484611c00565b50600192915050565b60025490565b60006108ef848484611d24565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156109795760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6109868533858403611c00565b506001949350505050565b6005546001600160a01b036101009091041633146109c15760405162461bcd60e51b81526004016109709061319a565b6109cc308383611d24565b5050565b6000828152600660205260409020600101546109ec8133611eff565b6109f68383611f63565b505050565b6001600160a01b0381163314610a6b5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610970565b6109cc8282611fe9565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916108d3918590610aac908690613293565b611c00565b6005546001600160a01b03610100909104163314610ae15760405162461bcd60e51b81526004016109709061319a565b600d805460ff19811660ff90911615179055565b6000610b036012600a613310565b610b1090620186a06133b8565b905090565b6005546001600160a01b03610100909104163314610b455760405162461bcd60e51b81526004016109709061319a565b610b4d612050565b565b610b5933826120e3565b50565b6005546001600160a01b03610100909104163314610b8c5760405162461bcd60e51b81526004016109709061319a565b600a80546001600160a01b038481166001600160b81b03199092168217600160a01b62ffffff86160217909255600b549091166000908152601160205260409020805460ff1916905530908390821115610be257905b604080516001600160a01b038481166020808401919091529084168284015262ffffff8616606080840191909152835180840390910181526080830190935282519201919091206001600160f81b031960a08301527307e610c722b66148d8c6b92967c99cd1ba8c7e6160621b60a183015260b58201527fe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b5460d582015260f50160408051808303601f190181529181528151602092830120600b80546001600160a01b0319166001600160a01b039092169182179055600090815260119092529020805460ff1916600117905550505050565b6005546001600160a01b03610100909104163314610d055760405162461bcd60e51b81526004016109709061319a565b6013805460ff19811660ff90911615179055565b6005546001600160a01b03610100909104163314610d495760405162461bcd60e51b81526004016109709061319a565b62ffffff16600955565b6005546001600160a01b03610100909104163314610d835760405162461bcd60e51b81526004016109709061319a565b610b4d600061223d565b6000610d99833361074c565b905081811015610df75760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b6064820152608401610970565b610e048333848403611c00565b6109f683836120e3565b6005546001600160a01b03610100909104163314610e3e5760405162461bcd60e51b81526004016109709061319a565b610b4d612297565b600e8181548110610e5657600080fd5b6000918252602090912001546001600160a01b0381169150600160a01b900461ffff1682565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606004805461084390613431565b60135460009060ff1680610ed957503360009081526011602052604090205460ff165b610ee257600080fd5b610eee335b3086611d24565b610f19307f000000000000000000000000000000000000000000000000000000000000000086611c00565b81610f2d57610f2a42610708613293565b91505b604080516101008101825230808252600a546001600160a01b038082166020850152600160a01b90910462ffffff168385015260608301919091526080820185905260a0820186905260c08201879052600060e08301529151631b67c43360e31b815290917f0000000000000000000000000000000000000000000000000000000000000000169063db3e219890610fc99084906004016131cf565b602060405180830381600087803b158015610fe357600080fd5b505af1158015610ff7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101b9190613091565b9150600061102885612312565b9050600061103682876133d7565b600a54909150611051906001600160a01b0316335b8361232e565b61105a8261242e565b86841015611076576110763033611071878b6133d7565b611d24565b604080518581526020810188905260009181019190915233906000805160206134d8833981519152906060015b60405180910390a25050509392505050565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156111375760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610970565b6111443385858403611c00565b5060019392505050565b60006108d3338484611d24565b6008805461116890613431565b80601f016020809104026020016040519081016040528092919081815260200182805461119490613431565b80156111e15780601f106111b6576101008083540402835291602001916111e1565b820191906000526020600020905b8154815290600101906020018083116111c457829003601f168201915b505050505081565b60135460009060ff168061120c57503360009081526011602052604090205460ff165b61121557600080fd5b600061122085612312565b600a5490915061123b906001600160a01b0316333088612609565b600061124782876133d7565b90506112528261242e565b600a54611289906001600160a01b03167f000000000000000000000000000000000000000000000000000000000000000083612713565b8361129d5761129a42610708613293565b93505b6040805161010081018252600a546001600160a01b0380821683523060208401819052600160a01b90920462ffffff168385015260608301919091526080820187905260a0820184905260c08201889052600060e0830152915163414bf38960e01b815290917f0000000000000000000000000000000000000000000000000000000000000000169063414bf3899061133a9084906004016131cf565b602060405180830381600087803b15801561135457600080fd5b505af1158015611368573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061138c9190613091565b9350611399303386611d24565b604080518881526020810186905260019181019190915233906000805160206134d8833981519152906060016110a3565b60135460009060ff16806113ed57503360009081526011602052604090205460ff165b6113f657600080fd5b6113ff33610ee7565b61142a307f000000000000000000000000000000000000000000000000000000000000000086611c00565b8161143e5761143b42610708613293565b91505b604080516101008101825230808252600a546001600160a01b038082166020850152600160a01b90910462ffffff168385015260608301919091526080820185905260a0820187905260c08201869052600060e0830152915163414bf38960e01b815290917f0000000000000000000000000000000000000000000000000000000000000000169063414bf389906114da9084906004016131cf565b602060405180830381600087803b1580156114f457600080fd5b505af1158015611508573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152c9190613091565b9150600061153983612312565b9050600061154782856133d7565b600a54909150611560906001600160a01b03163361104b565b6115698261242e565b6040805188815260208101869052600081830152905133916000805160206134d8833981519152919081900360600190a29695505050505050565b6005546001600160a01b036101009091041633146115d45760405162461bcd60e51b81526004016109709061319a565b6001600160a01b03919091166000908152601160205260409020805460ff1916911515919091179055565b6007805461116890613431565b6000828152600660205260409020600101546116288133611eff565b6109f68383611fe9565b6005546001600160a01b036101009091041633146116625760405162461bcd60e51b81526004016109709061319a565b6000805b82518110156116b75760008382815181106116835761168361349d565b60200260200101519050806020015161ffff16836116a19190613293565b92505080806116af9061346c565b915050611666565b50815115806116c65750806064145b6116cf57600080fd5b6116db600e6000612d4d565b60005b825181101561176057600e8382815181106116fb576116fb61349d565b6020908102919091018101518254600181018455600093845292829020815193018054919092015161ffff16600160a01b026001600160b01b03199091166001600160a01b0390931692909217919091179055806117588161346c565b9150506116de565b505051600f55565b60135460009060ff168061178b57503360009081526011602052604090205460ff165b61179457600080fd5b600a546117ac906001600160a01b0316333087612609565b60006117b785612312565b905060006117c582876133d7565b90506117d08261242e565b836117e4576117e142610708613293565b93505b600a5461181b906001600160a01b03167f000000000000000000000000000000000000000000000000000000000000000083612713565b6040805161010081018252600a546001600160a01b0380821683523060208401819052600160a01b90920462ffffff168385015260608301919091526080820187905260a0820188905260c08201849052600060e08301529151631b67c43360e31b815290917f0000000000000000000000000000000000000000000000000000000000000000169063db3e2198906118b89084906004016131cf565b602060405180830381600087803b1580156118d257600080fd5b505af11580156118e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061190a9190613091565b9350611917303388611d24565b8184101561193f57600a5461193f906001600160a01b03163361193a87866133d7565b61232e565b604080518581526020810188905260019181019190915233906000805160206134d8833981519152906060016110a3565b61199a7f53af0b0ef1da26cd82018c8e2471da658bf76a4c1c40b81ef9a34d1083f1ad3f33610e7c565b6119a357600080fd5b6001600160a01b0383166000908152601060205260409020805460ff19168315801591909117909155611a3f576001600160a01b0383166000908152601260205260408120546119f4908390613293565b9050611a15846001600160a01b031660009081526020819052604090205490565b811115611a2157600080fd5b6001600160a01b038416600090815260126020526040902055505050565b50506001600160a01b0316600090815260126020526040812055565b6000611a696012600a613310565b610b10906305f5e1006133b8565b6005546001600160a01b03610100909104163314611aa75760405162461bcd60e51b81526004016109709061319a565b6001600160a01b038116611b0c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610970565b610b598161223d565b6001600160a01b038216611b6b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610970565b611b776000838361280c565b8060026000828254611b899190613293565b90915550506001600160a01b03821660009081526020819052604081208054839290611bb6908490613293565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038316611c625760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610970565b6001600160a01b038216611cc35760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610970565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316611d885760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610970565b6001600160a01b038216611dea5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610970565b611df583838361280c565b6001600160a01b03831660009081526020819052604090205481811015611e6d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610970565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611ea4908490613293565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611ef091815260200190565b60405180910390a35b50505050565b611f098282610e7c565b6109cc57611f21816001600160a01b03166014612baa565b611f2c836020612baa565b604051602001611f3d9291906130f2565b60408051601f198184030181529082905262461bcd60e51b825261097091600401613167565b611f6d8282610e7c565b6109cc5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611fa53390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611ff38282610e7c565b156109cc5760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60055460ff166120995760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610970565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0382166121435760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610970565b61214f8260008361280c565b6001600160a01b038216600090815260208190526040902054818110156121c35760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610970565b6001600160a01b03831660009081526020819052604081208383039055600280548492906121f29084906133d7565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60055460ff16156122dd5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610970565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120c63390565b600060646009548361232491906133b8565b61082e91906132ab565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b179052915160009283929087169161238a91906130d6565b6000604051808303816000865af19150503d80600081146123c7576040519150601f19603f3d011682016040523d82523d6000602084013e6123cc565b606091505b50915091508180156123f65750805115806123f65750808060200190518101906123f69190612ff3565b6124275760405162461bcd60e51b815260206004820152600260248201526114d560f21b6044820152606401610970565b5050505050565b6000805b600e5481101561252d576000600e82815481106124515761245161349d565b60009182526020822001805490925060649061247890600160a01b900461ffff16876133b8565b61248291906132ab565b600a54835460405163a9059cbb60e01b81526001600160a01b03918216600482015260248101849052929350169063a9059cbb90604401602060405180830381600087803b1580156124d357600080fd5b505af11580156124e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061250b9190612ff3565b506125168185613293565b9350505080806125259061346c565b915050612432565b5081811415801561253f5750600e5415155b156109cc576000600e60008154811061255a5761255a61349d565b60009182526020909120600a54910180549092506001600160a01b039182169163a9059cbb911661258b85876133d7565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b1580156125d157600080fd5b505af11580156125e5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ef99190612ff3565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b179052915160009283929088169161266d91906130d6565b6000604051808303816000865af19150503d80600081146126aa576040519150601f19603f3d011682016040523d82523d6000602084013e6126af565b606091505b50915091508180156126d95750805115806126d95750808060200190518101906126d99190612ff3565b61270b5760405162461bcd60e51b815260206004820152600360248201526229aa2360e91b6044820152606401610970565b505050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663095ea7b360e01b179052915160009283929087169161276f91906130d6565b6000604051808303816000865af19150503d80600081146127ac576040519150601f19603f3d011682016040523d82523d6000602084013e6127b1565b606091505b50915091508180156127db5750805115806127db5750808060200190518101906127db9190612ff3565b6124275760405162461bcd60e51b8152602060048201526002602482015261534160f01b6044820152606401610970565b6001600160a01b03821615158061283b57506001600160a01b03831660009081526011602052604090205460ff165b61287e5760405162461bcd60e51b815260206004820152601460248201527323a827afa2a9291d1021b0b73737ba10313ab93760611b6044820152606401610970565b600b546001600160a01b0316158015906128bc5750600b546001600160a01b03848116911614806128bc5750600b546001600160a01b038381169116145b1561298f57600d5460ff168061290d57506001600160a01b03821660009081526011602052604090205460ff16801561290d57506001600160a01b03831660009081526011602052604090205460ff165b61298f5760405162461bcd60e51b815260206004820152604760248201527f47504f5f4552523a20556e697377617056332066756e6374696f6e616c69747960448201527f206973206f6e6c7920616c6c6f776564207468726f7567682047504f277320706064820152661c9bdd1bd8dbdb60ca1b608482015260a401610970565b600d5460ff16806129a757506001600160a01b038316155b806129ca57506001600160a01b03821660009081526011602052604090205460ff165b80612a0557506129d8610af5565b816129f8846001600160a01b031660009081526020819052604090205490565b612a029190613293565b11155b612a5d5760405162461bcd60e51b815260206004820152602360248201527f47504f5f4552523a204861726420636170206f6e2077616c6c657420726561636044820152621a195960ea1b6064820152608401610970565b60055460ff1615612ac35760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608401610970565b600c5442101580612aed57506001600160a01b03831660009081526010602052604090205460ff16155b80612b4857506001600160a01b03831660009081526010602052604090205460ff168015612b4857506001600160a01b0383166000908152601260209081526040808320549183905290912054612b4491906133d7565b8111155b6109f65760405162461bcd60e51b815260206004820152602d60248201527f43616e6e6f74207472616e7366657220746f6b656e206173207468652077616c60448201526c1b195d081a5cc81b1bd8dad959609a1b6064820152608401610970565b60606000612bb98360026133b8565b612bc4906002613293565b67ffffffffffffffff811115612bdc57612bdc6134b3565b6040519080825280601f01601f191660200182016040528015612c06576020820181803683370190505b509050600360fc1b81600081518110612c2157612c2161349d565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612c5057612c5061349d565b60200101906001600160f81b031916908160001a9053506000612c748460026133b8565b612c7f906001613293565b90505b6001811115612cf7576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612cb357612cb361349d565b1a60f81b828281518110612cc957612cc961349d565b60200101906001600160f81b031916908160001a90535060049490941c93612cf08161341a565b9050612c82565b508315612d465760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610970565b9392505050565b5080546000825590600052602060002090810190610b5991905b80821115612d855780546001600160b01b0319168155600101612d67565b5090565b80356001600160a01b0381168114612da057600080fd5b919050565b803562ffffff81168114612da057600080fd5b600060208284031215612dca57600080fd5b612d4682612d89565b60008060408385031215612de657600080fd5b612def83612d89565b9150612dfd60208401612d89565b90509250929050565b600080600060608486031215612e1b57600080fd5b612e2484612d89565b9250612e3260208501612d89565b9150604084013590509250925092565b60008060408385031215612e5557600080fd5b612e5e83612d89565b91506020830135612e6e816134c9565b809150509250929050565b600080600060608486031215612e8e57600080fd5b612e9784612d89565b92506020840135612ea7816134c9565b929592945050506040919091013590565b60008060408385031215612ecb57600080fd5b612ed483612d89565b9150612dfd60208401612da5565b60008060408385031215612ef557600080fd5b612efe83612d89565b946020939093013593505050565b60006020808385031215612f1f57600080fd5b823567ffffffffffffffff80821115612f3757600080fd5b818501915085601f830112612f4b57600080fd5b813581811115612f5d57612f5d6134b3565b612f6b848260051b01613262565b8181528481019250838501600683901b85018601891015612f8b57600080fd5b600094505b82851015612fe757604080828b031215612fa957600080fd5b612fb1613239565b612fba83612d89565b81528783013561ffff81168114612fd057600080fd5b818901528552600195909501949386019301612f90565b50979650505050505050565b60006020828403121561300557600080fd5b8151612d46816134c9565b60006020828403121561302257600080fd5b5035919050565b6000806040838503121561303c57600080fd5b82359150612dfd60208401612d89565b60006020828403121561305e57600080fd5b81356001600160e01b031981168114612d4657600080fd5b60006020828403121561308857600080fd5b612d4682612da5565b6000602082840312156130a357600080fd5b5051919050565b6000806000606084860312156130bf57600080fd5b505081359360208301359350604090920135919050565b600082516130e88184602087016133ee565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161312a8160178501602088016133ee565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161315b8160288401602088016133ee565b01602801949350505050565b60208152600082518060208401526131868160408501602087016133ee565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b610100810161082e828480516001600160a01b03908116835260208083015182169084015260408083015162ffffff16908401526060808301518216908401526080808301519084015260a0828101519084015260c0808301519084015260e09182015116910152565b6040805190810167ffffffffffffffff8111828210171561325c5761325c6134b3565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561328b5761328b6134b3565b604052919050565b600082198211156132a6576132a6613487565b500190565b6000826132c857634e487b7160e01b600052601260045260246000fd5b500490565b600181815b808511156133085781600019048211156132ee576132ee613487565b808516156132fb57918102915b93841c93908002906132d2565b509250929050565b6000612d4683836000826133265750600161082e565b816133335750600061082e565b816001811461334957600281146133535761336f565b600191505061082e565b60ff84111561336457613364613487565b50506001821b61082e565b5060208310610133831016604e8410600b8410161715613392575081810a61082e565b61339c83836132cd565b80600019048211156133b0576133b0613487565b029392505050565b60008160001904831182151516156133d2576133d2613487565b500290565b6000828210156133e9576133e9613487565b500390565b60005b838110156134095781810151838201526020016133f1565b83811115611ef95750506000910152565b60008161342957613429613487565b506000190190565b600181811c9082168061344557607f821691505b6020821081141561346657634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561348057613480613487565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114610b5957600080fdfe7dd0592774a9eb2849e25dc3a08e0494dbca59a475564d0fed6733040065a4afa2646970667358221220fbf7db38e3ca2702b25c76adfabb6a14b6c4d24da485af3378635f55029ca8ec64736f6c63430008070033000000000000000000000000e592427a0aece92de3edee1f18e0157c0586156400000000000000000000000000000000000000000000000000000000634b1140

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103835760003560e01c8063727945b8116101de578063b0b399f81161010f578063dd62ed3e116100ad578063e44fafb11161007c578063e44fafb1146107b0578063e987412a146107b8578063f2fde38b146107df578063ff99574b146107f257600080fd5b8063dd62ed3e1461073e578063de73a31414610777578063deed12971461078a578063e266903b1461079d57600080fd5b8063c61b1be7116100e9578063c61b1be714610706578063d28d885214610719578063d547741f14610721578063d73452fa1461073457600080fd5b8063b0b399f8146106b9578063b200059d146106cc578063c31c9c07146106df57600080fd5b806395d89b411161017c578063a457c2d711610156578063a457c2d714610668578063a80dcfee1461067b578063a9059cbb1461069e578063b09f1266146106b157600080fd5b806395d89b41146106455780639bf8e4ff1461064d578063a217fddf1461066057600080fd5b80638c4a1116116101b85780638c4a1116146105c45780638da5cb5b146105f957806391d148541461060f5780639533d8d41461062257600080fd5b8063727945b81461058957806379cc6790146105a95780638456cb59146105bc57600080fd5b806336568abe116102b8578063514b1bec116102565780636b10b820116102305780636b10b820146105385780636ddd17131461054b57806370a0823114610558578063715018a61461058157600080fd5b8063514b1bec146105125780635c975abb1461052557806364d86dc31461053057600080fd5b80633b8a7506116102925780633b8a7506146104e65780633f4ba83a146104ee57806342028644146104f657806342966c68146104ff57600080fd5b806336568abe146104b857806339509351146104cb57806339eb5e8f146104de57600080fd5b806323b872dd116103255780632be8c2a5116102ff5780632be8c2a51461046e5780632f2ff15d14610483578063313ce5671461049657806334c05dd6146104a557600080fd5b806323b872dd1461040d578063248a9ca3146104205780632a337c261461044357600080fd5b8063095ea7b311610361578063095ea7b3146103dc5780630ae36eb7146103ef5780630e6c197f146103fc57806318160ddd1461040557600080fd5b8063014300e51461038857806301ffc9a7146103a457806306fdde03146103c7575b600080fd5b61039160095481565b6040519081526020015b60405180910390f35b6103b76103b236600461304c565b6107fd565b604051901515815260200161039b565b6103cf610834565b60405161039b9190613167565b6103b76103ea366004612ee2565b6108c6565b600d546103b79060ff1681565b610391600c5481565b600254610391565b6103b761041b366004612e06565b6108e2565b61039161042e366004613010565b60009081526006602052604090206001015490565b600b54610456906001600160a01b031681565b6040516001600160a01b03909116815260200161039b565b61048161047c366004612ee2565b610991565b005b610481610491366004613029565b6109d0565b6040516012815260200161039b565b600a54610456906001600160a01b031681565b6104816104c6366004613029565b6109fb565b6103b76104d9366004612ee2565b610a75565b610481610ab1565b610391610af5565b610481610b15565b610391600f5481565b61048161050d366004613010565b610b4f565b610481610520366004612eb8565b610b5c565b60055460ff166103b7565b610481610cd5565b610481610546366004613076565b610d19565b6013546103b79060ff1681565b610391610566366004612db8565b6001600160a01b031660009081526020819052604090205490565b610481610d53565b610391610597366004612db8565b60126020526000908152604090205481565b6104816105b7366004612ee2565b610d8d565b610481610e0e565b6105d76105d2366004613010565b610e46565b604080516001600160a01b03909316835261ffff90911660208301520161039b565b60055461010090046001600160a01b0316610456565b6103b761061d366004613029565b610e7c565b6103b7610630366004612db8565b60106020526000908152604090205460ff1681565b6103cf610ea7565b61039161065b3660046130aa565b610eb6565b610391600081565b6103b7610676366004612ee2565b6110b5565b6103b7610689366004612db8565b60116020526000908152604090205460ff1681565b6103b76106ac366004612ee2565b61114e565b6103cf61115b565b6103916106c73660046130aa565b6111e9565b6103916106da3660046130aa565b6113ca565b6104567f000000000000000000000000e592427a0aece92de3edee1f18e0157c0586156481565b610481610714366004612e42565b6115a4565b6103cf6115ff565b61048161072f366004613029565b61160c565b610391620186a081565b61039161074c366004612dd3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610481610785366004612f0c565b611632565b6103916107983660046130aa565b611768565b6104816107ab366004612e79565b611970565b610391611a5b565b6103917f53af0b0ef1da26cd82018c8e2471da658bf76a4c1c40b81ef9a34d1083f1ad3f81565b6104816107ed366004612db8565b611a77565b6103916305f5e10081565b60006001600160e01b03198216637965db0b60e01b148061082e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606003805461084390613431565b80601f016020809104026020016040519081016040528092919081815260200182805461086f90613431565b80156108bc5780601f10610891576101008083540402835291602001916108bc565b820191906000526020600020905b81548152906001019060200180831161089f57829003601f168201915b5050505050905090565b60006108d3338484611c00565b50600192915050565b60025490565b60006108ef848484611d24565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156109795760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6109868533858403611c00565b506001949350505050565b6005546001600160a01b036101009091041633146109c15760405162461bcd60e51b81526004016109709061319a565b6109cc308383611d24565b5050565b6000828152600660205260409020600101546109ec8133611eff565b6109f68383611f63565b505050565b6001600160a01b0381163314610a6b5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610970565b6109cc8282611fe9565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916108d3918590610aac908690613293565b611c00565b6005546001600160a01b03610100909104163314610ae15760405162461bcd60e51b81526004016109709061319a565b600d805460ff19811660ff90911615179055565b6000610b036012600a613310565b610b1090620186a06133b8565b905090565b6005546001600160a01b03610100909104163314610b455760405162461bcd60e51b81526004016109709061319a565b610b4d612050565b565b610b5933826120e3565b50565b6005546001600160a01b03610100909104163314610b8c5760405162461bcd60e51b81526004016109709061319a565b600a80546001600160a01b038481166001600160b81b03199092168217600160a01b62ffffff86160217909255600b549091166000908152601160205260409020805460ff1916905530908390821115610be257905b604080516001600160a01b038481166020808401919091529084168284015262ffffff8616606080840191909152835180840390910181526080830190935282519201919091206001600160f81b031960a08301527307e610c722b66148d8c6b92967c99cd1ba8c7e6160621b60a183015260b58201527fe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b5460d582015260f50160408051808303601f190181529181528151602092830120600b80546001600160a01b0319166001600160a01b039092169182179055600090815260119092529020805460ff1916600117905550505050565b6005546001600160a01b03610100909104163314610d055760405162461bcd60e51b81526004016109709061319a565b6013805460ff19811660ff90911615179055565b6005546001600160a01b03610100909104163314610d495760405162461bcd60e51b81526004016109709061319a565b62ffffff16600955565b6005546001600160a01b03610100909104163314610d835760405162461bcd60e51b81526004016109709061319a565b610b4d600061223d565b6000610d99833361074c565b905081811015610df75760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b6064820152608401610970565b610e048333848403611c00565b6109f683836120e3565b6005546001600160a01b03610100909104163314610e3e5760405162461bcd60e51b81526004016109709061319a565b610b4d612297565b600e8181548110610e5657600080fd5b6000918252602090912001546001600160a01b0381169150600160a01b900461ffff1682565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606004805461084390613431565b60135460009060ff1680610ed957503360009081526011602052604090205460ff165b610ee257600080fd5b610eee335b3086611d24565b610f19307f000000000000000000000000e592427a0aece92de3edee1f18e0157c0586156486611c00565b81610f2d57610f2a42610708613293565b91505b604080516101008101825230808252600a546001600160a01b038082166020850152600160a01b90910462ffffff168385015260608301919091526080820185905260a0820186905260c08201879052600060e08301529151631b67c43360e31b815290917f000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564169063db3e219890610fc99084906004016131cf565b602060405180830381600087803b158015610fe357600080fd5b505af1158015610ff7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101b9190613091565b9150600061102885612312565b9050600061103682876133d7565b600a54909150611051906001600160a01b0316335b8361232e565b61105a8261242e565b86841015611076576110763033611071878b6133d7565b611d24565b604080518581526020810188905260009181019190915233906000805160206134d8833981519152906060015b60405180910390a25050509392505050565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156111375760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610970565b6111443385858403611c00565b5060019392505050565b60006108d3338484611d24565b6008805461116890613431565b80601f016020809104026020016040519081016040528092919081815260200182805461119490613431565b80156111e15780601f106111b6576101008083540402835291602001916111e1565b820191906000526020600020905b8154815290600101906020018083116111c457829003601f168201915b505050505081565b60135460009060ff168061120c57503360009081526011602052604090205460ff165b61121557600080fd5b600061122085612312565b600a5490915061123b906001600160a01b0316333088612609565b600061124782876133d7565b90506112528261242e565b600a54611289906001600160a01b03167f000000000000000000000000e592427a0aece92de3edee1f18e0157c0586156483612713565b8361129d5761129a42610708613293565b93505b6040805161010081018252600a546001600160a01b0380821683523060208401819052600160a01b90920462ffffff168385015260608301919091526080820187905260a0820184905260c08201889052600060e0830152915163414bf38960e01b815290917f000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564169063414bf3899061133a9084906004016131cf565b602060405180830381600087803b15801561135457600080fd5b505af1158015611368573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061138c9190613091565b9350611399303386611d24565b604080518881526020810186905260019181019190915233906000805160206134d8833981519152906060016110a3565b60135460009060ff16806113ed57503360009081526011602052604090205460ff165b6113f657600080fd5b6113ff33610ee7565b61142a307f000000000000000000000000e592427a0aece92de3edee1f18e0157c0586156486611c00565b8161143e5761143b42610708613293565b91505b604080516101008101825230808252600a546001600160a01b038082166020850152600160a01b90910462ffffff168385015260608301919091526080820185905260a0820187905260c08201869052600060e0830152915163414bf38960e01b815290917f000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564169063414bf389906114da9084906004016131cf565b602060405180830381600087803b1580156114f457600080fd5b505af1158015611508573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152c9190613091565b9150600061153983612312565b9050600061154782856133d7565b600a54909150611560906001600160a01b03163361104b565b6115698261242e565b6040805188815260208101869052600081830152905133916000805160206134d8833981519152919081900360600190a29695505050505050565b6005546001600160a01b036101009091041633146115d45760405162461bcd60e51b81526004016109709061319a565b6001600160a01b03919091166000908152601160205260409020805460ff1916911515919091179055565b6007805461116890613431565b6000828152600660205260409020600101546116288133611eff565b6109f68383611fe9565b6005546001600160a01b036101009091041633146116625760405162461bcd60e51b81526004016109709061319a565b6000805b82518110156116b75760008382815181106116835761168361349d565b60200260200101519050806020015161ffff16836116a19190613293565b92505080806116af9061346c565b915050611666565b50815115806116c65750806064145b6116cf57600080fd5b6116db600e6000612d4d565b60005b825181101561176057600e8382815181106116fb576116fb61349d565b6020908102919091018101518254600181018455600093845292829020815193018054919092015161ffff16600160a01b026001600160b01b03199091166001600160a01b0390931692909217919091179055806117588161346c565b9150506116de565b505051600f55565b60135460009060ff168061178b57503360009081526011602052604090205460ff165b61179457600080fd5b600a546117ac906001600160a01b0316333087612609565b60006117b785612312565b905060006117c582876133d7565b90506117d08261242e565b836117e4576117e142610708613293565b93505b600a5461181b906001600160a01b03167f000000000000000000000000e592427a0aece92de3edee1f18e0157c0586156483612713565b6040805161010081018252600a546001600160a01b0380821683523060208401819052600160a01b90920462ffffff168385015260608301919091526080820187905260a0820188905260c08201849052600060e08301529151631b67c43360e31b815290917f000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564169063db3e2198906118b89084906004016131cf565b602060405180830381600087803b1580156118d257600080fd5b505af11580156118e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061190a9190613091565b9350611917303388611d24565b8184101561193f57600a5461193f906001600160a01b03163361193a87866133d7565b61232e565b604080518581526020810188905260019181019190915233906000805160206134d8833981519152906060016110a3565b61199a7f53af0b0ef1da26cd82018c8e2471da658bf76a4c1c40b81ef9a34d1083f1ad3f33610e7c565b6119a357600080fd5b6001600160a01b0383166000908152601060205260409020805460ff19168315801591909117909155611a3f576001600160a01b0383166000908152601260205260408120546119f4908390613293565b9050611a15846001600160a01b031660009081526020819052604090205490565b811115611a2157600080fd5b6001600160a01b038416600090815260126020526040902055505050565b50506001600160a01b0316600090815260126020526040812055565b6000611a696012600a613310565b610b10906305f5e1006133b8565b6005546001600160a01b03610100909104163314611aa75760405162461bcd60e51b81526004016109709061319a565b6001600160a01b038116611b0c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610970565b610b598161223d565b6001600160a01b038216611b6b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610970565b611b776000838361280c565b8060026000828254611b899190613293565b90915550506001600160a01b03821660009081526020819052604081208054839290611bb6908490613293565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038316611c625760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610970565b6001600160a01b038216611cc35760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610970565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316611d885760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610970565b6001600160a01b038216611dea5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610970565b611df583838361280c565b6001600160a01b03831660009081526020819052604090205481811015611e6d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610970565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611ea4908490613293565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611ef091815260200190565b60405180910390a35b50505050565b611f098282610e7c565b6109cc57611f21816001600160a01b03166014612baa565b611f2c836020612baa565b604051602001611f3d9291906130f2565b60408051601f198184030181529082905262461bcd60e51b825261097091600401613167565b611f6d8282610e7c565b6109cc5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611fa53390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611ff38282610e7c565b156109cc5760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60055460ff166120995760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610970565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0382166121435760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610970565b61214f8260008361280c565b6001600160a01b038216600090815260208190526040902054818110156121c35760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610970565b6001600160a01b03831660009081526020819052604081208383039055600280548492906121f29084906133d7565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60055460ff16156122dd5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610970565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120c63390565b600060646009548361232491906133b8565b61082e91906132ab565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b179052915160009283929087169161238a91906130d6565b6000604051808303816000865af19150503d80600081146123c7576040519150601f19603f3d011682016040523d82523d6000602084013e6123cc565b606091505b50915091508180156123f65750805115806123f65750808060200190518101906123f69190612ff3565b6124275760405162461bcd60e51b815260206004820152600260248201526114d560f21b6044820152606401610970565b5050505050565b6000805b600e5481101561252d576000600e82815481106124515761245161349d565b60009182526020822001805490925060649061247890600160a01b900461ffff16876133b8565b61248291906132ab565b600a54835460405163a9059cbb60e01b81526001600160a01b03918216600482015260248101849052929350169063a9059cbb90604401602060405180830381600087803b1580156124d357600080fd5b505af11580156124e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061250b9190612ff3565b506125168185613293565b9350505080806125259061346c565b915050612432565b5081811415801561253f5750600e5415155b156109cc576000600e60008154811061255a5761255a61349d565b60009182526020909120600a54910180549092506001600160a01b039182169163a9059cbb911661258b85876133d7565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b1580156125d157600080fd5b505af11580156125e5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ef99190612ff3565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b179052915160009283929088169161266d91906130d6565b6000604051808303816000865af19150503d80600081146126aa576040519150601f19603f3d011682016040523d82523d6000602084013e6126af565b606091505b50915091508180156126d95750805115806126d95750808060200190518101906126d99190612ff3565b61270b5760405162461bcd60e51b815260206004820152600360248201526229aa2360e91b6044820152606401610970565b505050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663095ea7b360e01b179052915160009283929087169161276f91906130d6565b6000604051808303816000865af19150503d80600081146127ac576040519150601f19603f3d011682016040523d82523d6000602084013e6127b1565b606091505b50915091508180156127db5750805115806127db5750808060200190518101906127db9190612ff3565b6124275760405162461bcd60e51b8152602060048201526002602482015261534160f01b6044820152606401610970565b6001600160a01b03821615158061283b57506001600160a01b03831660009081526011602052604090205460ff165b61287e5760405162461bcd60e51b815260206004820152601460248201527323a827afa2a9291d1021b0b73737ba10313ab93760611b6044820152606401610970565b600b546001600160a01b0316158015906128bc5750600b546001600160a01b03848116911614806128bc5750600b546001600160a01b038381169116145b1561298f57600d5460ff168061290d57506001600160a01b03821660009081526011602052604090205460ff16801561290d57506001600160a01b03831660009081526011602052604090205460ff165b61298f5760405162461bcd60e51b815260206004820152604760248201527f47504f5f4552523a20556e697377617056332066756e6374696f6e616c69747960448201527f206973206f6e6c7920616c6c6f776564207468726f7567682047504f277320706064820152661c9bdd1bd8dbdb60ca1b608482015260a401610970565b600d5460ff16806129a757506001600160a01b038316155b806129ca57506001600160a01b03821660009081526011602052604090205460ff165b80612a0557506129d8610af5565b816129f8846001600160a01b031660009081526020819052604090205490565b612a029190613293565b11155b612a5d5760405162461bcd60e51b815260206004820152602360248201527f47504f5f4552523a204861726420636170206f6e2077616c6c657420726561636044820152621a195960ea1b6064820152608401610970565b60055460ff1615612ac35760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608401610970565b600c5442101580612aed57506001600160a01b03831660009081526010602052604090205460ff16155b80612b4857506001600160a01b03831660009081526010602052604090205460ff168015612b4857506001600160a01b0383166000908152601260209081526040808320549183905290912054612b4491906133d7565b8111155b6109f65760405162461bcd60e51b815260206004820152602d60248201527f43616e6e6f74207472616e7366657220746f6b656e206173207468652077616c60448201526c1b195d081a5cc81b1bd8dad959609a1b6064820152608401610970565b60606000612bb98360026133b8565b612bc4906002613293565b67ffffffffffffffff811115612bdc57612bdc6134b3565b6040519080825280601f01601f191660200182016040528015612c06576020820181803683370190505b509050600360fc1b81600081518110612c2157612c2161349d565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612c5057612c5061349d565b60200101906001600160f81b031916908160001a9053506000612c748460026133b8565b612c7f906001613293565b90505b6001811115612cf7576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612cb357612cb361349d565b1a60f81b828281518110612cc957612cc961349d565b60200101906001600160f81b031916908160001a90535060049490941c93612cf08161341a565b9050612c82565b508315612d465760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610970565b9392505050565b5080546000825590600052602060002090810190610b5991905b80821115612d855780546001600160b01b0319168155600101612d67565b5090565b80356001600160a01b0381168114612da057600080fd5b919050565b803562ffffff81168114612da057600080fd5b600060208284031215612dca57600080fd5b612d4682612d89565b60008060408385031215612de657600080fd5b612def83612d89565b9150612dfd60208401612d89565b90509250929050565b600080600060608486031215612e1b57600080fd5b612e2484612d89565b9250612e3260208501612d89565b9150604084013590509250925092565b60008060408385031215612e5557600080fd5b612e5e83612d89565b91506020830135612e6e816134c9565b809150509250929050565b600080600060608486031215612e8e57600080fd5b612e9784612d89565b92506020840135612ea7816134c9565b929592945050506040919091013590565b60008060408385031215612ecb57600080fd5b612ed483612d89565b9150612dfd60208401612da5565b60008060408385031215612ef557600080fd5b612efe83612d89565b946020939093013593505050565b60006020808385031215612f1f57600080fd5b823567ffffffffffffffff80821115612f3757600080fd5b818501915085601f830112612f4b57600080fd5b813581811115612f5d57612f5d6134b3565b612f6b848260051b01613262565b8181528481019250838501600683901b85018601891015612f8b57600080fd5b600094505b82851015612fe757604080828b031215612fa957600080fd5b612fb1613239565b612fba83612d89565b81528783013561ffff81168114612fd057600080fd5b818901528552600195909501949386019301612f90565b50979650505050505050565b60006020828403121561300557600080fd5b8151612d46816134c9565b60006020828403121561302257600080fd5b5035919050565b6000806040838503121561303c57600080fd5b82359150612dfd60208401612d89565b60006020828403121561305e57600080fd5b81356001600160e01b031981168114612d4657600080fd5b60006020828403121561308857600080fd5b612d4682612da5565b6000602082840312156130a357600080fd5b5051919050565b6000806000606084860312156130bf57600080fd5b505081359360208301359350604090920135919050565b600082516130e88184602087016133ee565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161312a8160178501602088016133ee565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161315b8160288401602088016133ee565b01602801949350505050565b60208152600082518060208401526131868160408501602087016133ee565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b610100810161082e828480516001600160a01b03908116835260208083015182169084015260408083015162ffffff16908401526060808301518216908401526080808301519084015260a0828101519084015260c0808301519084015260e09182015116910152565b6040805190810167ffffffffffffffff8111828210171561325c5761325c6134b3565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561328b5761328b6134b3565b604052919050565b600082198211156132a6576132a6613487565b500190565b6000826132c857634e487b7160e01b600052601260045260246000fd5b500490565b600181815b808511156133085781600019048211156132ee576132ee613487565b808516156132fb57918102915b93841c93908002906132d2565b509250929050565b6000612d4683836000826133265750600161082e565b816133335750600061082e565b816001811461334957600281146133535761336f565b600191505061082e565b60ff84111561336457613364613487565b50506001821b61082e565b5060208310610133831016604e8410600b8410161715613392575081810a61082e565b61339c83836132cd565b80600019048211156133b0576133b0613487565b029392505050565b60008160001904831182151516156133d2576133d2613487565b500290565b6000828210156133e9576133e9613487565b500390565b60005b838110156134095781810151838201526020016133f1565b83811115611ef95750506000910152565b60008161342957613429613487565b506000190190565b600181811c9082168061344557607f821691505b6020821081141561346657634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561348057613480613487565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114610b5957600080fdfe7dd0592774a9eb2849e25dc3a08e0494dbca59a475564d0fed6733040065a4afa2646970667358221220fbf7db38e3ca2702b25c76adfabb6a14b6c4d24da485af3378635f55029ca8ec64736f6c63430008070033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000e592427a0aece92de3edee1f18e0157c0586156400000000000000000000000000000000000000000000000000000000634b1140

-----Decoded View---------------
Arg [0] : _swapRouter (address): 0xE592427A0AEce92De3Edee1F18E0157C05861564
Arg [1] : _walletsTimelockedUntil (uint256): 1665864000

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564
Arg [1] : 00000000000000000000000000000000000000000000000000000000634b1140


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.