ETH Price: $3,432.02 (-1.38%)
Gas: 7 Gwei

Contract

0x9AFfFb7fD2de2d8024E9c3746be75476270Eca68
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve203279762024-07-17 18:15:597 hrs ago1721240159IN
0x9AFfFb7f...6270Eca68
0 ETH0.0006418613.96031429
Approve202656142024-07-09 1:19:599 days ago1720487999IN
0x9AFfFb7f...6270Eca68
0 ETH0.000203764.40410767
Approve202506322024-07-06 23:03:4711 days ago1720307027IN
0x9AFfFb7f...6270Eca68
0 ETH0.000065761.42142199
Approve202484652024-07-06 15:48:4711 days ago1720280927IN
0x9AFfFb7f...6270Eca68
0 ETH0.000116394.46957747
Approve202439952024-07-06 0:49:3512 days ago1720226975IN
0x9AFfFb7f...6270Eca68
0 ETH0.000182883.95284515
Approve202355272024-07-04 20:27:2313 days ago1720124843IN
0x9AFfFb7f...6270Eca68
0 ETH0.000304026.60041647
Approve202354082024-07-04 20:03:2313 days ago1720123403IN
0x9AFfFb7f...6270Eca68
0 ETH0.000332967.22868587
Approve202319062024-07-04 8:18:2313 days ago1720081103IN
0x9AFfFb7f...6270Eca68
0 ETH0.000309716.72912046
Transfer202222322024-07-02 23:53:2315 days ago1719964403IN
0x9AFfFb7f...6270Eca68
0 ETH0.000156342.3181869
Approve202196282024-07-02 15:08:5915 days ago1719932939IN
0x9AFfFb7f...6270Eca68
0 ETH0.000409888.90552187
Approve202171332024-07-02 6:46:4715 days ago1719902807IN
0x9AFfFb7f...6270Eca68
0 ETH0.000127892.76424032
Approve202171192024-07-02 6:43:4715 days ago1719902627IN
0x9AFfFb7f...6270Eca68
0 ETH0.000120192.5978461
Approve202062862024-06-30 18:26:5917 days ago1719772019IN
0x9AFfFb7f...6270Eca68
0 ETH0.000158083.43473212
Approve202038162024-06-30 10:10:2317 days ago1719742223IN
0x9AFfFb7f...6270Eca68
0 ETH0.000193054.18910751
Approve201998642024-06-29 20:55:3518 days ago1719694535IN
0x9AFfFb7f...6270Eca68
0 ETH0.000091891.99669213
Approve201945042024-06-29 2:57:2318 days ago1719629843IN
0x9AFfFb7f...6270Eca68
0 ETH0.000086391.87699379
Approve201893202024-06-28 9:34:3519 days ago1719567275IN
0x9AFfFb7f...6270Eca68
0 ETH0.000195374.24148169
Approve201893072024-06-28 9:31:5919 days ago1719567119IN
0x9AFfFb7f...6270Eca68
0 ETH0.000195594.24958367
Approve201893002024-06-28 9:30:3519 days ago1719567035IN
0x9AFfFb7f...6270Eca68
0 ETH0.000182193.95844086
Approve201892922024-06-28 9:28:5919 days ago1719566939IN
0x9AFfFb7f...6270Eca68
0 ETH0.000190684.14301032
Approve201892862024-06-28 9:27:4719 days ago1719566867IN
0x9AFfFb7f...6270Eca68
0 ETH0.00019734.28683728
Approve201892022024-06-28 9:10:5919 days ago1719565859IN
0x9AFfFb7f...6270Eca68
0 ETH0.000166463.61669047
Approve201854202024-06-27 20:29:4720 days ago1719520187IN
0x9AFfFb7f...6270Eca68
0 ETH0.000181346.26938804
Approve201831882024-06-27 13:01:1120 days ago1719493271IN
0x9AFfFb7f...6270Eca68
0 ETH0.000323126.97506024
Approve201824412024-06-27 10:30:5920 days ago1719484259IN
0x9AFfFb7f...6270Eca68
0 ETH0.000179753.88514943
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
199561022024-05-26 19:20:4752 days ago1716751247
0x9AFfFb7f...6270Eca68
 Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Stock

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 13 : Stock.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.26;

import './interfaces/IUniswapV2Router02.sol';
import './openzeppelin/PaymentSplitter.sol';
import '@openzeppelin/contracts/token/ERC20/ERC20.sol';
import '@openzeppelin/contracts/access/Ownable.sol';

contract Stock is ERC20, Ownable {
  address public immutable WETH;

  mapping(address => bool) public dex;
  mapping(address => bool) public noFee;
  mapping(address => bool) public noMax;
  mapping(address => bool) public noSwap;

  uint256 public buyFee = 50; // 5%
  uint256 public sellFee = 50; // 5%
  uint256 public minimumSwap = 10_000 ether; // 10,000 tokens
  uint256 public maxPerAddress = 400_000 ether; // 400,000 tokens
  uint256 public immutable LIQUIDITY_SUPPLY = 8_000_000 ether; // 8,000,000 tokens
  uint256 public immutable TOTAL_SUPPLY = 10_000_000 ether; // 10,000,000 tokens

  address public feeRecipient;
  IUniswapV2Router02 public dexRouter;

  bool public swapInProgress;
  bool public swapAllowed = true;
  bool public tradingAllowed;

  modifier setSwapInProgress() {
    swapInProgress = true;
    _;
    swapInProgress = false;
  }

  error TradingNotAllowed(address from, address to);
  error TooManyTokens(address to, uint256 previousBalance, uint256 value, uint256 maxPerAddress);
  error FeeTooHigh(uint256 fee);
  error SwapAllowed();
  error SwapInProgress();
  error CannotSwapNothing();
  error BalanceTooLow(uint256 amount, uint256 balance);
  error NoBalance(uint256 balance);

  constructor(
    address _dexRouter,
    address _weth,
    address _reservePool,
    address[] memory payees,
    uint256[] memory shares
  ) ERC20('AI Tycoon', 'STOCK') Ownable(msg.sender) {
    WETH = _weth;
    dexRouter = IUniswapV2Router02(_dexRouter);
    feeRecipient = address(new PaymentSplitter(payees, shares));

    noFee[address(this)] = true;
    noMax[address(this)] = true;

    noFee[msg.sender] = true;
    noMax[msg.sender] = true;

    noFee[feeRecipient] = true;
    noMax[feeRecipient] = true;

    noFee[_reservePool] = true;
    noMax[_reservePool] = true;

    // Mint all supply to owner
    super._mint(msg.sender, TOTAL_SUPPLY);

    // Send reserve supply to reserve pool
    super._update(msg.sender, _reservePool, TOTAL_SUPPLY - LIQUIDITY_SUPPLY);
  }

  function initialize(address _buildingManager, address _dexPair) external onlyOwner {
    tradingAllowed = true;

    noFee[_buildingManager] = true;
    noMax[_buildingManager] = true;

    dex[_dexPair] = true;
    noMax[_dexPair] = true;
    noSwap[_dexPair] = true;
  }

  function _update(address from, address to, uint256 value) internal override {
    require(tradingAllowed || from == owner() || to == owner(), TradingNotAllowed(from, to));

    if (dex[from] && !noFee[to] && buyFee > 0) {
      uint256 fee = (value * buyFee) / 1000;
      super._update(from, address(this), fee);
      value -= fee;
    } else if (dex[to] && !noFee[from] && sellFee > 0) {
      uint256 fee = (value * sellFee) / 1000;
      super._update(from, address(this), fee);
      value -= fee;
    }

    if (!noMax[to] && from != owner())
      require(balanceOf(to) + value <= maxPerAddress, TooManyTokens(to, balanceOf(to), value, maxPerAddress));

    if (swapAllowed && !swapInProgress && !noSwap[from]) {
      uint256 contractBalance = balanceOf(address(this));

      if (contractBalance >= minimumSwap) swapToEth(contractBalance);
    }

    super._update(from, to, value);
  }

  function swapToEth(uint256 amount) internal setSwapInProgress {
    address[] memory path = new address[](2);
    path[0] = address(this);
    path[1] = WETH;

    if (allowance(address(this), address(dexRouter)) < type(uint256).max) {
      _approve(address(this), address(dexRouter), type(uint256).max);
    }

    dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amount, 0, path, feeRecipient, block.timestamp + 600);
  }

  function burn(uint256 amount) external {
    _burn(msg.sender, amount);
  }

  function setNoFeeAdmin(address _address, bool _noFee) external onlyOwner {
    noFee[_address] = _noFee;
  }

  function setNoMaxAdmin(address _address, bool _noMax) external onlyOwner {
    noMax[_address] = _noMax;
  }

  function setNoSwapAdmin(address _address, bool _noSwap) external onlyOwner {
    noSwap[_address] = _noSwap;
  }

  function setBuyFeeAdmin(uint256 _buyFee) external onlyOwner {
    require(_buyFee <= 200, FeeTooHigh(_buyFee));
    buyFee = _buyFee;
  }

  function setSellFeeAdmin(uint256 _sellFee) external onlyOwner {
    require(_sellFee <= 200, FeeTooHigh(_sellFee));
    sellFee = _sellFee;
  }

  // Callable by anyone, but only if trading is not allowed
  function withdrawFees() external {
    require(!swapAllowed, SwapAllowed());

    uint256 amount = balanceOf(address(this));

    _transfer(address(this), feeRecipient, amount);
  }

  function setDexAdmin(address _dex, bool _isDex) external onlyOwner {
    dex[_dex] = _isDex;
  }

  function swapAdmin(uint256 amount) external onlyOwner {
    require(!swapInProgress, SwapInProgress());
    require(amount > 0, CannotSwapNothing());
    require(amount <= balanceOf(address(this)), BalanceTooLow(amount, balanceOf(address(this))));

    swapToEth(amount);
  }

  function swapAllAdmin() external onlyOwner {
    require(!swapInProgress, SwapInProgress());
    require(balanceOf(address(this)) > 0, NoBalance(balanceOf(address(this))));

    swapToEth(balanceOf(address(this)));
  }

  function setFeeRecipientAdmin(address _feeRecipient) external onlyOwner {
    feeRecipient = _feeRecipient;
  }

  function setMinimumSwapAdmin(uint256 _minimumSwap) external onlyOwner {
    minimumSwap = _minimumSwap;
  }

  function setMaxPerAddressAdmin(uint256 _maxPerAddress) external onlyOwner {
    maxPerAddress = _maxPerAddress;
  }

  function setSwapAllowedAdmin(bool _swapAllowed) external onlyOwner {
    swapAllowed = _swapAllowed;
  }
}

File 2 of 13 : 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 3 of 13 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, value);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `value`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `value`.
     */
    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, value);
        _transfer(from, to, value);
        return true;
    }

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     * ```
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `value`.
     *
     * Does not update the allowance value in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Does not emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            if (currentAllowance < value) {
                revert ERC20InsufficientAllowance(spender, currentAllowance, value);
            }
            unchecked {
                _approve(owner, spender, currentAllowance - value, false);
            }
        }
    }
}

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

pragma solidity ^0.8.20;

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

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

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

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

File 6 of 13 : 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 7 of 13 : 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 8 of 13 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";

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

    /**
     * @dev An operation with an ERC20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

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

        bytes memory returndata = address(token).functionCall(data);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
    }
}

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

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

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

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert FailedInnerCall();
        }
    }
}

File 10 of 13 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 11 of 13 : IUniswapV2Router01.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.26;

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 12 of 13 : IUniswapV2Router02.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.26;

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 13 of 13 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (finance/PaymentSplitter.sol)

pragma solidity ^0.8.26;

import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned. The distribution of shares is set at the
 * time of contract deployment and can't be updated thereafter.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 *
 * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
 * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
 * to run tests before sending real value to this contract.
 */
contract PaymentSplitter is Context {
  event PayeeAdded(address account, uint256 shares);
  event PaymentReleased(address to, uint256 amount);
  event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount);
  event PaymentReceived(address from, uint256 amount);

  uint256 private _totalShares;
  uint256 private _totalReleased;

  mapping(address => uint256) private _shares;
  mapping(address => uint256) private _released;
  address[] private _payees;

  mapping(IERC20 => uint256) private _erc20TotalReleased;
  mapping(IERC20 => mapping(address => uint256)) private _erc20Released;

  /**
   * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
   * the matching position in the `shares` array.
   *
   * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
   * duplicates in `payees`.
   */
  constructor(address[] memory payees, uint256[] memory shares_) payable {
    require(payees.length == shares_.length, 'PaymentSplitter: payees and shares length mismatch');
    require(payees.length > 0, 'PaymentSplitter: no payees');

    for (uint256 i = 0; i < payees.length; i++) {
      _addPayee(payees[i], shares_[i]);
    }
  }

  /**
   * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
   * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
   * reliability of the events, and not the actual splitting of Ether.
   *
   * To learn more about this see the Solidity documentation for
   * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
   * functions].
   */
  receive() external payable virtual {
    emit PaymentReceived(_msgSender(), msg.value);
  }

  /**
   * @dev Getter for the total shares held by payees.
   */
  function totalShares() public view returns (uint256) {
    return _totalShares;
  }

  /**
   * @dev Getter for the total amount of Ether already released.
   */
  function totalReleased() public view returns (uint256) {
    return _totalReleased;
  }

  /**
   * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20
   * contract.
   */
  function totalReleased(IERC20 token) public view returns (uint256) {
    return _erc20TotalReleased[token];
  }

  /**
   * @dev Getter for the amount of shares held by an account.
   */
  function shares(address account) public view returns (uint256) {
    return _shares[account];
  }

  /**
   * @dev Getter for the amount of Ether already released to a payee.
   */
  function released(address account) public view returns (uint256) {
    return _released[account];
  }

  /**
   * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
   * IERC20 contract.
   */
  function released(IERC20 token, address account) public view returns (uint256) {
    return _erc20Released[token][account];
  }

  /**
   * @dev Getter for the address of the payee number `index`.
   */
  function payee(uint256 index) public view returns (address) {
    return _payees[index];
  }

  /**
   * @dev Getter for the amount of payee's releasable Ether.
   */
  function releasable(address account) public view returns (uint256) {
    uint256 totalReceived = address(this).balance + totalReleased();
    return _pendingPayment(account, totalReceived, released(account));
  }

  /**
   * @dev Getter for the amount of payee's releasable `token` tokens. `token` should be the address of an
   * IERC20 contract.
   */
  function releasable(IERC20 token, address account) public view returns (uint256) {
    uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);
    return _pendingPayment(account, totalReceived, released(token, account));
  }

  /**
   * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
   * total shares and their previous withdrawals.
   */
  function release(address payable account) public virtual {
    require(_shares[account] > 0, 'PaymentSplitter: account has no shares');

    uint256 payment = releasable(account);

    require(payment != 0, 'PaymentSplitter: account is not due payment');

    // _totalReleased is the sum of all values in _released.
    // If "_totalReleased += payment" does not overflow, then "_released[account] += payment" cannot overflow.
    _totalReleased += payment;
    unchecked {
      _released[account] += payment;
    }

    Address.sendValue(account, payment);
    emit PaymentReleased(account, payment);
  }

  /**
   * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
   * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
   * contract.
   */
  function release(IERC20 token, address account) public virtual {
    require(_shares[account] > 0, 'PaymentSplitter: account has no shares');

    uint256 payment = releasable(token, account);

    require(payment != 0, 'PaymentSplitter: account is not due payment');

    // _erc20TotalReleased[token] is the sum of all values in _erc20Released[token].
    // If "_erc20TotalReleased[token] += payment" does not overflow, then "_erc20Released[token][account] += payment"
    // cannot overflow.
    _erc20TotalReleased[token] += payment;
    unchecked {
      _erc20Released[token][account] += payment;
    }

    SafeERC20.safeTransfer(token, account, payment);
    emit ERC20PaymentReleased(token, account, payment);
  }

  /**
   * @dev internal logic for computing the pending payment of an `account` given the token historical balances and
   * already released amounts.
   */
  function _pendingPayment(address account, uint256 totalReceived, uint256 alreadyReleased) private view returns (uint256) {
    return (totalReceived * _shares[account]) / _totalShares - alreadyReleased;
  }

  /**
   * @dev Add a new payee to the contract.
   * @param account The address of the payee to add.
   * @param shares_ The number of shares owned by the payee.
   */
  function _addPayee(address account, uint256 shares_) private {
    require(account != address(0), 'PaymentSplitter: account is the zero address');
    require(shares_ > 0, 'PaymentSplitter: shares are 0');
    require(_shares[account] == 0, 'PaymentSplitter: account already has shares');

    _payees.push(account);
    _shares[account] = shares_;
    _totalShares = _totalShares + shares_;
    emit PayeeAdded(account, shares_);
  }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_dexRouter","type":"address"},{"internalType":"address","name":"_weth","type":"address"},{"internalType":"address","name":"_reservePool","type":"address"},{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"}],"name":"BalanceTooLow","type":"error"},{"inputs":[],"name":"CannotSwapNothing","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"FeeTooHigh","type":"error"},{"inputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"name":"NoBalance","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":[],"name":"SwapAllowed","type":"error"},{"inputs":[],"name":"SwapInProgress","type":"error"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"previousBalance","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"maxPerAddress","type":"uint256"}],"name":"TooManyTokens","type":"error"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"TradingNotAllowed","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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"LIQUIDITY_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","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":"value","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":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"buyFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"dex","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dexRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_buildingManager","type":"address"},{"internalType":"address","name":"_dexPair","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumSwap","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":"","type":"address"}],"name":"noFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"noMax","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"noSwap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_buyFee","type":"uint256"}],"name":"setBuyFeeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_dex","type":"address"},{"internalType":"bool","name":"_isDex","type":"bool"}],"name":"setDexAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeRecipient","type":"address"}],"name":"setFeeRecipientAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerAddress","type":"uint256"}],"name":"setMaxPerAddressAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minimumSwap","type":"uint256"}],"name":"setMinimumSwapAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_noFee","type":"bool"}],"name":"setNoFeeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_noMax","type":"bool"}],"name":"setNoMaxAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_noSwap","type":"bool"}],"name":"setNoSwapAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_sellFee","type":"uint256"}],"name":"setSellFeeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_swapAllowed","type":"bool"}],"name":"setSwapAllowedAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"swapAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapAllAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapInProgress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","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":"withdrawFees","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e08060405234610b9d576000906136d3803803809161001f8285610ba2565b833981019060a081830312610b995761003781610bdb565b9161004460208301610bdb565b9161005160408201610bdb565b60608201519094906001600160401b0381116106ef5782019183601f840112156106ef5782519261008184610bef565b9361008f6040519586610ba2565b80855260208086019160051b83010191868311610b7957602001905b828210610b81575050506080810151906001600160401b038211610b7d57019083601f830112156106ef578151936100e285610bef565b926100f06040519485610ba2565b85845260208401906020829760051b820101928311610b7957602001905b828210610b6957505050604051610126604082610ba2565b600981526820a4902a3cb1b7b7b760b91b60208201526040519061014b604083610ba2565b600582526453544f434b60d81b60208301528051906001600160401b038211610b5557600354600181811c91168015610b4b575b6020821014610b37579081601f849311610ac9575b50602090601f8311600114610a64578b92610a59575b50508160011b916000199060031b1c1916176003555b8051906001600160401b038211610a4557600454600181811c91168015610a3b575b6020821014610a27579081601f8493116109b9575b50602090601f8311600114610954578a92610949575b50508160011b916000199060031b1c1916176004555b33156109355760058054336001600160a01b0319821681179092556040519691906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08a80a36032600a819055600b5569021e19e0c9bab2400000600c556954b40b1f852bda000000600d556a069e10de76676d0800000060a0526a084595161401484a00000060c052600f8054608092909252600161ff0160a01b03199091166001600160a01b0390921691909117600160a81b179055610cd984810192906001600160401b03841186851017610921579161031b602092879695946129da8839604085526040850190610c06565b92828185039101525191828152019190865b81811061090857505050039083f080156108fd57600e80546001600160a01b0319166001600160a01b0392831617815530808552600760208181526040808820805460ff1990811660019081179092559489526008808452828a20805487168317905533808b52858552838b2080548816841790558a52808452828a208054871683179055865488168a52848452828a2080548716831790559554871689528583528189208054861682179055969095168088529181528487208054841687179055818752929092529184208054909216909217905560c051600f54919291819060b01c60ff1680156108ea575b80156108d6575b156108be57828052600660205260ff604084205416806108a7575b8061089c575b15610839575061046d906103e861045c600a5483610ccf565b04906104688230610c73565b610c43565b338252600860205260ff6040832054161580610825575b6107cb575b600f5460ff8160a81c16806107bd575b806107a6575b61059a575b506104af9033610c73565b6104be60c05160a05190610c43565b9033610559576104d082600254610c66565b6002555b82610543575080600254036002555b6040519081526000805160206136b383398151915260203392a3604051611cf79081610ce382396080518181816104b4015281816105b50152818161093101528181610e8b01526117f8015260a051816111c0015260c051816108460152f35b80836040925280602052208181540190556104e3565b338152806020526040812054828110610580578290338352826020520360408220556104d4565b9160649263391434e360e21b835233600452602452604452fd5b30835282602052604083205490600c548210156105b8575b506104a4565b60ff60a01b198116600160a01b17600f55604051906105d8606083610ba2565b600282526020820160403682378251156107925730905260018060a01b036080511682516001101561079257604083810191909152308652600160209081528187206001600160a01b039390931680885292905285205460001911610707575b50600f54600e54426102588101946001600160a01b0393841694939092169085106106f357833b156106ef57918680949261069d946040519788968795869463791ac94760e01b8652600486015285602486015260a0604486015260a4850190610c06565b916064840152608483015203925af180156106e4576106ce575b50600f805460ff60a01b191690556104af386105b2565b916106dd816104af9394610ba2565b91906106b7565b6040513d85823e3d90fd5b8680fd5b634e487b7160e01b87526011600452602487fd5b301561077e57801561076a57308086526001602090815260408088206001600160a01b038516895282528088206000199081905590519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a338610638565b634a1406b160e11b85526004859052602485fd5b63e602df0560e01b85526004859052602485fd5b634e487b7160e01b86526032600452602486fd5b50828052600960205260ff6040842054161561049f565b5060ff8160a01c1615610499565b338252816020526107e0816040842054610c66565b600d543384528360205280604085205492116107fd575050610489565b60849260405192637570688960e01b8452336004850152602484015260448301526064820152fd5b506005546001600160a01b03161515610484565b338352600660205260ff60408420541680610885575b8061087a575b610860575b5061046d565b61087491506103e861045c600b5483610ccf565b3861085a565b50600b541515610855565b50828052600760205260ff6040842054161561084f565b50600a541515610443565b50338352600760205260ff6040842054161561043d565b631249b2ab60e21b8352600483905233602452604483fd5b506005546001600160a01b03163314610422565b506005546001600160a01b03161561041b565b6040513d84823e3d90fd5b825184528594506020938401939092019160010161032d565b634e487b7160e01b88526041600452602488fd5b631e4fbdf760e01b87526004879052602487fd5b01519050388061020d565b60048b52818b209250601f1984168b5b8181106109a15750908460019594939210610988575b505050811b01600455610223565b015160001960f88460031b161c1916905538808061097a565b92936020600181928786015181550195019301610964565b60048b529091507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b601f840160051c81019160208510610a1d575b90601f859493920160051c01905b818110610a0f57506101f7565b8b8155849350600101610a02565b90915081906109f4565b634e487b7160e01b8a52602260045260248afd5b90607f16906101e2565b634e487b7160e01b89526041600452602489fd5b0151905038806101aa565b60038c52818c209250601f1984168c5b818110610ab15750908460019594939210610a98575b505050811b016003556101c0565b015160001960f88460031b161c19169055388080610a8a565b92936020600181928786015181550195019301610a74565b60038c529091507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b601f840160051c81019160208510610b2d575b90601f859493920160051c01905b818110610b1f5750610194565b8c8155849350600101610b12565b9091508190610b04565b634e487b7160e01b8b52602260045260248bfd5b90607f169061017f565b634e487b7160e01b8a52604160045260248afd5b815181526020918201910161010e565b8980fd5b8780fd5b60208091610b8e84610bdb565b8152019101906100ab565b8280fd5b600080fd5b601f909101601f19168101906001600160401b03821190821017610bc557604052565b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b0382168203610b9d57565b6001600160401b038111610bc55760051b60200190565b906020808351928381520192019060005b818110610c245750505090565b82516001600160a01b0316845260209384019390920191600101610c17565b91908203918211610c5057565b634e487b7160e01b600052601160045260246000fd5b91908201809211610c5057565b6000805160206136b38339815191526020600092610c9385600254610c66565b6002556001600160a01b03169384158414610cba5780600254036002555b604051908152a3565b84845283825260408420818154019055610cb1565b81810292918115918404141715610c505756fe608080604052600436101561001357600080fd5b600090813560e01c9081622a20501461157c5750806306fdde03146114bf5780630758d92414611496578063095ea7b3146113ec5780630b18cf9e146113c95780630cd0b0e0146113a65780630fc6d1d414611380578063172869c41461135a57806318160ddd1461133c57806323b872dd1461125c5780632ad446f81461121d5780632b14ca56146111ff578063313ce567146111e35780633272f505146111a85780633ee174ca1461115657806342966c6814610d605780634690484014610d375780634706240214610d19578063476343ee14610ccc578063485cc95514610c155780634a0da67314610bd65780635151394914610b8457806353371be014610b5e57806361b0599014610b2d578063639814e014610b0f57806370a0823114610ad7578063715018a614610a7a57806371d82bd3146108925780638da5cb5b14610869578063902d55a51461082e57806395d89b4114610725578063a8abf89b14610515578063a9059cbb146104e3578063ad5c46481461049e578063c001962114610453578063cb49ff281461040e578063dd62ed3e146103b9578063e03d852a1461039b578063e089742214610349578063eeeb9233146102f4578063f2fde38b1461026b578063f3185b081461023a5763fef0006e146101f957600080fd5b346102375760203660031901126102375760209060ff906040906001600160a01b036102236115b8565b168152600884522054166040519015158152f35b80fd5b503461023757602036600319011261023757600435610257611695565b6102658160c8811115611679565b600b5580f35b5034610237576020366003190112610237576102856115b8565b61028d611695565b6001600160a01b031680156102e057600580546001600160a01b0319811683179091556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b631e4fbdf760e01b82526004829052602482fd5b5034610237576040366003190112610237576103466103116115b8565b610319611632565b90610322611695565b60018060a01b031683526007602052604083209060ff801983541691151516179055565b80f35b5034610237576040366003190112610237576103466103666115b8565b61036e611632565b90610377611695565b60018060a01b031683526008602052604083209060ff801983541691151516179055565b50346102375780600319360112610237576020600c54604051908152f35b50346102375760403660031901126102375760406103d56115b8565b916103de6115d3565b9260018060a01b031681526001602052209060018060a01b03166000526020526020604060002054604051908152f35b5034610237576020366003190112610237576104286115b8565b610430611695565b60018060a01b03166bffffffffffffffffffffffff60a01b600e541617600e5580f35b50346102375760203660031901126102375760043580151580910361049a5761047a611695565b600f805460ff60a81b191660a89290921b60ff60a81b1691909117905580f35b5080fd5b50346102375780600319360112610237576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50346102375760403660031901126102375761050a6105006115b8565b60243590336116be565b602060405160018152f35b503461023757806003193601126102375761052e611695565b600f549060ff8260a01c166107165730815280602052604081205415308252816020526040822054906107035750308152602081905260408082205460ff60a01b198416600160a01b17600f55905190610589606083611641565b6002825260208201936040368637306105a184611ac9565b526105ab83611aec565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811690915230855260016020908152604080872093909216600081815293909152912054600019116106f3575b50600f54600e546001600160a01b039182169242610258810193929092169183106106df57833b156106db576040519463791ac94760e01b865260a4860191600487015286602487015260a060448701525180915260c485019690865b8181106106bc57505050918385818198819583976064840152608483015203925af180156106b15761069c575b50600f805460ff60a01b1916905580f35b816106a691611641565b61023757803861068b565b6040513d84823e3d90fd5b82516001600160a01b031689526020988901989092019160010161065e565b8580fd5b634e487b7160e01b86526011600452602486fd5b6106fd9030611b1f565b38610601565b63a6cccb4560e01b825260045260249150fd5b6321a11a0f60e11b8152600490fd5b50346102375780600319360112610237576040519080600454908160011c91600181168015610824575b602084108114610810578386529081156107e9575060011461078c575b6107888461077c81860382611641565b604051918291826115e9565b0390f35b600481527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b939250905b8082106107cf5750909150810160200161077c8261076c565b9192600181602092548385880101520191019092916107b6565b60ff191660208087019190915292151560051b8501909201925061077c915083905061076c565b634e487b7160e01b83526022600452602483fd5b92607f169261074f565b503461023757806003193601126102375760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b50346102375780600319360112610237576005546040516001600160a01b039091168152602090f35b503461023757602036600319011261023757600435906108b0611695565b600f549160ff8360a01c16610a6b578015610a5c57308252816020526040822054811130835282602052604083205490610a46575060ff60a01b198316600160a01b17600f5560405190610905606083611641565b60028252602082019360403686373061091d84611ac9565b5261092783611aec565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169091523085526001602090815260408087209390921660008181529390915291205460001911610a36575b50600f54600e546001600160a01b039182169242610258810193929092169183106106df57833b156106db576040519463791ac94760e01b865260a4860191600487015286602487015260a060448701525180915260c485019690865b818110610a1757505050918385818198819583976064840152608483015203925af180156106b15761069c5750600f805460ff60a01b1916905580f35b82516001600160a01b03168952602098890198909201916001016109da565b610a409030611b1f565b3861097d565b60449291630d9fb46f60e21b8352600452602452fd5b634529f10560e01b8252600482fd5b6321a11a0f60e11b8252600482fd5b5034610237578060031936011261023757610a93611695565b600580546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5034610237576020366003190112610237576020906040906001600160a01b03610aff6115b8565b1681528083522054604051908152f35b50346102375780600319360112610237576020600d54604051908152f35b503461023757602036600319011261023757600435610b4a611695565b610b588160c8811115611679565b600a5580f35b5034610237578060031936011261023757602060ff600f5460b01c166040519015158152f35b503461023757604036600319011261023757610346610ba16115b8565b610ba9611632565b90610bb2611695565b60018060a01b031683526006602052604083209060ff801983541691151516179055565b50346102375760203660031901126102375760209060ff906040906001600160a01b03610c016115b8565b168152600684522054166040519015158152f35b503461023757604036600319011261023757610c2f6115b8565b610c376115d3565b90610c40611695565b600f805460ff60b01b1916600160b01b1790556001600160a01b03908116808452600760209081526040808620805460ff1990811660019081179092559387526008808452828820805486168317905595909416808752600683528187208054851686179055808752948252808620805484168517905593855260099052918320805490921617905580f35b503461023757806003193601126102375760ff600f5460a81c16610d0a5730815280602052610346604082205460018060a01b03600e5416306116be565b633507395760e11b8152600490fd5b50346102375780600319360112610237576020600a54604051908152f35b5034610237578060031936011261023757600e546040516001600160a01b039091168152602090f35b5034610237576020366003190112610237576004353315611142578060ff600f5460b01c16801561112e575b801561111b575b1561110357338352600660205260ff604084205416806110ec575b806110e1575b1561107e5750610ddf906103e8610dcd600a5483611bb8565b0490610dda823033611bd8565b611bcb565b818052600860205260ff6040832054161580611069575b61100d575b600f5460ff8160a81c1680610fff575b80610fe8575b610e22575b50610346908233611bd8565b308352826020526040832054600c54811015610e3f575b50610e16565b60ff60a01b198216600160a01b17600f5560405191610e5f606084611641565b600283526020830190604036833730610e7785611ac9565b52610e8184611aec565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169091523087526001602090815260408089209390921680895292905286205460001911610fd8575b50600f54600e546001600160a01b03918216934261025881019392909216918310610fc457843b15610fc0579492909187949260405196879563791ac94760e01b875260a4870191600488015287602488015260a060448801525180915260c486019390875b818110610f9b575050508492869284926064840152608483015203925af18015610f9057610f7a575b50600f805460ff60a01b1916905561034638610e39565b91610f89816103469394611641565b9190610f63565b6040513d85823e3d90fd5b82516001600160a01b031686528b985089975060209586019590920191600101610f3a565b8780fd5b634e487b7160e01b88526011600452602488fd5b610fe29030611b1f565b38610ed4565b50338352600960205260ff60408420541615610e11565b5060ff8160a01c1615610e0b565b81805281602052611022816040842054611afc565b600d5490838052836020528160408520549111611040575050610dfb565b916084939260405193637570688960e01b85526004850152602484015260448301526064820152fd5b506005546001600160a01b0316331415610df6565b828052600660205260ff604084205416806110ca575b806110bf575b6110a5575b50610ddf565b6110b991506103e8610dcd600b5483611bb8565b3861109f565b50600b54151561109a565b50338352600760205260ff60408420541615611094565b50600a541515610db4565b50828052600760205260ff60408420541615610dae565b631249b2ab60e21b8352336004526024839052604483fd5b506005546001600160a01b031615610d93565b506005546001600160a01b03163314610d8c565b634b637e8f60e11b82526004829052602482fd5b5034610237576040366003190112610237576103466111736115b8565b61117b611632565b90611184611695565b60018060a01b031683526009602052604083209060ff801983541691151516179055565b503461023757806003193601126102375760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b5034610237578060031936011261023757602060405160128152f35b50346102375780600319360112610237576020600b54604051908152f35b50346102375760203660031901126102375760209060ff906040906001600160a01b036112486115b8565b168152600984522054166040519015158152f35b5034610237576060366003190112610237576112766115b8565b61127e6115d3565b6001600160a01b0382168084526001602081815260408087203388529091528520546044359492909182016112ba575b505061050a93506116be565b84821061132157801561130d5733156112f957604086869261050a9852600160205281812060018060a01b0333168252602052209103905538806112ae565b634a1406b160e11b86526004869052602486fd5b63e602df0560e01b86526004869052602486fd5b6064868684637dc7a0d960e11b835233600452602452604452fd5b50346102375780600319360112610237576020600254604051908152f35b5034610237578060031936011261023757602060ff600f5460a81c166040519015158152f35b5034610237578060031936011261023757602060ff600f5460a01c166040519015158152f35b5034610237576020366003190112610237576113c0611695565b600435600c5580f35b5034610237576020366003190112610237576113e3611695565b600435600d5580f35b5034610237576040366003190112610237576114066115b8565b602435903315611482576001600160a01b031691821561146e5760408291338152600160205281812085825260205220556040519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560203392a3602060405160018152f35b634a1406b160e11b81526004819052602490fd5b63e602df0560e01b83526004839052602483fd5b5034610237578060031936011261023757600f546040516001600160a01b039091168152602090f35b50346102375780600319360112610237576040519080600354908160011c91600181168015611572575b602084108114610810578386529081156107e95750600114611515576107888461077c81860382611641565b600381527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b939250905b8082106115585750909150810160200161077c8261076c565b91926001816020925483858801015201910190929161153f565b92607f16926114e9565b90503461049a57602036600319011261049a5760209160ff906040906001600160a01b036115a86115b8565b1681526007855220541615158152f35b600435906001600160a01b03821682036115ce57565b600080fd5b602435906001600160a01b03821682036115ce57565b91909160208152825180602083015260005b81811061161c575060409293506000838284010152601f8019910116010190565b80602080928701015160408286010152016115fb565b6024359081151582036115ce57565b90601f8019910116810190811067ffffffffffffffff82111761166357604052565b634e487b7160e01b600052604160045260246000fd5b156116815750565b6303dc98a160e51b60005260045260246000fd5b6005546001600160a01b031633036116a957565b63118cdaa760e01b6000523360045260246000fd5b6001600160a01b0381169392919060008515611ab5576001600160a01b038316938415611aa1578060ff600f5460b01c168015611a8d575b8015611a79575b15611a6257878352600660205260ff60408420541680611a4b575b80611a40575b156119d85750611744906103e8611737600a5483611bb8565b0490610dda823087611bd8565b935b808252600860205260ff60408320541615806119c3575b611966575b50600f549560ff8760a81c169081611956575b8161193f575b5061178f575b5061178d939450611bd8565b565b308152806020526040812054600c548110156117ac575b50611781565b60ff60a01b198716600160a01b17600f55604051966117cc606089611641565b6002885260208801906040368337306117e48a611ac9565b526117ee89611aec565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116909152308552600160209081526040808720939092168087529290528420546000191161192f575b50600f54600e546001600160a01b039182169342610258810193929092169183106106df57843b156106db57999290918594926040519b8c9563791ac94760e01b875260a4870191600488015287602488015260a060448801525180915260c486019390875b81811061190a575050508492869284926064840152608483015203925af19586156118fd5761178d95966118ed575b5050600f805460ff60a01b191690558493386117a6565b816118f791611641565b386118d6565b50604051903d90823e3d90fd5b82516001600160a01b031686528998508e9750602095860195909201916001016118a7565b6119399030611b1f565b38611841565b8252506009602052604081205460ff16153861177b565b905060ff8760a01c161590611775565b8082528160205261197b856040842054611afc565b600d5490828452836020528160408520549111611999575050611762565b60849350869060405193637570688960e01b85526004850152602484015260448301526064820152fd5b506005546001600160a01b031687141561175d565b858396929652600660205260ff60408420541680611a29575b80611a1e575b611a02575b50611746565b611a179195506103e8611737600b5483611bb8565b93386119fc565b50600b5415156119f7565b50878352600760205260ff604084205416156119f1565b50600a54151561171e565b50858352600760205260ff60408420541615611718565b604483878a631249b2ab60e21b8352600452602452fd5b506005546001600160a01b031686146116fd565b506005546001600160a01b031688146116f6565b63ec442f0560e01b82526004829052602482fd5b634b637e8f60e11b81526004819052602490fd5b805115611ad65760200190565b634e487b7160e01b600052603260045260246000fd5b805160011015611ad65760400190565b91908201809211611b0957565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0316908115611ba2576001600160a01b0316908115611b8c57806000526001602052604060002082600052602052604060002060001990557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560206040516000198152a3565b634a1406b160e11b600052600060045260246000fd5b63e602df0560e01b600052600060045260246000fd5b81810292918115918404141715611b0957565b91908203918211611b0957565b6001600160a01b03169081611c545760207fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91611c1785600254611afc565b6002555b6001600160a01b03169384611c3c5780600254036002555b604051908152a3565b84600052600082526040600020818154019055611c33565b816000526000602052604060002054838110611ca4577fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9184602092856000526000845203604060002055611c1b565b91905063391434e360e21b60005260045260245260445260646000fdfea264697066735822122037c63a6bbb22f265268ec305dff588f2a357029beef6fadbd4d7f8c1bc706e6264736f6c634300081a00336080604052610cd980380380610014816103fc565b9283398101906040818303126103d75780516001600160401b0381116103d75781019082601f830112156103d757815161005561005082610421565b6103fc565b9260208085848152019260051b820101908582116103d757602001915b8183106103dc575050506020810151906001600160401b0382116103d757019180601f840112156103d75782516100ab61005082610421565b9360208086848152019260051b8201019283116103d757602001905b8282106103c7575050508051825103610367578051156103225760005b8151811015610313576001600160a01b036100ff8284610438565b51169061010c8185610438565b5182156102b95780156102745782600052600260205260406000205461021b57600454680100000000000000008110156102055760018101806004558110156101ef577f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b031916841790556000838152600260205260408120829055548082019081106101d9576001937f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac9260409260005582519182526020820152a1016100e4565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608490fd5b60405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606490fd5b60405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608490fd5b60405161088c908161044d8239f35b60405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606490fd5b60405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b6064820152608490fd5b81518152602091820191016100c7565b600080fd5b82516001600160a01b03811681036103d757815260209283019201610072565b6040519190601f01601f191682016001600160401b0381118382101761020557604052565b6001600160401b0381116102055760051b60200190565b80518210156101ef5760209160051b01019056fe6080604052600436101561004c575b361561001957600080fd5b604080513381523460208201527f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7709190a1005b60003560e01c8063191655871461044f5780633a98ef3914610431578063406072a9146103e057806348b75044146102635780638b83209b146101f25780639852595c146101b8578063a3f8eace14610195578063c45ac05014610161578063ce7c2ac214610127578063d79779b2146100ed5763e33b7de30361000e57346100e85760003660031901126100e8576020600154604051908152f35b600080fd5b346100e85760203660031901126100e8576001600160a01b0361010e61053b565b1660005260056020526020604060002054604051908152f35b346100e85760203660031901126100e8576001600160a01b0361014861053b565b1660005260026020526020604060002054604051908152f35b346100e85760403660031901126100e857602061018d61017f61053b565b610187610551565b906106b0565b604051908152f35b346100e85760203660031901126100e857602061018d6101b361053b565b610645565b346100e85760203660031901126100e8576001600160a01b036101d961053b565b1660005260036020526020604060002054604051908152f35b346100e85760203660031901126100e85760043560045481101561024d5760046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b01546040516001600160a01b039091168152602090f35b634e487b7160e01b600052603260045260246000fd5b346100e85760403660031901126100e85761027c61053b565b610284610551565b6001600160a01b0381166000908152600260205260409020546102a8901515610567565b6102b281836106b0565b916102be8315156105c2565b60018060a01b03169182600052600560205260406000206102e0828254610622565b905560008381526006602090815260408083206001600160a01b038616808552908352818420805486019055905163a9059cbb60e01b92810192835260248101919091526044808201859052815261035592918291610340606482610678565b519082885af161034e61076e565b9085610806565b80519081151591826103bc575b50506103a757604080516001600160a01b0393909316835260208301919091527f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a91a2005b82635274afe760e01b60005260045260246000fd5b81925090602091810103126100e857602001518015908115036100e8578480610362565b346100e85760403660031901126100e8576103f961053b565b610401610551565b6001600160a01b039182166000908152600660209081526040808320949093168252928352819020549051908152f35b346100e85760003660031901126100e8576020600054604051908152f35b346100e85760203660031901126100e8576004356001600160a01b038116908190036100e85780600052600260205261048e6040600020541515610567565b61049781610645565b6104a28115156105c2565b6104ae81600154610622565b600155816000526003602052604060002081815401905580471061052657600080808084865af16104dd61076e565b5015610515577fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0569160409182519182526020820152a1005b630a12f52160e11b60005260046000fd5b63cd78605960e01b6000523060045260246000fd5b600435906001600160a01b03821682036100e857565b602435906001600160a01b03821682036100e857565b1561056e57565b60405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608490fd5b156105c957565b60405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608490fd5b9190820180921161062f57565b634e487b7160e01b600052601160045260246000fd5b610675906106564760015490610622565b6001600160a01b038216600090815260036020526040902054916107ae565b90565b90601f8019910116810190811067ffffffffffffffff82111761069a57604052565b634e487b7160e01b600052604160045260246000fd5b6040516370a0823160e01b815230600482015291906001600160a01b0316602083602481845afa9283156107625760009361072c575b506107036106759382600052600560205260406000205490610622565b906000526006602052604060002060018060a01b038316600052602052604060002054916107ae565b92506020833d60201161075a575b8161074760209383610678565b810103126100e8579151916107036106e6565b3d915061073a565b6040513d6000823e3d90fd5b3d156107a9573d9067ffffffffffffffff821161069a576040519161079d601f8201601f191660200184610678565b82523d6000602084013e565b606090565b6001600160a01b0316600090815260026020526040902054818102918015908304909114171561062f576000549081156107f0570490810390811161062f5790565b634e487b7160e01b600052601260045260246000fd5b9061081b575080511561051557805190602001fd5b8151158061084d575b61082c575090565b639996b31560e01b60009081526001600160a01b0391909116600452602490fd5b50803b1561082456fea2646970667358221220b270c83558efd5614e92892923069e8f911ee22917431edda45111aa78bad24e64736f6c634300081a0033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000a65e24944e16eb6bef4257fdabcfdb2bddeb940600000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000004000000000000000000000000981e7fda63e58e94076ee4ae78bf9d2af830ded40000000000000000000000008c8f343aed881fe60243b057cabc4985c210d7f3000000000000000000000000de425503230a8aade13e91a3e75fc3641d8003b9000000000000000000000000f407b1f56ee7620d6c61d0f90bbd1fcc79eb272d0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a

Deployed Bytecode

0x608080604052600436101561001357600080fd5b600090813560e01c9081622a20501461157c5750806306fdde03146114bf5780630758d92414611496578063095ea7b3146113ec5780630b18cf9e146113c95780630cd0b0e0146113a65780630fc6d1d414611380578063172869c41461135a57806318160ddd1461133c57806323b872dd1461125c5780632ad446f81461121d5780632b14ca56146111ff578063313ce567146111e35780633272f505146111a85780633ee174ca1461115657806342966c6814610d605780634690484014610d375780634706240214610d19578063476343ee14610ccc578063485cc95514610c155780634a0da67314610bd65780635151394914610b8457806353371be014610b5e57806361b0599014610b2d578063639814e014610b0f57806370a0823114610ad7578063715018a614610a7a57806371d82bd3146108925780638da5cb5b14610869578063902d55a51461082e57806395d89b4114610725578063a8abf89b14610515578063a9059cbb146104e3578063ad5c46481461049e578063c001962114610453578063cb49ff281461040e578063dd62ed3e146103b9578063e03d852a1461039b578063e089742214610349578063eeeb9233146102f4578063f2fde38b1461026b578063f3185b081461023a5763fef0006e146101f957600080fd5b346102375760203660031901126102375760209060ff906040906001600160a01b036102236115b8565b168152600884522054166040519015158152f35b80fd5b503461023757602036600319011261023757600435610257611695565b6102658160c8811115611679565b600b5580f35b5034610237576020366003190112610237576102856115b8565b61028d611695565b6001600160a01b031680156102e057600580546001600160a01b0319811683179091556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b631e4fbdf760e01b82526004829052602482fd5b5034610237576040366003190112610237576103466103116115b8565b610319611632565b90610322611695565b60018060a01b031683526007602052604083209060ff801983541691151516179055565b80f35b5034610237576040366003190112610237576103466103666115b8565b61036e611632565b90610377611695565b60018060a01b031683526008602052604083209060ff801983541691151516179055565b50346102375780600319360112610237576020600c54604051908152f35b50346102375760403660031901126102375760406103d56115b8565b916103de6115d3565b9260018060a01b031681526001602052209060018060a01b03166000526020526020604060002054604051908152f35b5034610237576020366003190112610237576104286115b8565b610430611695565b60018060a01b03166bffffffffffffffffffffffff60a01b600e541617600e5580f35b50346102375760203660031901126102375760043580151580910361049a5761047a611695565b600f805460ff60a81b191660a89290921b60ff60a81b1691909117905580f35b5080fd5b50346102375780600319360112610237576040517f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b03168152602090f35b50346102375760403660031901126102375761050a6105006115b8565b60243590336116be565b602060405160018152f35b503461023757806003193601126102375761052e611695565b600f549060ff8260a01c166107165730815280602052604081205415308252816020526040822054906107035750308152602081905260408082205460ff60a01b198416600160a01b17600f55905190610589606083611641565b6002825260208201936040368637306105a184611ac9565b526105ab83611aec565b6001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2811690915230855260016020908152604080872093909216600081815293909152912054600019116106f3575b50600f54600e546001600160a01b039182169242610258810193929092169183106106df57833b156106db576040519463791ac94760e01b865260a4860191600487015286602487015260a060448701525180915260c485019690865b8181106106bc57505050918385818198819583976064840152608483015203925af180156106b15761069c575b50600f805460ff60a01b1916905580f35b816106a691611641565b61023757803861068b565b6040513d84823e3d90fd5b82516001600160a01b031689526020988901989092019160010161065e565b8580fd5b634e487b7160e01b86526011600452602486fd5b6106fd9030611b1f565b38610601565b63a6cccb4560e01b825260045260249150fd5b6321a11a0f60e11b8152600490fd5b50346102375780600319360112610237576040519080600454908160011c91600181168015610824575b602084108114610810578386529081156107e9575060011461078c575b6107888461077c81860382611641565b604051918291826115e9565b0390f35b600481527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b939250905b8082106107cf5750909150810160200161077c8261076c565b9192600181602092548385880101520191019092916107b6565b60ff191660208087019190915292151560051b8501909201925061077c915083905061076c565b634e487b7160e01b83526022600452602483fd5b92607f169261074f565b503461023757806003193601126102375760206040517f000000000000000000000000000000000000000000084595161401484a0000008152f35b50346102375780600319360112610237576005546040516001600160a01b039091168152602090f35b503461023757602036600319011261023757600435906108b0611695565b600f549160ff8360a01c16610a6b578015610a5c57308252816020526040822054811130835282602052604083205490610a46575060ff60a01b198316600160a01b17600f5560405190610905606083611641565b60028252602082019360403686373061091d84611ac9565b5261092783611aec565b6001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281169091523085526001602090815260408087209390921660008181529390915291205460001911610a36575b50600f54600e546001600160a01b039182169242610258810193929092169183106106df57833b156106db576040519463791ac94760e01b865260a4860191600487015286602487015260a060448701525180915260c485019690865b818110610a1757505050918385818198819583976064840152608483015203925af180156106b15761069c5750600f805460ff60a01b1916905580f35b82516001600160a01b03168952602098890198909201916001016109da565b610a409030611b1f565b3861097d565b60449291630d9fb46f60e21b8352600452602452fd5b634529f10560e01b8252600482fd5b6321a11a0f60e11b8252600482fd5b5034610237578060031936011261023757610a93611695565b600580546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5034610237576020366003190112610237576020906040906001600160a01b03610aff6115b8565b1681528083522054604051908152f35b50346102375780600319360112610237576020600d54604051908152f35b503461023757602036600319011261023757600435610b4a611695565b610b588160c8811115611679565b600a5580f35b5034610237578060031936011261023757602060ff600f5460b01c166040519015158152f35b503461023757604036600319011261023757610346610ba16115b8565b610ba9611632565b90610bb2611695565b60018060a01b031683526006602052604083209060ff801983541691151516179055565b50346102375760203660031901126102375760209060ff906040906001600160a01b03610c016115b8565b168152600684522054166040519015158152f35b503461023757604036600319011261023757610c2f6115b8565b610c376115d3565b90610c40611695565b600f805460ff60b01b1916600160b01b1790556001600160a01b03908116808452600760209081526040808620805460ff1990811660019081179092559387526008808452828820805486168317905595909416808752600683528187208054851686179055808752948252808620805484168517905593855260099052918320805490921617905580f35b503461023757806003193601126102375760ff600f5460a81c16610d0a5730815280602052610346604082205460018060a01b03600e5416306116be565b633507395760e11b8152600490fd5b50346102375780600319360112610237576020600a54604051908152f35b5034610237578060031936011261023757600e546040516001600160a01b039091168152602090f35b5034610237576020366003190112610237576004353315611142578060ff600f5460b01c16801561112e575b801561111b575b1561110357338352600660205260ff604084205416806110ec575b806110e1575b1561107e5750610ddf906103e8610dcd600a5483611bb8565b0490610dda823033611bd8565b611bcb565b818052600860205260ff6040832054161580611069575b61100d575b600f5460ff8160a81c1680610fff575b80610fe8575b610e22575b50610346908233611bd8565b308352826020526040832054600c54811015610e3f575b50610e16565b60ff60a01b198216600160a01b17600f5560405191610e5f606084611641565b600283526020830190604036833730610e7785611ac9565b52610e8184611aec565b6001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281169091523087526001602090815260408089209390921680895292905286205460001911610fd8575b50600f54600e546001600160a01b03918216934261025881019392909216918310610fc457843b15610fc0579492909187949260405196879563791ac94760e01b875260a4870191600488015287602488015260a060448801525180915260c486019390875b818110610f9b575050508492869284926064840152608483015203925af18015610f9057610f7a575b50600f805460ff60a01b1916905561034638610e39565b91610f89816103469394611641565b9190610f63565b6040513d85823e3d90fd5b82516001600160a01b031686528b985089975060209586019590920191600101610f3a565b8780fd5b634e487b7160e01b88526011600452602488fd5b610fe29030611b1f565b38610ed4565b50338352600960205260ff60408420541615610e11565b5060ff8160a01c1615610e0b565b81805281602052611022816040842054611afc565b600d5490838052836020528160408520549111611040575050610dfb565b916084939260405193637570688960e01b85526004850152602484015260448301526064820152fd5b506005546001600160a01b0316331415610df6565b828052600660205260ff604084205416806110ca575b806110bf575b6110a5575b50610ddf565b6110b991506103e8610dcd600b5483611bb8565b3861109f565b50600b54151561109a565b50338352600760205260ff60408420541615611094565b50600a541515610db4565b50828052600760205260ff60408420541615610dae565b631249b2ab60e21b8352336004526024839052604483fd5b506005546001600160a01b031615610d93565b506005546001600160a01b03163314610d8c565b634b637e8f60e11b82526004829052602482fd5b5034610237576040366003190112610237576103466111736115b8565b61117b611632565b90611184611695565b60018060a01b031683526009602052604083209060ff801983541691151516179055565b503461023757806003193601126102375760206040517f000000000000000000000000000000000000000000069e10de76676d080000008152f35b5034610237578060031936011261023757602060405160128152f35b50346102375780600319360112610237576020600b54604051908152f35b50346102375760203660031901126102375760209060ff906040906001600160a01b036112486115b8565b168152600984522054166040519015158152f35b5034610237576060366003190112610237576112766115b8565b61127e6115d3565b6001600160a01b0382168084526001602081815260408087203388529091528520546044359492909182016112ba575b505061050a93506116be565b84821061132157801561130d5733156112f957604086869261050a9852600160205281812060018060a01b0333168252602052209103905538806112ae565b634a1406b160e11b86526004869052602486fd5b63e602df0560e01b86526004869052602486fd5b6064868684637dc7a0d960e11b835233600452602452604452fd5b50346102375780600319360112610237576020600254604051908152f35b5034610237578060031936011261023757602060ff600f5460a81c166040519015158152f35b5034610237578060031936011261023757602060ff600f5460a01c166040519015158152f35b5034610237576020366003190112610237576113c0611695565b600435600c5580f35b5034610237576020366003190112610237576113e3611695565b600435600d5580f35b5034610237576040366003190112610237576114066115b8565b602435903315611482576001600160a01b031691821561146e5760408291338152600160205281812085825260205220556040519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560203392a3602060405160018152f35b634a1406b160e11b81526004819052602490fd5b63e602df0560e01b83526004839052602483fd5b5034610237578060031936011261023757600f546040516001600160a01b039091168152602090f35b50346102375780600319360112610237576040519080600354908160011c91600181168015611572575b602084108114610810578386529081156107e95750600114611515576107888461077c81860382611641565b600381527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b939250905b8082106115585750909150810160200161077c8261076c565b91926001816020925483858801015201910190929161153f565b92607f16926114e9565b90503461049a57602036600319011261049a5760209160ff906040906001600160a01b036115a86115b8565b1681526007855220541615158152f35b600435906001600160a01b03821682036115ce57565b600080fd5b602435906001600160a01b03821682036115ce57565b91909160208152825180602083015260005b81811061161c575060409293506000838284010152601f8019910116010190565b80602080928701015160408286010152016115fb565b6024359081151582036115ce57565b90601f8019910116810190811067ffffffffffffffff82111761166357604052565b634e487b7160e01b600052604160045260246000fd5b156116815750565b6303dc98a160e51b60005260045260246000fd5b6005546001600160a01b031633036116a957565b63118cdaa760e01b6000523360045260246000fd5b6001600160a01b0381169392919060008515611ab5576001600160a01b038316938415611aa1578060ff600f5460b01c168015611a8d575b8015611a79575b15611a6257878352600660205260ff60408420541680611a4b575b80611a40575b156119d85750611744906103e8611737600a5483611bb8565b0490610dda823087611bd8565b935b808252600860205260ff60408320541615806119c3575b611966575b50600f549560ff8760a81c169081611956575b8161193f575b5061178f575b5061178d939450611bd8565b565b308152806020526040812054600c548110156117ac575b50611781565b60ff60a01b198716600160a01b17600f55604051966117cc606089611641565b6002885260208801906040368337306117e48a611ac9565b526117ee89611aec565b6001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28116909152308552600160209081526040808720939092168087529290528420546000191161192f575b50600f54600e546001600160a01b039182169342610258810193929092169183106106df57843b156106db57999290918594926040519b8c9563791ac94760e01b875260a4870191600488015287602488015260a060448801525180915260c486019390875b81811061190a575050508492869284926064840152608483015203925af19586156118fd5761178d95966118ed575b5050600f805460ff60a01b191690558493386117a6565b816118f791611641565b386118d6565b50604051903d90823e3d90fd5b82516001600160a01b031686528998508e9750602095860195909201916001016118a7565b6119399030611b1f565b38611841565b8252506009602052604081205460ff16153861177b565b905060ff8760a01c161590611775565b8082528160205261197b856040842054611afc565b600d5490828452836020528160408520549111611999575050611762565b60849350869060405193637570688960e01b85526004850152602484015260448301526064820152fd5b506005546001600160a01b031687141561175d565b858396929652600660205260ff60408420541680611a29575b80611a1e575b611a02575b50611746565b611a179195506103e8611737600b5483611bb8565b93386119fc565b50600b5415156119f7565b50878352600760205260ff604084205416156119f1565b50600a54151561171e565b50858352600760205260ff60408420541615611718565b604483878a631249b2ab60e21b8352600452602452fd5b506005546001600160a01b031686146116fd565b506005546001600160a01b031688146116f6565b63ec442f0560e01b82526004829052602482fd5b634b637e8f60e11b81526004819052602490fd5b805115611ad65760200190565b634e487b7160e01b600052603260045260246000fd5b805160011015611ad65760400190565b91908201809211611b0957565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0316908115611ba2576001600160a01b0316908115611b8c57806000526001602052604060002082600052602052604060002060001990557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560206040516000198152a3565b634a1406b160e11b600052600060045260246000fd5b63e602df0560e01b600052600060045260246000fd5b81810292918115918404141715611b0957565b91908203918211611b0957565b6001600160a01b03169081611c545760207fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91611c1785600254611afc565b6002555b6001600160a01b03169384611c3c5780600254036002555b604051908152a3565b84600052600082526040600020818154019055611c33565b816000526000602052604060002054838110611ca4577fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9184602092856000526000845203604060002055611c1b565b91905063391434e360e21b60005260045260245260445260646000fdfea264697066735822122037c63a6bbb22f265268ec305dff588f2a357029beef6fadbd4d7f8c1bc706e6264736f6c634300081a0033

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

0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000a65e24944e16eb6bef4257fdabcfdb2bddeb940600000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000004000000000000000000000000981e7fda63e58e94076ee4ae78bf9d2af830ded40000000000000000000000008c8f343aed881fe60243b057cabc4985c210d7f3000000000000000000000000de425503230a8aade13e91a3e75fc3641d8003b9000000000000000000000000f407b1f56ee7620d6c61d0f90bbd1fcc79eb272d0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a

-----Decoded View---------------
Arg [0] : _dexRouter (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [1] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [2] : _reservePool (address): 0xa65E24944E16EB6bef4257FdabcFdB2BDdEB9406
Arg [3] : payees (address[]): 0x981e7fdA63e58e94076EE4ae78bf9d2AF830dED4,0x8c8f343aeD881Fe60243b057caBc4985c210D7F3,0xde425503230A8aADE13E91a3E75fC3641d8003b9,0xf407B1F56EE7620d6c61D0f90bBD1fCC79eb272d
Arg [4] : shares (uint256[]): 10,10,10,10

-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [1] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [2] : 000000000000000000000000a65e24944e16eb6bef4257fdabcfdb2bddeb9406
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 000000000000000000000000981e7fda63e58e94076ee4ae78bf9d2af830ded4
Arg [7] : 0000000000000000000000008c8f343aed881fe60243b057cabc4985c210d7f3
Arg [8] : 000000000000000000000000de425503230a8aade13e91a3e75fc3641d8003b9
Arg [9] : 000000000000000000000000f407b1f56ee7620d6c61d0f90bbd1fcc79eb272d
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [11] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [12] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [13] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [14] : 000000000000000000000000000000000000000000000000000000000000000a


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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