ETH Price: $3,301.37 (-3.03%)
Gas: 6.09 Gwei
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer200859852024-06-13 22:50:59225 days ago1718319059IN
0x2487e276...cF09a8Bbd
0 ETH0.000561657.93486182
Transfer200354492024-06-06 21:24:11232 days ago1717709051IN
0x2487e276...cF09a8Bbd
0 ETH0.0008841314.55127267
Update Fee Colle...200349462024-06-06 19:42:59232 days ago1717702979IN
0x2487e276...cF09a8Bbd
0 ETH0.0010084230.34675099
Update Fee Colle...200300552024-06-06 3:18:11233 days ago1717643891IN
0x2487e276...cF09a8Bbd
0 ETH0.000329418.48353467
Approve200299972024-06-06 3:06:23233 days ago1717643183IN
0x2487e276...cF09a8Bbd
0 ETH0.00054511.66005783
Approve200298902024-06-06 2:44:59233 days ago1717641899IN
0x2487e276...cF09a8Bbd
0 ETH0.0007305215.62917247
Set Fee Configur...200298092024-06-06 2:28:47233 days ago1717640927IN
0x2487e276...cF09a8Bbd
0 ETH0.0003467110.21394811
Approve200296862024-06-06 2:04:11233 days ago1717639451IN
0x2487e276...cF09a8Bbd
0 ETH0.0009213519.71191541
Approve200296822024-06-06 2:03:23233 days ago1717639403IN
0x2487e276...cF09a8Bbd
0 ETH0.0006596314.13062196
Approve200296522024-06-06 1:57:23233 days ago1717639043IN
0x2487e276...cF09a8Bbd
0 ETH0.0008453118.08500291
Approve200296472024-06-06 1:56:23233 days ago1717638983IN
0x2487e276...cF09a8Bbd
0 ETH0.0006514713.9558806
Approve200296442024-06-06 1:55:47233 days ago1717638947IN
0x2487e276...cF09a8Bbd
0 ETH0.000845218.08265783
Approve200296382024-06-06 1:54:35233 days ago1717638875IN
0x2487e276...cF09a8Bbd
0 ETH0.0008200317.54429703
Approve200296362024-06-06 1:54:11233 days ago1717638851IN
0x2487e276...cF09a8Bbd
0 ETH0.0007962317.03495442
Approve200296342024-06-06 1:53:47233 days ago1717638827IN
0x2487e276...cF09a8Bbd
0 ETH0.0007508716.06462454
Approve200296212024-06-06 1:51:11233 days ago1717638671IN
0x2487e276...cF09a8Bbd
0 ETH0.0005635612.05724722
Transfer200296102024-06-06 1:48:59233 days ago1717638539IN
0x2487e276...cF09a8Bbd
0 ETH0.0008696612.25306822
Transfer200293932024-06-06 1:05:11233 days ago1717635911IN
0x2487e276...cF09a8Bbd
0 ETH0.0011673615.40570757
Approve200293702024-06-06 1:00:35233 days ago1717635635IN
0x2487e276...cF09a8Bbd
0 ETH0.0007203915.4125675
Transfer200293562024-06-06 0:57:47233 days ago1717635467IN
0x2487e276...cF09a8Bbd
0 ETH0.0012398214.0787957
Approve200293192024-06-06 0:50:23233 days ago1717635023IN
0x2487e276...cF09a8Bbd
0 ETH0.0008161217.46058289
Transfer200292412024-06-06 0:34:35233 days ago1717634075IN
0x2487e276...cF09a8Bbd
0 ETH0.0011463318.87783234
Transfer200292052024-06-06 0:27:23233 days ago1717633643IN
0x2487e276...cF09a8Bbd
0 ETH0.0012677419.35134038
Transfer200291852024-06-06 0:23:23233 days ago1717633403IN
0x2487e276...cF09a8Bbd
0 ETH0.0012590119.21457955
Transfer200291792024-06-06 0:22:11233 days ago1717633331IN
0x2487e276...cF09a8Bbd
0 ETH0.001230718.78601153
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
200289572024-06-05 23:37:35233 days ago1717630655
0x2487e276...cF09a8Bbd
0.04 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TRUMPTAXToken

Compiler Version
v0.8.25+commit.b61c2a91

Optimization Enabled:
Yes with 200 runs

Other Settings:
cancun EvmVersion, MIT license
File 1 of 14 : TRUMPTAXToken.sol
/*
  https://trumptaxcoin.com/
  https://t.me/TrumpTax
  https://x.com/trumptaxcoin
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.20;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {ERC20, ERC20Base} from "../libraries/ERC20Base.sol";
import {TaxableToken, TaxDistributor} from "../libraries/TaxableToken.sol";

/**
 * @dev ERC20Token implementation with Tax capabilities
 */
contract TRUMPTAXToken is ERC20Base, Ownable, TaxableToken {
    constructor(
        uint256 initialSupply_,
        address feeReceiver_,
        address swapRouter_,
        FeeConfiguration memory feeConfiguration_,
        address[] memory collectors_,
        uint256[] memory shares_
    )
        payable
        ERC20Base("TRUMPTAX", "TRUMPTAX", 18)
        Ownable(_msgSender())
        TaxableToken(true, initialSupply_ / 10000, swapRouter_, feeConfiguration_)
        TaxDistributor(collectors_, shares_)
    {
        require(initialSupply_ > 0, "Initial supply cannot be zero");
        payable(feeReceiver_).transfer(msg.value);
        _mint(_msgSender(), initialSupply_);
    }

    function _update(address from, address to, uint256 amount) internal virtual override(ERC20, TaxableToken) {
        super._update(from, to, amount);
    }

    /**
     * @dev Enable/Disable autoProcessFees on transfer
     * only callable by `owner()`
     */
    function setAutoprocessFees(bool autoProcess) external override onlyOwner {
        require(autoProcessFees != autoProcess, "Already set");
        autoProcessFees = autoProcess;
    }

    /**
     * @dev add a fee collector
     * only callable by `owner()`
     */
    function addFeeCollector(address account, uint256 share) external override onlyOwner {
        _addFeeCollector(account, share);
    }

    /**
     * @dev add/remove a LP
     * only callable by `owner()`
     */
    function setIsLpPool(address pairAddress, bool isLp) external override onlyOwner {
        _setIsLpPool(pairAddress, isLp);
    }

    /**
     * @dev add/remove an address to the tax exclusion list
     * only callable by `owner()`
     */
    function setIsExcludedFromFees(address account, bool excluded) external override onlyOwner {
        _setIsExcludedFromFees(account, excluded);
    }

    /**
     * @dev manually distribute fees to collectors
     * only callable by `owner()`
     */
    function distributeFees(uint256 amount, bool inToken) external override onlyOwner {
        if (inToken) {
            require(balanceOf(address(this)) >= amount, "Not enough balance");
        } else {
            require(address(this).balance >= amount, "Not enough balance");
        }
        _distributeFees(amount, inToken);
    }

    /**
     * @dev process fees
     * only callable by `owner()`
     */
    function processFees(uint256 amount, uint256 minAmountOut) external override onlyOwner {
        require(amount <= balanceOf(address(this)), "Amount too high");
        _processFees(amount, minAmountOut);
    }

    /**
     * @dev remove a fee collector
     * only callable by `owner()`
     */
    function removeFeeCollector(address account) external override onlyOwner {
        _removeFeeCollector(account);
    }

    /**
     * @dev set the liquidity owner
     * only callable by `owner()`
     */
    function setLiquidityOwner(address newOwner) external override onlyOwner {
        liquidityOwner = newOwner;
    }

    /**
     * @dev set the number of tokens to swap
     * only callable by `owner()`
     */
    function setNumTokensToSwap(uint256 amount) external override onlyOwner {
        numTokensToSwap = amount;
    }

    /**
     * @dev update a fee collector share
     * only callable by `owner()`
     */
    function updateFeeCollectorShare(address account, uint256 share) external override onlyOwner {
        _updateFeeCollectorShare(account, share);
    }

    /**
     * @dev update the fee configurations
     * only callable by `owner()`
     */
    function setFeeConfiguration(FeeConfiguration calldata configuration) external override onlyOwner {
        _setFeeConfiguration(configuration);
    }

    /**
     * @dev update the swap router
     * only callable by `owner()`
     */
    function setSwapRouter(address newRouter) external override onlyOwner {
        _setSwapRouter(newRouter);
    }
}
// 0x312f313731373633302f4f2f54

File 2 of 14 : 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 14 : 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 14 : 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 14 : 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 6 of 14 : 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 7 of 14 : 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 8 of 14 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.

pragma solidity ^0.8.20;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```solidity
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
 * unusable.
 * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
 * array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position is the index of the value in the `values` array plus 1.
        // Position 0 is used to mean a value is not in the set.
        mapping(bytes32 value => uint256) _positions;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._positions[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We cache the value's position to prevent multiple reads from the same storage slot
        uint256 position = set._positions[value];

        if (position != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 valueIndex = position - 1;
            uint256 lastIndex = set._values.length - 1;

            if (valueIndex != lastIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the lastValue to the index where the value to delete is
                set._values[valueIndex] = lastValue;
                // Update the tracked position of the lastValue (that was just moved)
                set._positions[lastValue] = position;
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the tracked position for the deleted slot
            delete set._positions[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._positions[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        bytes32[] memory store = _values(set._inner);
        bytes32[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

File 9 of 14 : IUniswapV2Factory.sol
pragma solidity >=0.5.0;

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

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

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

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

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

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

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

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

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

File 11 of 14 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

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

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

File 12 of 14 : ERC20Base.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.20;

import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";

abstract contract ERC20Base is ERC20 {
    uint8 private immutable _decimals;

    constructor(string memory name_, string memory symbol_, uint8 decimals_) ERC20(name_, symbol_) {
        _decimals = decimals_;
    }
    /**
     * @dev Returns the number of decimals of the token
     */
    function decimals() public view override returns (uint8) {
        return _decimals;
    }
}

File 13 of 14 : TaxDistributor.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.20;

import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import {ERC20Base} from "./ERC20Base.sol";

abstract contract TaxDistributor is ERC20Base {
    using EnumerableSet for EnumerableSet.AddressSet;

    EnumerableSet.AddressSet private _collectors;
    mapping(address => uint256) private _shares;
    uint256 public totalFeeCollectorsShares;

    event FeeCollectorAdded(address indexed account, uint256 share);
    event FeeCollectorUpdated(address indexed account, uint256 oldShare, uint256 newShare);
    event FeeCollectorRemoved(address indexed account);
    event FeeCollected(address indexed receiver, uint256 amount);

    constructor(address[] memory collectors_, uint256[] memory shares_) {
        require(collectors_.length == shares_.length, "Invalid fee collectors");
        for (uint256 i = 0; i < collectors_.length; i++) {
            _addFeeCollector(collectors_[i], shares_[i]);
        }
    }

    function isFeeCollector(address account) public view returns (bool) {
        return _collectors.contains(account);
    }

    function feeCollectorShare(address account) public view returns (uint256) {
        return _shares[account];
    }

    function feeCollectors(uint256 startIndex, uint256 count) external view returns (address[] memory) {
        uint256 length = count;
        if (length > _collectors.length() - startIndex) {
            length = _collectors.length() - startIndex;
        }

        address[] memory values = new address[](length);
        for (uint256 i = 0; i < length; i++) {
            values[i] = _collectors.at(startIndex + i);
        }

        return values;
    }

    function _addFeeCollector(address account, uint256 share) internal {
        require(!_collectors.contains(account), "Already fee collector");
        require(share > 0, "Invalid share");

        _collectors.add(account);
        _shares[account] = share;
        totalFeeCollectorsShares += share;

        emit FeeCollectorAdded(account, share);
    }

    function _removeFeeCollector(address account) internal {
        require(_collectors.contains(account), "Not fee collector");
        _collectors.remove(account);
        totalFeeCollectorsShares -= _shares[account];
        delete _shares[account];

        emit FeeCollectorRemoved(account);
    }

    function _updateFeeCollectorShare(address account, uint256 share) internal {
        require(_collectors.contains(account), "Not fee collector");
        require(share > 0, "Invalid share");

        uint256 oldShare = _shares[account];
        totalFeeCollectorsShares -= oldShare;

        _shares[account] = share;
        totalFeeCollectorsShares += share;

        emit FeeCollectorUpdated(account, oldShare, share);
    }

    function _distributeFees(uint256 amount, bool inToken) internal returns (bool) {
        if (amount == 0) return false;
        if (totalFeeCollectorsShares == 0) return false;

        uint256 distributed = 0;
        uint256 len = _collectors.length();
        for (uint256 i = 0; i < len; i++) {
            address collector = _collectors.at(i);
            uint256 share = i == len - 1
                ? amount - distributed
                : (amount * _shares[collector]) / totalFeeCollectorsShares;

            if (inToken) {
                _transfer(address(this), collector, share);
            } else {
                payable(collector).transfer(share);
            }
            emit FeeCollected(collector, share);

            distributed += share;
        }

        return true;
    }

    function addFeeCollector(address account, uint256 share) external virtual;

    function removeFeeCollector(address account) external virtual;

    function updateFeeCollectorShare(address account, uint256 share) external virtual;

    function distributeFees(uint256 amount, bool inToken) external virtual;
}

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

pragma solidity ^0.8.20;

import {IUniswapV2Factory} from "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import {IUniswapV2Router02} from "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import {ERC20Base} from "./ERC20Base.sol";
import {TaxDistributor} from "./TaxDistributor.sol";

/*
 * TaxableToken: Add a tax on buy, sell or transfer
 */
abstract contract TaxableToken is ERC20Base, TaxDistributor {
    struct FeeConfiguration {
        bool feesInToken; // if set to true, collectors will get tokens, if false collector the fee will be swapped for the native currency
        uint16 buyFees; // fees applied during buys, from 0 to 2000 (ie, 100 = 1%)
        uint16 sellFees; // fees applied during sells, from 0 to 2000 (ie, 100 = 1%)
        uint16 transferFees; // fees applied during transfers, from 0 to 2000 (ie, 100 = 1%)
        uint16 burnFeeRatio; // from 0 to 10000 (ie 8000 = 80% of the fee collected are burned)
        uint16 liquidityFeeRatio; // from 0 to 10000 (ie 8000 = 80% of the fee collected are added back to liquidity)
        uint16 collectorsFeeRatio; // from 0 to 10000 (ie 8000 = 80% of the fee collected are sent to fee collectors)
    }

    address public constant BURN_ADDRESS = address(0x000000000000000000000000000000000000dEaD);
    uint16 public constant MAX_FEE = 2000; // max 20% fees
    uint16 public constant FEE_PRECISION = 10000;

    // swap config
    IUniswapV2Router02 public swapRouter;
    address public swapPair;
    address public liquidityOwner;

    // fees
    bool private _processingFees;
    bool public autoProcessFees;
    uint256 public numTokensToSwap; // amount of tokens to collect before processing fees (default to 0.05% of supply)
    FeeConfiguration public feeConfiguration;

    mapping(address => bool) private _excludedFromFees;
    mapping(address => bool) private _lpPools;

    event FeeConfigurationUpdated(FeeConfiguration configuration);
    event SwapRouterUpdated(address indexed router, address indexed pair);
    event ExcludedFromFees(address indexed account, bool excluded);
    event SetLpPool(address indexed pairAddress, bool isLp);

    modifier lockTheSwap() {
        _processingFees = true;
        _;
        _processingFees = false;
    }

    constructor(
        bool autoProcessFees_,
        uint256 numTokensToSwap_,
        address swapRouter_,
        FeeConfiguration memory feeConfiguration_
    ) {
        numTokensToSwap = numTokensToSwap_;
        autoProcessFees = autoProcessFees_;

        liquidityOwner = _msgSender();

        // Create a uniswap pair for this new token
        swapRouter = IUniswapV2Router02(swapRouter_);
        swapPair = _pairFor(swapRouter.factory(), address(this), swapRouter.WETH());
        _lpPools[swapPair] = true;

        // configure addresses excluded from fee
        _setIsExcludedFromFees(address(0), true);
        _setIsExcludedFromFees(address(this), true);
        _setIsExcludedFromFees(_msgSender(), true);

        // configure fees
        _setFeeConfiguration(feeConfiguration_);
    }

    // receive ETH when swaping
    receive() external payable {}

    function isExcludedFromFees(address account) public view returns (bool) {
        return _excludedFromFees[account];
    }

    function _setIsExcludedFromFees(address account, bool excluded) internal {
        require(_excludedFromFees[account] != excluded, "Already set");
        _excludedFromFees[account] = excluded;
        emit ExcludedFromFees(account, excluded);
    }

    function _setIsLpPool(address pairAddress, bool isLp) internal {
        require(_lpPools[pairAddress] != isLp, "Already set");
        _lpPools[pairAddress] = isLp;
        emit SetLpPool(pairAddress, isLp);
    }

    function isLpPool(address pairAddress) public view returns (bool) {
        return _lpPools[pairAddress];
    }

    function _setSwapRouter(address _newRouter) internal {
        require(_newRouter != address(0), "Invalid router");

        swapRouter = IUniswapV2Router02(_newRouter);
        IUniswapV2Factory factory = IUniswapV2Factory(swapRouter.factory());
        require(address(factory) != address(0), "Invalid factory");

        address weth = swapRouter.WETH();
        swapPair = factory.getPair(address(this), weth);
        if (swapPair == address(0)) {
            swapPair = factory.createPair(address(this), weth);
        }

        require(swapPair != address(0), "Invalid pair address.");
        emit SwapRouterUpdated(address(swapRouter), swapPair);
    }

    function _setFeeConfiguration(FeeConfiguration memory configuration) internal {
        require(configuration.buyFees <= MAX_FEE, "Invalid buy fee");
        require(configuration.sellFees <= MAX_FEE, "Invalid sell fee");
        require(configuration.transferFees <= MAX_FEE, "Invalid transfer fee");

        uint16 totalShare = configuration.burnFeeRatio +
            configuration.liquidityFeeRatio +
            configuration.collectorsFeeRatio;
        require(totalShare == 0 || totalShare == FEE_PRECISION, "Invalid fee share");

        feeConfiguration = configuration;
        emit FeeConfigurationUpdated(configuration);
    }

    function _processFees(uint256 tokenAmount, uint256 minAmountOut) internal lockTheSwap {
        uint256 contractTokenBalance = balanceOf(address(this));
        if (contractTokenBalance >= tokenAmount) {
            uint256 liquidityAmount = (tokenAmount * feeConfiguration.liquidityFeeRatio) /
                (FEE_PRECISION - feeConfiguration.burnFeeRatio);
            uint256 liquidityTokens = liquidityAmount / 2;

            uint256 collectorsAmount = tokenAmount - liquidityAmount;
            uint256 liquifyAmount = liquidityAmount - liquidityTokens;

            if (!feeConfiguration.feesInToken) {
                liquifyAmount += collectorsAmount;
            }

            // swap tokens
            if (liquifyAmount > 0) {
                if (balanceOf(swapPair) == 0) {
                    // do not swap before the pair has liquidity
                    return;
                }

                // capture the contract's current balance.
                uint256 initialBalance = address(this).balance;

                _swapTokensForEth(liquifyAmount, minAmountOut);

                // how much did we just swap into?
                uint256 swapBalance = address(this).balance - initialBalance;

                // add liquidity
                uint256 liquidityETH = (swapBalance * liquidityTokens) / liquifyAmount;
                if (liquidityETH > 0) {
                    _addLiquidity(liquidityTokens, liquidityETH);
                }
            }

            if (feeConfiguration.feesInToken) {
                // send tokens to fee collectors
                _distributeFees(collectorsAmount, true);
            } else {
                // send remaining ETH to fee collectors
                _distributeFees(address(this).balance, false);
            }
        }
    }

    /// @dev Swap tokens for eth
    function _swapTokensForEth(uint256 tokenAmount, uint256 minAmountOut) private {
        // generate the swap pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = swapRouter.WETH();

        _approve(address(this), address(swapRouter), tokenAmount);

        // make the swap
        swapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            minAmountOut,
            path,
            address(this),
            block.timestamp
        );
    }

    /// @dev Add liquidity
    function _addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(swapRouter), tokenAmount);

        // add the liquidity
        swapRouter.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            liquidityOwner,
            block.timestamp
        );
    }

    // calculates the CREATE2 address for a pair without making any external calls
    function _pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) {
        (address token0, address token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        pair = address(
            uint160(
                uint(
                    keccak256(
                        abi.encodePacked(
                            hex"ff",
                            factory,
                            keccak256(abi.encodePacked(token0, token1)),
                            hex"96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f" // init code hash
                        )
                    )
                )
            )
        );
    }

    function _update(address from, address to, uint256 amount) internal virtual override {
        require(amount > 0, "Transfer <= 0");

        uint256 taxFee = 0;
        bool processFee = !_processingFees && autoProcessFees;

        bool fromLP = isLpPool(from);
        bool toLP = isLpPool(to);

        if (!_processingFees) {
            bool fromExcluded = isExcludedFromFees(from);
            bool toExcluded = isExcludedFromFees(to);

            if (fromLP && !toLP && !toExcluded && to != address(swapRouter)) {
                // buy fee
                taxFee = feeConfiguration.buyFees;
            } else if (toLP && !fromExcluded && !toExcluded) {
                // sell fee
                taxFee = feeConfiguration.sellFees;
            } else if (!fromLP && !toLP && from != address(swapRouter) && !fromExcluded) {
                // transfer fee
                taxFee = feeConfiguration.transferFees;
            }
        }

        if (taxFee > 0) {
            uint256 taxAmount = (amount * taxFee) / FEE_PRECISION;
            uint256 sendAmount = amount - taxAmount;
            uint256 burnAmount = (taxAmount * feeConfiguration.burnFeeRatio) / FEE_PRECISION;

            if (burnAmount > 0) {
                taxAmount -= burnAmount;
                super._update(from, BURN_ADDRESS, burnAmount);
            }

            if (taxAmount > 0) {
                super._update(from, address(this), taxAmount);
            }

            if (sendAmount > 0) {
                super._update(from, to, sendAmount);
            }
        } else {
            super._update(from, to, amount);
        }

        // process fees
        if (processFee && taxFee > 0 && toLP) {
            uint256 contractTokenBalance = balanceOf(address(this));
            if (contractTokenBalance >= numTokensToSwap) {
                _processFees(contractTokenBalance, 0);
            }
        }
    }

    function setAutoprocessFees(bool autoProcess) external virtual;

    function setIsLpPool(address pairAddress, bool isLp) external virtual;

    function setIsExcludedFromFees(address account, bool excluded) external virtual;

    function processFees(uint256 amount, uint256 minAmountOut) external virtual;

    function setLiquidityOwner(address newOwner) external virtual;

    function setNumTokensToSwap(uint256 amount) external virtual;

    function setFeeConfiguration(FeeConfiguration calldata configuration) external virtual;

    function setSwapRouter(address newRouter) external virtual;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"initialSupply_","type":"uint256"},{"internalType":"address","name":"feeReceiver_","type":"address"},{"internalType":"address","name":"swapRouter_","type":"address"},{"components":[{"internalType":"bool","name":"feesInToken","type":"bool"},{"internalType":"uint16","name":"buyFees","type":"uint16"},{"internalType":"uint16","name":"sellFees","type":"uint16"},{"internalType":"uint16","name":"transferFees","type":"uint16"},{"internalType":"uint16","name":"burnFeeRatio","type":"uint16"},{"internalType":"uint16","name":"liquidityFeeRatio","type":"uint16"},{"internalType":"uint16","name":"collectorsFeeRatio","type":"uint16"}],"internalType":"struct TaxableToken.FeeConfiguration","name":"feeConfiguration_","type":"tuple"},{"internalType":"address[]","name":"collectors_","type":"address[]"},{"internalType":"uint256[]","name":"shares_","type":"uint256[]"}],"stateMutability":"payable","type":"constructor"},{"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":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","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":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"excluded","type":"bool"}],"name":"ExcludedFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeeCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"share","type":"uint256"}],"name":"FeeCollectorAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"FeeCollectorRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"oldShare","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newShare","type":"uint256"}],"name":"FeeCollectorUpdated","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"bool","name":"feesInToken","type":"bool"},{"internalType":"uint16","name":"buyFees","type":"uint16"},{"internalType":"uint16","name":"sellFees","type":"uint16"},{"internalType":"uint16","name":"transferFees","type":"uint16"},{"internalType":"uint16","name":"burnFeeRatio","type":"uint16"},{"internalType":"uint16","name":"liquidityFeeRatio","type":"uint16"},{"internalType":"uint16","name":"collectorsFeeRatio","type":"uint16"}],"indexed":false,"internalType":"struct TaxableToken.FeeConfiguration","name":"configuration","type":"tuple"}],"name":"FeeConfigurationUpdated","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":"pairAddress","type":"address"},{"indexed":false,"internalType":"bool","name":"isLp","type":"bool"}],"name":"SetLpPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"router","type":"address"},{"indexed":true,"internalType":"address","name":"pair","type":"address"}],"name":"SwapRouterUpdated","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":"BURN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_PRECISION","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FEE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"share","type":"uint256"}],"name":"addFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"autoProcessFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"inToken","type":"bool"}],"name":"distributeFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"feeCollectorShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"startIndex","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"feeCollectors","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeConfiguration","outputs":[{"internalType":"bool","name":"feesInToken","type":"bool"},{"internalType":"uint16","name":"buyFees","type":"uint16"},{"internalType":"uint16","name":"sellFees","type":"uint16"},{"internalType":"uint16","name":"transferFees","type":"uint16"},{"internalType":"uint16","name":"burnFeeRatio","type":"uint16"},{"internalType":"uint16","name":"liquidityFeeRatio","type":"uint16"},{"internalType":"uint16","name":"collectorsFeeRatio","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isFeeCollector","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pairAddress","type":"address"}],"name":"isLpPool","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numTokensToSwap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"}],"name":"processFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"autoProcess","type":"bool"}],"name":"setAutoprocessFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bool","name":"feesInToken","type":"bool"},{"internalType":"uint16","name":"buyFees","type":"uint16"},{"internalType":"uint16","name":"sellFees","type":"uint16"},{"internalType":"uint16","name":"transferFees","type":"uint16"},{"internalType":"uint16","name":"burnFeeRatio","type":"uint16"},{"internalType":"uint16","name":"liquidityFeeRatio","type":"uint16"},{"internalType":"uint16","name":"collectorsFeeRatio","type":"uint16"}],"internalType":"struct TaxableToken.FeeConfiguration","name":"configuration","type":"tuple"}],"name":"setFeeConfiguration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"setIsExcludedFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pairAddress","type":"address"},{"internalType":"bool","name":"isLp","type":"bool"}],"name":"setIsLpPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setLiquidityOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setNumTokensToSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRouter","type":"address"}],"name":"setSwapRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeeCollectorsShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"share","type":"uint256"}],"name":"updateFeeCollectorShare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040526040516141bf3803806141bf833981016040819052610022916115d4565b60016100306127108861170e565b85858585336040805180820182526008808252670a8a4aa9aa0a882b60c31b60208084018290528451808601909552918452908301529060128282600361007783826117a9565b50600461008482826117a9565b50505060ff1660805250506001600160a01b0381166100bd57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6100c681610390565b5080518251146101185760405162461bcd60e51b815260206004820152601660248201527f496e76616c69642066656520636f6c6c6563746f72730000000000000000000060448201526064016100b4565b5f5b825181101561016d5761016583828151811061013857610138611868565b602002602001015183838151811061015257610152611868565b60200260200101516103e160201b60201c565b60010161011a565b505050600d839055600c805460ff60a81b1916600160a81b861515021790556101933390565b600c80546001600160a01b039283166001600160a01b031991821617909155600a805492851692909116821790556040805163c45a015560e01b81529051610292929163c45a01559160048083019260209291908290030181865afa1580156101fe573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610222919061187c565b600a54604080516315ab88c960e31b8152905130926001600160a01b03169163ad5c46489160048083019260209291908290030181865afa158015610269573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061028d919061187c565b6104f8565b600b80546001600160a01b0319166001600160a01b039290921691821790555f908152601060205260408120805460ff191660019081179091556102d691906105f6565b6102e13060016105f6565b6102ec3360016105f6565b6102f5816106aa565b505050505f86116103485760405162461bcd60e51b815260206004820152601d60248201527f496e697469616c20737570706c792063616e6e6f74206265207a65726f00000060448201526064016100b4565b6040516001600160a01b038616903480156108fc02915f818181858888f1935050505015801561037a573d5f803e3d5ffd5b506103853387610990565b5050505050506119ab565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6103ec6006836109c8565b156104395760405162461bcd60e51b815260206004820152601560248201527f416c72656164792066656520636f6c6c6563746f72000000000000000000000060448201526064016100b4565b5f81116104785760405162461bcd60e51b815260206004820152600d60248201526c496e76616c696420736861726560981b60448201526064016100b4565b6104836006836109ee565b506001600160a01b0382165f908152600860205260408120829055600980548392906104b0908490611895565b90915550506040518181526001600160a01b038316907f918584c21fe4a093f5014c0dabaed3e43b642781e27984aef122cae8245fbb23906020015b60405180910390a25050565b5f805f836001600160a01b0316856001600160a01b03161061051b57838561051e565b84845b6040516001600160601b0319606084811b8216602084015283901b16603482015291935091508690604801604051602081830303815290604052805190602001206040516020016105d49291907fff00000000000000000000000000000000000000000000000000000000000000815260609290921b6001600160601b031916600183015260158201527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f603582015260550190565b60408051601f1981840301815291905280516020909101209695505050505050565b6001600160a01b0382165f908152600f602052604090205481151560ff9091161515036106535760405162461bcd60e51b815260206004820152600b60248201526a105b1c9958591e481cd95d60aa1b60448201526064016100b4565b6001600160a01b0382165f818152600f6020908152604091829020805460ff191685151590811790915591519182527f3499bfcf9673677ba552f3fe2ea274ec7e6246da31c3c87e115b45a9b0db2efb91016104ec565b6107d061ffff16816020015161ffff1611156106fa5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206275792066656560881b60448201526064016100b4565b6107d061ffff16816040015161ffff16111561074b5760405162461bcd60e51b815260206004820152601060248201526f496e76616c69642073656c6c2066656560801b60448201526064016100b4565b6107d061ffff16816060015161ffff1611156107a95760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964207472616e736665722066656500000000000000000000000060448201526064016100b4565b5f8160c001518260a0015183608001516107c391906118a8565b6107cd91906118a8565b905061ffff811615806107e5575061ffff8116612710145b6108255760405162461bcd60e51b8152602060048201526011602482015270496e76616c69642066656520736861726560781b60448201526064016100b4565b8151600e805460208501516040808701516060880151608089015160a08a015160c08b015161ffff9081166b0100000000000000000000000261ffff60581b1992821669010000000000000000000261ffff60481b19948316670100000000000000029490941663ffffffff60381b19958316650100000000000261ffff60281b199784166301000000029790971666ffffffff00000019939099166101000262ffff00199c15159c909c1662ffffff19909a16999099179a909a1716959095179290921716939093179290921716929092179055517ff34b49a91d91598b7774795175736ebf4db4fa5a4edf72772cf50fb27c135efd906109849084905f60e082019050825115158252602083015161ffff80821660208501528060408601511660408501528060608601511660608501528060808601511660808501528060a08601511660a08501528060c08601511660c0850152505092915050565b60405180910390a15050565b6001600160a01b0382166109b95760405163ec442f0560e01b81525f60048201526024016100b4565b6109c45f8383610a02565b5050565b6001600160a01b0381165f90815260018301602052604081205415155b90505b92915050565b5f6109e5836001600160a01b038416610a12565b610a0d838383610a5e565b505050565b5f818152600183016020526040812054610a5757508154600181810184555f8481526020808220909301849055845484825282860190935260409020919091556109e8565b505f6109e8565b5f8111610a9d5760405162461bcd60e51b815260206004820152600d60248201526c05472616e73666572203c3d203609c1b60448201526064016100b4565b600c545f908190600160a01b900460ff16158015610ac45750600c54600160a81b900460ff165b90505f610ae8866001600160a01b03165f9081526010602052604090205460ff1690565b90505f610b0c866001600160a01b03165f9081526010602052604090205460ff1690565b600c54909150600160a01b900460ff16610c0a576001600160a01b038781165f908152600f602052604080822054928916825290205460ff9182169116838015610b54575082155b8015610b5e575080155b8015610b785750600a546001600160a01b03898116911614155b15610b9057600e54610100900461ffff169550610c07565b828015610b9b575081155b8015610ba5575080155b15610bbf57600e546301000000900461ffff169550610c07565b83158015610bcb575082155b8015610be55750600a546001600160a01b038a8116911614155b8015610bef575081155b15610c0757600e5465010000000000900461ffff1695505b50505b8315610caf575f612710610c1e86886118ca565b610c28919061170e565b90505f610c3582886118e1565b600e549091505f9061271090610c5a90670100000000000000900461ffff16856118ca565b610c64919061170e565b90508015610c8557610c7681846118e1565b9250610c858a61dead83610d01565b8215610c9657610c968a3085610d01565b8115610ca757610ca78a8a84610d01565b505050610cba565b610cba878787610d01565b828015610cc657505f84115b8015610ccf5750805b15610cf857305f90815260208190526040902054600d548110610cf657610cf6815f610e27565b505b50505050505050565b6001600160a01b038316610d2b578060025f828254610d209190611895565b90915550610d9b9050565b6001600160a01b0383165f9081526020819052604090205481811015610d7d5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016100b4565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610db757600280548290039055610dd5565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610e1a91815260200190565b60405180910390a3505050565b600c805460ff60a01b1916600160a01b179055305f908152602081905260408120549050828110610f8157600e545f90610e7290670100000000000000900461ffff166127106118f4565b600e5461ffff91821691610e94916901000000000000000000900416866118ca565b610e9e919061170e565b90505f610eac60028361170e565b90505f610eb983876118e1565b90505f610ec683856118e1565b600e5490915060ff16610ee057610edd8282611895565b90505b8015610f5457600b546001600160a01b03165f908152602081905260409020545f03610f10575050505050610f83565b47610f1b8288610f94565b5f610f2682476118e1565b90505f83610f3487846118ca565b610f3e919061170e565b90508015610f5057610f5086826110dc565b5050505b600e5460ff1615610f7057610f6a82600161118d565b50610f7c565b610f7a475f61118d565b505b505050505b505b5050600c805460ff60a01b19169055565b6040805160028082526060820183525f9260208301908036833701905050905030815f81518110610fc757610fc7611868565b6001600160a01b03928316602091820292909201810191909152600a54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa15801561101e573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611042919061187c565b8160018151811061105557611055611868565b6001600160a01b039283166020918202929092010152600a5461107b91309116856112d4565b600a5460405163791ac94760e01b81526001600160a01b039091169063791ac947906110b3908690869086903090429060040161190f565b5f604051808303815f87803b1580156110ca575f80fd5b505af1158015610cf8573d5f803e3d5ffd5b600a546110f49030906001600160a01b0316846112d4565b600a54600c5460405163f305d71960e01b8152306004820152602481018590525f6044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c40160606040518083038185885af1158015611161573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906111869190611980565b5050505050565b5f825f0361119c57505f6109e8565b6009545f036111ac57505f6109e8565b5f806111b860066112e1565b90505f5b818110156112c8575f6111d06006836112ea565b90505f6111de6001856118e1565b8314611218576009546001600160a01b0383165f90815260086020526040902054611209908a6118ca565b611213919061170e565b611222565b61122285896118e1565b9050861561123a576112353083836112f5565b61126f565b6040516001600160a01b0383169082156108fc029083905f818181858888f1935050505015801561126d573d5f803e3d5ffd5b505b816001600160a01b03167f06c5efeff5c320943d265dc4e5f1af95ad523555ce0c1957e367dda5514572df826040516112aa91815260200190565b60405180910390a26112bc8186611895565b945050506001016111bc565b50600195945050505050565b610a0d8383836001611352565b5f6109e8825490565b5f6109e58383611425565b6001600160a01b03831661131e57604051634b637e8f60e11b81525f60048201526024016100b4565b6001600160a01b0382166113475760405163ec442f0560e01b81525f60048201526024016100b4565b610a0d838383610a02565b6001600160a01b03841661137b5760405163e602df0560e01b81525f60048201526024016100b4565b6001600160a01b0383166113a457604051634a1406b160e11b81525f60048201526024016100b4565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561141f57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161141691815260200190565b60405180910390a35b50505050565b5f825f01828154811061143a5761143a611868565b905f5260205f200154905092915050565b80516001600160a01b0381168114611461575f80fd5b919050565b634e487b7160e01b5f52604160045260245ffd5b60405160e081016001600160401b038111828210171561149c5761149c611466565b60405290565b604051601f8201601f191681016001600160401b03811182821017156114ca576114ca611466565b604052919050565b805161ffff81168114611461575f80fd5b5f6001600160401b038211156114fb576114fb611466565b5060051b60200190565b5f82601f830112611514575f80fd5b81516020611529611524836114e3565b6114a2565b8083825260208201915060208460051b87010193508684111561154a575f80fd5b602086015b8481101561156d576115608161144b565b835291830191830161154f565b509695505050505050565b5f82601f830112611587575f80fd5b81516020611597611524836114e3565b8083825260208201915060208460051b8701019350868411156115b8575f80fd5b602086015b8481101561156d57805183529183019183016115bd565b5f805f805f808688036101808112156115eb575f80fd5b875196506115fb6020890161144b565b95506116096040890161144b565b945060e0605f198201121561161c575f80fd5b5061162561147a565b60608801518015158114611637575f80fd5b8152611645608089016114d2565b602082015261165660a089016114d2565b604082015261166760c089016114d2565b606082015261167860e089016114d2565b608082015261168a61010089016114d2565b60a082015261169c61012089016114d2565b60c08201526101408801519093506001600160401b03808211156116be575f80fd5b6116ca8a838b01611505565b93506101608901519150808211156116e0575f80fd5b506116ed89828a01611578565b9150509295509295509295565b634e487b7160e01b5f52601160045260245ffd5b5f8261172857634e487b7160e01b5f52601260045260245ffd5b500490565b600181811c9082168061174157607f821691505b60208210810361175f57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a0d57805f5260205f20601f840160051c8101602085101561178a5750805b601f840160051c820191505b81811015611186575f8155600101611796565b81516001600160401b038111156117c2576117c2611466565b6117d6816117d0845461172d565b84611765565b602080601f831160018114611809575f84156117f25750858301515b5f19600386901b1c1916600185901b178555611860565b5f85815260208120601f198616915b8281101561183757888601518255948401946001909101908401611818565b508582101561185457878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b634e487b7160e01b5f52603260045260245ffd5b5f6020828403121561188c575f80fd5b6109e58261144b565b808201808211156109e8576109e86116fa565b61ffff8181168382160190808211156118c3576118c36116fa565b5092915050565b80820281158282048414176109e8576109e86116fa565b818103818111156109e8576109e86116fa565b61ffff8281168282160390808211156118c3576118c36116fa565b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b8181101561195f5784516001600160a01b03168352938301939183019160010161193a565b50506001600160a01b03969096166060850152505050608001529392505050565b5f805f60608486031215611992575f80fd5b8351925060208401519150604084015190509250925092565b6080516127fc6119c35f395f6103b601526127fc5ff3fe60806040526004361061022b575f3560e01c806370a0823111610129578063adf18693116100a8578063e55096b01161006d578063e55096b01461078b578063e63a391f146107aa578063f2fde38b146107bf578063f4232d25146107de578063fccc2813146107fd575f80fd5b8063adf18693146106cc578063b3c6e9ee146106eb578063bc063e1a14610700578063c31c9c0714610728578063dd62ed3e14610747575f80fd5b806394b8a703116100ee57806394b8a703146105ab57806395d89b41146105df57806398c47e8c146105f35780639b61f1d01461068d578063a9059cbb146106ad575f80fd5b806370a0823114610508578063715018a61461053c57806372bc5583146105505780637f5bbb2c1461056f5780638da5cb5b1461058e575f80fd5b80632b46c6a4116101b5578063412736571161017a578063412736571461043d5780634569c4451461045c578063490e51471461047b5780634fbee1931461049a5780636f741f2a146104d1575f80fd5b80632b46c6a414610377578063313ce567146103a35780633502628a146103e05780633935ebf9146103ff5780633b90b9bf1461041e575f80fd5b80630f569dad116101fb5780630f569dad146102cf57806318160ddd146102ee5780631fa67b4d1461030257806323b872dd1461032157806326991cc814610340575f80fd5b806301a6c43b1461023657806306fdde031461025e578063095ea7b31461027f5780630a4e42ef146102ae575f80fd5b3661023257005b5f80fd5b348015610241575f80fd5b5061024b600d5481565b6040519081526020015b60405180910390f35b348015610269575f80fd5b50610272610812565b604051610255919061231b565b34801561028a575f80fd5b5061029e610299366004612364565b6108a2565b6040519015158152602001610255565b3480156102b9575f80fd5b506102cd6102c836600461238e565b6108bb565b005b3480156102da575f80fd5b506102cd6102e93660046123ae565b610926565b3480156102f9575f80fd5b5060025461024b565b34801561030d575f80fd5b506102cd61031c3660046123c5565b610933565b34801561032c575f80fd5b5061029e61033b3660046123e0565b610947565b34801561034b575f80fd5b50600b5461035f906001600160a01b031681565b6040516001600160a01b039091168152602001610255565b348015610382575f80fd5b5061039661039136600461238e565b61096a565b6040516102559190612461565b3480156103ae575f80fd5b5060405160ff7f0000000000000000000000000000000000000000000000000000000000000000168152602001610255565b3480156103eb575f80fd5b506102cd6103fa366004612364565b610a41565b34801561040a575f80fd5b50600c5461035f906001600160a01b031681565b348015610429575f80fd5b5061029e6104383660046123c5565b610a53565b348015610448575f80fd5b506102cd6104573660046123c5565b610a5f565b348015610467575f80fd5b506102cd610476366004612487565b610a70565b348015610486575f80fd5b506102cd6104953660046124b1565b610b2a565b3480156104a5575f80fd5b5061029e6104b43660046123c5565b6001600160a01b03165f908152600f602052604090205460ff1690565b3480156104dc575f80fd5b5061029e6104eb3660046123c5565b6001600160a01b03165f9081526010602052604090205460ff1690565b348015610513575f80fd5b5061024b6105223660046123c5565b6001600160a01b03165f9081526020819052604090205490565b348015610547575f80fd5b506102cd610b49565b34801561055b575f80fd5b506102cd61056a3660046123c5565b610b5c565b34801561057a575f80fd5b506102cd6105893660046124c7565b610b86565b348015610599575f80fd5b506005546001600160a01b031661035f565b3480156105b6575f80fd5b5061024b6105c53660046123c5565b6001600160a01b03165f9081526008602052604090205490565b3480156105ea575f80fd5b50610272610bde565b3480156105fe575f80fd5b50600e5461064b9060ff81169061ffff610100820481169163010000008104821691650100000000008204811691600160381b8104821691600160481b8204811691600160581b90041687565b60408051971515885261ffff968716602089015294861694870194909452918416606086015283166080850152821660a08401521660c082015260e001610255565b348015610698575f80fd5b50600c5461029e90600160a81b900460ff1681565b3480156106b8575f80fd5b5061029e6106c7366004612364565b610bed565b3480156106d7575f80fd5b506102cd6106e63660046124e0565b610bfa565b3480156106f6575f80fd5b5061024b60095481565b34801561070b575f80fd5b506107156107d081565b60405161ffff9091168152602001610255565b348015610733575f80fd5b50600a5461035f906001600160a01b031681565b348015610752575f80fd5b5061024b61076136600461250a565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b348015610796575f80fd5b506102cd6107a53660046124e0565b610c0c565b3480156107b5575f80fd5b5061071561271081565b3480156107ca575f80fd5b506102cd6107d93660046123c5565b610c1e565b3480156107e9575f80fd5b506102cd6107f8366004612364565b610c58565b348015610808575f80fd5b5061035f61dead81565b60606003805461082190612541565b80601f016020809104026020016040519081016040528092919081815260200182805461084d90612541565b80156108985780601f1061086f57610100808354040283529160200191610898565b820191905f5260205f20905b81548152906001019060200180831161087b57829003601f168201915b5050505050905090565b5f336108af818585610c6a565b60019150505b92915050565b6108c3610c77565b305f908152602081905260409020548211156109185760405162461bcd60e51b815260206004820152600f60248201526e082dadeeadce840e8dede40d0d2ced608b1b60448201526064015b60405180910390fd5b6109228282610ca4565b5050565b61092e610c77565b600d55565b61093b610c77565b61094481610e07565b50565b5f33610954858285610ed1565b61095f858585610f4c565b506001949350505050565b606081836109786006610fa9565b6109829190612587565b8111156109a157836109946006610fa9565b61099e9190612587565b90505b5f8167ffffffffffffffff8111156109bb576109bb61259a565b6040519080825280602002602001820160405280156109e4578160200160208202803683370190505b5090505f5b82811015610a3857610a066109fe82886125ae565b600690610fb2565b828281518110610a1857610a186125c1565b6001600160a01b03909216602092830291909101909101526001016109e9565b50949350505050565b610a49610c77565b6109228282610fc4565b5f6108b56006836110d3565b610a67610c77565b610944816110f4565b610a78610c77565b8015610ad657305f90815260208190526040902054821115610ad15760405162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f7567682062616c616e636560701b604482015260640161090f565b610b1b565b81471015610b1b5760405162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f7567682062616c616e636560701b604482015260640161090f565b610b258282611425565b505050565b610b32610c77565b610944610b44368390038301836125e6565b61156c565b610b51610c77565b610b5a5f611843565b565b610b64610c77565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b610b8e610c77565b801515600c60159054906101000a900460ff16151503610bc05760405162461bcd60e51b815260040161090f906126a0565b600c8054911515600160a81b0260ff60a81b19909216919091179055565b60606004805461082190612541565b5f336108af818585610f4c565b610c02610c77565b6109228282611894565b610c14610c77565b610922828261192a565b610c26610c77565b6001600160a01b038116610c4f57604051631e4fbdf760e01b81525f600482015260240161090f565b61094481611843565b610c60610c77565b61092282826119c0565b610b258383836001611af4565b6005546001600160a01b03163314610b5a5760405163118cdaa760e01b815233600482015260240161090f565b600c805460ff60a01b1916600160a01b179055305f908152602081905260408120549050828110610df457600e545f90610ceb90600160381b900461ffff166127106126c5565b600e5461ffff91821691610d0791600160481b900416866126e0565b610d1191906126f7565b90505f610d1f6002836126f7565b90505f610d2c8387612587565b90505f610d398385612587565b600e5490915060ff16610d5357610d5082826125ae565b90505b8015610dc757600b546001600160a01b03165f908152602081905260409020545f03610d83575050505050610df6565b47610d8e8288611bc6565b5f610d998247612587565b90505f83610da787846126e0565b610db191906126f7565b90508015610dc357610dc38682611d17565b5050505b600e5460ff1615610de357610ddd826001611425565b50610def565b610ded475f611425565b505b505050505b505b5050600c805460ff60a01b19169055565b610e126006826110d3565b610e525760405162461bcd60e51b81526020600482015260116024820152702737ba103332b29031b7b63632b1ba37b960791b604482015260640161090f565b610e5d600682611dc8565b506001600160a01b0381165f908152600860205260408120546009805491929091610e89908490612587565b90915550506001600160a01b0381165f81815260086020526040808220829055517f904316769e154356a5e4aad5d41591b55913c7717fab281d818c1fed7d80e8149190a250565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610f465781811015610f3857604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161090f565b610f4684848484035f611af4565b50505050565b6001600160a01b038316610f7557604051634b637e8f60e11b81525f600482015260240161090f565b6001600160a01b038216610f9e5760405163ec442f0560e01b81525f600482015260240161090f565b610b25838383611ddc565b5f6108b5825490565b5f610fbd8383611de7565b9392505050565b610fcf6006836110d3565b156110145760405162461bcd60e51b815260206004820152601560248201527420b63932b0b23c903332b29031b7b63632b1ba37b960591b604482015260640161090f565b5f81116110535760405162461bcd60e51b815260206004820152600d60248201526c496e76616c696420736861726560981b604482015260640161090f565b61105e600683611e0d565b506001600160a01b0382165f9081526008602052604081208290556009805483929061108b9084906125ae565b90915550506040518181526001600160a01b038316907f918584c21fe4a093f5014c0dabaed3e43b642781e27984aef122cae8245fbb23906020015b60405180910390a25050565b6001600160a01b0381165f9081526001830160205260408120541515610fbd565b6001600160a01b03811661113b5760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b2103937baba32b960911b604482015260640161090f565b600a80546001600160a01b0319166001600160a01b0383169081179091556040805163c45a015560e01b815290515f929163c45a01559160048083019260209291908290030181865afa158015611194573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111b89190612716565b90506001600160a01b0381166112025760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420666163746f727960881b604482015260640161090f565b600a54604080516315ab88c960e31b815290515f926001600160a01b03169163ad5c46489160048083019260209291908290030181865afa158015611249573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061126d9190612716565b60405163e6a4390560e01b81523060048201526001600160a01b0380831660248301529192509083169063e6a4390590604401602060405180830381865afa1580156112bb573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112df9190612716565b600b80546001600160a01b0319166001600160a01b03929092169182179055611392576040516364e329cb60e11b81523060048201526001600160a01b03828116602483015283169063c9c65396906044016020604051808303815f875af115801561134d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113719190612716565b600b80546001600160a01b0319166001600160a01b03929092169190911790555b600b546001600160a01b03166113e25760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b2103830b4b91030b2323932b9b99760591b604482015260640161090f565b600b54600a546040516001600160a01b0392831692909116907fca394f95d8dbf1e8b2e76b9a8da90cacce1da85181a65508dab13212dc1df53b905f90a3505050565b5f825f0361143457505f6108b5565b6009545f0361144457505f6108b5565b5f806114506006610fa9565b90505f5b81811015611560575f611468600683610fb2565b90505f611476600185612587565b83146114b0576009546001600160a01b0383165f908152600860205260409020546114a1908a6126e0565b6114ab91906126f7565b6114ba565b6114ba8589612587565b905086156114d2576114cd308383610f4c565b611507565b6040516001600160a01b0383169082156108fc029083905f818181858888f19350505050158015611505573d5f803e3d5ffd5b505b816001600160a01b03167f06c5efeff5c320943d265dc4e5f1af95ad523555ce0c1957e367dda5514572df8260405161154291815260200190565b60405180910390a261155481866125ae565b94505050600101611454565b50600195945050505050565b6107d061ffff16816020015161ffff1611156115bc5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206275792066656560881b604482015260640161090f565b6107d061ffff16816040015161ffff16111561160d5760405162461bcd60e51b815260206004820152601060248201526f496e76616c69642073656c6c2066656560801b604482015260640161090f565b6107d061ffff16816060015161ffff1611156116625760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964207472616e736665722066656560601b604482015260640161090f565b5f8160c001518260a00151836080015161167c9190612731565b6116869190612731565b905061ffff8116158061169e575061ffff8116612710145b6116de5760405162461bcd60e51b8152602060048201526011602482015270496e76616c69642066656520736861726560781b604482015260640161090f565b8151600e805460208501516040808701516060880151608089015160a08a015160c08b015161ffff908116600160581b0261ffff60581b19928216600160481b026affff00000000000000000019948316600160381b02949094166affffffff0000000000000019958316650100000000000266ffff0000000000199784166301000000029790971666ffffffff00000019939099166101000262ffff00199c15159c909c1662ffffff19909a16999099179a909a1716959095179290921716939093179290921716929092179055517ff34b49a91d91598b7774795175736ebf4db4fa5a4edf72772cf50fb27c135efd906118379084905f60e082019050825115158252602083015161ffff80821660208501528060408601511660408501528060608601511660608501528060808601511660808501528060a08601511660a08501528060c08601511660c0850152505092915050565b60405180910390a15050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382165f908152600f602052604090205481151560ff9091161515036118d35760405162461bcd60e51b815260040161090f906126a0565b6001600160a01b0382165f818152600f6020908152604091829020805460ff191685151590811790915591519182527f3499bfcf9673677ba552f3fe2ea274ec7e6246da31c3c87e115b45a9b0db2efb91016110c7565b6001600160a01b0382165f9081526010602052604090205481151560ff9091161515036119695760405162461bcd60e51b815260040161090f906126a0565b6001600160a01b0382165f81815260106020908152604091829020805460ff191685151590811790915591519182527f902b2ea0acdec5a260e398590d055fe29bd61ef5dd41e45db54a4cd98d5569e091016110c7565b6119cb6006836110d3565b611a0b5760405162461bcd60e51b81526020600482015260116024820152702737ba103332b29031b7b63632b1ba37b960791b604482015260640161090f565b5f8111611a4a5760405162461bcd60e51b815260206004820152600d60248201526c496e76616c696420736861726560981b604482015260640161090f565b6001600160a01b0382165f908152600860205260408120546009805491928392611a75908490612587565b90915550506001600160a01b0383165f90815260086020526040812083905560098054849290611aa69084906125ae565b909155505060408051828152602081018490526001600160a01b038516917fd350c3685bdab1285c0b97ffb6e96d96ed0ad4578a135c38250e771e7cb831aa910160405180910390a2505050565b6001600160a01b038416611b1d5760405163e602df0560e01b81525f600482015260240161090f565b6001600160a01b038316611b4657604051634a1406b160e11b81525f600482015260240161090f565b6001600160a01b038085165f9081526001602090815260408083209387168352929052208290558015610f4657826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051611bb891815260200190565b60405180910390a350505050565b6040805160028082526060820183525f9260208301908036833701905050905030815f81518110611bf957611bf96125c1565b6001600160a01b03928316602091820292909201810191909152600a54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611c50573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c749190612716565b81600181518110611c8757611c876125c1565b6001600160a01b039283166020918202929092010152600a54611cad9130911685610c6a565b600a5460405163791ac94760e01b81526001600160a01b039091169063791ac94790611ce5908690869086903090429060040161274c565b5f604051808303815f87803b158015611cfc575f80fd5b505af1158015611d0e573d5f803e3d5ffd5b50505050505050565b600a54611d2f9030906001600160a01b031684610c6a565b600a54600c5460405163f305d71960e01b8152306004820152602481018590525f6044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c40160606040518083038185885af1158015611d9c573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190611dc19190612787565b5050505050565b5f610fbd836001600160a01b038416611e21565b610b25838383611f0b565b5f825f018281548110611dfc57611dfc6125c1565b905f5260205f200154905092915050565b5f610fbd836001600160a01b0384166121a9565b5f8181526001830160205260408120548015611efb575f611e43600183612587565b85549091505f90611e5690600190612587565b9050808214611eb5575f865f018281548110611e7457611e746125c1565b905f5260205f200154905080875f018481548110611e9457611e946125c1565b5f918252602080832090910192909255918252600188019052604090208390555b8554869080611ec657611ec66127b2565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f9055600193505050506108b5565b5f9150506108b5565b5092915050565b5f8111611f4a5760405162461bcd60e51b815260206004820152600d60248201526c05472616e73666572203c3d203609c1b604482015260640161090f565b600c545f908190600160a01b900460ff16158015611f715750600c54600160a81b900460ff165b90505f611f95866001600160a01b03165f9081526010602052604090205460ff1690565b90505f611fb9866001600160a01b03165f9081526010602052604090205460ff1690565b600c54909150600160a01b900460ff166120b7576001600160a01b038781165f908152600f602052604080822054928916825290205460ff9182169116838015612001575082155b801561200b575080155b80156120255750600a546001600160a01b03898116911614155b1561203d57600e54610100900461ffff1695506120b4565b828015612048575081155b8015612052575080155b1561206c57600e546301000000900461ffff1695506120b4565b83158015612078575082155b80156120925750600a546001600160a01b038a8116911614155b801561209c575081155b156120b457600e5465010000000000900461ffff1695505b50505b8315612158575f6127106120cb86886126e0565b6120d591906126f7565b90505f6120e28288612587565b600e549091505f906127109061210390600160381b900461ffff16856126e0565b61210d91906126f7565b9050801561212e5761211f8184612587565b925061212e8a61dead836121f5565b821561213f5761213f8a30856121f5565b8115612150576121508a8a846121f5565b505050612163565b6121638787876121f5565b82801561216f57505f84115b80156121785750805b15611d0e57305f90815260208190526040902054600d54811061219f5761219f815f610ca4565b5050505050505050565b5f8181526001830160205260408120546121ee57508154600181810184555f8481526020808220909301849055845484825282860190935260409020919091556108b5565b505f6108b5565b6001600160a01b03831661221f578060025f82825461221491906125ae565b9091555061228f9050565b6001600160a01b0383165f90815260208190526040902054818110156122715760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161090f565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166122ab576002805482900390556122c9565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161230e91815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b0381168114610944575f80fd5b5f8060408385031215612375575f80fd5b823561238081612350565b946020939093013593505050565b5f806040838503121561239f575f80fd5b50508035926020909101359150565b5f602082840312156123be575f80fd5b5035919050565b5f602082840312156123d5575f80fd5b8135610fbd81612350565b5f805f606084860312156123f2575f80fd5b83356123fd81612350565b9250602084013561240d81612350565b929592945050506040919091013590565b5f815180845260208085019450602084015f5b838110156124565781516001600160a01b031687529582019590820190600101612431565b509495945050505050565b602081525f610fbd602083018461241e565b80358015158114612482575f80fd5b919050565b5f8060408385031215612498575f80fd5b823591506124a860208401612473565b90509250929050565b5f60e082840312156124c1575f80fd5b50919050565b5f602082840312156124d7575f80fd5b610fbd82612473565b5f80604083850312156124f1575f80fd5b82356124fc81612350565b91506124a860208401612473565b5f806040838503121561251b575f80fd5b823561252681612350565b9150602083013561253681612350565b809150509250929050565b600181811c9082168061255557607f821691505b6020821081036124c157634e487b7160e01b5f52602260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b818103818111156108b5576108b5612573565b634e487b7160e01b5f52604160045260245ffd5b808201808211156108b5576108b5612573565b634e487b7160e01b5f52603260045260245ffd5b803561ffff81168114612482575f80fd5b5f60e082840312156125f6575f80fd5b60405160e0810181811067ffffffffffffffff8211171561262557634e487b7160e01b5f52604160045260245ffd5b60405261263183612473565b815261263f602084016125d5565b6020820152612650604084016125d5565b6040820152612661606084016125d5565b6060820152612672608084016125d5565b608082015261268360a084016125d5565b60a082015261269460c084016125d5565b60c08201529392505050565b6020808252600b908201526a105b1c9958591e481cd95d60aa1b604082015260600190565b61ffff828116828216039080821115611f0457611f04612573565b80820281158282048414176108b5576108b5612573565b5f8261271157634e487b7160e01b5f52601260045260245ffd5b500490565b5f60208284031215612726575f80fd5b8151610fbd81612350565b61ffff818116838216019080821115611f0457611f04612573565b85815284602082015260a060408201525f61276a60a083018661241e565b6001600160a01b0394909416606083015250608001529392505050565b5f805f60608486031215612799575f80fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b5f52603160045260245ffdfea2646970667358221220f68f139502e1eea7e6036516e628f6b70ce9773453b4d616475cc733adabc64364736f6c6343000819003300000000000000000000000000000000000000000052b7d2dcc80cd2e400000000000000000000000000000066f2e5f3bbeef5e20792ae26162134961b00a3760000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012c00000000000000000000000000000000000000000000000000000000000001900000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000f8f4a7b95a9174a92a96ed82d03543371cb93da500000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000002710

Deployed Bytecode

0x60806040526004361061022b575f3560e01c806370a0823111610129578063adf18693116100a8578063e55096b01161006d578063e55096b01461078b578063e63a391f146107aa578063f2fde38b146107bf578063f4232d25146107de578063fccc2813146107fd575f80fd5b8063adf18693146106cc578063b3c6e9ee146106eb578063bc063e1a14610700578063c31c9c0714610728578063dd62ed3e14610747575f80fd5b806394b8a703116100ee57806394b8a703146105ab57806395d89b41146105df57806398c47e8c146105f35780639b61f1d01461068d578063a9059cbb146106ad575f80fd5b806370a0823114610508578063715018a61461053c57806372bc5583146105505780637f5bbb2c1461056f5780638da5cb5b1461058e575f80fd5b80632b46c6a4116101b5578063412736571161017a578063412736571461043d5780634569c4451461045c578063490e51471461047b5780634fbee1931461049a5780636f741f2a146104d1575f80fd5b80632b46c6a414610377578063313ce567146103a35780633502628a146103e05780633935ebf9146103ff5780633b90b9bf1461041e575f80fd5b80630f569dad116101fb5780630f569dad146102cf57806318160ddd146102ee5780631fa67b4d1461030257806323b872dd1461032157806326991cc814610340575f80fd5b806301a6c43b1461023657806306fdde031461025e578063095ea7b31461027f5780630a4e42ef146102ae575f80fd5b3661023257005b5f80fd5b348015610241575f80fd5b5061024b600d5481565b6040519081526020015b60405180910390f35b348015610269575f80fd5b50610272610812565b604051610255919061231b565b34801561028a575f80fd5b5061029e610299366004612364565b6108a2565b6040519015158152602001610255565b3480156102b9575f80fd5b506102cd6102c836600461238e565b6108bb565b005b3480156102da575f80fd5b506102cd6102e93660046123ae565b610926565b3480156102f9575f80fd5b5060025461024b565b34801561030d575f80fd5b506102cd61031c3660046123c5565b610933565b34801561032c575f80fd5b5061029e61033b3660046123e0565b610947565b34801561034b575f80fd5b50600b5461035f906001600160a01b031681565b6040516001600160a01b039091168152602001610255565b348015610382575f80fd5b5061039661039136600461238e565b61096a565b6040516102559190612461565b3480156103ae575f80fd5b5060405160ff7f0000000000000000000000000000000000000000000000000000000000000012168152602001610255565b3480156103eb575f80fd5b506102cd6103fa366004612364565b610a41565b34801561040a575f80fd5b50600c5461035f906001600160a01b031681565b348015610429575f80fd5b5061029e6104383660046123c5565b610a53565b348015610448575f80fd5b506102cd6104573660046123c5565b610a5f565b348015610467575f80fd5b506102cd610476366004612487565b610a70565b348015610486575f80fd5b506102cd6104953660046124b1565b610b2a565b3480156104a5575f80fd5b5061029e6104b43660046123c5565b6001600160a01b03165f908152600f602052604090205460ff1690565b3480156104dc575f80fd5b5061029e6104eb3660046123c5565b6001600160a01b03165f9081526010602052604090205460ff1690565b348015610513575f80fd5b5061024b6105223660046123c5565b6001600160a01b03165f9081526020819052604090205490565b348015610547575f80fd5b506102cd610b49565b34801561055b575f80fd5b506102cd61056a3660046123c5565b610b5c565b34801561057a575f80fd5b506102cd6105893660046124c7565b610b86565b348015610599575f80fd5b506005546001600160a01b031661035f565b3480156105b6575f80fd5b5061024b6105c53660046123c5565b6001600160a01b03165f9081526008602052604090205490565b3480156105ea575f80fd5b50610272610bde565b3480156105fe575f80fd5b50600e5461064b9060ff81169061ffff610100820481169163010000008104821691650100000000008204811691600160381b8104821691600160481b8204811691600160581b90041687565b60408051971515885261ffff968716602089015294861694870194909452918416606086015283166080850152821660a08401521660c082015260e001610255565b348015610698575f80fd5b50600c5461029e90600160a81b900460ff1681565b3480156106b8575f80fd5b5061029e6106c7366004612364565b610bed565b3480156106d7575f80fd5b506102cd6106e63660046124e0565b610bfa565b3480156106f6575f80fd5b5061024b60095481565b34801561070b575f80fd5b506107156107d081565b60405161ffff9091168152602001610255565b348015610733575f80fd5b50600a5461035f906001600160a01b031681565b348015610752575f80fd5b5061024b61076136600461250a565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b348015610796575f80fd5b506102cd6107a53660046124e0565b610c0c565b3480156107b5575f80fd5b5061071561271081565b3480156107ca575f80fd5b506102cd6107d93660046123c5565b610c1e565b3480156107e9575f80fd5b506102cd6107f8366004612364565b610c58565b348015610808575f80fd5b5061035f61dead81565b60606003805461082190612541565b80601f016020809104026020016040519081016040528092919081815260200182805461084d90612541565b80156108985780601f1061086f57610100808354040283529160200191610898565b820191905f5260205f20905b81548152906001019060200180831161087b57829003601f168201915b5050505050905090565b5f336108af818585610c6a565b60019150505b92915050565b6108c3610c77565b305f908152602081905260409020548211156109185760405162461bcd60e51b815260206004820152600f60248201526e082dadeeadce840e8dede40d0d2ced608b1b60448201526064015b60405180910390fd5b6109228282610ca4565b5050565b61092e610c77565b600d55565b61093b610c77565b61094481610e07565b50565b5f33610954858285610ed1565b61095f858585610f4c565b506001949350505050565b606081836109786006610fa9565b6109829190612587565b8111156109a157836109946006610fa9565b61099e9190612587565b90505b5f8167ffffffffffffffff8111156109bb576109bb61259a565b6040519080825280602002602001820160405280156109e4578160200160208202803683370190505b5090505f5b82811015610a3857610a066109fe82886125ae565b600690610fb2565b828281518110610a1857610a186125c1565b6001600160a01b03909216602092830291909101909101526001016109e9565b50949350505050565b610a49610c77565b6109228282610fc4565b5f6108b56006836110d3565b610a67610c77565b610944816110f4565b610a78610c77565b8015610ad657305f90815260208190526040902054821115610ad15760405162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f7567682062616c616e636560701b604482015260640161090f565b610b1b565b81471015610b1b5760405162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f7567682062616c616e636560701b604482015260640161090f565b610b258282611425565b505050565b610b32610c77565b610944610b44368390038301836125e6565b61156c565b610b51610c77565b610b5a5f611843565b565b610b64610c77565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b610b8e610c77565b801515600c60159054906101000a900460ff16151503610bc05760405162461bcd60e51b815260040161090f906126a0565b600c8054911515600160a81b0260ff60a81b19909216919091179055565b60606004805461082190612541565b5f336108af818585610f4c565b610c02610c77565b6109228282611894565b610c14610c77565b610922828261192a565b610c26610c77565b6001600160a01b038116610c4f57604051631e4fbdf760e01b81525f600482015260240161090f565b61094481611843565b610c60610c77565b61092282826119c0565b610b258383836001611af4565b6005546001600160a01b03163314610b5a5760405163118cdaa760e01b815233600482015260240161090f565b600c805460ff60a01b1916600160a01b179055305f908152602081905260408120549050828110610df457600e545f90610ceb90600160381b900461ffff166127106126c5565b600e5461ffff91821691610d0791600160481b900416866126e0565b610d1191906126f7565b90505f610d1f6002836126f7565b90505f610d2c8387612587565b90505f610d398385612587565b600e5490915060ff16610d5357610d5082826125ae565b90505b8015610dc757600b546001600160a01b03165f908152602081905260409020545f03610d83575050505050610df6565b47610d8e8288611bc6565b5f610d998247612587565b90505f83610da787846126e0565b610db191906126f7565b90508015610dc357610dc38682611d17565b5050505b600e5460ff1615610de357610ddd826001611425565b50610def565b610ded475f611425565b505b505050505b505b5050600c805460ff60a01b19169055565b610e126006826110d3565b610e525760405162461bcd60e51b81526020600482015260116024820152702737ba103332b29031b7b63632b1ba37b960791b604482015260640161090f565b610e5d600682611dc8565b506001600160a01b0381165f908152600860205260408120546009805491929091610e89908490612587565b90915550506001600160a01b0381165f81815260086020526040808220829055517f904316769e154356a5e4aad5d41591b55913c7717fab281d818c1fed7d80e8149190a250565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610f465781811015610f3857604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161090f565b610f4684848484035f611af4565b50505050565b6001600160a01b038316610f7557604051634b637e8f60e11b81525f600482015260240161090f565b6001600160a01b038216610f9e5760405163ec442f0560e01b81525f600482015260240161090f565b610b25838383611ddc565b5f6108b5825490565b5f610fbd8383611de7565b9392505050565b610fcf6006836110d3565b156110145760405162461bcd60e51b815260206004820152601560248201527420b63932b0b23c903332b29031b7b63632b1ba37b960591b604482015260640161090f565b5f81116110535760405162461bcd60e51b815260206004820152600d60248201526c496e76616c696420736861726560981b604482015260640161090f565b61105e600683611e0d565b506001600160a01b0382165f9081526008602052604081208290556009805483929061108b9084906125ae565b90915550506040518181526001600160a01b038316907f918584c21fe4a093f5014c0dabaed3e43b642781e27984aef122cae8245fbb23906020015b60405180910390a25050565b6001600160a01b0381165f9081526001830160205260408120541515610fbd565b6001600160a01b03811661113b5760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b2103937baba32b960911b604482015260640161090f565b600a80546001600160a01b0319166001600160a01b0383169081179091556040805163c45a015560e01b815290515f929163c45a01559160048083019260209291908290030181865afa158015611194573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111b89190612716565b90506001600160a01b0381166112025760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420666163746f727960881b604482015260640161090f565b600a54604080516315ab88c960e31b815290515f926001600160a01b03169163ad5c46489160048083019260209291908290030181865afa158015611249573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061126d9190612716565b60405163e6a4390560e01b81523060048201526001600160a01b0380831660248301529192509083169063e6a4390590604401602060405180830381865afa1580156112bb573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112df9190612716565b600b80546001600160a01b0319166001600160a01b03929092169182179055611392576040516364e329cb60e11b81523060048201526001600160a01b03828116602483015283169063c9c65396906044016020604051808303815f875af115801561134d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113719190612716565b600b80546001600160a01b0319166001600160a01b03929092169190911790555b600b546001600160a01b03166113e25760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b2103830b4b91030b2323932b9b99760591b604482015260640161090f565b600b54600a546040516001600160a01b0392831692909116907fca394f95d8dbf1e8b2e76b9a8da90cacce1da85181a65508dab13212dc1df53b905f90a3505050565b5f825f0361143457505f6108b5565b6009545f0361144457505f6108b5565b5f806114506006610fa9565b90505f5b81811015611560575f611468600683610fb2565b90505f611476600185612587565b83146114b0576009546001600160a01b0383165f908152600860205260409020546114a1908a6126e0565b6114ab91906126f7565b6114ba565b6114ba8589612587565b905086156114d2576114cd308383610f4c565b611507565b6040516001600160a01b0383169082156108fc029083905f818181858888f19350505050158015611505573d5f803e3d5ffd5b505b816001600160a01b03167f06c5efeff5c320943d265dc4e5f1af95ad523555ce0c1957e367dda5514572df8260405161154291815260200190565b60405180910390a261155481866125ae565b94505050600101611454565b50600195945050505050565b6107d061ffff16816020015161ffff1611156115bc5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206275792066656560881b604482015260640161090f565b6107d061ffff16816040015161ffff16111561160d5760405162461bcd60e51b815260206004820152601060248201526f496e76616c69642073656c6c2066656560801b604482015260640161090f565b6107d061ffff16816060015161ffff1611156116625760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964207472616e736665722066656560601b604482015260640161090f565b5f8160c001518260a00151836080015161167c9190612731565b6116869190612731565b905061ffff8116158061169e575061ffff8116612710145b6116de5760405162461bcd60e51b8152602060048201526011602482015270496e76616c69642066656520736861726560781b604482015260640161090f565b8151600e805460208501516040808701516060880151608089015160a08a015160c08b015161ffff908116600160581b0261ffff60581b19928216600160481b026affff00000000000000000019948316600160381b02949094166affffffff0000000000000019958316650100000000000266ffff0000000000199784166301000000029790971666ffffffff00000019939099166101000262ffff00199c15159c909c1662ffffff19909a16999099179a909a1716959095179290921716939093179290921716929092179055517ff34b49a91d91598b7774795175736ebf4db4fa5a4edf72772cf50fb27c135efd906118379084905f60e082019050825115158252602083015161ffff80821660208501528060408601511660408501528060608601511660608501528060808601511660808501528060a08601511660a08501528060c08601511660c0850152505092915050565b60405180910390a15050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382165f908152600f602052604090205481151560ff9091161515036118d35760405162461bcd60e51b815260040161090f906126a0565b6001600160a01b0382165f818152600f6020908152604091829020805460ff191685151590811790915591519182527f3499bfcf9673677ba552f3fe2ea274ec7e6246da31c3c87e115b45a9b0db2efb91016110c7565b6001600160a01b0382165f9081526010602052604090205481151560ff9091161515036119695760405162461bcd60e51b815260040161090f906126a0565b6001600160a01b0382165f81815260106020908152604091829020805460ff191685151590811790915591519182527f902b2ea0acdec5a260e398590d055fe29bd61ef5dd41e45db54a4cd98d5569e091016110c7565b6119cb6006836110d3565b611a0b5760405162461bcd60e51b81526020600482015260116024820152702737ba103332b29031b7b63632b1ba37b960791b604482015260640161090f565b5f8111611a4a5760405162461bcd60e51b815260206004820152600d60248201526c496e76616c696420736861726560981b604482015260640161090f565b6001600160a01b0382165f908152600860205260408120546009805491928392611a75908490612587565b90915550506001600160a01b0383165f90815260086020526040812083905560098054849290611aa69084906125ae565b909155505060408051828152602081018490526001600160a01b038516917fd350c3685bdab1285c0b97ffb6e96d96ed0ad4578a135c38250e771e7cb831aa910160405180910390a2505050565b6001600160a01b038416611b1d5760405163e602df0560e01b81525f600482015260240161090f565b6001600160a01b038316611b4657604051634a1406b160e11b81525f600482015260240161090f565b6001600160a01b038085165f9081526001602090815260408083209387168352929052208290558015610f4657826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051611bb891815260200190565b60405180910390a350505050565b6040805160028082526060820183525f9260208301908036833701905050905030815f81518110611bf957611bf96125c1565b6001600160a01b03928316602091820292909201810191909152600a54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611c50573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c749190612716565b81600181518110611c8757611c876125c1565b6001600160a01b039283166020918202929092010152600a54611cad9130911685610c6a565b600a5460405163791ac94760e01b81526001600160a01b039091169063791ac94790611ce5908690869086903090429060040161274c565b5f604051808303815f87803b158015611cfc575f80fd5b505af1158015611d0e573d5f803e3d5ffd5b50505050505050565b600a54611d2f9030906001600160a01b031684610c6a565b600a54600c5460405163f305d71960e01b8152306004820152602481018590525f6044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c40160606040518083038185885af1158015611d9c573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190611dc19190612787565b5050505050565b5f610fbd836001600160a01b038416611e21565b610b25838383611f0b565b5f825f018281548110611dfc57611dfc6125c1565b905f5260205f200154905092915050565b5f610fbd836001600160a01b0384166121a9565b5f8181526001830160205260408120548015611efb575f611e43600183612587565b85549091505f90611e5690600190612587565b9050808214611eb5575f865f018281548110611e7457611e746125c1565b905f5260205f200154905080875f018481548110611e9457611e946125c1565b5f918252602080832090910192909255918252600188019052604090208390555b8554869080611ec657611ec66127b2565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f9055600193505050506108b5565b5f9150506108b5565b5092915050565b5f8111611f4a5760405162461bcd60e51b815260206004820152600d60248201526c05472616e73666572203c3d203609c1b604482015260640161090f565b600c545f908190600160a01b900460ff16158015611f715750600c54600160a81b900460ff165b90505f611f95866001600160a01b03165f9081526010602052604090205460ff1690565b90505f611fb9866001600160a01b03165f9081526010602052604090205460ff1690565b600c54909150600160a01b900460ff166120b7576001600160a01b038781165f908152600f602052604080822054928916825290205460ff9182169116838015612001575082155b801561200b575080155b80156120255750600a546001600160a01b03898116911614155b1561203d57600e54610100900461ffff1695506120b4565b828015612048575081155b8015612052575080155b1561206c57600e546301000000900461ffff1695506120b4565b83158015612078575082155b80156120925750600a546001600160a01b038a8116911614155b801561209c575081155b156120b457600e5465010000000000900461ffff1695505b50505b8315612158575f6127106120cb86886126e0565b6120d591906126f7565b90505f6120e28288612587565b600e549091505f906127109061210390600160381b900461ffff16856126e0565b61210d91906126f7565b9050801561212e5761211f8184612587565b925061212e8a61dead836121f5565b821561213f5761213f8a30856121f5565b8115612150576121508a8a846121f5565b505050612163565b6121638787876121f5565b82801561216f57505f84115b80156121785750805b15611d0e57305f90815260208190526040902054600d54811061219f5761219f815f610ca4565b5050505050505050565b5f8181526001830160205260408120546121ee57508154600181810184555f8481526020808220909301849055845484825282860190935260409020919091556108b5565b505f6108b5565b6001600160a01b03831661221f578060025f82825461221491906125ae565b9091555061228f9050565b6001600160a01b0383165f90815260208190526040902054818110156122715760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161090f565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166122ab576002805482900390556122c9565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161230e91815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b0381168114610944575f80fd5b5f8060408385031215612375575f80fd5b823561238081612350565b946020939093013593505050565b5f806040838503121561239f575f80fd5b50508035926020909101359150565b5f602082840312156123be575f80fd5b5035919050565b5f602082840312156123d5575f80fd5b8135610fbd81612350565b5f805f606084860312156123f2575f80fd5b83356123fd81612350565b9250602084013561240d81612350565b929592945050506040919091013590565b5f815180845260208085019450602084015f5b838110156124565781516001600160a01b031687529582019590820190600101612431565b509495945050505050565b602081525f610fbd602083018461241e565b80358015158114612482575f80fd5b919050565b5f8060408385031215612498575f80fd5b823591506124a860208401612473565b90509250929050565b5f60e082840312156124c1575f80fd5b50919050565b5f602082840312156124d7575f80fd5b610fbd82612473565b5f80604083850312156124f1575f80fd5b82356124fc81612350565b91506124a860208401612473565b5f806040838503121561251b575f80fd5b823561252681612350565b9150602083013561253681612350565b809150509250929050565b600181811c9082168061255557607f821691505b6020821081036124c157634e487b7160e01b5f52602260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b818103818111156108b5576108b5612573565b634e487b7160e01b5f52604160045260245ffd5b808201808211156108b5576108b5612573565b634e487b7160e01b5f52603260045260245ffd5b803561ffff81168114612482575f80fd5b5f60e082840312156125f6575f80fd5b60405160e0810181811067ffffffffffffffff8211171561262557634e487b7160e01b5f52604160045260245ffd5b60405261263183612473565b815261263f602084016125d5565b6020820152612650604084016125d5565b6040820152612661606084016125d5565b6060820152612672608084016125d5565b608082015261268360a084016125d5565b60a082015261269460c084016125d5565b60c08201529392505050565b6020808252600b908201526a105b1c9958591e481cd95d60aa1b604082015260600190565b61ffff828116828216039080821115611f0457611f04612573565b80820281158282048414176108b5576108b5612573565b5f8261271157634e487b7160e01b5f52601260045260245ffd5b500490565b5f60208284031215612726575f80fd5b8151610fbd81612350565b61ffff818116838216019080821115611f0457611f04612573565b85815284602082015260a060408201525f61276a60a083018661241e565b6001600160a01b0394909416606083015250608001529392505050565b5f805f60608486031215612799575f80fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b5f52603160045260245ffdfea2646970667358221220f68f139502e1eea7e6036516e628f6b70ce9773453b4d616475cc733adabc64364736f6c63430008190033

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

00000000000000000000000000000000000000000052b7d2dcc80cd2e400000000000000000000000000000066f2e5f3bbeef5e20792ae26162134961b00a3760000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012c00000000000000000000000000000000000000000000000000000000000001900000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000f8f4a7b95a9174a92a96ed82d03543371cb93da500000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000002710

-----Decoded View---------------
Arg [0] : initialSupply_ (uint256): 100000000000000000000000000
Arg [1] : feeReceiver_ (address): 0x66f2e5F3bBeEF5E20792AE26162134961b00a376
Arg [2] : swapRouter_ (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [3] : feeConfiguration_ (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [4] : collectors_ (address[]): 0xf8f4A7b95a9174A92a96eD82d03543371Cb93da5
Arg [5] : shares_ (uint256[]): 10000

-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000052b7d2dcc80cd2e4000000
Arg [1] : 00000000000000000000000066f2e5f3bbeef5e20792ae26162134961b00a376
Arg [2] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 000000000000000000000000000000000000000000000000000000000000012c
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000190
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [11] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [13] : 000000000000000000000000f8f4a7b95a9174a92a96ed82d03543371cb93da5
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [15] : 0000000000000000000000000000000000000000000000000000000000002710


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.