ETH Price: $3,636.60 (+8.14%)
Gas: 9.46 Gwei

Contract

0x2932624Ff57f5920Ce498Bb343385C0332Ec6E40
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve192165122024-02-13 3:48:35288 days ago1707796115IN
0x2932624F...332Ec6E40
0 ETH0.0011412124.60249875
Approve186264652023-11-22 9:44:23371 days ago1700646263IN
0x2932624F...332Ec6E40
0 ETH0.0011962825.65036267
Approve183962612023-10-21 4:20:11403 days ago1697862011IN
0x2932624F...332Ec6E40
0 ETH0.00014215.83491847
Approve173610502023-05-29 0:20:47549 days ago1685319647IN
0x2932624F...332Ec6E40
0 ETH0.0014007130.21263112
Approve172299482023-05-10 12:16:23567 days ago1683720983IN
0x2932624F...332Ec6E40
0 ETH0.0037098280.12243861
Approve170095872023-04-09 8:32:23598 days ago1681029143IN
0x2932624F...332Ec6E40
0 ETH0.0005191221.31596353
Approve168792592023-03-21 23:25:59617 days ago1679441159IN
0x2932624F...332Ec6E40
0 ETH0.0004354817.8815975
Approve167708272023-03-06 17:34:35632 days ago1678124075IN
0x2932624F...332Ec6E40
0 ETH0.002524754.13397665
Approve167228462023-02-27 23:36:47639 days ago1677541007IN
0x2932624F...332Ec6E40
0 ETH0.0011424924.52857574
Approve165665562023-02-06 1:47:23661 days ago1675648043IN
0x2932624F...332Ec6E40
0 ETH0.0007885316.92938612
Approve164836442023-01-25 11:49:47672 days ago1674647387IN
0x2932624F...332Ec6E40
0 ETH0.0006800614.60056385
Approve161281982022-12-06 20:39:47722 days ago1670359187IN
0x2932624F...332Ec6E40
0 ETH0.0005823412.48638626
Approve160766972022-11-29 15:59:35729 days ago1669737575IN
0x2932624F...332Ec6E40
0 ETH0.0006071413.01820619
Approve160688412022-11-28 13:39:59730 days ago1669642799IN
0x2932624F...332Ec6E40
0 ETH0.0003391813.92736097
Approve159178372022-11-07 11:26:23751 days ago1667820383IN
0x2932624F...332Ec6E40
0 ETH0.0006252413.40631341
Approve159148672022-11-07 1:29:35752 days ago1667784575IN
0x2932624F...332Ec6E40
0 ETH0.0005005810.73345118
Approve159148452022-11-07 1:25:11752 days ago1667784311IN
0x2932624F...332Ec6E40
0 ETH0.0005774512.38164258
Approve159148272022-11-07 1:21:35752 days ago1667784095IN
0x2932624F...332Ec6E40
0 ETH0.0005055110.83903678
Approve159146722022-11-07 0:50:35752 days ago1667782235IN
0x2932624F...332Ec6E40
0 ETH0.000572912.2840859
Approve159097662022-11-06 8:24:47752 days ago1667723087IN
0x2932624F...332Ec6E40
0 ETH0.000455229.76092343
Approve158689852022-10-31 15:37:59758 days ago1667230679IN
0x2932624F...332Ec6E40
0 ETH0.0008652218.55203522
Approve157809002022-10-19 8:16:11770 days ago1666167371IN
0x2932624F...332Ec6E40
0 ETH0.0007928417
Approve157711392022-10-17 23:34:23772 days ago1666049663IN
0x2932624F...332Ec6E40
0 ETH0.0008044817.24960377
Approve157634772022-10-16 21:51:47773 days ago1665957107IN
0x2932624F...332Ec6E40
0 ETH0.000374215.36504518
Approve157345152022-10-12 20:48:35777 days ago1665607715IN
0x2932624F...332Ec6E40
0 ETH0.0006855114.69856362
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SlayToEarnToken

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 24 : SlayToEarnToken.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "hardhat/console.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import "./SlayToEarnItems.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";

interface IERC20Extended is IERC20 {
    function symbol() external view returns (string memory);
}

// https://t.me/BlockifyGames
contract SlayToEarnToken is Context, Ownable, IERC20, IERC20Metadata, AccessControl {
    bytes32 public constant MAINTENANCE_ROLE = keccak256("MAINTENANCE_ROLE");

    bool private _enableGateKeeper;
    uint256 private _tokenRewardsPercentage;
    uint256 private _tokenDevPercentage;
    uint256 private _tokenBurnPercentage;
    uint256 private _tokenBuyBackPercentage;
    IERC1155 private _originalWitnessCollection;
    SlayToEarnItems private _currentItemCollection;
    uint256 private _maxWalletAmount;
    address private _claimRewardsContract;
    uint256 private _launchTime;
    address private _deployer;
    address private _uniswapLpPair;
    address private _devIncomeWallet;
    IUniswapV2Router02 private _uniswapRouter;
    address private _usdcToken;
    address private _blockifyToken;
    IUniswapV2Factory private _uniswapFactory;

    mapping(address => bool) private _whitelist;
    mapping(address => uint256) private _lastBuyBlock;
    mapping(address => uint256) private _taxReductionPercentageMap;

    constructor(
        IERC1155 originalWitnessCollection,
        SlayToEarnItems currentItemCollection,
        address devIncomeWallet,
        address claimRewardsContract,
        IUniswapV2Router02 uniswapRouter,
        IERC20Extended usdcToken,
        IERC20Extended blockifyToken) {

        _name = "Slay To Earn";
        _symbol = "SLAY2EARN";
        _deployer = msg.sender;
        _originalWitnessCollection = originalWitnessCollection;
        _currentItemCollection = currentItemCollection;
        _devIncomeWallet = devIncomeWallet;
        _claimRewardsContract = claimRewardsContract;
        _uniswapRouter = uniswapRouter;
        _usdcToken = address(usdcToken);
        _blockifyToken = address(blockifyToken);
        _uniswapFactory = IUniswapV2Factory(uniswapRouter.factory());
        _uniswapLpPair = _uniswapFactory.createPair(address(this), _usdcToken);

        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setupRole(MAINTENANCE_ROLE, msg.sender);

        _setRoleAdmin(MAINTENANCE_ROLE, DEFAULT_ADMIN_ROLE);

        require(_uniswapLpPair != address(0), "Failed to create liquidity pair.");
        require(keccak256(bytes(usdcToken.symbol())) == keccak256("USDC"), "You did not supply a valid USDC token.");

        setBlockifyToken(blockifyToken);

        addToWhitelist(_deployer);
        addToWhitelist(address(this));
        setMaxWalletAmount(5_000_000_000 ether);

        _mint(
            _deployer,
            1_000_000_000_000 ether
        );

        // Shortly after our initial launch, we will disable the gatekeeper and turn this into a regular, vanilla ERC20 token.
        // Once disabled, there is no way to turn it back on...
        _enableGateKeeper = true;

        setTaxPercentages(0, 0, 6, 1);
        getOwnedWitnessCount();
    }

    function setBlockifyToken(IERC20Extended blockifyToken) public onlyOwner {
        if (address(blockifyToken) != address(0)) {
            require(keccak256(bytes(blockifyToken.symbol())) == keccak256("BLOCKIFY"), "You did not supply a valid BLOCKIFY token.");
            require(_uniswapFactory.getPair(_blockifyToken, _usdcToken) != address(0), "There is no USDC/BLOCKIFY pool. Likely the tokens you supplied are not valid.");
        }

        _blockifyToken = address(blockifyToken);
    }

    function getBlockifyToken() public view returns (address) {
        return _blockifyToken;
    }

    function getUsdcToken() public view returns (address) {
        return _usdcToken;
    }

    function getLiquidityPair() public view returns (address) {
        return _uniswapLpPair;
    }

    function addToWhitelist(address addressToAdd) public onlyOwner {
        _whitelist[addressToAdd] = true;
    }

    function removeFromWhitelist(address addressToRemove) public onlyOwner {
        _whitelist[addressToRemove] = false;
    }

    function isWhitelisted(address addressToCheck) public view returns (bool) {
        return _whitelist[addressToCheck] == true;
    }

    function isGateKeeperEnabled() public view returns (bool) {
        return _enableGateKeeper;
    }

    function isGateKeeperPermanentlyDisabled() public view returns (bool) {
        return !_enableGateKeeper;
    }

    function setLaunchTime(uint256 unixTimestampSeconds) public onlyOwner {
        _launchTime = unixTimestampSeconds;
    }

    function getLaunchTime() public view returns (uint256) {
        return _launchTime;
    }

    function permanentlyDisarmUniswapGateKeeper() public onlyOwner {
        _enableGateKeeper = false;
    }

    /**
        Use the given item from your inventory to apply tax reduction for your next Uniswap trade.
        The item will be consumed immediately in this call, even if you never make another Uniswap trade.
    */
    function applyTaxReduction(uint256 itemId) public {
        uint256 reduction = 0;
        if (itemId == 2048777) {
            reduction = 10;
        } else if (itemId == 2048809) {
            reduction = 30;
        } else if (itemId == 2048841) {
            reduction = 50;
        } else if (itemId == 2048873) {
            reduction = 70;
        } else if (itemId == 2048905) {
            reduction = 100;
        } else {
            require(false, "The given item does not refer to a tax reduction NFT.");
        }

        _taxReductionPercentageMap[msg.sender] = reduction;

        uint256[] memory items = new uint256[](1);
        uint256[] memory amounts = new uint256[](1);

        items[0] = itemId;
        amounts[0] = 1;

        require(_currentItemCollection.balanceOf(msg.sender, itemId) > 0, "You don't own the given item.");
        _currentItemCollection.burnBatch(msg.sender, items, amounts);
    }

    function getAppliedTaxReduction(address wallet) public view returns (uint256) {
        return _taxReductionPercentageMap[msg.sender];
    }

    function setTaxPercentages(uint256 burnPercentage, uint256 rewardPercentage, uint256 devPercentage, uint256 blockifyBuyBackPercentage) public onlyOwner {
        _tokenBurnPercentage = burnPercentage;
        _tokenRewardsPercentage = rewardPercentage;
        _tokenDevPercentage = devPercentage;
        _tokenBuyBackPercentage = blockifyBuyBackPercentage;

        require(_tokenBurnPercentage <= 20, "The maximum burn fee is 20%.");
        require(_tokenBuyBackPercentage <= 20, "The maximum buy-back fee is 20%.");
        require(_tokenRewardsPercentage <= 20, "The maximum reward fee is 20%.");
        require(_tokenDevPercentage <= 20, "The maximum dev fee is 20%.");
        require(_tokenBurnPercentage + _tokenBuyBackPercentage + _tokenRewardsPercentage + _tokenDevPercentage <= 30, "The maximum total combined fee is 30%.");
    }

    function getBuyBackPercentage() public view returns (uint256) {
        return _tokenBuyBackPercentage;
    }

    function getBurnPercentage() public view returns (uint256) {
        return _tokenBurnPercentage;
    }

    function getRewardsPercentage() public view returns (uint256) {
        return _tokenRewardsPercentage;
    }

    function getDevPercentage() public view returns (uint256) {
        return _tokenDevPercentage;
    }

    function setCurrentItemCollection(SlayToEarnItems currentCollection) public onlyOwner {
        _currentItemCollection = currentCollection;

        // need to verify that this still works, otherwise transfers will be blocked.
        getOwnedWitnessCount();
    }

    function getCurrentItemCollection() public view returns (IERC1155) {
        return _currentItemCollection;
    }

    function setOriginalWitnessItemCollection(IERC1155 originalCollection) public onlyOwner {
        _originalWitnessCollection = originalCollection;

        // need to verify that this still works, otherwise transfers will be blocked.
        getOwnedWitnessCount();
    }

    function getOriginalWitnessItemCollection() public view returns (IERC1155) {
        return _originalWitnessCollection;
    }

    function getOwnedWitnessCount() public view returns (uint256) {
        return getOwnedWitnessCountForAddress(msg.sender);
    }

    function getOwnedWitnessCountForAddress(address wallet) public view returns (uint256) {
        uint256 newCount = _currentItemCollection.balanceOf(wallet, 2048649);
        uint256 oldCount = _currentItemCollection.balanceOf(wallet, 2048393);

        if (_originalWitnessCollection != IERC1155(address(0))) {
            oldCount += _originalWitnessCollection.balanceOf(wallet, 2048393);
        }

        return newCount + (oldCount > 0 ? 1 : 0);
    }

    function setRewardsClaimContract(address rewardsClaimContract) public onlyOwner {
        _claimRewardsContract = rewardsClaimContract;
    }

    function getRewardsClaimContract() public view returns (address) {
        return _claimRewardsContract;
    }

    function setDevIncomeWallet(address wallet) public onlyOwner {
        _devIncomeWallet = wallet;
    }

    function getDevIncomeWallet() public view returns (address) {
        return _devIncomeWallet;
    }

    function setMaxWalletAmount(uint256 maxWalletAmount) public onlyOwner {
        require(maxWalletAmount == 0 || maxWalletAmount >= 1_000_000_000 ether);

        _maxWalletAmount = maxWalletAmount;
    }

    function getMaxWalletAmount() public view returns (uint256) {
        return _maxWalletAmount;
    }

    function _transfer(
        address sender,
        address recipient,
        uint256 sentAmount
    ) internal {

        if (isWhitelisted(sender) || isWhitelisted(recipient)) {
            _feelessTransfer(sender, recipient, sentAmount);
            return;
        }

        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        bool isGateKeeperDisabled = isGateKeeperPermanentlyDisabled();

        if (getMaxWalletAmount() > 0) {
            if (recipient == _uniswapLpPair) {
                // since we can't limit the LP pair, during selling, we only limit tx amounts
                require(sentAmount <= getMaxWalletAmount(), "Sell blocked. Token limit per transaction exceeded. Refer to our Telegram for further information. This restriction will be lifted shortly.");
            } else {
                // during buys, we make sure that you can't put more than the limit into the wallet
                require(balanceOf(recipient) + sentAmount <= getMaxWalletAmount(), "Buy blocked. Token limit per wallet exceeded. Refer to our Telegram for further information. This restriction will be lifted shortly.");
            }
        }

        // you can only buy once per block while gatekeeper is enabled
        bool noBuyInThisBlock = _lastBuyBlock[recipient] < block.number;
        _lastBuyBlock[recipient] = block.number;
        require(recipient == _uniswapLpPair || noBuyInThisBlock || isGateKeeperDisabled, "Buy blocked by gatekeeper. You can only buy once per block. Refer to our Telegram for further information. This restriction will be lifted shortly.");

        // to buy, you have to hold our launch witness while gatekeeper is enabled
        bool hasRequiredWitnesses = getOwnedWitnessCountForAddress(recipient) >= 2;
        require(recipient == _uniswapLpPair || hasRequiredWitnesses || isGateKeeperDisabled, "Buy blocked by gatekeeper. Target wallet does not own enough of our NFTs. Refer to our Telegram for further information. This restriction will be lifted shortly.");

        uint256 taxReductionPercentage = _taxReductionPercentageMap[sender];
        _taxReductionPercentageMap[sender] = 0;

        uint256 burnedTokens = (sentAmount * _tokenBurnPercentage * (100 - taxReductionPercentage)) / 10_000;
        uint256 rewardTokens = (sentAmount * _tokenRewardsPercentage * (100 - taxReductionPercentage)) / 10_000;
        uint256 devAndBuyBackTokens = (sentAmount * (_tokenDevPercentage + _tokenBuyBackPercentage) * (100 - taxReductionPercentage)) / 10_000;
        uint256 receivedTokens = sentAmount - burnedTokens - rewardTokens - devAndBuyBackTokens;

        if (burnedTokens > 0) {
            _burn(sender, burnedTokens);
        }

        if (rewardTokens > 0) {
            _feelessTransfer(sender, _claimRewardsContract, rewardTokens);
        }

        if (devAndBuyBackTokens > 0) {
            _feelessTransfer(sender, address(this), devAndBuyBackTokens);
        }

        _feelessTransfer(sender, recipient, receivedTokens);
    }

    /**
      * This method can be front-run. Just as with swaps, make sure to select a tight slippage around the actual prices
      before running the methods.
    */
    function runMaintenance(uint256 maximumSlayToEarnPerUsdc, uint256 maximumSlayToEarnPerBlockify) public onlyRole(MAINTENANCE_ROLE) {
        // Anyone can run this method, but we will do it regularly on our own.
        uint256 balance = balanceOf(address(this));

        require(balance > 0, "No tokens are available to sell.");

        if (_blockifyToken == address(0)) {
            _doTransferDevFee(balance, maximumSlayToEarnPerUsdc);
        } else {
            uint256 buyBackTokens = (balance * _tokenBuyBackPercentage) / (_tokenDevPercentage + _tokenBuyBackPercentage);
            uint256 devTokens = balance - buyBackTokens;

            _doTransferDevFee(devTokens, maximumSlayToEarnPerUsdc);
            _doBlockifyBuyback(buyBackTokens, maximumSlayToEarnPerBlockify);
        }
    }

    function _doTransferDevFee(uint256 tokensToSell, uint256 maximumSlayToEarnPerUsdc) internal {
        if (tokensToSell == 0) {
            return;
        }

        // sell buffered tokens into USDC and send them to dev wallet.
        address[] memory tradingPath = new address[](2);
        tradingPath[0] = address(this);
        tradingPath[1] = _usdcToken;

        _approve(
            address(this),
            address(_uniswapRouter),
            _allowances[address(this)][address(_uniswapRouter)] + tokensToSell
        );

        _uniswapRouter.swapExactTokensForTokens(
            tokensToSell,
            tokensToSell / maximumSlayToEarnPerUsdc,
            tradingPath,
            _devIncomeWallet,
            block.timestamp
        );
    }

    function _doBlockifyBuyback(uint256 tokensToSell, uint256 maximumSlayToEarnPerBlockify) internal {
        if (tokensToSell == 0) {
            return;
        }

        // sell buffered tokens into Blockify and burn them.
        address[] memory tradingPath = new address[](3);
        tradingPath[0] = address(this);
        tradingPath[1] = _usdcToken;
        tradingPath[2] = _blockifyToken;

        _approve(
            address(this),
            address(_uniswapRouter),
            _allowances[address(this)][address(_uniswapRouter)] + tokensToSell
        );

        _uniswapRouter.swapExactTokensForTokens(
            tokensToSell,
            tokensToSell / maximumSlayToEarnPerBlockify,
            tradingPath,
            0x000000000000000000000000000000000000dEaD,
            block.timestamp
        );
    }

    function _feelessTransfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        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);
    }

    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    //////// OpenZepplin ERC20.sol
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    mapping(address => uint256) private _balances;
    mapping(address => mapping(address => uint256)) private _allowances;
    uint256 private _totalSupply;
    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

    function _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);
    }

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

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        uint256 currentAllowance = _allowances[sender][_msgSender()];
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }
        }

        _transfer(sender, recipient, amount);

        return true;
    }

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

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

    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

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

File 2 of 24 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (token/ERC20/ERC20.sol)

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}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * 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) {
        uint256 currentAllowance = _allowances[sender][_msgSender()];
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
            unchecked {
                _approve(sender, _msgSender(), currentAllowance - amount);
            }
        }

        _transfer(sender, recipient, 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 3 of 24 : console.sol
// SPDX-License-Identifier: MIT
pragma solidity >= 0.4.22 <0.9.0;

library console {
	address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);

	function _sendLogPayload(bytes memory payload) private view {
		uint256 payloadLength = payload.length;
		address consoleAddress = CONSOLE_ADDRESS;
		assembly {
			let payloadStart := add(payload, 32)
			let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0)
		}
	}

	function log() internal view {
		_sendLogPayload(abi.encodeWithSignature("log()"));
	}

	function logInt(int p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(int)", p0));
	}

	function logUint(uint p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
	}

	function logString(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function logBool(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function logAddress(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function logBytes(bytes memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes)", p0));
	}

	function logBytes1(bytes1 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0));
	}

	function logBytes2(bytes2 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0));
	}

	function logBytes3(bytes3 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0));
	}

	function logBytes4(bytes4 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0));
	}

	function logBytes5(bytes5 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0));
	}

	function logBytes6(bytes6 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0));
	}

	function logBytes7(bytes7 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0));
	}

	function logBytes8(bytes8 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0));
	}

	function logBytes9(bytes9 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0));
	}

	function logBytes10(bytes10 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0));
	}

	function logBytes11(bytes11 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0));
	}

	function logBytes12(bytes12 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0));
	}

	function logBytes13(bytes13 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0));
	}

	function logBytes14(bytes14 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0));
	}

	function logBytes15(bytes15 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0));
	}

	function logBytes16(bytes16 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0));
	}

	function logBytes17(bytes17 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0));
	}

	function logBytes18(bytes18 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0));
	}

	function logBytes19(bytes19 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0));
	}

	function logBytes20(bytes20 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0));
	}

	function logBytes21(bytes21 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0));
	}

	function logBytes22(bytes22 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0));
	}

	function logBytes23(bytes23 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0));
	}

	function logBytes24(bytes24 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0));
	}

	function logBytes25(bytes25 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0));
	}

	function logBytes26(bytes26 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0));
	}

	function logBytes27(bytes27 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0));
	}

	function logBytes28(bytes28 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0));
	}

	function logBytes29(bytes29 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0));
	}

	function logBytes30(bytes30 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0));
	}

	function logBytes31(bytes31 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0));
	}

	function logBytes32(bytes32 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0));
	}

	function log(uint p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
	}

	function log(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function log(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function log(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function log(uint p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1));
	}

	function log(uint p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1));
	}

	function log(uint p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1));
	}

	function log(uint p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1));
	}

	function log(string memory p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1));
	}

	function log(string memory p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1));
	}

	function log(string memory p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1));
	}

	function log(string memory p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1));
	}

	function log(bool p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1));
	}

	function log(bool p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1));
	}

	function log(bool p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1));
	}

	function log(bool p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1));
	}

	function log(address p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1));
	}

	function log(address p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1));
	}

	function log(address p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1));
	}

	function log(address p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1));
	}

	function log(uint p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2));
	}

	function log(uint p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2));
	}

	function log(uint p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2));
	}

	function log(uint p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2));
	}

	function log(uint p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2));
	}

	function log(uint p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2));
	}

	function log(uint p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2));
	}

	function log(uint p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2));
	}

	function log(uint p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2));
	}

	function log(uint p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2));
	}

	function log(uint p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2));
	}

	function log(uint p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2));
	}

	function log(string memory p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2));
	}

	function log(string memory p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2));
	}

	function log(string memory p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2));
	}

	function log(string memory p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2));
	}

	function log(bool p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2));
	}

	function log(bool p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2));
	}

	function log(bool p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2));
	}

	function log(bool p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2));
	}

	function log(bool p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2));
	}

	function log(bool p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2));
	}

	function log(bool p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2));
	}

	function log(bool p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2));
	}

	function log(bool p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2));
	}

	function log(bool p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2));
	}

	function log(bool p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2));
	}

	function log(bool p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2));
	}

	function log(address p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2));
	}

	function log(address p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2));
	}

	function log(address p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2));
	}

	function log(address p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2));
	}

	function log(address p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2));
	}

	function log(address p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2));
	}

	function log(address p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2));
	}

	function log(address p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2));
	}

	function log(address p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2));
	}

	function log(address p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2));
	}

	function log(address p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2));
	}

	function log(address p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2));
	}

	function log(address p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2));
	}

	function log(address p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2));
	}

	function log(address p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2));
	}

	function log(address p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2));
	}

	function log(uint p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3));
	}

}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 5 of 24 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 6 of 24 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

File 7 of 24 : IUniswapV2Factory.sol
pragma solidity >=0.5.0;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

File 8 of 24 : SlayToEarnItems.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./BaseOpenSea.sol";
import "./SlayToEarnAccessControl.sol";
import "./ISlayToEarnItems.sol";

contract SlayToEarnItems is ISlayToEarnItems, SlayToEarnAccessControl, BaseOpenSea, ERC1155 {
    constructor(
        string memory tokenMetadataBaseUri,
        address openSeaProxyRegistry) ERC1155(tokenMetadataBaseUri) {

        if (openSeaProxyRegistry != address(0)) {
            setOpenSeaRegistry(openSeaProxyRegistry);
        }

        setTokenMetadataBaseUri(tokenMetadataBaseUri);
    }

    function ping() public override pure returns (bool) {
        return true;
    }

    function setOpenSeaRegistry(address openSeaRegistry) public onlyRole(DEFAULT_ADMIN_ROLE) {
        require(Address.isContract(openSeaRegistry), "Given OpenSeaProxy must either be zero or refer to a valid contract.");

        _setOpenSeaRegistry(openSeaRegistry);
    }

    function setTokenMetadataBaseUri(string memory newUri) public onlyRole(DEFAULT_ADMIN_ROLE) {
        _setURI(newUri);
    }

    function uri(uint256 item) public view virtual override returns (string memory) {
        return string(
            abi.encodePacked(
                super.uri(item),
                Strings.toString(item)
            )
        );
    }

    function supportsInterfaceSelfTest() public view {
        // easier to test here than getting these interface IDs in JavaScript.

        require(supportsInterface(type(IAccessControl).interfaceId), "Should support IAccessControl interface.");
        require(supportsInterface(type(IERC165).interfaceId), "Should support IERC165 interface.");
        require(supportsInterface(type(IERC1155).interfaceId), "Should support IERC1155 interface.");
        require(supportsInterface(type(IERC1155MetadataURI).interfaceId), "Should support IERC1155MetadataURI interface.");
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControl, ERC1155) returns (bool) {
        return AccessControl.supportsInterface(interfaceId) || ERC1155.supportsInterface(interfaceId);
    }

    function isApprovedForAll(address account, address operator) public view virtual override returns (bool) {
        // allows gas less trading on OpenSea
        return super.isApprovedForAll(account, operator) || isOwnersOpenSeaProxy(account, operator);
    }

    function _getTotalAmountForId(
        uint256 id,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal pure returns (uint256) {
        uint256 total = 0;
        for (uint256 i = 0; i < ids.length; i++) {
            if (ids[i] == id) {
                total += amounts[i];
            }
        }
        return total;
    }

    function requireBatch(
        address player,
        uint256[] memory items,
        uint256[] memory requiredAmounts
    ) public view override {

        address[] memory playerAccounts = new address[](items.length);
        for (uint i = 0; i < items.length; i++) {
            playerAccounts[i] = player;
        }

        uint256[] memory actualAmounts = super.balanceOfBatch(playerAccounts, items);

        require(items.length == requiredAmounts.length, "The length of items and amounts must match.");
        require(actualAmounts.length == requiredAmounts.length, "Internal error.");

        for (uint i = 0; i < requiredAmounts.length; i++) {
            require(
                requiredAmounts[i] <= actualAmounts[i],
                string(
                    abi.encodePacked(
                        "[",
                        Strings.toString(requiredAmounts[i]),
                        "] of item [",
                        Strings.toString(items[i]),
                        "] are required, but you do own only [",
                        Strings.toString(actualAmounts[i]),
                        "]."
                    )
                )
            );
        }
    }

    function mintBatch(
        address player,
        uint256[] memory items,
        uint256[] memory amounts,
        bytes memory data
    ) public override onlyRole(INVENTORY_ADMIN_ROLE) {

        require(items.length == amounts.length, "The length of items and amounts must match.");

        super._mintBatch(player, items, amounts, data);
    }

    function burnBatch(
        address player,
        uint256[] memory items,
        uint256[] memory amounts
    ) public override onlyRole(INVENTORY_ADMIN_ROLE) {

        require(items.length == amounts.length, "The length of items and amounts must match.");

        super._burnBatch(player, items, amounts);
    }
}

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

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 10 of 24 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `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 11 of 24 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

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 12 of 24 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

File 14 of 24 : IUniswapV2Router01.sol
pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

File 15 of 24 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

    // Mapping from account to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC1155-isApprovedForAll}.
     */
    function isApprovedForAll(address account, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[account][operator];
    }

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 16 of 24 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 18 of 24 : BaseOpenSea.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @title OpenSea contract helper that defines a few things
/// @author Simon Fremaux (@dievardump)
/// @dev This is a contract used to add OpenSea's
///      gas-less trading and contractURI support
contract BaseOpenSea {
    string private _contractURI;
    address private _proxyRegistry;

    /// @notice Returns the current OS proxyRegistry address registered
    function proxyRegistry() public view returns (address) {
        return _proxyRegistry;
    }

    /// @notice Helper allowing OpenSea gas-less trading by verifying who's operator
    ///         for owner
    /// @dev Allows to check if `operator` is owner's OpenSea proxy on eth mainnet / rinkeby
    ///      or to check if operator is OpenSea's proxy contract on Polygon and Mumbai
    /// @param owner the owner we check for
    /// @param operator the operator (proxy) we check for
    function isOwnersOpenSeaProxy(address owner, address operator)
    public
    view
    returns (bool)
    {
        address proxyRegistry_ = _proxyRegistry;

        // if we have a proxy registry
        if (proxyRegistry_ != address(0)) {
            // on ethereum mainnet or rinkeby use "ProxyRegistry" to
            // get owner's proxy
            if (block.chainid == 1 || block.chainid == 4) {
                return
                address(ProxyRegistry(proxyRegistry_).proxies(owner)) ==
                operator;
            } else if (block.chainid == 137 || block.chainid == 80001) {
                // on Polygon and Mumbai just try with OpenSea's proxy contract
                // https://docs.opensea.io/docs/polygon-basic-integration
                return proxyRegistry_ == operator;
            }
        }

        return false;
    }

    /// @dev Internal function to set the _proxyRegistry
    /// @param proxyRegistryAddress the new proxy registry address
    function _setOpenSeaRegistry(address proxyRegistryAddress) internal {
        _proxyRegistry = proxyRegistryAddress;
    }
}

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

File 19 of 24 : SlayToEarnAccessControl.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";

contract SlayToEarnAccessControl is AccessControl {

    bytes32 public constant INVENTORY_ADMIN_ROLE = bytes32(uint256(0x01));

    constructor() {
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setupRole(INVENTORY_ADMIN_ROLE, msg.sender);

        _setRoleAdmin(INVENTORY_ADMIN_ROLE, DEFAULT_ADMIN_ROLE);
    }

    function getDefaultAdminRole() public pure returns (bytes32) {
        return DEFAULT_ADMIN_ROLE;
    }

    function getInventoryAdminRole() public pure returns (bytes32) {
        return INVENTORY_ADMIN_ROLE;
    }
}

File 20 of 24 : ISlayToEarnItems.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;


import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";

interface ISlayToEarnItems {
    function ping() external pure returns (bool);

    function mintBatch(
        address player,
        uint256[] memory items,
        uint256[] memory amounts,
        bytes memory data
    ) external;

    function burnBatch(
        address player,
        uint256[] memory items,
        uint256[] memory amounts
    ) external;

    function requireBatch(
        address player,
        uint256[] memory items,
        uint256[] memory amounts
    ) external view;
}

File 21 of 24 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 22 of 24 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 24 of 24 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC1155","name":"originalWitnessCollection","type":"address"},{"internalType":"contract SlayToEarnItems","name":"currentItemCollection","type":"address"},{"internalType":"address","name":"devIncomeWallet","type":"address"},{"internalType":"address","name":"claimRewardsContract","type":"address"},{"internalType":"contract IUniswapV2Router02","name":"uniswapRouter","type":"address"},{"internalType":"contract IERC20Extended","name":"usdcToken","type":"address"},{"internalType":"contract IERC20Extended","name":"blockifyToken","type":"address"}],"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":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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAINTENANCE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addressToAdd","type":"address"}],"name":"addToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"itemId","type":"uint256"}],"name":"applyTaxReduction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"getAppliedTaxReduction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBlockifyToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBurnPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBuyBackPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentItemCollection","outputs":[{"internalType":"contract IERC1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDevIncomeWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDevPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLaunchTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLiquidityPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxWalletAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOriginalWitnessItemCollection","outputs":[{"internalType":"contract IERC1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOwnedWitnessCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"getOwnedWitnessCountForAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardsClaimContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardsPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUsdcToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isGateKeeperEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isGateKeeperPermanentlyDisabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addressToCheck","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"permanentlyDisarmUniswapGateKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addressToRemove","type":"address"}],"name":"removeFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maximumSlayToEarnPerUsdc","type":"uint256"},{"internalType":"uint256","name":"maximumSlayToEarnPerBlockify","type":"uint256"}],"name":"runMaintenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20Extended","name":"blockifyToken","type":"address"}],"name":"setBlockifyToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract SlayToEarnItems","name":"currentCollection","type":"address"}],"name":"setCurrentItemCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"setDevIncomeWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"unixTimestampSeconds","type":"uint256"}],"name":"setLaunchTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxWalletAmount","type":"uint256"}],"name":"setMaxWalletAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC1155","name":"originalCollection","type":"address"}],"name":"setOriginalWitnessItemCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"rewardsClaimContract","type":"address"}],"name":"setRewardsClaimContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"burnPercentage","type":"uint256"},{"internalType":"uint256","name":"rewardPercentage","type":"uint256"},{"internalType":"uint256","name":"devPercentage","type":"uint256"},{"internalType":"uint256","name":"blockifyBuyBackPercentage","type":"uint256"}],"name":"setTaxPercentages","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":"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"}]

60806040523480156200001157600080fd5b506040516200449338038062004493833981016040819052620000349162000f55565b6200003f3362000498565b60408051808201909152600c8082526b29b630bc902a379022b0b93760a11b6020909201918252620000749160199162000e88565b506040805180820190915260098082526829a620ac9922a0a92760b91b6020909201918252620000a791601a9162000e88565b50600c8054336001600160a01b0319918216179091556007805482166001600160a01b038a811691909117909155600880548316898316179055600e80548316888316179055600a80548316878316179055600f8054831686831690811790915560108054841686841617905560118054909316918416919091179091556040805163c45a015560e01b8152905163c45a015591600481810192602092909190829003018186803b1580156200015c57600080fd5b505afa15801562000171573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000197919062000f2e565b601280546001600160a01b0319166001600160a01b039283169081179091556010546040516364e329cb60e11b8152306004820152921660248301529063c9c6539690604401602060405180830381600087803b158015620001f857600080fd5b505af11580156200020d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000233919062000f2e565b600d80546001600160a01b0319166001600160a01b039290921691909117905562000260600033620004e8565b6200027b6000805160206200447383398151915233620004e8565b62000297600080516020620044738339815191526000620004f8565b600d546001600160a01b0316620002f55760405162461bcd60e51b815260206004820181905260248201527f4661696c656420746f20637265617465206c697175696469747920706169722e60448201526064015b60405180910390fd5b7fd6aca1be9729c13d677335161321649cccae6a591554772516700f986f942eaa826001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b1580156200035057600080fd5b505afa15801562000365573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200038f919081019062001000565b8051906020012014620003f45760405162461bcd60e51b815260206004820152602660248201527f596f7520646964206e6f7420737570706c7920612076616c69642055534443206044820152653a37b5b2b71760d11b6064820152608401620002ec565b620003ff8162000545565b600c5462000416906001600160a01b0316620007ed565b6200042130620007ed565b620004386b1027e72f1f128130880000006200085c565b600c546200045d906001600160a01b03166c0c9f2c9cd04674edea40000000620008d0565b6002805460ff1916600190811790915562000480906000908190600690620009b5565b6200048a62000bfd565b505050505050505062001189565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620004f4828262000c0f565b5050565b6000828152600160208190526040808320909101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000546001600160a01b03163314620005905760405162461bcd60e51b81526020600482018190526024820152600080516020620044538339815191526044820152606401620002ec565b6001600160a01b03811615620007cb577febc8fb437656b478682b18170785867229a399dedde8e18cd0a878f5e3d219e5816001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b158015620005fb57600080fd5b505afa15801562000610573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200063a919081019062001000565b8051906020012014620006a35760405162461bcd60e51b815260206004820152602a60248201527f596f7520646964206e6f7420737570706c7920612076616c696420424c4f434b60448201526924a32c903a37b5b2b71760b11b6064820152608401620002ec565b60125460115460105460405163e6a4390560e01b81526001600160a01b0392831660048201529082166024820152600092919091169063e6a439059060440160206040518083038186803b158015620006fb57600080fd5b505afa15801562000710573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000736919062000f2e565b6001600160a01b03161415620007cb5760405162461bcd60e51b815260206004820152604d60248201527f5468657265206973206e6f20555344432f424c4f434b49465920706f6f6c2e2060448201527f4c696b656c792074686520746f6b656e7320796f7520737570706c696564206160648201526c3932903737ba103b30b634b21760991b608482015260a401620002ec565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314620008385760405162461bcd60e51b81526020600482018190526024820152600080516020620044538339815191526044820152606401620002ec565b6001600160a01b03166000908152601360205260409020805460ff19166001179055565b6000546001600160a01b03163314620008a75760405162461bcd60e51b81526020600482018190526024820152600080516020620044538339815191526044820152606401620002ec565b801580620008c157506b033b2e3c9fd0803ce80000008110155b620008cb57600080fd5b600955565b6001600160a01b038216620009285760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401620002ec565b80601860008282546200093c9190620010f6565b90915550506001600160a01b038216600090815260166020526040812080548392906200096b908490620010f6565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6000546001600160a01b0316331462000a005760405162461bcd60e51b81526020600482018190526024820152600080516020620044538339815191526044820152606401620002ec565b6005849055600383905560048290556006819055601484111562000a675760405162461bcd60e51b815260206004820152601c60248201527f546865206d6178696d756d206275726e20666565206973203230252e000000006044820152606401620002ec565b6014600654111562000abc5760405162461bcd60e51b815260206004820181905260248201527f546865206d6178696d756d206275792d6261636b20666565206973203230252e6044820152606401620002ec565b6014600354111562000b115760405162461bcd60e51b815260206004820152601e60248201527f546865206d6178696d756d2072657761726420666565206973203230252e00006044820152606401620002ec565b6014600454111562000b665760405162461bcd60e51b815260206004820152601b60248201527f546865206d6178696d756d2064657620666565206973203230252e00000000006044820152606401620002ec565b601e60045460035460065460055462000b809190620010f6565b62000b8c9190620010f6565b62000b989190620010f6565b111562000bf75760405162461bcd60e51b815260206004820152602660248201527f546865206d6178696d756d20746f74616c20636f6d62696e656420666565206960448201526539901998129760d11b6064820152608401620002ec565b50505050565b600062000c0a3362000c97565b905090565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16620004f45760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b600854604051627eeac760e11b81526001600160a01b038381166004830152621f42896024830152600092839291169062fdd58e9060440160206040518083038186803b15801562000ce857600080fd5b505afa15801562000cfd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000d239190620010dc565b600854604051627eeac760e11b81526001600160a01b038681166004830152621f418960248301529293506000929091169062fdd58e9060440160206040518083038186803b15801562000d7657600080fd5b505afa15801562000d8b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000db19190620010dc565b6007549091506001600160a01b03161562000e5d57600754604051627eeac760e11b81526001600160a01b038681166004830152621f418960248301529091169062fdd58e9060440160206040518083038186803b15801562000e1357600080fd5b505afa15801562000e28573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000e4e9190620010dc565b62000e5a9082620010f6565b90505b6000811162000e6e57600062000e71565b60015b62000e809060ff1683620010f6565b949350505050565b82805462000e96906200111d565b90600052602060002090601f01602090048101928262000eba576000855562000f05565b82601f1062000ed557805160ff191683800117855562000f05565b8280016001018555821562000f05579182015b8281111562000f0557825182559160200191906001019062000ee8565b5062000f1392915062000f17565b5090565b5b8082111562000f13576000815560010162000f18565b60006020828403121562000f4157600080fd5b815162000f4e8162001170565b9392505050565b600080600080600080600060e0888a03121562000f7157600080fd5b875162000f7e8162001170565b602089015190975062000f918162001170565b604089015190965062000fa48162001170565b606089015190955062000fb78162001170565b608089015190945062000fca8162001170565b60a089015190935062000fdd8162001170565b60c089015190925062000ff08162001170565b8091505092959891949750929550565b600060208083850312156200101457600080fd5b82516001600160401b03808211156200102c57600080fd5b818501915085601f8301126200104157600080fd5b8151818111156200105657620010566200115a565b604051601f8201601f19908116603f011681019083821181831017156200108157620010816200115a565b8160405282815288868487010111156200109a57600080fd5b600093505b82841015620010be57848401860151818501870152928501926200109f565b82841115620010d05760008684830101525b98975050505050505050565b600060208284031215620010ef57600080fd5b5051919050565b600082198211156200111857634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200113257607f821691505b602082108114156200115457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146200118657600080fd5b50565b6132ba80620011996000396000f3fe608060405234801561001057600080fd5b50600436106103625760003560e01c80638ab1d681116101c8578063b774608611610104578063dd62ed3e116100a2578063e2811bfa1161007c578063e2811bfa14610763578063e43252d714610774578063eafb18f414610787578063f2fde38b1461079a57600080fd5b8063dd62ed3e14610706578063e00701821461073f578063e01c51cd1461075057600080fd5b8063c1f47f29116100de578063c1f47f29146106cc578063d1a389c0146106d4578063d547741f146106e0578063dc84bda4146106f357600080fd5b8063b77460861461069e578063bbe3c37a146106a6578063bd35cb35146106b957600080fd5b8063941a3daf116101715780639ff46e741161014b5780639ff46e741461065d578063a217fddf14610670578063a457c2d714610678578063a9059cbb1461068b57600080fd5b8063941a3daf1461063357806395d89b41146106445780639f49783d1461064c57600080fd5b806391d14854116101a257806391d14854146105d6578063925f7f031461060f578063940d1f741461062257600080fd5b80638ab1d681146105aa5780638da5cb5b146105bd5780638df37f9d146105ce57600080fd5b8063313ce567116102a25780634e5167c2116102405780636b58dcd51161021a5780636b58dcd51461054f57806370a0823114610557578063715018a6146105805780638a4ad3ec1461058857600080fd5b80634e5167c21461051e5780636179635b14610531578063661d92331461054457600080fd5b80633af32abf1161027c5780633af32abf146104c15780633b218ac4146104f25780633b44390a146104fa57806345b4f82e1461050b57600080fd5b8063313ce5671461048c57806336568abe1461049b57806339509351146104ae57600080fd5b806315ade3d81161030f57806323b872dd116102e957806323b872dd1461042d578063248a9ca31461044057806327a14fc2146104645780632f2ff15d1461047957600080fd5b806315ade3d8146103d957806318160ddd146103fe5780631dec5e071461040657600080fd5b806309c95a1b1161034057806309c95a1b146103b75780630f2aaec5146103c9578063100aaf70146103d157600080fd5b806301ffc9a71461036757806306fdde031461038f578063095ea7b3146103a4575b600080fd5b61037a610375366004612e25565b6107ad565b60405190151581526020015b60405180910390f35b610397610816565b604051610386919061304a565b61037a6103b2366004612d0e565b6108a8565b6009545b604051908152602001610386565b6005546103bb565b6006546103bb565b6008546001600160a01b03165b6040516001600160a01b039091168152602001610386565b6018546103bb565b6103bb7fb06fd1d7ac3cc9ad93e77413fab9fcd3bbd887f5685e519e34e0e80802d074ee81565b61037a61043b366004612ccd565b6108be565b6103bb61044e366004612de7565b6000908152600160208190526040909120015490565b610477610472366004612de7565b610989565b005b610477610487366004612e00565b6109f8565b60405160128152602001610386565b6104776104a9366004612e00565b610a24565b61037a6104bc366004612d0e565b610ab0565b61037a6104cf366004612c5a565b6001600160a01b031660009081526013602052604090205460ff16151560011490565b6003546103bb565b6010546001600160a01b03166103e6565b610477610519366004612c5a565b610aec565b61047761052c366004612c5a565b610b56565b61047761053f366004612efc565b610bc1565b60025460ff1661037a565b6004546103bb565b6103bb610565366004612c5a565b6001600160a01b031660009081526016602052604090205490565b610477610cbe565b6103bb610596366004612c5a565b503360009081526015602052604090205490565b6104776105b8366004612c5a565b610d12565b6000546001600160a01b03166103e6565b610477610d7b565b61037a6105e4366004612e00565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6103bb61061d366004612c5a565b610dcf565b600d546001600160a01b03166103e6565b6007546001600160a01b03166103e6565b610397610fad565b600e546001600160a01b03166103e6565b61047761066b366004612de7565b610fbc565b6103bb600081565b61037a610686366004612d0e565b611009565b61037a610699366004612d0e565b6110ba565b600b546103bb565b6104776106b4366004612c5a565b6110c7565b6104776106c7366004612f1e565b611132565b6103bb611378565b60025460ff161561037a565b6104776106ee366004612e00565b611388565b610477610701366004612c5a565b6113af565b6103bb610714366004612c94565b6001600160a01b03918216600090815260176020908152604080832093909416825291909152205490565b6011546001600160a01b03166103e6565b61047761075e366004612c5a565b611419565b600a546001600160a01b03166103e6565b610477610782366004612c5a565b6116ed565b610477610795366004612de7565b611759565b6104776107a8366004612c5a565b611a11565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061081057507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060198054610825906131d2565b80601f0160208091040260200160405190810160405280929190818152602001828054610851906131d2565b801561089e5780601f106108735761010080835404028352916020019161089e565b820191906000526020600020905b81548152906001019060200180831161088157829003601f168201915b5050505050905090565b60006108b5338484611ae1565b50600192915050565b6001600160a01b0383166000908152601760209081526040808320338452909152812054600019811461097357828110156109665760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6109738533858403611ae1565b61097e858585611c3a565b506001949350505050565b6000546001600160a01b031633146109d15760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b8015806109ea57506b033b2e3c9fd0803ce80000008110155b6109f357600080fd5b600955565b60008281526001602081905260409091200154610a158133612368565b610a1f83836123e8565b505050565b6001600160a01b0381163314610aa25760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161095d565b610aac828261246f565b5050565b3360008181526017602090815260408083206001600160a01b038716845290915281205490916108b5918590610ae790869061311f565b611ae1565b6000546001600160a01b03163314610b345760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610b9e5760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b600880546001600160a01b0319166001600160a01b038316179055610aac611378565b7fb06fd1d7ac3cc9ad93e77413fab9fcd3bbd887f5685e519e34e0e80802d074ee610bec8133612368565b3060009081526016602052604090205480610c495760405162461bcd60e51b815260206004820181905260248201527f4e6f20746f6b656e732061726520617661696c61626c6520746f2073656c6c2e604482015260640161095d565b6011546001600160a01b0316610c6857610c6381856124f2565b610cb8565b6000600654600454610c7a919061311f565b600654610c879084613159565b610c919190613137565b90506000610c9f8284613178565b9050610cab81876124f2565b610cb58286612655565b50505b50505050565b6000546001600160a01b03163314610d065760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b610d106000612785565b565b6000546001600160a01b03163314610d5a5760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b6001600160a01b03166000908152601360205260409020805460ff19169055565b6000546001600160a01b03163314610dc35760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b6002805460ff19169055565b600854604051627eeac760e11b81526001600160a01b038381166004830152621f42896024830152600092839291169062fdd58e9060440160206040518083038186803b158015610e1f57600080fd5b505afa158015610e33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e579190612ee3565b600854604051627eeac760e11b81526001600160a01b038681166004830152621f418960248301529293506000929091169062fdd58e9060440160206040518083038186803b158015610ea957600080fd5b505afa158015610ebd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee19190612ee3565b6007549091506001600160a01b031615610f8657600754604051627eeac760e11b81526001600160a01b038681166004830152621f418960248301529091169062fdd58e9060440160206040518083038186803b158015610f4157600080fd5b505afa158015610f55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f799190612ee3565b610f83908261311f565b90505b60008111610f95576000610f98565b60015b610fa59060ff168361311f565b949350505050565b6060601a8054610825906131d2565b6000546001600160a01b031633146110045760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b600b55565b3360009081526017602090815260408083206001600160a01b0386168452909152812054828110156110a35760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161095d565b6110b03385858403611ae1565b5060019392505050565b60006108b5338484611c3a565b6000546001600160a01b0316331461110f5760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b600780546001600160a01b0319166001600160a01b038316179055610aac611378565b6000546001600160a01b0316331461117a5760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b600584905560038390556004829055600681905560148411156111df5760405162461bcd60e51b815260206004820152601c60248201527f546865206d6178696d756d206275726e20666565206973203230252e00000000604482015260640161095d565b601460065411156112325760405162461bcd60e51b815260206004820181905260248201527f546865206d6178696d756d206275792d6261636b20666565206973203230252e604482015260640161095d565b601460035411156112855760405162461bcd60e51b815260206004820152601e60248201527f546865206d6178696d756d2072657761726420666565206973203230252e0000604482015260640161095d565b601460045411156112d85760405162461bcd60e51b815260206004820152601b60248201527f546865206d6178696d756d2064657620666565206973203230252e0000000000604482015260640161095d565b601e6004546003546006546005546112f0919061311f565b6112fa919061311f565b611304919061311f565b1115610cb85760405162461bcd60e51b815260206004820152602660248201527f546865206d6178696d756d20746f74616c20636f6d62696e656420666565206960448201527f73203330252e0000000000000000000000000000000000000000000000000000606482015260840161095d565b600061138333610dcf565b905090565b600082815260016020819052604090912001546113a58133612368565b610a1f838361246f565b6000546001600160a01b031633146113f75760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146114615760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b6001600160a01b038116156116cb577febc8fb437656b478682b18170785867229a399dedde8e18cd0a878f5e3d219e5816001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b1580156114ca57600080fd5b505afa1580156114de573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115069190810190612e4f565b80519060200120146115805760405162461bcd60e51b815260206004820152602a60248201527f596f7520646964206e6f7420737570706c7920612076616c696420424c4f434b60448201527f49465920746f6b656e2e00000000000000000000000000000000000000000000606482015260840161095d565b6012546011546010546040517fe6a439050000000000000000000000000000000000000000000000000000000081526001600160a01b0392831660048201529082166024820152600092919091169063e6a439059060440160206040518083038186803b1580156115f057600080fd5b505afa158015611604573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116289190612c77565b6001600160a01b031614156116cb5760405162461bcd60e51b815260206004820152604d60248201527f5468657265206973206e6f20555344432f424c4f434b49465920706f6f6c2e2060448201527f4c696b656c792074686520746f6b656e7320796f7520737570706c696564206160648201527f7265206e6f742076616c69642e00000000000000000000000000000000000000608482015260a40161095d565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146117355760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b6001600160a01b03166000908152601360205260409020805460ff19166001179055565b600081621f4309141561176e5750600a611828565b81621f432914156117815750601e611828565b81621f4349141561179457506032611828565b81621f436914156117a757506046611828565b81621f438914156117ba57506064611828565b60405162461bcd60e51b815260206004820152603560248201527f54686520676976656e206974656d20646f6573206e6f7420726566657220746f60448201527f20612074617820726564756374696f6e204e46542e0000000000000000000000606482015260840161095d565b3360009081526015602052604080822083905580516001808252818301909252908160200160208202803683375050604080516001808252818301909252929350600092915060208083019080368337019050509050838260008151811061189257611892613223565b6020026020010181815250506001816000815181106118b3576118b3613223565b6020908102919091010152600854604051627eeac760e11b8152336004820152602481018690526000916001600160a01b03169062fdd58e9060440160206040518083038186803b15801561190757600080fd5b505afa15801561191b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061193f9190612ee3565b1161198c5760405162461bcd60e51b815260206004820152601d60248201527f596f7520646f6e2774206f776e2074686520676976656e206974656d2e000000604482015260640161095d565b6008546040517f6b20c4540000000000000000000000000000000000000000000000000000000081526001600160a01b0390911690636b20c454906119d99033908690869060040161300c565b600060405180830381600087803b1580156119f357600080fd5b505af1158015611a07573d6000803e3d6000fd5b5050505050505050565b6000546001600160a01b03163314611a595760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b6001600160a01b038116611ad55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161095d565b611ade81612785565b50565b6001600160a01b038316611b5c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161095d565b6001600160a01b038216611bd85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161095d565b6001600160a01b0383811660008181526017602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b611c61836001600160a01b031660009081526013602052604090205460ff16151560011490565b80611c8e5750611c8e826001600160a01b031660009081526013602052604090205460ff16151560011490565b15611c9e57610a1f8383836127d5565b6001600160a01b038316611d1a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161095d565b6001600160a01b038216611d965760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161095d565b6000611da560025460ff161590565b90506000611db260095490565b1115611fd057600d546001600160a01b0384811691161415611ebd57600954821115611eb85760405162461bcd60e51b815260206004820152608b60248201527f53656c6c20626c6f636b65642e20546f6b656e206c696d69742070657220747260448201527f616e73616374696f6e2065786365656465642e20526566657220746f206f757260648201527f2054656c656772616d20666f72206675727468657220696e666f726d6174696f60848201527f6e2e2054686973207265737472696374696f6e2077696c6c206265206c69667460a48201527f65642073686f72746c792e00000000000000000000000000000000000000000060c482015260e40161095d565b611fd0565b60095482611ee0856001600160a01b031660009081526016602052604090205490565b611eea919061311f565b1115611fd05760405162461bcd60e51b815260206004820152608560248201527f42757920626c6f636b65642e20546f6b656e206c696d6974207065722077616c60448201527f6c65742065786365656465642e20526566657220746f206f75722054656c656760648201527f72616d20666f72206675727468657220696e666f726d6174696f6e2e2054686960848201527f73207265737472696374696f6e2077696c6c206265206c69667465642073686f60a48201527f72746c792e00000000000000000000000000000000000000000000000000000060c482015260e40161095d565b6001600160a01b03808416600081815260146020526040902080544391829055600d549111921614806120005750805b806120085750815b6120ec5760405162461bcd60e51b815260206004820152609360248201527f42757920626c6f636b656420627920676174656b65657065722e20596f75206360448201527f616e206f6e6c7920627579206f6e63652070657220626c6f636b2e205265666560648201527f7220746f206f75722054656c656772616d20666f72206675727468657220696e60848201527f666f726d6174696f6e2e2054686973207265737472696374696f6e2077696c6c60a48201527f206265206c69667465642073686f72746c792e0000000000000000000000000060c482015260e40161095d565b600060026120f986610dcf565b600d5491111591506001600160a01b03868116911614806121175750805b8061211f5750825b61222a5760405162461bcd60e51b81526020600482015260a160248201527f42757920626c6f636b656420627920676174656b65657065722e20546172676560448201527f742077616c6c657420646f6573206e6f74206f776e20656e6f756768206f662060648201527f6f7572204e4654732e20526566657220746f206f75722054656c656772616d2060848201527f666f72206675727468657220696e666f726d6174696f6e2e205468697320726560a48201527f737472696374696f6e2077696c6c206265206c69667465642073686f72746c7960c48201527f2e0000000000000000000000000000000000000000000000000000000000000060e48201526101040161095d565b6001600160a01b038616600090815260156020526040812080549082905590612710612257836064613178565b6005546122649089613159565b61226e9190613159565b6122789190613137565b9050600061271061228a846064613178565b600354612297908a613159565b6122a19190613159565b6122ab9190613137565b905060006127106122bd856064613178565b6006546004546122cd919061311f565b6122d7908b613159565b6122e19190613159565b6122eb9190613137565b9050600081836122fb868c613178565b6123059190613178565b61230f9190613178565b90508315612321576123218b856128f5565b821561233f57600a5461233f908c906001600160a01b0316856127d5565b8115612350576123508b30846127d5565b61235b8b8b836127d5565b5050505050505050505050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16610aac576123a6816001600160a01b03166014612a72565b6123b1836020612a72565b6040516020016123c2929190612f8b565b60408051601f198184030181529082905262461bcd60e51b825261095d9160040161304a565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16610aac5760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff1615610aac5760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b816124fb575050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061253057612530613223565b6001600160a01b03928316602091820292909201015260105482519116908290600190811061256157612561613223565b6001600160a01b03928316602091820292909201810191909152600f54306000818152601784526040808220939095168082529290935292909120546125ae929190610ae790879061311f565b600f546001600160a01b03166338ed1739846125ca8582613137565b600e546040516001600160e01b031960e086901b1681526125ff93929187916001600160a01b0390911690429060040161307d565b600060405180830381600087803b15801561261957600080fd5b505af115801561262d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610cb89190810190612d3a565b8161265e575050565b6040805160038082526080820190925260009160208201606080368337019050509050308160008151811061269557612695613223565b6001600160a01b0392831660209182029290920101526010548251911690829060019081106126c6576126c6613223565b6001600160a01b0392831660209182029290920101526011548251911690829060029081106126f7576126f7613223565b6001600160a01b03928316602091820292909201810191909152600f5430600081815260178452604080822093909516808252929093529290912054612744929190610ae790879061311f565b600f546001600160a01b03166338ed1739846127608582613137565b8461dead426040518663ffffffff1660e01b81526004016125ff95949392919061307d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038316600090815260166020526040902054818110156128645760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161095d565b6001600160a01b0380851660009081526016602052604080822085850390559185168152908120805484929061289b90849061311f565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516128e791815260200190565b60405180910390a350505050565b6001600160a01b0382166129715760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161095d565b6001600160a01b03821660009081526016602052604090205481811015612a005760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f6365000000000000000000000000000000000000000000000000000000000000606482015260840161095d565b6001600160a01b0383166000908152601660205260408120838303905560188054849290612a2f908490613178565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611c2d565b60606000612a81836002613159565b612a8c90600261311f565b67ffffffffffffffff811115612aa457612aa4613239565b6040519080825280601f01601f191660200182016040528015612ace576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612b0557612b05613223565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612b5057612b50613223565b60200101906001600160f81b031916908160001a9053506000612b74846002613159565b612b7f90600161311f565b90505b6001811115612c04577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612bc057612bc0613223565b1a60f81b828281518110612bd657612bd6613223565b60200101906001600160f81b031916908160001a90535060049490941c93612bfd816131bb565b9050612b82565b508315612c535760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161095d565b9392505050565b600060208284031215612c6c57600080fd5b8135612c538161324f565b600060208284031215612c8957600080fd5b8151612c538161324f565b60008060408385031215612ca757600080fd5b8235612cb28161324f565b91506020830135612cc28161324f565b809150509250929050565b600080600060608486031215612ce257600080fd5b8335612ced8161324f565b92506020840135612cfd8161324f565b929592945050506040919091013590565b60008060408385031215612d2157600080fd5b8235612d2c8161324f565b946020939093013593505050565b60006020808385031215612d4d57600080fd5b825167ffffffffffffffff80821115612d6557600080fd5b818501915085601f830112612d7957600080fd5b815181811115612d8b57612d8b613239565b8060051b9150612d9c8483016130ee565b8181528481019084860184860187018a1015612db757600080fd5b600095505b83861015612dda578051835260019590950194918601918601612dbc565b5098975050505050505050565b600060208284031215612df957600080fd5b5035919050565b60008060408385031215612e1357600080fd5b823591506020830135612cc28161324f565b600060208284031215612e3757600080fd5b81356001600160e01b031981168114612c5357600080fd5b600060208284031215612e6157600080fd5b815167ffffffffffffffff80821115612e7957600080fd5b818401915084601f830112612e8d57600080fd5b815181811115612e9f57612e9f613239565b612eb2601f8201601f19166020016130ee565b9150808252856020828501011115612ec957600080fd5b612eda81602084016020860161318f565b50949350505050565b600060208284031215612ef557600080fd5b5051919050565b60008060408385031215612f0f57600080fd5b50508035926020909101359150565b60008060008060808587031215612f3457600080fd5b5050823594602084013594506040840135936060013592509050565b600081518084526020808501945080840160005b83811015612f8057815187529582019590820190600101612f64565b509495945050505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612fc381601785016020880161318f565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161300081602884016020880161318f565b01602801949350505050565b6001600160a01b038416815260606020820152600061302e6060830185612f50565b82810360408401526130408185612f50565b9695505050505050565b602081526000825180602084015261306981604085016020870161318f565b601f01601f19169190910160400192915050565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156130cd5784516001600160a01b0316835293830193918301916001016130a8565b50506001600160a01b03969096166060850152505050608001529392505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561311757613117613239565b604052919050565b600082198211156131325761313261320d565b500190565b60008261315457634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156131735761317361320d565b500290565b60008282101561318a5761318a61320d565b500390565b60005b838110156131aa578181015183820152602001613192565b83811115610cb85750506000910152565b6000816131ca576131ca61320d565b506000190190565b600181811c908216806131e657607f821691505b6020821081141561320757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611ade57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220165586b63e13bd5c5eca34dda895ff65292db44f33d9a73675bd3f1b21be758764736f6c634300080700334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572b06fd1d7ac3cc9ad93e77413fab9fcd3bbd887f5685e519e34e0e80802d074ee000000000000000000000000b2d45d740646f3890fe17536d4a9878d9a80db4a0000000000000000000000003de3159d8a7f556f4d030bddad0c339bfdfbc73f000000000000000000000000a31b8aee98c066c612d859f790040b3b294062f90000000000000000000000002eda4c95c39dd14e8a397e81643bbf1affd33b150000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000007d608cfaa805a752788847e5c46ce9c03fb43c21

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103625760003560e01c80638ab1d681116101c8578063b774608611610104578063dd62ed3e116100a2578063e2811bfa1161007c578063e2811bfa14610763578063e43252d714610774578063eafb18f414610787578063f2fde38b1461079a57600080fd5b8063dd62ed3e14610706578063e00701821461073f578063e01c51cd1461075057600080fd5b8063c1f47f29116100de578063c1f47f29146106cc578063d1a389c0146106d4578063d547741f146106e0578063dc84bda4146106f357600080fd5b8063b77460861461069e578063bbe3c37a146106a6578063bd35cb35146106b957600080fd5b8063941a3daf116101715780639ff46e741161014b5780639ff46e741461065d578063a217fddf14610670578063a457c2d714610678578063a9059cbb1461068b57600080fd5b8063941a3daf1461063357806395d89b41146106445780639f49783d1461064c57600080fd5b806391d14854116101a257806391d14854146105d6578063925f7f031461060f578063940d1f741461062257600080fd5b80638ab1d681146105aa5780638da5cb5b146105bd5780638df37f9d146105ce57600080fd5b8063313ce567116102a25780634e5167c2116102405780636b58dcd51161021a5780636b58dcd51461054f57806370a0823114610557578063715018a6146105805780638a4ad3ec1461058857600080fd5b80634e5167c21461051e5780636179635b14610531578063661d92331461054457600080fd5b80633af32abf1161027c5780633af32abf146104c15780633b218ac4146104f25780633b44390a146104fa57806345b4f82e1461050b57600080fd5b8063313ce5671461048c57806336568abe1461049b57806339509351146104ae57600080fd5b806315ade3d81161030f57806323b872dd116102e957806323b872dd1461042d578063248a9ca31461044057806327a14fc2146104645780632f2ff15d1461047957600080fd5b806315ade3d8146103d957806318160ddd146103fe5780631dec5e071461040657600080fd5b806309c95a1b1161034057806309c95a1b146103b75780630f2aaec5146103c9578063100aaf70146103d157600080fd5b806301ffc9a71461036757806306fdde031461038f578063095ea7b3146103a4575b600080fd5b61037a610375366004612e25565b6107ad565b60405190151581526020015b60405180910390f35b610397610816565b604051610386919061304a565b61037a6103b2366004612d0e565b6108a8565b6009545b604051908152602001610386565b6005546103bb565b6006546103bb565b6008546001600160a01b03165b6040516001600160a01b039091168152602001610386565b6018546103bb565b6103bb7fb06fd1d7ac3cc9ad93e77413fab9fcd3bbd887f5685e519e34e0e80802d074ee81565b61037a61043b366004612ccd565b6108be565b6103bb61044e366004612de7565b6000908152600160208190526040909120015490565b610477610472366004612de7565b610989565b005b610477610487366004612e00565b6109f8565b60405160128152602001610386565b6104776104a9366004612e00565b610a24565b61037a6104bc366004612d0e565b610ab0565b61037a6104cf366004612c5a565b6001600160a01b031660009081526013602052604090205460ff16151560011490565b6003546103bb565b6010546001600160a01b03166103e6565b610477610519366004612c5a565b610aec565b61047761052c366004612c5a565b610b56565b61047761053f366004612efc565b610bc1565b60025460ff1661037a565b6004546103bb565b6103bb610565366004612c5a565b6001600160a01b031660009081526016602052604090205490565b610477610cbe565b6103bb610596366004612c5a565b503360009081526015602052604090205490565b6104776105b8366004612c5a565b610d12565b6000546001600160a01b03166103e6565b610477610d7b565b61037a6105e4366004612e00565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6103bb61061d366004612c5a565b610dcf565b600d546001600160a01b03166103e6565b6007546001600160a01b03166103e6565b610397610fad565b600e546001600160a01b03166103e6565b61047761066b366004612de7565b610fbc565b6103bb600081565b61037a610686366004612d0e565b611009565b61037a610699366004612d0e565b6110ba565b600b546103bb565b6104776106b4366004612c5a565b6110c7565b6104776106c7366004612f1e565b611132565b6103bb611378565b60025460ff161561037a565b6104776106ee366004612e00565b611388565b610477610701366004612c5a565b6113af565b6103bb610714366004612c94565b6001600160a01b03918216600090815260176020908152604080832093909416825291909152205490565b6011546001600160a01b03166103e6565b61047761075e366004612c5a565b611419565b600a546001600160a01b03166103e6565b610477610782366004612c5a565b6116ed565b610477610795366004612de7565b611759565b6104776107a8366004612c5a565b611a11565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061081057507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060198054610825906131d2565b80601f0160208091040260200160405190810160405280929190818152602001828054610851906131d2565b801561089e5780601f106108735761010080835404028352916020019161089e565b820191906000526020600020905b81548152906001019060200180831161088157829003601f168201915b5050505050905090565b60006108b5338484611ae1565b50600192915050565b6001600160a01b0383166000908152601760209081526040808320338452909152812054600019811461097357828110156109665760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6109738533858403611ae1565b61097e858585611c3a565b506001949350505050565b6000546001600160a01b031633146109d15760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b8015806109ea57506b033b2e3c9fd0803ce80000008110155b6109f357600080fd5b600955565b60008281526001602081905260409091200154610a158133612368565b610a1f83836123e8565b505050565b6001600160a01b0381163314610aa25760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161095d565b610aac828261246f565b5050565b3360008181526017602090815260408083206001600160a01b038716845290915281205490916108b5918590610ae790869061311f565b611ae1565b6000546001600160a01b03163314610b345760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610b9e5760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b600880546001600160a01b0319166001600160a01b038316179055610aac611378565b7fb06fd1d7ac3cc9ad93e77413fab9fcd3bbd887f5685e519e34e0e80802d074ee610bec8133612368565b3060009081526016602052604090205480610c495760405162461bcd60e51b815260206004820181905260248201527f4e6f20746f6b656e732061726520617661696c61626c6520746f2073656c6c2e604482015260640161095d565b6011546001600160a01b0316610c6857610c6381856124f2565b610cb8565b6000600654600454610c7a919061311f565b600654610c879084613159565b610c919190613137565b90506000610c9f8284613178565b9050610cab81876124f2565b610cb58286612655565b50505b50505050565b6000546001600160a01b03163314610d065760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b610d106000612785565b565b6000546001600160a01b03163314610d5a5760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b6001600160a01b03166000908152601360205260409020805460ff19169055565b6000546001600160a01b03163314610dc35760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b6002805460ff19169055565b600854604051627eeac760e11b81526001600160a01b038381166004830152621f42896024830152600092839291169062fdd58e9060440160206040518083038186803b158015610e1f57600080fd5b505afa158015610e33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e579190612ee3565b600854604051627eeac760e11b81526001600160a01b038681166004830152621f418960248301529293506000929091169062fdd58e9060440160206040518083038186803b158015610ea957600080fd5b505afa158015610ebd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee19190612ee3565b6007549091506001600160a01b031615610f8657600754604051627eeac760e11b81526001600160a01b038681166004830152621f418960248301529091169062fdd58e9060440160206040518083038186803b158015610f4157600080fd5b505afa158015610f55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f799190612ee3565b610f83908261311f565b90505b60008111610f95576000610f98565b60015b610fa59060ff168361311f565b949350505050565b6060601a8054610825906131d2565b6000546001600160a01b031633146110045760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b600b55565b3360009081526017602090815260408083206001600160a01b0386168452909152812054828110156110a35760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161095d565b6110b03385858403611ae1565b5060019392505050565b60006108b5338484611c3a565b6000546001600160a01b0316331461110f5760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b600780546001600160a01b0319166001600160a01b038316179055610aac611378565b6000546001600160a01b0316331461117a5760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b600584905560038390556004829055600681905560148411156111df5760405162461bcd60e51b815260206004820152601c60248201527f546865206d6178696d756d206275726e20666565206973203230252e00000000604482015260640161095d565b601460065411156112325760405162461bcd60e51b815260206004820181905260248201527f546865206d6178696d756d206275792d6261636b20666565206973203230252e604482015260640161095d565b601460035411156112855760405162461bcd60e51b815260206004820152601e60248201527f546865206d6178696d756d2072657761726420666565206973203230252e0000604482015260640161095d565b601460045411156112d85760405162461bcd60e51b815260206004820152601b60248201527f546865206d6178696d756d2064657620666565206973203230252e0000000000604482015260640161095d565b601e6004546003546006546005546112f0919061311f565b6112fa919061311f565b611304919061311f565b1115610cb85760405162461bcd60e51b815260206004820152602660248201527f546865206d6178696d756d20746f74616c20636f6d62696e656420666565206960448201527f73203330252e0000000000000000000000000000000000000000000000000000606482015260840161095d565b600061138333610dcf565b905090565b600082815260016020819052604090912001546113a58133612368565b610a1f838361246f565b6000546001600160a01b031633146113f75760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146114615760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b6001600160a01b038116156116cb577febc8fb437656b478682b18170785867229a399dedde8e18cd0a878f5e3d219e5816001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b1580156114ca57600080fd5b505afa1580156114de573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115069190810190612e4f565b80519060200120146115805760405162461bcd60e51b815260206004820152602a60248201527f596f7520646964206e6f7420737570706c7920612076616c696420424c4f434b60448201527f49465920746f6b656e2e00000000000000000000000000000000000000000000606482015260840161095d565b6012546011546010546040517fe6a439050000000000000000000000000000000000000000000000000000000081526001600160a01b0392831660048201529082166024820152600092919091169063e6a439059060440160206040518083038186803b1580156115f057600080fd5b505afa158015611604573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116289190612c77565b6001600160a01b031614156116cb5760405162461bcd60e51b815260206004820152604d60248201527f5468657265206973206e6f20555344432f424c4f434b49465920706f6f6c2e2060448201527f4c696b656c792074686520746f6b656e7320796f7520737570706c696564206160648201527f7265206e6f742076616c69642e00000000000000000000000000000000000000608482015260a40161095d565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146117355760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b6001600160a01b03166000908152601360205260409020805460ff19166001179055565b600081621f4309141561176e5750600a611828565b81621f432914156117815750601e611828565b81621f4349141561179457506032611828565b81621f436914156117a757506046611828565b81621f438914156117ba57506064611828565b60405162461bcd60e51b815260206004820152603560248201527f54686520676976656e206974656d20646f6573206e6f7420726566657220746f60448201527f20612074617820726564756374696f6e204e46542e0000000000000000000000606482015260840161095d565b3360009081526015602052604080822083905580516001808252818301909252908160200160208202803683375050604080516001808252818301909252929350600092915060208083019080368337019050509050838260008151811061189257611892613223565b6020026020010181815250506001816000815181106118b3576118b3613223565b6020908102919091010152600854604051627eeac760e11b8152336004820152602481018690526000916001600160a01b03169062fdd58e9060440160206040518083038186803b15801561190757600080fd5b505afa15801561191b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061193f9190612ee3565b1161198c5760405162461bcd60e51b815260206004820152601d60248201527f596f7520646f6e2774206f776e2074686520676976656e206974656d2e000000604482015260640161095d565b6008546040517f6b20c4540000000000000000000000000000000000000000000000000000000081526001600160a01b0390911690636b20c454906119d99033908690869060040161300c565b600060405180830381600087803b1580156119f357600080fd5b505af1158015611a07573d6000803e3d6000fd5b5050505050505050565b6000546001600160a01b03163314611a595760405162461bcd60e51b81526020600482018190526024820152600080516020613265833981519152604482015260640161095d565b6001600160a01b038116611ad55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161095d565b611ade81612785565b50565b6001600160a01b038316611b5c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161095d565b6001600160a01b038216611bd85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161095d565b6001600160a01b0383811660008181526017602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b611c61836001600160a01b031660009081526013602052604090205460ff16151560011490565b80611c8e5750611c8e826001600160a01b031660009081526013602052604090205460ff16151560011490565b15611c9e57610a1f8383836127d5565b6001600160a01b038316611d1a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161095d565b6001600160a01b038216611d965760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161095d565b6000611da560025460ff161590565b90506000611db260095490565b1115611fd057600d546001600160a01b0384811691161415611ebd57600954821115611eb85760405162461bcd60e51b815260206004820152608b60248201527f53656c6c20626c6f636b65642e20546f6b656e206c696d69742070657220747260448201527f616e73616374696f6e2065786365656465642e20526566657220746f206f757260648201527f2054656c656772616d20666f72206675727468657220696e666f726d6174696f60848201527f6e2e2054686973207265737472696374696f6e2077696c6c206265206c69667460a48201527f65642073686f72746c792e00000000000000000000000000000000000000000060c482015260e40161095d565b611fd0565b60095482611ee0856001600160a01b031660009081526016602052604090205490565b611eea919061311f565b1115611fd05760405162461bcd60e51b815260206004820152608560248201527f42757920626c6f636b65642e20546f6b656e206c696d6974207065722077616c60448201527f6c65742065786365656465642e20526566657220746f206f75722054656c656760648201527f72616d20666f72206675727468657220696e666f726d6174696f6e2e2054686960848201527f73207265737472696374696f6e2077696c6c206265206c69667465642073686f60a48201527f72746c792e00000000000000000000000000000000000000000000000000000060c482015260e40161095d565b6001600160a01b03808416600081815260146020526040902080544391829055600d549111921614806120005750805b806120085750815b6120ec5760405162461bcd60e51b815260206004820152609360248201527f42757920626c6f636b656420627920676174656b65657065722e20596f75206360448201527f616e206f6e6c7920627579206f6e63652070657220626c6f636b2e205265666560648201527f7220746f206f75722054656c656772616d20666f72206675727468657220696e60848201527f666f726d6174696f6e2e2054686973207265737472696374696f6e2077696c6c60a48201527f206265206c69667465642073686f72746c792e0000000000000000000000000060c482015260e40161095d565b600060026120f986610dcf565b600d5491111591506001600160a01b03868116911614806121175750805b8061211f5750825b61222a5760405162461bcd60e51b81526020600482015260a160248201527f42757920626c6f636b656420627920676174656b65657065722e20546172676560448201527f742077616c6c657420646f6573206e6f74206f776e20656e6f756768206f662060648201527f6f7572204e4654732e20526566657220746f206f75722054656c656772616d2060848201527f666f72206675727468657220696e666f726d6174696f6e2e205468697320726560a48201527f737472696374696f6e2077696c6c206265206c69667465642073686f72746c7960c48201527f2e0000000000000000000000000000000000000000000000000000000000000060e48201526101040161095d565b6001600160a01b038616600090815260156020526040812080549082905590612710612257836064613178565b6005546122649089613159565b61226e9190613159565b6122789190613137565b9050600061271061228a846064613178565b600354612297908a613159565b6122a19190613159565b6122ab9190613137565b905060006127106122bd856064613178565b6006546004546122cd919061311f565b6122d7908b613159565b6122e19190613159565b6122eb9190613137565b9050600081836122fb868c613178565b6123059190613178565b61230f9190613178565b90508315612321576123218b856128f5565b821561233f57600a5461233f908c906001600160a01b0316856127d5565b8115612350576123508b30846127d5565b61235b8b8b836127d5565b5050505050505050505050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16610aac576123a6816001600160a01b03166014612a72565b6123b1836020612a72565b6040516020016123c2929190612f8b565b60408051601f198184030181529082905262461bcd60e51b825261095d9160040161304a565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16610aac5760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff1615610aac5760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b816124fb575050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061253057612530613223565b6001600160a01b03928316602091820292909201015260105482519116908290600190811061256157612561613223565b6001600160a01b03928316602091820292909201810191909152600f54306000818152601784526040808220939095168082529290935292909120546125ae929190610ae790879061311f565b600f546001600160a01b03166338ed1739846125ca8582613137565b600e546040516001600160e01b031960e086901b1681526125ff93929187916001600160a01b0390911690429060040161307d565b600060405180830381600087803b15801561261957600080fd5b505af115801561262d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610cb89190810190612d3a565b8161265e575050565b6040805160038082526080820190925260009160208201606080368337019050509050308160008151811061269557612695613223565b6001600160a01b0392831660209182029290920101526010548251911690829060019081106126c6576126c6613223565b6001600160a01b0392831660209182029290920101526011548251911690829060029081106126f7576126f7613223565b6001600160a01b03928316602091820292909201810191909152600f5430600081815260178452604080822093909516808252929093529290912054612744929190610ae790879061311f565b600f546001600160a01b03166338ed1739846127608582613137565b8461dead426040518663ffffffff1660e01b81526004016125ff95949392919061307d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038316600090815260166020526040902054818110156128645760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161095d565b6001600160a01b0380851660009081526016602052604080822085850390559185168152908120805484929061289b90849061311f565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516128e791815260200190565b60405180910390a350505050565b6001600160a01b0382166129715760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161095d565b6001600160a01b03821660009081526016602052604090205481811015612a005760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f6365000000000000000000000000000000000000000000000000000000000000606482015260840161095d565b6001600160a01b0383166000908152601660205260408120838303905560188054849290612a2f908490613178565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611c2d565b60606000612a81836002613159565b612a8c90600261311f565b67ffffffffffffffff811115612aa457612aa4613239565b6040519080825280601f01601f191660200182016040528015612ace576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612b0557612b05613223565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612b5057612b50613223565b60200101906001600160f81b031916908160001a9053506000612b74846002613159565b612b7f90600161311f565b90505b6001811115612c04577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612bc057612bc0613223565b1a60f81b828281518110612bd657612bd6613223565b60200101906001600160f81b031916908160001a90535060049490941c93612bfd816131bb565b9050612b82565b508315612c535760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161095d565b9392505050565b600060208284031215612c6c57600080fd5b8135612c538161324f565b600060208284031215612c8957600080fd5b8151612c538161324f565b60008060408385031215612ca757600080fd5b8235612cb28161324f565b91506020830135612cc28161324f565b809150509250929050565b600080600060608486031215612ce257600080fd5b8335612ced8161324f565b92506020840135612cfd8161324f565b929592945050506040919091013590565b60008060408385031215612d2157600080fd5b8235612d2c8161324f565b946020939093013593505050565b60006020808385031215612d4d57600080fd5b825167ffffffffffffffff80821115612d6557600080fd5b818501915085601f830112612d7957600080fd5b815181811115612d8b57612d8b613239565b8060051b9150612d9c8483016130ee565b8181528481019084860184860187018a1015612db757600080fd5b600095505b83861015612dda578051835260019590950194918601918601612dbc565b5098975050505050505050565b600060208284031215612df957600080fd5b5035919050565b60008060408385031215612e1357600080fd5b823591506020830135612cc28161324f565b600060208284031215612e3757600080fd5b81356001600160e01b031981168114612c5357600080fd5b600060208284031215612e6157600080fd5b815167ffffffffffffffff80821115612e7957600080fd5b818401915084601f830112612e8d57600080fd5b815181811115612e9f57612e9f613239565b612eb2601f8201601f19166020016130ee565b9150808252856020828501011115612ec957600080fd5b612eda81602084016020860161318f565b50949350505050565b600060208284031215612ef557600080fd5b5051919050565b60008060408385031215612f0f57600080fd5b50508035926020909101359150565b60008060008060808587031215612f3457600080fd5b5050823594602084013594506040840135936060013592509050565b600081518084526020808501945080840160005b83811015612f8057815187529582019590820190600101612f64565b509495945050505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612fc381601785016020880161318f565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161300081602884016020880161318f565b01602801949350505050565b6001600160a01b038416815260606020820152600061302e6060830185612f50565b82810360408401526130408185612f50565b9695505050505050565b602081526000825180602084015261306981604085016020870161318f565b601f01601f19169190910160400192915050565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156130cd5784516001600160a01b0316835293830193918301916001016130a8565b50506001600160a01b03969096166060850152505050608001529392505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561311757613117613239565b604052919050565b600082198211156131325761313261320d565b500190565b60008261315457634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156131735761317361320d565b500290565b60008282101561318a5761318a61320d565b500390565b60005b838110156131aa578181015183820152602001613192565b83811115610cb85750506000910152565b6000816131ca576131ca61320d565b506000190190565b600181811c908216806131e657607f821691505b6020821081141561320757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611ade57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220165586b63e13bd5c5eca34dda895ff65292db44f33d9a73675bd3f1b21be758764736f6c63430008070033

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

000000000000000000000000b2d45d740646f3890fe17536d4a9878d9a80db4a0000000000000000000000003de3159d8a7f556f4d030bddad0c339bfdfbc73f000000000000000000000000a31b8aee98c066c612d859f790040b3b294062f90000000000000000000000002eda4c95c39dd14e8a397e81643bbf1affd33b150000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000007d608cfaa805a752788847e5c46ce9c03fb43c21

-----Decoded View---------------
Arg [0] : originalWitnessCollection (address): 0xB2d45D740646f3890fE17536d4a9878d9A80DB4A
Arg [1] : currentItemCollection (address): 0x3DE3159d8a7F556f4D030BddAD0C339bfdfbc73f
Arg [2] : devIncomeWallet (address): 0xA31b8aEe98c066c612d859f790040b3B294062F9
Arg [3] : claimRewardsContract (address): 0x2Eda4c95c39dd14e8a397E81643BBF1AfFd33b15
Arg [4] : uniswapRouter (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [5] : usdcToken (address): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
Arg [6] : blockifyToken (address): 0x7D608CfAa805a752788847e5C46Ce9C03Fb43C21

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000b2d45d740646f3890fe17536d4a9878d9a80db4a
Arg [1] : 0000000000000000000000003de3159d8a7f556f4d030bddad0c339bfdfbc73f
Arg [2] : 000000000000000000000000a31b8aee98c066c612d859f790040b3b294062f9
Arg [3] : 0000000000000000000000002eda4c95c39dd14e8a397e81643bbf1affd33b15
Arg [4] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [5] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [6] : 0000000000000000000000007d608cfaa805a752788847e5c46ce9c03fb43c21


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.