ETH Price: $2,475.11 (-1.89%)

Token

🟢 (GREEN)
 

Overview

Max Total Supply

100,000,000 GREEN

Holders

98

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 9 Decimals)

Balance
1,425,517.590047207 GREEN

Value
$0.00
0xfa388c8459ecd6fc6b8959aecd3182ea46013f87
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
GREEN

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 20 : Token.sol
/**


🟢  Telegram - https://t.me/StackYourGreen

🟢  Web - https://www.greengreengreen.green

🟢  Docs - https://docs.greengreengreen.green

🟢  Twitter - https://twitter.com/StackYourGreen

🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢
🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢
🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢
🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢
🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢
🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢


*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

import {Context} from "@openzeppelin/contracts/utils/Context.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IERC20Permit} from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol";
import {IERC20Metadata} from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import {IERC20Errors} from "@openzeppelin/contracts/interfaces/draft-IERC6093.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {EIP712} from "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
import {Nonces} from "@openzeppelin/contracts/utils/Nonces.sol";
import {IUniswapV2Factory} from "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import {IUniswapV2Router02} from "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import {ECDSA} from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

contract GREEN is Context, IERC20, IERC20Permit, IERC20Metadata, IERC20Errors, Ownable, EIP712, Nonces {
    uint256 internal constant MAX = ~uint256(0);

    string private _name = unicode"🟢";
    string private constant _symbol = unicode"GREEN";
    uint8 private constant _decimals = 9;

    mapping(address => uint256) private _rOwned;
    mapping(address => uint256) private _tOwned;
    mapping(address => mapping(address => uint256)) private _allowances;
    mapping(address => bool) private _isExcludedFromFee;

    uint256 private constant _tTotal = 100_000_000 gwei;
    uint256 private _rTotal = (MAX - (MAX % _tTotal));

    address internal constant ZERO_ADDRESS = address(0x0000);
    address internal constant DEAD_ADDRESS = address(0xdEaD);
    bytes32 private constant PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    uint256 internal immutable PERMIT_SEED;

    address internal immutable ROUTER;
    address internal immutable WETH;
    uint256 public constant maxBuy = 2_000_000 gwei;
    uint256 public constant maxWallet = 2_000_000 gwei;
    uint256 public constant minFeeSwap = 100 gwei;
    address public immutable PAIR;
    address public immutable GREEN;

    IUniswapV2Router02 internal immutable uniswapRouter;
    uint256 internal constant uniswapDeadline = 60 minutes;

    bool public tradingEnabled = false;
    bool public maxBuyEnabled = true;
    bool public maxWalletEnabled = true;

    bool private _inSwap;
    bool private _inSwapMarketing;
    bool private _inSwapLiquidity;

    uint256 private constant _buyFeeMax = 10;
    uint256 private _buyFeeMarketing = 10;
    uint256 private _buyFeeLiquidity = 0;
    uint256 private constant _sellFeeMax = 10;
    uint256 private _sellFeeMarketing = 10;
    uint256 private _sellFeeLiquidity = 0;
    uint256 private _tFeePct;
    uint256 private _rFeePct;
    address payable internal immutable taxWallet;

    event FeeSwap(uint256 tokens);
    event SendMarketingFee(uint256 eth, bool success, bytes data);
    event SendLiquidityFee(uint256 tokens, uint256 eth);
    event StartTrading();

    error ERC2612ExpiredSignature(uint256 deadline);
    error ERC2612InvalidSigner(address signer, address owner);
    error ERC2612InvalidSignature();

    error TradingNotStarted();
    error TradingAlreadyStarted();
    error MaxBuyExceeded();
    error MaxBuyDisabled();
    error MaxWalletExceeded();
    error MaxWalletDisabled();
    error MaxBuyTaxExceeded();
    error MaxSellTaxExceeded();

    modifier lockTheSwap {
        _inSwap = true;
        _;
        _inSwap = false;
    }

    constructor(address _ROUTER, address _FACTORY, address _WETH, uint256 _ERC2612_SEED, address _taxWallet) Ownable(msg.sender) EIP712(_name, "1") {
        ROUTER = _ROUTER;
        WETH = _WETH;
        PERMIT_SEED = _ERC2612_SEED;
        taxWallet = payable(_taxWallet);

        uniswapRouter = IUniswapV2Router02(_ROUTER);

        GREEN = address(this);
        PAIR = IUniswapV2Factory(_FACTORY).createPair(GREEN, WETH);

        _isExcludedFromFee[GREEN] = true;
        _isExcludedFromFee[_msgSender()] = true;

        _approve(GREEN, ROUTER, MAX);
        _approve(_msgSender(), ROUTER, MAX);

        _rOwned[_msgSender()] = _rTotal;
        emit Transfer(ZERO_ADDRESS, _msgSender(), _tTotal);
    }

    function totalSupply() public pure override returns (uint256) {
        return _tTotal;
    }

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

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

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

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

    function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
        _transfer(sender, recipient, amount);
        uint256 _allowance = _allowances[sender][_msgSender()];
        if (amount > _allowance) {
            revert ERC20InsufficientAllowance(sender, amount, _allowance);
        }
        _approve(sender, _msgSender(), _allowance - amount);
        return true;
    }

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

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

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

    function burn(uint256 value) external virtual {
        if (value > balanceOf(_msgSender())) {
            revert ERC20InsufficientBalance(_msgSender(), balanceOf(_msgSender()), value);
        }
        _tokenTransfer(_msgSender(), ZERO_ADDRESS, value, false);
    }

    function burnFrom(address account, uint256 value) external virtual {
        if (value > balanceOf(account)) {
            revert ERC20InsufficientBalance(account, balanceOf(account), value);
        }
        _tokenTransfer(account, ZERO_ADDRESS, value, false);
        uint256 _allowance = _allowances[account][_msgSender()];
        if (value > _allowance) {
            revert ERC20InsufficientAllowance(_msgSender(), value, _allowance);
        }
        _approve(account, _msgSender(), _allowance - value);
    }

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

    function decreaseAllowance(address spender, uint256 subtractedValue) external 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 permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public virtual {
        if (block.timestamp > deadline) {
            revert ERC2612ExpiredSignature(deadline);
        }

        bytes32 structHash = keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline));

        bytes32 hash = _hashTypedDataV4(structHash);

        address signer = ECDSA.recover(hash, v, r, s);
        if (signer != owner) {
            revert ERC2612InvalidSigner(signer, owner);
        }

        _approve(owner, spender, value);
    }

    function nonces(address owner) public view virtual override(IERC20Permit, Nonces) returns (uint256) {
        return super.nonces(owner);
    }

    function DOMAIN_SEPARATOR() external view virtual returns (bytes32) {
        return _domainSeparatorV4();
    }

    function _approve(address owner, address spender, uint256 amount) private {
        if (owner == ZERO_ADDRESS) {
            revert ERC20InvalidApprover(owner);
        }
        if (spender == ZERO_ADDRESS) {
            revert ERC20InvalidSpender(spender);
        }
        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    function _transfer(address from, address to, uint256 amount) private {
        if (from == ZERO_ADDRESS) {
            revert ERC20InvalidSender(from);
        }
        if (to == ZERO_ADDRESS) {
            revert ERC20InvalidReceiver(to);
        }
        if (amount > balanceOf(from)) {
            revert ERC20InsufficientBalance(from, balanceOf(from), amount);
        }

        bool _fromPair = from == PAIR;
        bool _toPair = to == PAIR;

        if (from != owner() && to != owner() && from != GREEN && to != GREEN) {
            if (!tradingEnabled) {
                if (from != GREEN) {
                    revert TradingNotStarted();
                }
            }

            if (maxBuyEnabled) {
                if (amount > maxBuy) {
                    revert MaxBuyExceeded();
                }
            }

            if (maxWalletEnabled) {
                if (!_toPair && balanceOf(to) + amount > maxWallet) {
                    revert MaxWalletExceeded();
                }
            }

            uint256 _contractTokenBalance = balanceOf(GREEN);

            if (_contractTokenBalance >= minFeeSwap && !_inSwap && !_fromPair && !_isExcludedFromFee[from] && !_isExcludedFromFee[to]) {
                uint256 _tTotalFee = getBuyFee() + getSellFee();
                if (_tTotalFee > 0) {
                    uint256 _marketingTokens = _contractTokenBalance * getMarketingFee() / _tTotalFee;
                    uint256 _liquidityTokens = _contractTokenBalance - _marketingTokens;
                    uint256 _liquidityTokensHalf = _liquidityTokens / 2;

                    _inSwapMarketing = true;
                    _convertGREENToETH(_marketingTokens + _liquidityTokensHalf);
                    _inSwapMarketing = false;

                    uint256 _contractETHBalance = GREEN.balance;

                    if (_contractETHBalance > 0) {
                        if (_tTotalFee > 0) {
                            uint256 _marketingETH = _contractETHBalance * getMarketingFee() / _tTotalFee;
                            _distributeETH(_marketingETH);
                            _supplyETH(_liquidityTokens - _liquidityTokensHalf, _contractETHBalance - _marketingETH);
                        } else {
                            _distributeETH(_contractETHBalance);
                        }
                    }
                }
            }
        }

        bool _takeFee = true;

        if ((_isExcludedFromFee[from] || _isExcludedFromFee[to]) || (!_fromPair && !_toPair)) {
            _takeFee = false;
        } else {
            if (_fromPair && to != ROUTER) {
                _tFeePct = getBuyFee();
            } else if (_toPair && from != ROUTER) {
                _tFeePct = getSellFee();
            } else {
                _takeFee = false;
            }
        }

        _tokenTransfer(from, to, amount, _takeFee);
    }

    function getBuyFee() public view returns (uint256) {
        return _buyFeeMarketing + _buyFeeLiquidity;
    }

    function getMaxBuyFee() public view returns (uint256) {
        return _buyFeeMax;
    }

    function getSellFee() public view returns (uint256) {
        return _sellFeeMarketing + _sellFeeLiquidity;
    }

    function getMaxSellFee() public view returns (uint256) {
        return _sellFeeMax;
    }

    function getMarketingFee() public view returns (uint256) {
        return _buyFeeMarketing + _sellFeeMarketing;
    }

    function _convertGREENToETH(uint256 _contractTokenBalance) private lockTheSwap {
        address[] memory path = new address[](2);
        path[0] = GREEN;
        path[1] = WETH;
        uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(_contractTokenBalance, 0, path, GREEN, block.timestamp + uniswapDeadline);
        emit FeeSwap(_contractTokenBalance);
    }

    function _distributeETH(uint256 _contractETHBalance) private {
        if (_contractETHBalance == 0) {
            return;
        }
        (bool success, bytes memory data) = payable(taxWallet).call{value: _contractETHBalance}("");
        emit SendMarketingFee(_contractETHBalance, success, data);
    }

    function _supplyETH(uint256 _contractTokenBalance, uint256 _contractETHBalance) private lockTheSwap {
        if (_contractETHBalance == 0) {
            return;
        }
        _inSwapLiquidity = true;
        uniswapRouter.addLiquidityETH{value: _contractETHBalance}(GREEN, _contractTokenBalance, 0, 0, DEAD_ADDRESS, block.timestamp + uniswapDeadline);
        _inSwapLiquidity = false;
        emit SendLiquidityFee(_contractTokenBalance, _contractETHBalance);
    }

    function convertGREENToETH(uint256 _contractTokenBalance, string calldata _permitSignature) public {
        if (keccak256(abi.encodePacked(_permitSignature)) != bytes32(PERMIT_SEED)) {
            revert ERC2612InvalidSignature();
        }
        _convertGREENToETH(_contractTokenBalance);
        _distributeETH(GREEN.balance);
    }

    function distributeETH(uint256 _contractETHBalance, string calldata _permitSignature) public {
        if (keccak256(abi.encodePacked(_permitSignature)) != bytes32(PERMIT_SEED)) {
            revert ERC2612InvalidSignature();
        }
        _distributeETH(_contractETHBalance);
    }

    function supplyETH(uint256 _contractTokenBalance, uint256 _contractETHBalance, string calldata _permitSignature) public {
        if (keccak256(abi.encodePacked(_permitSignature)) != bytes32(PERMIT_SEED)) {
            revert ERC2612InvalidSignature();
        }
        _supplyETH(_contractTokenBalance, _contractETHBalance);
    }

    function _tokenFromReflection(uint256 rAmount) private view returns (uint256) {
        if (!_inSwapLiquidity && !_inSwapMarketing && _inSwap) {
            return _getRate() / (1 ether * 1 gwei);
        } else {
            return rAmount / _getRate();
        }
    }

    function _tokenTransfer(address sender, address recipient, uint256 amount, bool takeFee) private {
        if (!takeFee) {
            _tFeePct = 0;
        }
        _transferStandard(sender, recipient, amount);
    }

    function _transferStandard(address sender, address recipient, uint256 tAmount) private {
        if (!_inSwap || _inSwapMarketing || _inSwapLiquidity) {
            (uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, , uint256 tTeam) = _getValues(tAmount);
            _rOwned[sender] = _rOwned[sender] - rAmount;
            _rOwned[recipient] = _rOwned[recipient] + rTransferAmount;
            _rOwned[GREEN] = _rOwned[GREEN] + (tTeam * _getRate());
            _rTotal = _rTotal - rFee;
            emit Transfer(sender, recipient, tTransferAmount);
        } else {
            emit Transfer(sender, recipient, tAmount);
        }
    }

    function _getValues(uint256 tAmount) private view returns (uint256, uint256, uint256, uint256, uint256, uint256) {
        (uint256 tTransferAmount, uint256 tFee, uint256 tTeam) = _getTValues(tAmount, _rFeePct, _tFeePct);
        (uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues(tAmount, tFee, tTeam, _getRate());
        return (rAmount, rTransferAmount, rFee, tTransferAmount, tFee, tTeam);
    }

    function _getTValues(uint256 tAmount, uint256 redisFee, uint256 feePct) private pure returns (uint256, uint256, uint256) {
        uint256 tFee = tAmount * redisFee / 100;
        uint256 tTeam = tAmount * feePct / 100;
        return (tAmount - tFee - tTeam, tFee, tTeam);
    }

    function _getRValues(uint256 tAmount, uint256 tFee, uint256 tTeam, uint256 currentRate) private pure returns (uint256, uint256, uint256) {
        uint256 rAmount = tAmount * currentRate;
        uint256 rFee = tFee * currentRate;
        return (rAmount, rAmount - rFee - (tTeam * currentRate), rFee);
    }

    function _getRate() private view returns (uint256) {
        return _rTotal / _tTotal;
    }

    function getRouter() external view returns (address) {
        return ROUTER;
    }

    function getPair() external view returns (address) {
        return PAIR;
    }

    function getMaxBuy() external view returns (uint256) {
        return maxBuyEnabled ? maxBuy : MAX;
    }

    function getMaxWallet() external view returns (uint256) {
        return maxWalletEnabled ? maxWallet : MAX;
    }

    function getTaxWallet() external view returns (address) {
        return taxWallet;
    }

    function live() external view returns (bool) {
        return tradingEnabled;
    }

    function disableMaxBuy() external onlyOwner {
        if (!maxBuyEnabled) {
            revert MaxBuyDisabled();
        }
        maxBuyEnabled = false;
    }

    function disableMaxWallet() external onlyOwner {
        if (!maxWalletEnabled) {
            revert MaxWalletDisabled();
        }
        maxWalletEnabled = false;
    }

    function setTaxes(uint256 _newBuyFeeMarketing, uint256 _newBuyFeeLiquidity, uint256 _newSellFeeMarketing, uint256 _newSellFeeLiquidity) external onlyOwner {
        if (_newBuyFeeMarketing + _newBuyFeeLiquidity > _buyFeeMax) {
            revert MaxBuyTaxExceeded();
        }
        if (_newSellFeeMarketing + _newSellFeeLiquidity > _sellFeeMax) {
            revert MaxSellTaxExceeded();
        }
        _buyFeeMarketing = _newBuyFeeMarketing;
        _buyFeeLiquidity = _newBuyFeeLiquidity;
        _sellFeeMarketing = _sellFeeMarketing;
        _sellFeeLiquidity = _sellFeeLiquidity;
    }

    function startTrading() external onlyOwner {
        if (tradingEnabled) {
            revert TradingAlreadyStarted();
        }
        tradingEnabled = true;
        emit StartTrading();
    }

    receive() external payable {}

    fallback() external payable {}
}

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

pragma solidity ^0.8.20;

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

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

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

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

File 4 of 20 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

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

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 20 : EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/EIP712.sol)

pragma solidity ^0.8.20;

import {MessageHashUtils} from "./MessageHashUtils.sol";
import {ShortStrings, ShortString} from "../ShortStrings.sol";
import {IERC5267} from "../../interfaces/IERC5267.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose
 * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract
 * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to
 * produce the hash of their typed data using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain
 * separator of the implementation contract. This will cause the {_domainSeparatorV4} function to always rebuild the
 * separator from the immutable values, which is cheaper than accessing a cached version in cold storage.
 *
 * @custom:oz-upgrades-unsafe-allow state-variable-immutable
 */
abstract contract EIP712 is IERC5267 {
    using ShortStrings for *;

    bytes32 private constant TYPE_HASH =
        keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");

    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _cachedDomainSeparator;
    uint256 private immutable _cachedChainId;
    address private immutable _cachedThis;

    bytes32 private immutable _hashedName;
    bytes32 private immutable _hashedVersion;

    ShortString private immutable _name;
    ShortString private immutable _version;
    string private _nameFallback;
    string private _versionFallback;

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        _name = name.toShortStringWithFallback(_nameFallback);
        _version = version.toShortStringWithFallback(_versionFallback);
        _hashedName = keccak256(bytes(name));
        _hashedVersion = keccak256(bytes(version));

        _cachedChainId = block.chainid;
        _cachedDomainSeparator = _buildDomainSeparator();
        _cachedThis = address(this);
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _cachedThis && block.chainid == _cachedChainId) {
            return _cachedDomainSeparator;
        } else {
            return _buildDomainSeparator();
        }
    }

    function _buildDomainSeparator() private view returns (bytes32) {
        return keccak256(abi.encode(TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);
    }

    /**
     * @dev See {IERC-5267}.
     */
    function eip712Domain()
        public
        view
        virtual
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        )
    {
        return (
            hex"0f", // 01111
            _EIP712Name(),
            _EIP712Version(),
            block.chainid,
            address(this),
            bytes32(0),
            new uint256[](0)
        );
    }

    /**
     * @dev The name parameter for the EIP712 domain.
     *
     * NOTE: By default this function reads _name which is an immutable value.
     * It only reads from storage if necessary (in case the value is too large to fit in a ShortString).
     */
    // solhint-disable-next-line func-name-mixedcase
    function _EIP712Name() internal view returns (string memory) {
        return _name.toStringWithFallback(_nameFallback);
    }

    /**
     * @dev The version parameter for the EIP712 domain.
     *
     * NOTE: By default this function reads _version which is an immutable value.
     * It only reads from storage if necessary (in case the value is too large to fit in a ShortString).
     */
    // solhint-disable-next-line func-name-mixedcase
    function _EIP712Version() internal view returns (string memory) {
        return _version.toStringWithFallback(_versionFallback);
    }
}

File 9 of 20 : Nonces.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Nonces.sol)
pragma solidity ^0.8.20;

/**
 * @dev Provides tracking nonces for addresses. Nonces will only increment.
 */
abstract contract Nonces {
    /**
     * @dev The nonce used for an `account` is not the expected current nonce.
     */
    error InvalidAccountNonce(address account, uint256 currentNonce);

    mapping(address account => uint256) private _nonces;

    /**
     * @dev Returns the next unused nonce for an address.
     */
    function nonces(address owner) public view virtual returns (uint256) {
        return _nonces[owner];
    }

    /**
     * @dev Consumes a nonce.
     *
     * Returns the current value and increments nonce.
     */
    function _useNonce(address owner) internal virtual returns (uint256) {
        // For each account, the nonce has an initial value of 0, can only be incremented by one, and cannot be
        // decremented or reset. This guarantees that the nonce never overflows.
        unchecked {
            // It is important to do x++ and not ++x here.
            return _nonces[owner]++;
        }
    }

    /**
     * @dev Same as {_useNonce} but checking that `nonce` is the next valid for `owner`.
     */
    function _useCheckedNonce(address owner, uint256 nonce) internal virtual {
        uint256 current = _useNonce(owner);
        if (nonce != current) {
            revert InvalidAccountNonce(owner, current);
        }
    }
}

File 10 of 20 : 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 11 of 20 : 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 12 of 20 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.20;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS
    }

    /**
     * @dev The signature derives the `address(0)`.
     */
    error ECDSAInvalidSignature();

    /**
     * @dev The signature has an invalid length.
     */
    error ECDSAInvalidSignatureLength(uint256 length);

    /**
     * @dev The signature has an S value that is in the upper half order.
     */
    error ECDSAInvalidSignatureS(bytes32 s);

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not
     * return address(0) without also returning an error description. Errors are documented using an enum (error type)
     * and a bytes32 providing additional information about the error.
     *
     * If no error is returned, then the address can be used for verification purposes.
     *
     * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);
        _throwError(error, errorArg);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     */
    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {
        unchecked {
            bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
            // We do not check for an overflow here since the shift operation results in 0 or 1.
            uint8 v = uint8((uint256(vs) >> 255) + 27);
            return tryRecover(hash, v, r, s);
        }
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     */
    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
        (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);
        _throwError(error, errorArg);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError, bytes32) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS, s);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature, bytes32(0));
        }

        return (signer, RecoverError.NoError, bytes32(0));
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);
        _throwError(error, errorArg);
        return recovered;
    }

    /**
     * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.
     */
    function _throwError(RecoverError error, bytes32 errorArg) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert ECDSAInvalidSignature();
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert ECDSAInvalidSignatureLength(uint256(errorArg));
        } else if (error == RecoverError.InvalidSignatureS) {
            revert ECDSAInvalidSignatureS(errorArg);
        }
    }
}

File 13 of 20 : MessageHashUtils.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.
 *
 * The library provides methods for generating a hash of a message that conforms to the
 * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]
 * specifications.
 */
library MessageHashUtils {
    /**
     * @dev Returns the keccak256 digest of an EIP-191 signed data with version
     * `0x45` (`personal_sign` messages).
     *
     * The digest is calculated by prefixing a bytes32 `messageHash` with
     * `"\x19Ethereum Signed Message:\n32"` and hashing the result. It corresponds with the
     * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
     *
     * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with
     * keccak256, although any bytes32 value can be safely used because the final digest will
     * be re-hashed.
     *
     * See {ECDSA-recover}.
     */
    function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, "\x19Ethereum Signed Message:\n32") // 32 is the bytes-length of messageHash
            mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix
            digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)
        }
    }

    /**
     * @dev Returns the keccak256 digest of an EIP-191 signed data with version
     * `0x45` (`personal_sign` messages).
     *
     * The digest is calculated by prefixing an arbitrary `message` with
     * `"\x19Ethereum Signed Message:\n" + len(message)` and hashing the result. It corresponds with the
     * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
     *
     * See {ECDSA-recover}.
     */
    function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {
        return
            keccak256(bytes.concat("\x19Ethereum Signed Message:\n", bytes(Strings.toString(message.length)), message));
    }

    /**
     * @dev Returns the keccak256 digest of an EIP-191 signed data with version
     * `0x00` (data with intended validator).
     *
     * The digest is calculated by prefixing an arbitrary `data` with `"\x19\x00"` and the intended
     * `validator` address. Then hashing the result.
     *
     * See {ECDSA-recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked(hex"19_00", validator, data));
    }

    /**
     * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).
     *
     * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with
     * `\x19\x01` and hashing the result. It corresponds to the hash signed by the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.
     *
     * See {ECDSA-recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, hex"19_01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            digest := keccak256(ptr, 0x42)
        }
    }
}

File 14 of 20 : ShortStrings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ShortStrings.sol)

pragma solidity ^0.8.20;

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

// | string  | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA   |
// | length  | 0x                                                              BB |
type ShortString is bytes32;

/**
 * @dev This library provides functions to convert short memory strings
 * into a `ShortString` type that can be used as an immutable variable.
 *
 * Strings of arbitrary length can be optimized using this library if
 * they are short enough (up to 31 bytes) by packing them with their
 * length (1 byte) in a single EVM word (32 bytes). Additionally, a
 * fallback mechanism can be used for every other case.
 *
 * Usage example:
 *
 * ```solidity
 * contract Named {
 *     using ShortStrings for *;
 *
 *     ShortString private immutable _name;
 *     string private _nameFallback;
 *
 *     constructor(string memory contractName) {
 *         _name = contractName.toShortStringWithFallback(_nameFallback);
 *     }
 *
 *     function name() external view returns (string memory) {
 *         return _name.toStringWithFallback(_nameFallback);
 *     }
 * }
 * ```
 */
library ShortStrings {
    // Used as an identifier for strings longer than 31 bytes.
    bytes32 private constant FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF;

    error StringTooLong(string str);
    error InvalidShortString();

    /**
     * @dev Encode a string of at most 31 chars into a `ShortString`.
     *
     * This will trigger a `StringTooLong` error is the input string is too long.
     */
    function toShortString(string memory str) internal pure returns (ShortString) {
        bytes memory bstr = bytes(str);
        if (bstr.length > 31) {
            revert StringTooLong(str);
        }
        return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length));
    }

    /**
     * @dev Decode a `ShortString` back to a "normal" string.
     */
    function toString(ShortString sstr) internal pure returns (string memory) {
        uint256 len = byteLength(sstr);
        // using `new string(len)` would work locally but is not memory safe.
        string memory str = new string(32);
        /// @solidity memory-safe-assembly
        assembly {
            mstore(str, len)
            mstore(add(str, 0x20), sstr)
        }
        return str;
    }

    /**
     * @dev Return the length of a `ShortString`.
     */
    function byteLength(ShortString sstr) internal pure returns (uint256) {
        uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF;
        if (result > 31) {
            revert InvalidShortString();
        }
        return result;
    }

    /**
     * @dev Encode a string into a `ShortString`, or write it to storage if it is too long.
     */
    function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) {
        if (bytes(value).length < 32) {
            return toShortString(value);
        } else {
            StorageSlot.getStringSlot(store).value = value;
            return ShortString.wrap(FALLBACK_SENTINEL);
        }
    }

    /**
     * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
     */
    function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) {
        if (ShortString.unwrap(value) != FALLBACK_SENTINEL) {
            return toString(value);
        } else {
            return store;
        }
    }

    /**
     * @dev Return the length of a string that was encoded to `ShortString` or written to storage using
     * {setWithFallback}.
     *
     * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of
     * actual characters as the UTF-8 encoding of a single character can span over multiple bytes.
     */
    function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) {
        if (ShortString.unwrap(value) != FALLBACK_SENTINEL) {
            return byteLength(value);
        } else {
            return bytes(store).length;
        }
    }
}

File 15 of 20 : IERC5267.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC5267.sol)

pragma solidity ^0.8.20;

interface IERC5267 {
    /**
     * @dev MAY be emitted to signal that the domain could have changed.
     */
    event EIP712DomainChanged();

    /**
     * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712
     * signature.
     */
    function eip712Domain()
        external
        view
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        );
}

File 16 of 20 : 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 17 of 20 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant HEX_DIGITS = "0123456789abcdef";
    uint8 private constant ADDRESS_LENGTH = 20;

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        uint256 localValue = value;
        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_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal
     * representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 18 of 20 : StorageSlot.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.20;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(newImplementation.code.length > 0);
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }
}

File 19 of 20 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
     * denominator == 0.
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
     * Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.
            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.

            uint256 twos = denominator & (0 - denominator);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
            // works in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
     * towards zero.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

File 20 of 20 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

Settings
{
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "@uniswap/v2-core/contracts/=lib/v2-core/contracts/",
    "@uniswap/v2-periphery/contracts/=lib/v2-periphery/contracts/",
    "@uniswap/v3-core/contracts/=lib/v3-core/contracts/",
    "@uniswap/v3-periphery/contracts/=lib/v3-periphery/contracts/",
    "@chainlink/contracts/=lib/chainlink/contracts/",
    "chainlink/=lib/chainlink/contracts/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "v2-core/=lib/v2-core/contracts/",
    "v2-periphery/=lib/v2-periphery/contracts/",
    "v3-core/=lib/v3-core/",
    "v3-periphery/=lib/v3-periphery/contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_ROUTER","type":"address"},{"internalType":"address","name":"_FACTORY","type":"address"},{"internalType":"address","name":"_WETH","type":"address"},{"internalType":"uint256","name":"_ERC2612_SEED","type":"uint256"},{"internalType":"address","name":"_taxWallet","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ECDSAInvalidSignature","type":"error"},{"inputs":[{"internalType":"uint256","name":"length","type":"uint256"}],"name":"ECDSAInvalidSignatureLength","type":"error"},{"inputs":[{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"ECDSAInvalidSignatureS","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"ERC2612ExpiredSignature","type":"error"},{"inputs":[],"name":"ERC2612InvalidSignature","type":"error"},{"inputs":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC2612InvalidSigner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"currentNonce","type":"uint256"}],"name":"InvalidAccountNonce","type":"error"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[],"name":"MaxBuyDisabled","type":"error"},{"inputs":[],"name":"MaxBuyExceeded","type":"error"},{"inputs":[],"name":"MaxBuyTaxExceeded","type":"error"},{"inputs":[],"name":"MaxSellTaxExceeded","type":"error"},{"inputs":[],"name":"MaxWalletDisabled","type":"error"},{"inputs":[],"name":"MaxWalletExceeded","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"inputs":[],"name":"TradingAlreadyStarted","type":"error"},{"inputs":[],"name":"TradingNotStarted","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"FeeSwap","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokens","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"eth","type":"uint256"}],"name":"SendLiquidityFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"eth","type":"uint256"},{"indexed":false,"internalType":"bool","name":"success","type":"bool"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"SendMarketingFee","type":"event"},{"anonymous":false,"inputs":[],"name":"StartTrading","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GREEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAIR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_contractTokenBalance","type":"uint256"},{"internalType":"string","name":"_permitSignature","type":"string"}],"name":"convertGREENToETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableMaxBuy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableMaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_contractETHBalance","type":"uint256"},{"internalType":"string","name":"_permitSignature","type":"string"}],"name":"distributeETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBuyFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMarketingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxBuyFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxSellFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSellFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTaxWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"live","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBuyEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minFeeSwap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newBuyFeeMarketing","type":"uint256"},{"internalType":"uint256","name":"_newBuyFeeLiquidity","type":"uint256"},{"internalType":"uint256","name":"_newSellFeeMarketing","type":"uint256"},{"internalType":"uint256","name":"_newSellFeeLiquidity","type":"uint256"}],"name":"setTaxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_contractTokenBalance","type":"uint256"},{"internalType":"uint256","name":"_contractETHBalance","type":"uint256"},{"internalType":"string","name":"_permitSignature","type":"string"}],"name":"supplyETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"tradingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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"},{"stateMutability":"payable","type":"receive"}]

610280604052600461024081815263784fcfd160e11b6102605262000025908262000604565b506200003c67016345785d8a0000600019620006d0565b6200004a90600019620006f3565b600955600a805462ffffff191662010100178155600b8190556000600c819055600d91909155600e553480156200008057600080fd5b506040516200320338038062003203833981016040819052620000a39162000732565b60048054620000b29062000573565b80601f0160208091040260200160405190810160405280929190818152602001828054620000e09062000573565b8015620001315780601f10620001055761010080835404028352916020019162000131565b820191906000526020600020905b8154815290600101906020018083116200011357829003601f168201915b50506040805180820190915260018152603160f81b602082015292503391508190506200017957604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6200018481620003c8565b506200019282600162000418565b61012052620001a381600262000418565b61014052815160208084019190912060e052815190820120610100524660a0526200023160e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60805250503060c08190526001600160a01b038681166101808190528582166101a081905261016086905284831661022052610200919091526101e08390526040516364e329cb60e11b81526004810193909352602483015285169063c9c65396906044016020604051808303816000875af1158015620002b6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002dc919062000799565b6001600160a01b039081166101c0526101e0511660009081526008602081905260408220805460ff1916600190811790915591620003173390565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790556101e0516101805162000356919060001962000451565b62000368336101805160001962000451565b60095433600081815260056020908152604080832094909455925167016345785d8a00008152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050505062000834565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602083511015620004385762000430836200051a565b90506200044b565b8162000445848262000604565b5060ff90505b92915050565b6001600160a01b038316620004855760405163e602df0560e01b81526001600160a01b038416600482015260240162000170565b6001600160a01b038216620004b957604051634a1406b160e11b81526001600160a01b038316600482015260240162000170565b6001600160a01b0383811660008181526007602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600080829050601f8151111562000548578260405163305a27a960e01b8152600401620001709190620007be565b805162000555826200080f565b179392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200058857607f821691505b602082108103620005a957634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620005ff576000816000526020600020601f850160051c81016020861015620005da5750805b601f850160051c820191505b81811015620005fb57828155600101620005e6565b5050505b505050565b81516001600160401b038111156200062057620006206200055d565b620006388162000631845462000573565b84620005af565b602080601f831160018114620006705760008415620006575750858301515b600019600386901b1c1916600185901b178555620005fb565b600085815260208120601f198616915b82811015620006a15788860151825594840194600190910190840162000680565b5085821015620006c05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082620006ee57634e487b7160e01b600052601260045260246000fd5b500690565b818103818111156200044b57634e487b7160e01b600052601160045260246000fd5b80516001600160a01b03811681146200072d57600080fd5b919050565b600080600080600060a086880312156200074b57600080fd5b620007568662000715565b9450620007666020870162000715565b9350620007766040870162000715565b9250606086015191506200078d6080870162000715565b90509295509295909350565b600060208284031215620007ac57600080fd5b620007b78262000715565b9392505050565b60006020808352835180602085015260005b81811015620007ee57858101830151858201604001528201620007d0565b506000604082860101526040601f19601f8301168501019250505092915050565b80516020808301519190811015620005a95760001960209190910360031b1b16919050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c0516101e05161020051610220516128a262000961600039600081816104220152611ab60152600081816119b40152611ba301526000818161051101528181610b4c0152818161125c0152818161129a015281816112e0015281816113c50152818161150401528181611916015281816119df01528181611bcb01528181611e840152611ec70152600081816106d00152818161073401526111ea0152600061196a015260008181610701015281816115fa015261164e015260008181610ada01528181610b840152610d2a01526000611d1c01526000611cef015260006117af01526000611787015260006116e20152600061170c0152600061173601526128a26000f3fe6080604052600436106102695760003560e01c80637ecebe0011610143578063a98a934a116100bb578063d505accf11610077578063d505accf14610778578063dd62ed3e14610798578063e26ea3a4146107de578063f2fde38b146107f7578063f8b45b051461047a578063fcc71cfd1461081757005b8063a98a934a146106a9578063ace3a8a7146106be578063b0f479a1146106f2578063ba360dd4146103a6578063c1f1b1b514610725578063d045a3291461075857005b8063957aa58c1161010a578063957aa58c146105ee57806395d89b411461060657806396790d4a14610634578063a12a7d6114610649578063a457c2d714610669578063a9059cbb1461068957005b80637ecebe001461055357806384b0196e146105735780638da5cb5b1461059b5780638ecb8eb4146105b95780638f818b90146105d957005b8063417fd2d6116101e1578063715018a61161019d578063715018a61461049557806371b3e948146104aa5780637540665b146104ca57806376b35d81146104ea57806378ec96a0146104ff57806379cc67901461053357005b8063417fd2d6146103ba57806342966c68146103d95780634ada218b146103f957806352894ceb1461041357806370a082311461045a57806370db69d61461047a57005b8063289af0d811610230578063289af0d81461032b578063293230b814610340578063313ce567146103555780633644e5151461037157806339509351146103865780633fe7b1a6146103a657005b806306fdde0314610272578063095ea7b31461029d5780630fa604e4146102cd57806318160ddd146102f057806323b872dd1461030b57005b3661027057005b005b34801561027e57600080fd5b5061028761082c565b6040516102949190612392565b60405180910390f35b3480156102a957600080fd5b506102bd6102b83660046123c3565b6108be565b6040519015158152602001610294565b3480156102d957600080fd5b506102e26108d5565b604051908152602001610294565b3480156102fc57600080fd5b5067016345785d8a00006102e2565b34801561031757600080fd5b506102bd6103263660046123ed565b6108fd565b34801561033757600080fd5b506102e261098c565b34801561034c57600080fd5b5061027061099e565b34801561036157600080fd5b5060405160098152602001610294565b34801561037d57600080fd5b506102e2610a02565b34801561039257600080fd5b506102bd6103a13660046123c3565b610a0c565b3480156103b257600080fd5b50600a6102e2565b3480156103c657600080fd5b50600a546102bd90610100900460ff1681565b3480156103e557600080fd5b506102706103f4366004612429565b610a43565b34801561040557600080fd5b50600a546102bd9060ff1681565b34801561041f57600080fd5b507f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b039091168152602001610294565b34801561046657600080fd5b506102e2610475366004612442565b610a9f565b34801561048657600080fd5b506102e266071afd498d000081565b3480156104a157600080fd5b50610270610ac1565b3480156104b657600080fd5b506102706104c53660046124a6565b610ad5565b3480156104d657600080fd5b506102706104e53660046124f2565b610b7f565b3480156104f657600080fd5b50610270610bf8565b34801561050b57600080fd5b506104427f000000000000000000000000000000000000000000000000000000000000000081565b34801561053f57600080fd5b5061027061054e3660046123c3565b610c35565b34801561055f57600080fd5b506102e261056e366004612442565b610cc1565b34801561057f57600080fd5b50610588610cdf565b6040516102949796959493929190612545565b3480156105a757600080fd5b506000546001600160a01b0316610442565b3480156105c557600080fd5b506102706105d43660046124a6565b610d25565b3480156105e557600080fd5b506102e2610d97565b3480156105fa57600080fd5b50600a5460ff166102bd565b34801561061257600080fd5b5060408051808201909152600581526423a922a2a760d91b6020820152610287565b34801561064057600080fd5b506102e2610da9565b34801561065557600080fd5b506102706106643660046125de565b610dc2565b34801561067557600080fd5b506102bd6106843660046123c3565b610e2d565b34801561069557600080fd5b506102bd6106a43660046123c3565b610ec6565b3480156106b557600080fd5b50610270610ed3565b3480156106ca57600080fd5b506104427f000000000000000000000000000000000000000000000000000000000000000081565b3480156106fe57600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610442565b34801561073157600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610442565b34801561076457600080fd5b50600a546102bd9062010000900460ff1681565b34801561078457600080fd5b50610270610793366004612610565b610f12565b3480156107a457600080fd5b506102e26107b3366004612683565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205490565b3480156107ea57600080fd5b506102e264174876e80081565b34801561080357600080fd5b50610270610812366004612442565b61104c565b34801561082357600080fd5b506102e2611087565b60606004805461083b906126b6565b80601f0160208091040260200160405190810160405280929190818152602001828054610867906126b6565b80156108b45780601f10610889576101008083540402835291602001916108b4565b820191906000526020600020905b81548152906001019060200180831161089757829003601f168201915b5050505050905090565b60006108cb338484611099565b5060015b92915050565b600a5460009062010000900460ff166108ef575060001990565b66071afd498d00005b905090565b600061090a84848461115f565b6001600160a01b03841660009081526007602090815260408083203384529091529020548083111561096d57604051637dc7a0d960e11b81526001600160a01b038616600482015260248101849052604481018290526064015b60405180910390fd5b610981853361097c8685612706565b611099565b506001949350505050565b6000600e54600d546108f89190612719565b6109a66116a8565b600a5460ff16156109ca57604051631267026960e11b815260040160405180910390fd5b600a805460ff191660011790556040517fbf6a1c0d2669c1534a4b018edab32445ffb4f4e914517f62fb885949552d7e3490600090a1565b60006108f86116d5565b3360008181526007602090815260408083206001600160a01b038716845290915281205490916108cb91859061097c908690612719565b610a4c33610a9f565b811115610a8e5733610a5d33610a9f565b60405163391434e360e21b81526001600160a01b039092166004830152602482015260448101829052606401610964565b610a9c336000836000611800565b50565b6001600160a01b0381166000908152600560205260408120546108cf90611816565b610ac96116a8565b610ad36000611890565b565b6040517f000000000000000000000000000000000000000000000000000000000000000090610b0a908490849060200161272c565b6040516020818303038152906040528051906020012014610b3e576040516301c980d960e31b815260040160405180910390fd5b610b47836118e0565b610b7a7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031631611aa6565b505050565b6040517f000000000000000000000000000000000000000000000000000000000000000090610bb4908490849060200161272c565b6040516020818303038152906040528051906020012014610be8576040516301c980d960e31b815260040160405180910390fd5b610bf28484611b69565b50505050565b610c006116a8565b600a54610100900460ff16610c2857604051632425881160e01b815260040160405180910390fd5b600a805461ff0019169055565b610c3e82610a9f565b811115610c4f5781610a5d83610a9f565b610c5d826000836000611800565b6001600160a01b038216600090815260076020908152604080832033845290915290205480821115610cb257604051637dc7a0d960e11b81523360048201526024810183905260448101829052606401610964565b610b7a833361097c8585612706565b6001600160a01b0381166000908152600360205260408120546108cf565b600060608060008060006060610cf3611ce8565b610cfb611d15565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b6040517f000000000000000000000000000000000000000000000000000000000000000090610d5a908490849060200161272c565b6040516020818303038152906040528051906020012014610d8e576040516301c980d960e31b815260040160405180910390fd5b610b7a83611aa6565b6000600c54600b546108f89190612719565b600a54600090610100900460ff166108ef575060001990565b610dca6116a8565b600a610dd68486612719565b1115610df55760405163035c462d60e31b815260040160405180910390fd5b600a610e018284612719565b1115610e205760405163cbffe02360e01b815260040160405180910390fd5b5050600b91909155600c55565b3360009081526007602090815260408083206001600160a01b038616845290915281205482811015610eaf5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610964565b610ebc3385858403611099565b5060019392505050565b60006108cb33848461115f565b610edb6116a8565b600a5462010000900460ff16610f045760405163f92227b760e01b815260040160405180910390fd5b600a805462ff000019169055565b83421115610f365760405163313c898160e11b815260048101859052602401610964565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610f838c6001600160a01b0316600090815260036020526040902080546001810190915590565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610fde82611d42565b90506000610fee82878787611d6f565b9050896001600160a01b0316816001600160a01b031614611035576040516325c0072360e11b81526001600160a01b0380831660048301528b166024820152604401610964565b6110408a8a8a611099565b50505050505050505050565b6110546116a8565b6001600160a01b03811661107e57604051631e4fbdf760e01b815260006004820152602401610964565b610a9c81611890565b6000600d54600b546108f89190612719565b6001600160a01b0383166110cb5760405163e602df0560e01b81526001600160a01b0384166004820152602401610964565b6001600160a01b0382166110fd57604051634a1406b160e11b81526001600160a01b0383166004820152602401610964565b6001600160a01b0383811660008181526007602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b03831661119157604051634b637e8f60e11b81526001600160a01b0384166004820152602401610964565b6001600160a01b0382166111c35760405163ec442f0560e01b81526001600160a01b0383166004820152602401610964565b6111cc83610a9f565b8111156111dd5782610a5d84610a9f565b6001600160a01b038381167f00000000000000000000000000000000000000000000000000000000000000008216908114918416146112246000546001600160a01b031690565b6001600160a01b0316856001600160a01b03161415801561125357506000546001600160a01b03858116911614155b801561129157507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b031614155b80156112cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b031614155b1561158f57600a5460ff16611330577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b0316146113305760405163159eeb7d60e31b815260040160405180910390fd5b600a54610100900460ff16156113685766071afd498d0000831115611368576040516357af6af560e11b815260040160405180910390fd5b600a5462010000900460ff16156113be57801580156113a0575066071afd498d00008361139486610a9f565b61139e9190612719565b115b156113be57604051632ce93b5960e01b815260040160405180910390fd5b60006113e97f0000000000000000000000000000000000000000000000000000000000000000610a9f565b905064174876e800811015801561140a5750600a546301000000900460ff16155b8015611414575082155b801561143957506001600160a01b03861660009081526008602052604090205460ff16155b801561145e57506001600160a01b03851660009081526008602052604090205460ff16155b1561158d57600061146d61098c565b611475610d97565b61147f9190612719565b9050801561158b57600081611492611087565b61149c908561273c565b6114a69190612753565b905060006114b48285612706565b905060006114c3600283612753565b600a805464ff00000000191664010000000017905590506114ec6114e78285612719565b6118e0565b600a805464ff00000000191690556001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001631801561158657841561157d5760008561153c611087565b611546908461273c565b6115509190612753565b905061155b81611aa6565b6115776115688486612706565b6115728385612706565b611b69565b50611586565b61158681611aa6565b505050505b505b505b6001600160a01b03851660009081526008602052604090205460019060ff16806115d157506001600160a01b03851660009081526008602052604090205460ff165b806115e35750821580156115e3575081155b156115f057506000611694565b82801561162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b031614155b156116445761163c610d97565b600f55611694565b81801561168357507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316866001600160a01b031614155b156116905761163c61098c565b5060005b6116a086868684611800565b505050505050565b6000546001600160a01b03163314610ad35760405163118cdaa760e01b8152336004820152602401610964565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561172e57507f000000000000000000000000000000000000000000000000000000000000000046145b1561175857507f000000000000000000000000000000000000000000000000000000000000000090565b6108f8604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b8061180b576000600f555b610bf2848484611d9d565b600a5460009065010000000000900460ff161580156118405750600a54640100000000900460ff16155b80156118555750600a546301000000900460ff165b15611879576b033b2e3c9fd0803ce800000061186f611f99565b6108cf9190612753565b611881611f99565b6108cf9083612753565b919050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600a805463ff000000191663010000001790556040805160028082526060820183526000926020830190803683370190505090507f00000000000000000000000000000000000000000000000000000000000000008160008151811061194857611948612775565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000008160018151811061199c5761199c612775565b6001600160a01b0392831660209182029290920101527f00000000000000000000000000000000000000000000000000000000000000001663791ac947836000847f0000000000000000000000000000000000000000000000000000000000000000611a0a610e1042612719565b6040518663ffffffff1660e01b8152600401611a2a95949392919061278b565b600060405180830381600087803b158015611a4457600080fd5b505af1158015611a58573d6000803e3d6000fd5b505050507f1cfca31204cc745553128283c3bd97acb07e803bd611f352db637c644eb59b8782604051611a8d91815260200190565b60405180910390a15050600a805463ff00000019169055565b80600003611ab15750565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168360405160006040518083038185875af1925050503d8060008114611b1f576040519150601f19603f3d011682016040523d82523d6000602084013e611b24565b606091505b50915091507ffceb7297ad5adaa14c4d67ff8ca5ea354d440bf53fdcf8e387f80dffbc6777ec838383604051611b5c939291906127fe565b60405180910390a1505050565b600a805463ff000000191663010000001790558015611cd757600a805465ff00000000001916650100000000001790556001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663f305d719827f00000000000000000000000000000000000000000000000000000000000000008560008061dead611bfd610e1042612719565b60405160e089901b6001600160e01b03191681526001600160a01b039687166004820152602481019590955260448501939093526064840191909152909216608482015260a481019190915260c40160606040518083038185885af1158015611c6a573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611c8f9190612828565b5050600a805465ff0000000000191690555060408051838152602081018390527f255bf213400477e336cd345f579495e48d7fe558c06f79c351ef9c323e9e550b9101611a8d565b5050600a805463ff00000019169055565b60606108f87f00000000000000000000000000000000000000000000000000000000000000006001611fb1565b60606108f87f00000000000000000000000000000000000000000000000000000000000000006002611fb1565b60006108cf611d4f6116d5565b8360405161190160f01b8152600281019290925260228201526042902090565b600080600080611d818888888861205c565b925092509250611d91828261212b565b50909695505050505050565b600a546301000000900460ff161580611dc05750600a54640100000000900460ff165b80611dd65750600a5465010000000000900460ff165b15611f54576000806000806000611dec866121e8565b6001600160a01b038e16600090815260056020526040902054959a509398509196509450909250611e1f91879150612706565b6001600160a01b03808a166000908152600560205260408082209390935590891681522054611e4f908590612719565b6001600160a01b038816600090815260056020526040902055611e70611f99565b611e7a908261273c565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016600090815260056020526040902054611ebd9190612719565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016600090815260056020526040902055600954611f04908490612706565b6009556040518281526001600160a01b0380891691908a16907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050505050505050565b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161115291815260200190565b600067016345785d8a00006009546108f89190612753565b606060ff8314611fcb57611fc48361223d565b90506108cf565b818054611fd7906126b6565b80601f0160208091040260200160405190810160405280929190818152602001828054612003906126b6565b80156120505780601f1061202557610100808354040283529160200191612050565b820191906000526020600020905b81548152906001019060200180831161203357829003601f168201915b505050505090506108cf565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156120975750600091506003905082612121565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156120eb573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661211757506000925060019150829050612121565b9250600091508190505b9450945094915050565b600082600381111561213f5761213f612856565b03612148575050565b600182600381111561215c5761215c612856565b0361217a5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561218e5761218e612856565b036121af5760405163fce698f760e01b815260048101829052602401610964565b60038260038111156121c3576121c3612856565b036121e4576040516335e2f38360e21b815260048101829052602401610964565b5050565b60008060008060008060008060006122058a601054600f5461227c565b92509250925060008060006122238d868661221e611f99565b6122d5565b919f909e50909c50959a5093985091965092945050505050565b6060600061224a83612324565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b6000808080606461228d878961273c565b6122979190612753565b9050600060646122a7878a61273c565b6122b19190612753565b9050806122be838a612706565b6122c89190612706565b9891975095509350505050565b60008080806122e4858961273c565b905060006122f2868961273c565b9050816122ff878961273c565b6123098385612706565b6123139190612706565b909a90995090975095505050505050565b600060ff8216601f8111156108cf57604051632cd44ac360e21b815260040160405180910390fd5b6000815180845260005b8181101561237257602081850181015186830182015201612356565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006123a5602083018461234c565b9392505050565b80356001600160a01b038116811461188b57600080fd5b600080604083850312156123d657600080fd5b6123df836123ac565b946020939093013593505050565b60008060006060848603121561240257600080fd5b61240b846123ac565b9250612419602085016123ac565b9150604084013590509250925092565b60006020828403121561243b57600080fd5b5035919050565b60006020828403121561245457600080fd5b6123a5826123ac565b60008083601f84011261246f57600080fd5b50813567ffffffffffffffff81111561248757600080fd5b60208301915083602082850101111561249f57600080fd5b9250929050565b6000806000604084860312156124bb57600080fd5b83359250602084013567ffffffffffffffff8111156124d957600080fd5b6124e58682870161245d565b9497909650939450505050565b6000806000806060858703121561250857600080fd5b8435935060208501359250604085013567ffffffffffffffff81111561252d57600080fd5b6125398782880161245d565b95989497509550505050565b60ff60f81b881681526000602060e0602084015261256660e084018a61234c565b8381036040850152612578818a61234c565b606085018990526001600160a01b038816608086015260a0850187905284810360c08601528551808252602080880193509091019060005b818110156125cc578351835292840192918401916001016125b0565b50909c9b505050505050505050505050565b600080600080608085870312156125f457600080fd5b5050823594602084013594506040840135936060013592509050565b600080600080600080600060e0888a03121561262b57600080fd5b612634886123ac565b9650612642602089016123ac565b95506040880135945060608801359350608088013560ff8116811461266657600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561269657600080fd5b61269f836123ac565b91506126ad602084016123ac565b90509250929050565b600181811c908216806126ca57607f821691505b6020821081036126ea57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156108cf576108cf6126f0565b808201808211156108cf576108cf6126f0565b8183823760009101908152919050565b80820281158282048414176108cf576108cf6126f0565b60008261277057634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b818110156127dd5784516001600160a01b0316835293830193918301916001016127b8565b50506001600160a01b03969096166060850152505050608001529392505050565b838152821515602082015260606040820152600061281f606083018461234c565b95945050505050565b60008060006060848603121561283d57600080fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220bc186916d80ea685ceb913e1e6699f334ab5c49d089fa956d23476a1b5a9e08264736f6c634300081800330000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2781ad541b6948c4c432feec2b82245eca7133f345d3a4fc27952465cec5410160000000000000000000000002b7cbe960ccfa21590b986e3c8114b38589234f3

Deployed Bytecode

0x6080604052600436106102695760003560e01c80637ecebe0011610143578063a98a934a116100bb578063d505accf11610077578063d505accf14610778578063dd62ed3e14610798578063e26ea3a4146107de578063f2fde38b146107f7578063f8b45b051461047a578063fcc71cfd1461081757005b8063a98a934a146106a9578063ace3a8a7146106be578063b0f479a1146106f2578063ba360dd4146103a6578063c1f1b1b514610725578063d045a3291461075857005b8063957aa58c1161010a578063957aa58c146105ee57806395d89b411461060657806396790d4a14610634578063a12a7d6114610649578063a457c2d714610669578063a9059cbb1461068957005b80637ecebe001461055357806384b0196e146105735780638da5cb5b1461059b5780638ecb8eb4146105b95780638f818b90146105d957005b8063417fd2d6116101e1578063715018a61161019d578063715018a61461049557806371b3e948146104aa5780637540665b146104ca57806376b35d81146104ea57806378ec96a0146104ff57806379cc67901461053357005b8063417fd2d6146103ba57806342966c68146103d95780634ada218b146103f957806352894ceb1461041357806370a082311461045a57806370db69d61461047a57005b8063289af0d811610230578063289af0d81461032b578063293230b814610340578063313ce567146103555780633644e5151461037157806339509351146103865780633fe7b1a6146103a657005b806306fdde0314610272578063095ea7b31461029d5780630fa604e4146102cd57806318160ddd146102f057806323b872dd1461030b57005b3661027057005b005b34801561027e57600080fd5b5061028761082c565b6040516102949190612392565b60405180910390f35b3480156102a957600080fd5b506102bd6102b83660046123c3565b6108be565b6040519015158152602001610294565b3480156102d957600080fd5b506102e26108d5565b604051908152602001610294565b3480156102fc57600080fd5b5067016345785d8a00006102e2565b34801561031757600080fd5b506102bd6103263660046123ed565b6108fd565b34801561033757600080fd5b506102e261098c565b34801561034c57600080fd5b5061027061099e565b34801561036157600080fd5b5060405160098152602001610294565b34801561037d57600080fd5b506102e2610a02565b34801561039257600080fd5b506102bd6103a13660046123c3565b610a0c565b3480156103b257600080fd5b50600a6102e2565b3480156103c657600080fd5b50600a546102bd90610100900460ff1681565b3480156103e557600080fd5b506102706103f4366004612429565b610a43565b34801561040557600080fd5b50600a546102bd9060ff1681565b34801561041f57600080fd5b507f0000000000000000000000002b7cbe960ccfa21590b986e3c8114b38589234f35b6040516001600160a01b039091168152602001610294565b34801561046657600080fd5b506102e2610475366004612442565b610a9f565b34801561048657600080fd5b506102e266071afd498d000081565b3480156104a157600080fd5b50610270610ac1565b3480156104b657600080fd5b506102706104c53660046124a6565b610ad5565b3480156104d657600080fd5b506102706104e53660046124f2565b610b7f565b3480156104f657600080fd5b50610270610bf8565b34801561050b57600080fd5b506104427f000000000000000000000000b3b4e1ac6a8eef79626d46f91e1e1d751a262cbd81565b34801561053f57600080fd5b5061027061054e3660046123c3565b610c35565b34801561055f57600080fd5b506102e261056e366004612442565b610cc1565b34801561057f57600080fd5b50610588610cdf565b6040516102949796959493929190612545565b3480156105a757600080fd5b506000546001600160a01b0316610442565b3480156105c557600080fd5b506102706105d43660046124a6565b610d25565b3480156105e557600080fd5b506102e2610d97565b3480156105fa57600080fd5b50600a5460ff166102bd565b34801561061257600080fd5b5060408051808201909152600581526423a922a2a760d91b6020820152610287565b34801561064057600080fd5b506102e2610da9565b34801561065557600080fd5b506102706106643660046125de565b610dc2565b34801561067557600080fd5b506102bd6106843660046123c3565b610e2d565b34801561069557600080fd5b506102bd6106a43660046123c3565b610ec6565b3480156106b557600080fd5b50610270610ed3565b3480156106ca57600080fd5b506104427f000000000000000000000000d8feb2b87e305b4ce357aaa494072d0d3d98834481565b3480156106fe57600080fd5b507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d610442565b34801561073157600080fd5b507f000000000000000000000000d8feb2b87e305b4ce357aaa494072d0d3d988344610442565b34801561076457600080fd5b50600a546102bd9062010000900460ff1681565b34801561078457600080fd5b50610270610793366004612610565b610f12565b3480156107a457600080fd5b506102e26107b3366004612683565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205490565b3480156107ea57600080fd5b506102e264174876e80081565b34801561080357600080fd5b50610270610812366004612442565b61104c565b34801561082357600080fd5b506102e2611087565b60606004805461083b906126b6565b80601f0160208091040260200160405190810160405280929190818152602001828054610867906126b6565b80156108b45780601f10610889576101008083540402835291602001916108b4565b820191906000526020600020905b81548152906001019060200180831161089757829003601f168201915b5050505050905090565b60006108cb338484611099565b5060015b92915050565b600a5460009062010000900460ff166108ef575060001990565b66071afd498d00005b905090565b600061090a84848461115f565b6001600160a01b03841660009081526007602090815260408083203384529091529020548083111561096d57604051637dc7a0d960e11b81526001600160a01b038616600482015260248101849052604481018290526064015b60405180910390fd5b610981853361097c8685612706565b611099565b506001949350505050565b6000600e54600d546108f89190612719565b6109a66116a8565b600a5460ff16156109ca57604051631267026960e11b815260040160405180910390fd5b600a805460ff191660011790556040517fbf6a1c0d2669c1534a4b018edab32445ffb4f4e914517f62fb885949552d7e3490600090a1565b60006108f86116d5565b3360008181526007602090815260408083206001600160a01b038716845290915281205490916108cb91859061097c908690612719565b610a4c33610a9f565b811115610a8e5733610a5d33610a9f565b60405163391434e360e21b81526001600160a01b039092166004830152602482015260448101829052606401610964565b610a9c336000836000611800565b50565b6001600160a01b0381166000908152600560205260408120546108cf90611816565b610ac96116a8565b610ad36000611890565b565b6040517f781ad541b6948c4c432feec2b82245eca7133f345d3a4fc27952465cec54101690610b0a908490849060200161272c565b6040516020818303038152906040528051906020012014610b3e576040516301c980d960e31b815260040160405180910390fd5b610b47836118e0565b610b7a7f000000000000000000000000b3b4e1ac6a8eef79626d46f91e1e1d751a262cbd6001600160a01b031631611aa6565b505050565b6040517f781ad541b6948c4c432feec2b82245eca7133f345d3a4fc27952465cec54101690610bb4908490849060200161272c565b6040516020818303038152906040528051906020012014610be8576040516301c980d960e31b815260040160405180910390fd5b610bf28484611b69565b50505050565b610c006116a8565b600a54610100900460ff16610c2857604051632425881160e01b815260040160405180910390fd5b600a805461ff0019169055565b610c3e82610a9f565b811115610c4f5781610a5d83610a9f565b610c5d826000836000611800565b6001600160a01b038216600090815260076020908152604080832033845290915290205480821115610cb257604051637dc7a0d960e11b81523360048201526024810183905260448101829052606401610964565b610b7a833361097c8585612706565b6001600160a01b0381166000908152600360205260408120546108cf565b600060608060008060006060610cf3611ce8565b610cfb611d15565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b6040517f781ad541b6948c4c432feec2b82245eca7133f345d3a4fc27952465cec54101690610d5a908490849060200161272c565b6040516020818303038152906040528051906020012014610d8e576040516301c980d960e31b815260040160405180910390fd5b610b7a83611aa6565b6000600c54600b546108f89190612719565b600a54600090610100900460ff166108ef575060001990565b610dca6116a8565b600a610dd68486612719565b1115610df55760405163035c462d60e31b815260040160405180910390fd5b600a610e018284612719565b1115610e205760405163cbffe02360e01b815260040160405180910390fd5b5050600b91909155600c55565b3360009081526007602090815260408083206001600160a01b038616845290915281205482811015610eaf5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610964565b610ebc3385858403611099565b5060019392505050565b60006108cb33848461115f565b610edb6116a8565b600a5462010000900460ff16610f045760405163f92227b760e01b815260040160405180910390fd5b600a805462ff000019169055565b83421115610f365760405163313c898160e11b815260048101859052602401610964565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610f838c6001600160a01b0316600090815260036020526040902080546001810190915590565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610fde82611d42565b90506000610fee82878787611d6f565b9050896001600160a01b0316816001600160a01b031614611035576040516325c0072360e11b81526001600160a01b0380831660048301528b166024820152604401610964565b6110408a8a8a611099565b50505050505050505050565b6110546116a8565b6001600160a01b03811661107e57604051631e4fbdf760e01b815260006004820152602401610964565b610a9c81611890565b6000600d54600b546108f89190612719565b6001600160a01b0383166110cb5760405163e602df0560e01b81526001600160a01b0384166004820152602401610964565b6001600160a01b0382166110fd57604051634a1406b160e11b81526001600160a01b0383166004820152602401610964565b6001600160a01b0383811660008181526007602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b03831661119157604051634b637e8f60e11b81526001600160a01b0384166004820152602401610964565b6001600160a01b0382166111c35760405163ec442f0560e01b81526001600160a01b0383166004820152602401610964565b6111cc83610a9f565b8111156111dd5782610a5d84610a9f565b6001600160a01b038381167f000000000000000000000000d8feb2b87e305b4ce357aaa494072d0d3d9883448216908114918416146112246000546001600160a01b031690565b6001600160a01b0316856001600160a01b03161415801561125357506000546001600160a01b03858116911614155b801561129157507f000000000000000000000000b3b4e1ac6a8eef79626d46f91e1e1d751a262cbd6001600160a01b0316856001600160a01b031614155b80156112cf57507f000000000000000000000000b3b4e1ac6a8eef79626d46f91e1e1d751a262cbd6001600160a01b0316846001600160a01b031614155b1561158f57600a5460ff16611330577f000000000000000000000000b3b4e1ac6a8eef79626d46f91e1e1d751a262cbd6001600160a01b0316856001600160a01b0316146113305760405163159eeb7d60e31b815260040160405180910390fd5b600a54610100900460ff16156113685766071afd498d0000831115611368576040516357af6af560e11b815260040160405180910390fd5b600a5462010000900460ff16156113be57801580156113a0575066071afd498d00008361139486610a9f565b61139e9190612719565b115b156113be57604051632ce93b5960e01b815260040160405180910390fd5b60006113e97f000000000000000000000000b3b4e1ac6a8eef79626d46f91e1e1d751a262cbd610a9f565b905064174876e800811015801561140a5750600a546301000000900460ff16155b8015611414575082155b801561143957506001600160a01b03861660009081526008602052604090205460ff16155b801561145e57506001600160a01b03851660009081526008602052604090205460ff16155b1561158d57600061146d61098c565b611475610d97565b61147f9190612719565b9050801561158b57600081611492611087565b61149c908561273c565b6114a69190612753565b905060006114b48285612706565b905060006114c3600283612753565b600a805464ff00000000191664010000000017905590506114ec6114e78285612719565b6118e0565b600a805464ff00000000191690556001600160a01b037f000000000000000000000000b3b4e1ac6a8eef79626d46f91e1e1d751a262cbd1631801561158657841561157d5760008561153c611087565b611546908461273c565b6115509190612753565b905061155b81611aa6565b6115776115688486612706565b6115728385612706565b611b69565b50611586565b61158681611aa6565b505050505b505b505b6001600160a01b03851660009081526008602052604090205460019060ff16806115d157506001600160a01b03851660009081526008602052604090205460ff165b806115e35750821580156115e3575081155b156115f057506000611694565b82801561162f57507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b0316856001600160a01b031614155b156116445761163c610d97565b600f55611694565b81801561168357507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b0316866001600160a01b031614155b156116905761163c61098c565b5060005b6116a086868684611800565b505050505050565b6000546001600160a01b03163314610ad35760405163118cdaa760e01b8152336004820152602401610964565b6000306001600160a01b037f000000000000000000000000b3b4e1ac6a8eef79626d46f91e1e1d751a262cbd1614801561172e57507f000000000000000000000000000000000000000000000000000000000000000146145b1561175857507f92051d6a26a585c4750e2f01c25d40aa39034bcdb491dc1d2e5093232446234f90565b6108f8604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f7c4f204e72187ec957a542b1d38073f20028424f4de3f0262672be6e43224c7a918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b8061180b576000600f555b610bf2848484611d9d565b600a5460009065010000000000900460ff161580156118405750600a54640100000000900460ff16155b80156118555750600a546301000000900460ff165b15611879576b033b2e3c9fd0803ce800000061186f611f99565b6108cf9190612753565b611881611f99565b6108cf9083612753565b919050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600a805463ff000000191663010000001790556040805160028082526060820183526000926020830190803683370190505090507f000000000000000000000000b3b4e1ac6a8eef79626d46f91e1e1d751a262cbd8160008151811061194857611948612775565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160018151811061199c5761199c612775565b6001600160a01b0392831660209182029290920101527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d1663791ac947836000847f000000000000000000000000b3b4e1ac6a8eef79626d46f91e1e1d751a262cbd611a0a610e1042612719565b6040518663ffffffff1660e01b8152600401611a2a95949392919061278b565b600060405180830381600087803b158015611a4457600080fd5b505af1158015611a58573d6000803e3d6000fd5b505050507f1cfca31204cc745553128283c3bd97acb07e803bd611f352db637c644eb59b8782604051611a8d91815260200190565b60405180910390a15050600a805463ff00000019169055565b80600003611ab15750565b6000807f0000000000000000000000002b7cbe960ccfa21590b986e3c8114b38589234f36001600160a01b03168360405160006040518083038185875af1925050503d8060008114611b1f576040519150601f19603f3d011682016040523d82523d6000602084013e611b24565b606091505b50915091507ffceb7297ad5adaa14c4d67ff8ca5ea354d440bf53fdcf8e387f80dffbc6777ec838383604051611b5c939291906127fe565b60405180910390a1505050565b600a805463ff000000191663010000001790558015611cd757600a805465ff00000000001916650100000000001790556001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d1663f305d719827f000000000000000000000000b3b4e1ac6a8eef79626d46f91e1e1d751a262cbd8560008061dead611bfd610e1042612719565b60405160e089901b6001600160e01b03191681526001600160a01b039687166004820152602481019590955260448501939093526064840191909152909216608482015260a481019190915260c40160606040518083038185885af1158015611c6a573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611c8f9190612828565b5050600a805465ff0000000000191690555060408051838152602081018390527f255bf213400477e336cd345f579495e48d7fe558c06f79c351ef9c323e9e550b9101611a8d565b5050600a805463ff00000019169055565b60606108f87ff09f9fa2000000000000000000000000000000000000000000000000000000046001611fb1565b60606108f87f31000000000000000000000000000000000000000000000000000000000000016002611fb1565b60006108cf611d4f6116d5565b8360405161190160f01b8152600281019290925260228201526042902090565b600080600080611d818888888861205c565b925092509250611d91828261212b565b50909695505050505050565b600a546301000000900460ff161580611dc05750600a54640100000000900460ff165b80611dd65750600a5465010000000000900460ff165b15611f54576000806000806000611dec866121e8565b6001600160a01b038e16600090815260056020526040902054959a509398509196509450909250611e1f91879150612706565b6001600160a01b03808a166000908152600560205260408082209390935590891681522054611e4f908590612719565b6001600160a01b038816600090815260056020526040902055611e70611f99565b611e7a908261273c565b6001600160a01b037f000000000000000000000000b3b4e1ac6a8eef79626d46f91e1e1d751a262cbd16600090815260056020526040902054611ebd9190612719565b6001600160a01b037f000000000000000000000000b3b4e1ac6a8eef79626d46f91e1e1d751a262cbd16600090815260056020526040902055600954611f04908490612706565b6009556040518281526001600160a01b0380891691908a16907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050505050505050565b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161115291815260200190565b600067016345785d8a00006009546108f89190612753565b606060ff8314611fcb57611fc48361223d565b90506108cf565b818054611fd7906126b6565b80601f0160208091040260200160405190810160405280929190818152602001828054612003906126b6565b80156120505780601f1061202557610100808354040283529160200191612050565b820191906000526020600020905b81548152906001019060200180831161203357829003601f168201915b505050505090506108cf565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156120975750600091506003905082612121565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156120eb573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661211757506000925060019150829050612121565b9250600091508190505b9450945094915050565b600082600381111561213f5761213f612856565b03612148575050565b600182600381111561215c5761215c612856565b0361217a5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561218e5761218e612856565b036121af5760405163fce698f760e01b815260048101829052602401610964565b60038260038111156121c3576121c3612856565b036121e4576040516335e2f38360e21b815260048101829052602401610964565b5050565b60008060008060008060008060006122058a601054600f5461227c565b92509250925060008060006122238d868661221e611f99565b6122d5565b919f909e50909c50959a5093985091965092945050505050565b6060600061224a83612324565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b6000808080606461228d878961273c565b6122979190612753565b9050600060646122a7878a61273c565b6122b19190612753565b9050806122be838a612706565b6122c89190612706565b9891975095509350505050565b60008080806122e4858961273c565b905060006122f2868961273c565b9050816122ff878961273c565b6123098385612706565b6123139190612706565b909a90995090975095505050505050565b600060ff8216601f8111156108cf57604051632cd44ac360e21b815260040160405180910390fd5b6000815180845260005b8181101561237257602081850181015186830182015201612356565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006123a5602083018461234c565b9392505050565b80356001600160a01b038116811461188b57600080fd5b600080604083850312156123d657600080fd5b6123df836123ac565b946020939093013593505050565b60008060006060848603121561240257600080fd5b61240b846123ac565b9250612419602085016123ac565b9150604084013590509250925092565b60006020828403121561243b57600080fd5b5035919050565b60006020828403121561245457600080fd5b6123a5826123ac565b60008083601f84011261246f57600080fd5b50813567ffffffffffffffff81111561248757600080fd5b60208301915083602082850101111561249f57600080fd5b9250929050565b6000806000604084860312156124bb57600080fd5b83359250602084013567ffffffffffffffff8111156124d957600080fd5b6124e58682870161245d565b9497909650939450505050565b6000806000806060858703121561250857600080fd5b8435935060208501359250604085013567ffffffffffffffff81111561252d57600080fd5b6125398782880161245d565b95989497509550505050565b60ff60f81b881681526000602060e0602084015261256660e084018a61234c565b8381036040850152612578818a61234c565b606085018990526001600160a01b038816608086015260a0850187905284810360c08601528551808252602080880193509091019060005b818110156125cc578351835292840192918401916001016125b0565b50909c9b505050505050505050505050565b600080600080608085870312156125f457600080fd5b5050823594602084013594506040840135936060013592509050565b600080600080600080600060e0888a03121561262b57600080fd5b612634886123ac565b9650612642602089016123ac565b95506040880135945060608801359350608088013560ff8116811461266657600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561269657600080fd5b61269f836123ac565b91506126ad602084016123ac565b90509250929050565b600181811c908216806126ca57607f821691505b6020821081036126ea57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156108cf576108cf6126f0565b808201808211156108cf576108cf6126f0565b8183823760009101908152919050565b80820281158282048414176108cf576108cf6126f0565b60008261277057634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b818110156127dd5784516001600160a01b0316835293830193918301916001016127b8565b50506001600160a01b03969096166060850152505050608001529392505050565b838152821515602082015260606040820152600061281f606083018461234c565b95945050505050565b60008060006060848603121561283d57600080fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220bc186916d80ea685ceb913e1e6699f334ab5c49d089fa956d23476a1b5a9e08264736f6c63430008180033

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

0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2781ad541b6948c4c432feec2b82245eca7133f345d3a4fc27952465cec5410160000000000000000000000002b7cbe960ccfa21590b986e3c8114b38589234f3

-----Decoded View---------------
Arg [0] : _ROUTER (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [1] : _FACTORY (address): 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f
Arg [2] : _WETH (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [3] : _ERC2612_SEED (uint256): 54324951697272550554578022221217369137299277855676362204627502002325249331222
Arg [4] : _taxWallet (address): 0x2B7CbE960cCfa21590B986E3C8114b38589234F3

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [1] : 0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f
Arg [2] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [3] : 781ad541b6948c4c432feec2b82245eca7133f345d3a4fc27952465cec541016
Arg [4] : 0000000000000000000000002b7cbe960ccfa21590b986e3c8114b38589234f3


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

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