ETH Price: $3,316.62 (+1.38%)
Gas: 5 Gwei

Contract

0x9083AC69E296dA673fCB08e28d86CED624c7114e
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve189620822024-01-08 11:44:59203 days ago1704714299IN
0x9083AC69...624c7114e
0 ETH0.0008054317.27145582
Tracker Rescue S...185062122023-11-05 13:50:11267 days ago1699192211IN
0x9083AC69...624c7114e
0 ETH0.0009442224.93589568
Approve184246442023-10-25 3:40:35278 days ago1698205235IN
0x9083AC69...624c7114e
0 ETH0.0003500314.37528587
Approve182925612023-10-06 16:10:23297 days ago1696608623IN
0x9083AC69...624c7114e
0 ETH0.0004387618.0189875
Approve182913352023-10-06 12:03:23297 days ago1696593803IN
0x9083AC69...624c7114e
0 ETH0.000325586.99079267
Approve182861642023-10-05 18:42:23297 days ago1696531343IN
0x9083AC69...624c7114e
0 ETH0.000454229.75278311
Approve182817032023-10-05 3:43:23298 days ago1696477403IN
0x9083AC69...624c7114e
0 ETH0.000311126.70962002
Approve182804562023-10-04 23:32:35298 days ago1696462355IN
0x9083AC69...624c7114e
0 ETH0.000303936.52590308
Approve182758902023-10-04 8:13:23299 days ago1696407203IN
0x9083AC69...624c7114e
0 ETH0.000396588.56361058
Approve182750672023-10-04 5:27:59299 days ago1696397279IN
0x9083AC69...624c7114e
0 ETH0.000298936.45837646
Approve182740802023-10-04 2:09:35299 days ago1696385375IN
0x9083AC69...624c7114e
0 ETH0.000317176.81009711
Approve182737372023-10-04 1:00:35299 days ago1696381235IN
0x9083AC69...624c7114e
0 ETH0.0006800214.5822574
Approve182736812023-10-04 0:49:23299 days ago1696380563IN
0x9083AC69...624c7114e
0 ETH0.0004915410.55407839
Approve182736762023-10-04 0:48:23299 days ago1696380503IN
0x9083AC69...624c7114e
0 ETH0.000477510.23935281
Approve182733672023-10-03 23:46:11299 days ago1696376771IN
0x9083AC69...624c7114e
0 ETH0.0005397511.58919494
Approve182732702023-10-03 23:26:35299 days ago1696375595IN
0x9083AC69...624c7114e
0 ETH0.00037918.17566503
Approve182730482023-10-03 22:42:11299 days ago1696372931IN
0x9083AC69...624c7114e
0 ETH0.0002668610.10925306
Approve182730442023-10-03 22:41:23299 days ago1696372883IN
0x9083AC69...624c7114e
0 ETH0.0003098310.61137929
Approve182730392023-10-03 22:40:23299 days ago1696372823IN
0x9083AC69...624c7114e
0 ETH0.0008154217.48565926
Approve182722842023-10-03 20:07:47299 days ago1696363667IN
0x9083AC69...624c7114e
0 ETH0.0010147321.75964866
Approve182722252023-10-03 19:55:59299 days ago1696362959IN
0x9083AC69...624c7114e
0 ETH0.0006468913.88958575
Approve182716232023-10-03 17:55:11299 days ago1696355711IN
0x9083AC69...624c7114e
0 ETH0.0007824416.8
Approve182716142023-10-03 17:53:23299 days ago1696355603IN
0x9083AC69...624c7114e
0 ETH0.0007979317.21698736
Approve182715832023-10-03 17:46:59300 days ago1696355219IN
0x9083AC69...624c7114e
0 ETH0.0006955914.93536715
Approve182715462023-10-03 17:39:35300 days ago1696354775IN
0x9083AC69...624c7114e
0 ETH0.0007549416.18876339
View all transactions

Latest 5 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
182708082023-10-03 15:10:11300 days ago1696345811
0x9083AC69...624c7114e
0.71544837 ETH
182708082023-10-03 15:10:11300 days ago1696345811
0x9083AC69...624c7114e
0.47696558 ETH
182708082023-10-03 15:10:11300 days ago1696345811
0x9083AC69...624c7114e
0.13249044 ETH
182708082023-10-03 15:10:11300 days ago1696345811
0x9083AC69...624c7114e
1.3249044 ETH
182706812023-10-03 14:44:47300 days ago1696344287
0x9083AC69...624c7114e
 Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TaxReap

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 11 : TaxReap.sol
pragma solidity ^0.8.10;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "./Tracker.sol";

contract TaxReap is ERC20, Ownable {
    using SafeTransferLib for address;

    IUniswapRouter public router;
    address public pair;
    address public developmentFund;
    Tracker public tracker;

    bool private reapping;
    bool public tradingEnabled;

    uint256 public holdMinAmountToReap;

    struct Taxes {
        uint256 holder;
        uint256 developmentFund;
    }

    Taxes public taxes = Taxes(3, 2);

    uint256 public totalTax = taxes.holder + taxes.developmentFund;
    uint256 public reapIncentive = 10; // Reaper earn 10% of total tax

    mapping(address => bool) private _isExcludedFromFees;
    mapping(address => bool) public automatedMarketMakerPairs;
    mapping(address => mapping(uint256 => bool)) public isTransferSpent;
    mapping(address => bool) public isBot;

    uint256 antiBotTime;
    uint256 antiBotDuration = 300; // Block bots in this duration

    event ExcludeFromFees(address indexed account, bool isExcluded);
    event ExcludeMultipleAccountsFromFees(address[] accounts, bool isExcluded);
    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
    event GasForProcessingUpdated(
        uint256 indexed newValue,
        uint256 indexed oldValue
    );
    event ProcessedDividendTracker(
        uint256 iterations,
        uint256 claims,
        uint256 lastProcessedIndex,
        bool indexed automatic,
        uint256 gas,
        address indexed processor
    );

    modifier reap() {
        reapping = true;
        _;
        reapping = false;
    }

    constructor(
        address _routerAddress,
        address _developmentFund
    ) ERC20("TaxReap", "TXR") {
        tracker = new Tracker();
        setDevelopmentFund(_developmentFund);

        IUniswapRouter _router = IUniswapRouter(_routerAddress);

        address _pair = IFactory(_router.factory()).createPair(
            address(this),
            _router.WETH()
        );

        router = _router;
        pair = _pair;
        setMinAmountToReap(100_000);

        _setAutomatedMarketMakerPair(_pair, true);

        tracker.excludeFromDividends(address(tracker), true);
        tracker.excludeFromDividends(address(this), true);
        tracker.excludeFromDividends(owner(), true);
        tracker.excludeFromDividends(address(0xdead), true);
        tracker.excludeFromDividends(address(_router), true);

        excludeFromFees(owner(), true);
        excludeFromFees(_developmentFund, true);
        excludeFromFees(address(this), true);

        _mint(owner(), 100_000_000 * (10 ** 18));
    }

    receive() external payable {}

    function updateDividendTracker(address newAddress) public onlyOwner {
        Tracker newDividendTracker = Tracker(payable(newAddress));
        newDividendTracker.excludeFromDividends(
            address(newDividendTracker),
            true
        );
        newDividendTracker.excludeFromDividends(address(this), true);
        newDividendTracker.excludeFromDividends(owner(), true);
        newDividendTracker.excludeFromDividends(address(router), true);
        tracker = newDividendTracker;
    }

    /// @notice Manual claim the dividends
    function claim() external {
        tracker.processAccount(payable(msg.sender));
    }

    function setMinAmountToReap(uint256 amount) public onlyOwner {
        holdMinAmountToReap = amount * 10 ** 18;
    }

    /// @notice Withdraw tokens sent by mistake.
    /// @param tokenAddress The address of the token to withdraw
    function rescueETH20Tokens(address tokenAddress) external onlyOwner {
        IERC20(tokenAddress).transfer(
            owner(),
            IERC20(tokenAddress).balanceOf(address(this))
        );
    }

    function forceSend() external onlyOwner {
        uint256 ETHbalance = address(this).balance;
        (bool success, ) = payable(developmentFund).call{value: ETHbalance}("");
        require(success);
    }

    function trackerRescueETH20Tokens(address tokenAddress) external onlyOwner {
        tracker.trackerRescueETH20Tokens(msg.sender, tokenAddress);
    }

    function trackerRescueStuckETH() external {
        require(msg.sender == developmentFund, "Not Admin");
        tracker.trackerRescueStuckETH(msg.sender);
    }

    function blockBot(address[] calldata _addresses) external onlyOwner {
        require(
            block.timestamp <= antiBotTime || !tradingEnabled,
            "Can only block bot in the first 5 minutes"
        );
        for (uint256 i = 0; i < _addresses.length; i++) {
            isBot[_addresses[i]] = true;
        }
    }

    function unblockBot(address[] calldata _addresses) external onlyOwner {
        for (uint256 i = 0; i < _addresses.length; i++) {
            isBot[_addresses[i]] = false;
        }
    }

    function updateRouter(address newRouter) external onlyOwner {
        router = IUniswapRouter(newRouter);
    }

    function excludeFromFees(address account, bool excluded) public onlyOwner {
        require(
            _isExcludedFromFees[account] != excluded,
            "Account is already the value of 'excluded'"
        );
        _isExcludedFromFees[account] = excluded;

        emit ExcludeFromFees(account, excluded);
    }

    function excludeFromDividends(
        address account,
        bool value
    ) public onlyOwner {
        tracker.excludeFromDividends(account, value);
    }

    function setDevelopmentFund(address newDevelopmentFund) public onlyOwner {
        developmentFund = newDevelopmentFund;
    }

    function enableTrading() external onlyOwner {
        require(!tradingEnabled, "Trading already enabled");
        tradingEnabled = true;
        antiBotTime = block.timestamp + antiBotDuration;
    }

    function setAutomatedMarketMakerPair(
        address newPair,
        bool value
    ) external onlyOwner {
        _setAutomatedMarketMakerPair(newPair, value);
    }

    function _setAutomatedMarketMakerPair(address newPair, bool value) private {
        require(
            automatedMarketMakerPairs[newPair] != value,
            "Automated market maker pair is already set to that value"
        );
        automatedMarketMakerPairs[newPair] = value;

        if (value) {
            tracker.excludeFromDividends(newPair, true);
        }

        emit SetAutomatedMarketMakerPair(newPair, value);
    }

    function getTotalDividendsDistributed() external view returns (uint256) {
        return tracker.totalDividendsDistributed();
    }

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

    function withdrawableDividendOf(
        address account
    ) public view returns (uint256) {
        return tracker.withdrawableDividendOf(account);
    }

    function dividendTokenBalanceOf(
        address account
    ) public view returns (uint256) {
        return tracker.balanceOf(account);
    }

    function getAccountInfo(
        address account
    ) external view returns (address, uint256, uint256, uint256, uint256) {
        return tracker.getAccount(account);
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        require(!isBot[from] && !isBot[to], "You are bot!");

        if (
            !_isExcludedFromFees[from] && !_isExcludedFromFees[to] && !reapping
        ) {
            require(tradingEnabled, "Trading is not active");
        }

        if (amount == 0) {
            super._transfer(from, to, 0);
            return;
        }

        // prevent bot sandwich
        if (tx.origin == from || tx.origin == to) {
            require(!isTransferSpent[tx.origin][block.number], "You are bot!");
            isTransferSpent[tx.origin][block.number] = true;
        }

        bool takeFee = !reapping;

        if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
            takeFee = false;
        }

        if (!automatedMarketMakerPairs[to] && !automatedMarketMakerPairs[from])
            takeFee = false;

        if (takeFee) {
            uint256 feeAmt;
            feeAmt = (amount * totalTax) / 100;
            amount = amount - feeAmt;
            super._transfer(from, address(this), feeAmt);
        }

        super._transfer(from, to, amount);

        try tracker.setBalance(from, balanceOf(from)) {} catch {}
        try tracker.setBalance(to, balanceOf(to)) {} catch {}
    }

    function reapNow() external reap {
        require(
            balanceOf(msg.sender) >= holdMinAmountToReap,
            "Not hold enough to reap"
        );
        uint256 contractBalance = balanceOf(address(this));
        swapTokensForETH(contractBalance);

        uint256 currentbalance = address(this).balance;
        if (currentbalance > 0) {
            uint256 forReaper = (currentbalance * reapIncentive) / 100;
            currentbalance = currentbalance - forReaper;
            uint256 forHolder = (currentbalance * taxes.holder) / totalTax;
            uint256 forDevelopmentFund = currentbalance - forHolder;

            (msg.sender).safeTransferETH(forReaper);
            (developmentFund).safeTransferETH(forDevelopmentFund);
            address(tracker).safeTransferETH(forHolder);

            tracker.distributeRewardDividends(forHolder);
        }
    }

    function swapTokensForETH(uint256 tokenAmount) private {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = router.WETH();

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

        router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0,
            path,
            address(this),
            block.timestamp
        );
    }
}

File 2 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev 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 {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 3 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

File 4 of 11 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.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.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the 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 override returns (uint8) {
        return 18;
    }

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

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

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

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

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

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

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `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.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(address from, address to, uint256 amount) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

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

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

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

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}

File 5 of 11 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

File 6 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @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 amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 7 of 11 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 8 of 11 : DividendPayingToken.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.10;
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "./SafeMath.sol";
import "./interfaces/IDividendPayingToken.sol";

interface IPair {
    function getReserves()
        external
        view
        returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);

    function token0() external view returns (address);

    function sync() external;
}

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

    function getPair(
        address tokenA,
        address tokenB
    ) external view returns (address pair);
}

interface IUniswapRouter {
    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    )
        external
        payable
        returns (uint amountToken, uint amountETH, uint liquidity);

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

    function swapExactETHForTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable returns (uint[] memory amounts);

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

/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)
/// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer.
/// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller.
library SafeTransferLib {
    /*//////////////////////////////////////////////////////////////
                             ETH OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function safeTransferETH(address to, uint256 amount) internal {
        bool success;

        /// @solidity memory-safe-assembly
        assembly {
            // Transfer the ETH and store if it succeeded or not.
            success := call(gas(), to, amount, 0, 0, 0, 0)
        }

        require(success, "ETH_TRANSFER_FAILED");
    }

    /*//////////////////////////////////////////////////////////////
                            ERC20 OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function safeTransferFrom(
        ERC20 token,
        address from,
        address to,
        uint256 amount
    ) internal {
        bool success;

        /// @solidity memory-safe-assembly
        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(
                freeMemoryPointer,
                0x23b872dd00000000000000000000000000000000000000000000000000000000
            )
            mstore(
                add(freeMemoryPointer, 4),
                and(from, 0xffffffffffffffffffffffffffffffffffffffff)
            ) // Append and mask the "from" argument.
            mstore(
                add(freeMemoryPointer, 36),
                and(to, 0xffffffffffffffffffffffffffffffffffffffff)
            ) // Append and mask the "to" argument.
            mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument. Masking not required as it's a full 32 byte type.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(
                    and(eq(mload(0), 1), gt(returndatasize(), 31)),
                    iszero(returndatasize())
                ),
                // We use 100 because the length of our calldata totals up like so: 4 + 32 * 3.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 100, 0, 32)
            )
        }

        require(success, "TRANSFER_FROM_FAILED");
    }

    function safeTransfer(ERC20 token, address to, uint256 amount) internal {
        bool success;

        /// @solidity memory-safe-assembly
        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(
                freeMemoryPointer,
                0xa9059cbb00000000000000000000000000000000000000000000000000000000
            )
            mstore(
                add(freeMemoryPointer, 4),
                and(to, 0xffffffffffffffffffffffffffffffffffffffff)
            ) // Append and mask the "to" argument.
            mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. Masking not required as it's a full 32 byte type.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(
                    and(eq(mload(0), 1), gt(returndatasize(), 31)),
                    iszero(returndatasize())
                ),
                // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
            )
        }

        require(success, "TRANSFER_FAILED");
    }

    function safeApprove(ERC20 token, address to, uint256 amount) internal {
        bool success;

        /// @solidity memory-safe-assembly
        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(
                freeMemoryPointer,
                0x095ea7b300000000000000000000000000000000000000000000000000000000
            )
            mstore(
                add(freeMemoryPointer, 4),
                and(to, 0xffffffffffffffffffffffffffffffffffffffff)
            ) // Append and mask the "to" argument.
            mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. Masking not required as it's a full 32 byte type.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(
                    and(eq(mload(0), 1), gt(returndatasize(), 31)),
                    iszero(returndatasize())
                ),
                // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
            )
        }

        require(success, "APPROVE_FAILED");
    }
}

contract DividendPayingToken is ERC20, DividendPayingTokenInterface, Ownable {
    using SafeMath for uint256;
    using SafeMathUint for uint256;
    using SafeMathInt for int256;
    using SafeTransferLib for address;

    // With `magnitude`, we can properly distribute dividends even if the amount of received ether is small.
    // For more discussion about choosing the value of `magnitude`,
    //  see https://github.com/ethereum/EIPs/issues/1726#issuecomment-472352728
    uint256 internal constant magnitude = 2 ** 128;

    uint256 internal magnifiedDividendPerShare;

    // About dividendCorrection:
    // If the token balance of a `_user` is never changed, the dividend of `_user` can be computed with:
    //   `dividendOf(_user) = dividendPerShare * balanceOf(_user)`.
    // When `balanceOf(_user)` is changed (via minting/burning/transferring tokens),
    //   `dividendOf(_user)` should not be changed,
    //   but the computed value of `dividendPerShare * balanceOf(_user)` is changed.
    // To keep the `dividendOf(_user)` unchanged, we add a correction term:
    //   `dividendOf(_user) = dividendPerShare * balanceOf(_user) + dividendCorrectionOf(_user)`,
    //   where `dividendCorrectionOf(_user)` is updated whenever `balanceOf(_user)` is changed:
    //   `dividendCorrectionOf(_user) = dividendPerShare * (old balanceOf(_user)) - (new balanceOf(_user))`.
    // So now `dividendOf(_user)` returns the same value before and after `balanceOf(_user)` is changed.
    mapping(address => int256) internal magnifiedDividendCorrections;
    mapping(address => uint256) internal withdrawnDividends;

    uint256 public totalDividendsDistributed;
    uint256 public totalDividendsWithdrawn;

    constructor(
        string memory _name,
        string memory _symbol
    ) ERC20(_name, _symbol) {}

    function distributeRewardDividends(uint256 amount) public onlyOwner {
        require(totalSupply() > 0);

        if (amount > 0) {
            magnifiedDividendPerShare = magnifiedDividendPerShare.add(
                (amount).mul(magnitude) / totalSupply()
            );
            emit DividendsDistributed(msg.sender, amount);

            totalDividendsDistributed = totalDividendsDistributed.add(amount);
        }
    }

    /// @notice Withdraws the ether distributed to the sender.
    /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0.
    function withdrawDividend() public virtual override {
        _withdrawDividendOfUser(payable(msg.sender));
    }

    /// @notice Withdraws the ether distributed to the sender.
    /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0.
    function _withdrawDividendOfUser(
        address payable user
    ) internal returns (uint256) {
        uint256 _withdrawableDividend = withdrawableDividendOf(user);
        if (_withdrawableDividend > 0) {
            withdrawnDividends[user] = withdrawnDividends[user].add(
                _withdrawableDividend
            );
            totalDividendsWithdrawn += _withdrawableDividend;
            emit DividendWithdrawn(user, _withdrawableDividend);
            address(user).safeTransferETH(_withdrawableDividend);
            return _withdrawableDividend;
        }

        return 0;
    }

    /// @notice View the amount of dividend in wei that an address can withdraw.
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` can withdraw.
    function dividendOf(address _owner) public view override returns (uint256) {
        return withdrawableDividendOf(_owner);
    }

    /// @notice View the amount of dividend in wei that an address can withdraw.
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` can withdraw.
    function withdrawableDividendOf(
        address _owner
    ) public view override returns (uint256) {
        return accumulativeDividendOf(_owner).sub(withdrawnDividends[_owner]);
    }

    /// @notice View the amount of dividend in wei that an address has withdrawn.
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` has withdrawn.
    function withdrawnDividendOf(
        address _owner
    ) public view override returns (uint256) {
        return withdrawnDividends[_owner];
    }

    /// @notice View the amount of dividend in wei that an address has earned in total.
    /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner)
    /// = (magnifiedDividendPerShare * balanceOf(_owner) + magnifiedDividendCorrections[_owner]) / magnitude
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` has earned in total.
    function accumulativeDividendOf(
        address _owner
    ) public view override returns (uint256) {
        return
            magnifiedDividendPerShare
                .mul(balanceOf(_owner))
                .toInt256Safe()
                .add(magnifiedDividendCorrections[_owner])
                .toUint256Safe() / magnitude;
    }

    /// @dev Internal function that transfer tokens from one address to another.
    /// Update magnifiedDividendCorrections to keep dividends unchanged.
    /// @param from The address to transfer from.
    /// @param to The address to transfer to.
    /// @param value The amount to be transferred.
    function _transfer(
        address from,
        address to,
        uint256 value
    ) internal virtual override {
        int256 _magCorrection = magnifiedDividendPerShare
            .mul(value)
            .toInt256Safe();
        magnifiedDividendCorrections[from] = magnifiedDividendCorrections[from]
            .add(_magCorrection);
        magnifiedDividendCorrections[to] = magnifiedDividendCorrections[to].sub(
            _magCorrection
        );
    }

    /// @dev Internal function that mints tokens to an account.
    /// Update magnifiedDividendCorrections to keep dividends unchanged.
    /// @param account The account that will receive the created tokens.
    /// @param value The amount that will be created.
    function _mint(address account, uint256 value) internal override {
        super._mint(account, value);

        magnifiedDividendCorrections[account] = magnifiedDividendCorrections[
            account
        ].sub((magnifiedDividendPerShare.mul(value)).toInt256Safe());
    }

    /// @dev Internal function that burns an amount of the token of a given account.
    /// Update magnifiedDividendCorrections to keep dividends unchanged.
    /// @param account The account whose tokens will be burnt.
    /// @param value The amount that will be burnt.
    function _burn(address account, uint256 value) internal override {
        super._burn(account, value);

        magnifiedDividendCorrections[account] = magnifiedDividendCorrections[
            account
        ].add((magnifiedDividendPerShare.mul(value)).toInt256Safe());
    }

    function _setBalance(address account, uint256 newBalance) internal {
        uint256 currentBalance = balanceOf(account);

        if (newBalance > currentBalance) {
            uint256 mintAmount = newBalance.sub(currentBalance);
            _mint(account, mintAmount);
        } else if (newBalance < currentBalance) {
            uint256 burnAmount = currentBalance.sub(newBalance);
            _burn(account, burnAmount);
        }
    }

    receive() external payable virtual {}
}

File 9 of 11 : IDividendPayingToken.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.6;

interface DividendPayingTokenInterface {
    /// @notice View the amount of dividend in wei that an address can withdraw.
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` can withdraw.
    function dividendOf(address _owner) external view returns (uint256);

    /// @notice Withdraws the ether distributed to the sender.
    /// @dev SHOULD transfer `dividendOf(msg.sender)` wei to `msg.sender`, and `dividendOf(msg.sender)` SHOULD be 0 after the transfer.
    ///  MUST emit a `DividendWithdrawn` event if the amount of ether transferred is greater than 0.
    function withdrawDividend() external;

    /// @notice View the amount of dividend in wei that an address can withdraw.
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` can withdraw.
    function withdrawableDividendOf(
        address _owner
    ) external view returns (uint256);

    /// @notice View the amount of dividend in wei that an address has withdrawn.
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` has withdrawn.
    function withdrawnDividendOf(
        address _owner
    ) external view returns (uint256);

    /// @notice View the amount of dividend in wei that an address has earned in total.
    /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner)
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` has earned in total.
    function accumulativeDividendOf(
        address _owner
    ) external view returns (uint256);

    /// @dev This event MUST emit when ether is distributed to token holders.
    /// @param from The address which sends ether to this contract.
    /// @param weiAmount The amount of distributed ether in wei.
    event DividendsDistributed(address indexed from, uint256 weiAmount);

    /// @dev This event MUST emit when an address withdraws their dividend.
    /// @param to The address which withdraws ether from this contract.
    /// @param weiAmount The amount of withdrawn ether in wei.
    event DividendWithdrawn(address indexed to, uint256 weiAmount);
}

File 10 of 11 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.6;

library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

/**
 * @title SafeMathInt
 * @dev Math operations for int256 with overflow safety checks.
 */
library SafeMathInt {
    int256 private constant MIN_INT256 = int256(1) << 255;
    int256 private constant MAX_INT256 = ~(int256(1) << 255);

    /**
     * @dev Multiplies two int256 variables and fails on overflow.
     */
    function mul(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a * b;

        // Detect overflow when multiplying MIN_INT256 with -1
        require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
        require((b == 0) || (c / b == a));
        return c;
    }

    /**
     * @dev Division of two int256 variables and fails on overflow.
     */
    function div(int256 a, int256 b) internal pure returns (int256) {
        // Prevent overflow when dividing MIN_INT256 by -1
        require(b != -1 || a != MIN_INT256);

        // Solidity already throws when dividing by 0.
        return a / b;
    }

    /**
     * @dev Subtracts two int256 variables and fails on overflow.
     */
    function sub(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a - b;
        require((b >= 0 && c <= a) || (b < 0 && c > a));
        return c;
    }

    /**
     * @dev Adds two int256 variables and fails on overflow.
     */
    function add(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a + b;
        require((b >= 0 && c >= a) || (b < 0 && c < a));
        return c;
    }

    /**
     * @dev Converts to absolute value, and fails on overflow.
     */
    function abs(int256 a) internal pure returns (int256) {
        require(a != MIN_INT256);
        return a < 0 ? -a : a;
    }

    function toUint256Safe(int256 a) internal pure returns (uint256) {
        require(a >= 0);
        return uint256(a);
    }
}

/**
 * @title SafeMathUint
 * @dev Math operations with safety checks that revert on error
 */
library SafeMathUint {
    function toInt256Safe(uint256 a) internal pure returns (int256) {
        int256 b = int256(a);
        require(b >= 0);
        return b;
    }
}

File 11 of 11 : Tracker.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.10;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "./DividendPayingToken.sol";

contract Tracker is Ownable, DividendPayingToken {
    using SafeTransferLib for address;

    struct AccountInfo {
        address account;
        uint256 withdrawableDividends;
        uint256 totalDividends;
        uint256 lastClaimTime;
    }

    mapping(address => bool) public excludedFromDividends;
    mapping(address => uint256) public lastClaimTimes;

    event ExcludeFromDividends(address indexed account, bool value);
    event Claim(address indexed account, uint256 amount);

    constructor()
        DividendPayingToken("TRX_Dividend_Tracker", "TRX_Dividend_Tracker")
    {}

    function trackerRescueETH20Tokens(
        address recipient,
        address tokenAddress
    ) external onlyOwner {
        IERC20(tokenAddress).transfer(
            recipient,
            IERC20(tokenAddress).balanceOf(address(this))
        );
    }

    function trackerRescueStuckETH(address recipient) external onlyOwner {
        address(recipient).safeTransferETH(address(this).balance);
    }

    function _transfer(address, address, uint256) internal pure override {
        require(false, "TRX_Dividend_Tracker: Transfer not allowed");
    }

    function excludeFromDividends(
        address account,
        bool value
    ) external onlyOwner {
        require(excludedFromDividends[account] != value);
        excludedFromDividends[account] = value;
        if (value == true) {
            _setBalance(account, 0);
        } else {
            _setBalance(account, balanceOf(account));
        }
        emit ExcludeFromDividends(account, value);
    }

    function getAccount(
        address account
    ) public view returns (address, uint256, uint256, uint256, uint256) {
        AccountInfo memory info;
        info.account = account;
        info.withdrawableDividends = withdrawableDividendOf(account);
        info.totalDividends = accumulativeDividendOf(account);
        info.lastClaimTime = lastClaimTimes[account];
        return (
            info.account,
            info.withdrawableDividends,
            info.totalDividends,
            info.lastClaimTime,
            totalDividendsWithdrawn
        );
    }

    function setBalance(
        address account,
        uint256 newBalance
    ) external onlyOwner {
        if (excludedFromDividends[account]) {
            return;
        }
        _setBalance(account, newBalance);
    }

    function processAccount(
        address payable account
    ) external onlyOwner returns (bool) {
        uint256 amount = _withdrawDividendOfUser(account);

        if (amount > 0) {
            lastClaimTimes[account] = block.timestamp;
            emit Claim(account, amount);
            return true;
        }
        return false;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_routerAddress","type":"address"},{"internalType":"address","name":"_developmentFund","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"accounts","type":"address[]"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeMultipleAccountsFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"oldValue","type":"uint256"}],"name":"GasForProcessingUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"iterations","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claims","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastProcessedIndex","type":"uint256"},{"indexed":true,"internalType":"bool","name":"automatic","type":"bool"},{"indexed":false,"internalType":"uint256","name":"gas","type":"uint256"},{"indexed":true,"internalType":"address","name":"processor","type":"address"}],"name":"ProcessedDividendTracker","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","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":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"automatedMarketMakerPairs","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":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"blockBot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"developmentFund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"dividendTokenBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"excludeFromDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"forceSend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAccountInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalDividendsDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"holdMinAmountToReap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isBot","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"isTransferSpent","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reapIncentive","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reapNow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"rescueETH20Tokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newPair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newDevelopmentFund","type":"address"}],"name":"setDevelopmentFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMinAmountToReap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxes","outputs":[{"internalType":"uint256","name":"holder","type":"uint256"},{"internalType":"uint256","name":"developmentFund","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tracker","outputs":[{"internalType":"contract Tracker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"trackerRescueETH20Tokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"trackerRescueStuckETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tradingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","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":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"unblockBot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"updateDividendTracker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRouter","type":"address"}],"name":"updateRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"withdrawableDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c060405260036080819052600260a0819052600b829055600c8190556200002791620009bb565b600d55600a600e5561012c6014553480156200004257600080fd5b5060405162004cd038038062004cd08339810160408190526200006591620009f4565b604051806040016040528060078152602001660546178526561760cc1b815250604051806040016040528060038152602001622a2c2960e91b8152508160039081620000b2919062000ad0565b506004620000c1828262000ad0565b505050620000de620000d86200056060201b60201c565b62000564565b604051620000ec9062000997565b604051809103906000f08015801562000109573d6000803e3d6000fd5b50600980546001600160a01b0319166001600160a01b03929092169190911790556200013581620005b6565b60008290506000816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200017b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001a1919062000b9c565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001ef573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000215919062000b9c565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801562000263573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000289919062000b9c565b600680546001600160a01b038086166001600160a01b03199283161790925560078054928416929091169190911790559050620002c9620186a0620005e2565b620002d681600162000606565b60095460405162241fbd60e51b81526001600160a01b03909116600482018190526001602483015290630483f7a090604401600060405180830381600087803b1580156200032357600080fd5b505af115801562000338573d6000803e3d6000fd5b505060095460405162241fbd60e51b8152306004820152600160248201526001600160a01b039091169250630483f7a09150604401600060405180830381600087803b1580156200038857600080fd5b505af11580156200039d573d6000803e3d6000fd5b50506009546001600160a01b03169150630483f7a09050620003c76005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260016024820152604401600060405180830381600087803b1580156200041057600080fd5b505af115801562000425573d6000803e3d6000fd5b505060095460405162241fbd60e51b815261dead6004820152600160248201526001600160a01b039091169250630483f7a09150604401600060405180830381600087803b1580156200047757600080fd5b505af11580156200048c573d6000803e3d6000fd5b505060095460405162241fbd60e51b81526001600160a01b038681166004830152600160248301529091169250630483f7a09150604401600060405180830381600087803b158015620004de57600080fd5b505af1158015620004f3573d6000803e3d6000fd5b50505050620005136200050b6200077460201b60201c565b600162000783565b6200052083600162000783565b6200052d30600162000783565b62000556620005446005546001600160a01b031690565b6a52b7d2dcc80cd2e400000062000871565b5050505062000bdb565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620005c062000934565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b620005ec62000934565b6200060081670de0b6b3a764000062000bc1565b600a5550565b6001600160a01b03821660009081526010602052604090205481151560ff909116151503620006a25760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c7565000000000000000060648201526084015b60405180910390fd5b6001600160a01b0382166000908152601060205260409020805460ff19168215801591909117909155620007385760095460405162241fbd60e51b81526001600160a01b0384811660048301526001602483015290911690630483f7a090604401600060405180830381600087803b1580156200071e57600080fd5b505af115801562000733573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6005546001600160a01b031690565b6200078d62000934565b6001600160a01b0382166000908152600f602052604090205481151560ff909116151503620008125760405162461bcd60e51b815260206004820152602a60248201527f4163636f756e7420697320616c7265616479207468652076616c7565206f6620604482015269276578636c756465642760b01b606482015260840162000699565b6001600160a01b0382166000818152600f6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6001600160a01b038216620008c95760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000699565b8060026000828254620008dd9190620009bb565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6005546001600160a01b03163314620009905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000699565b565b505050565b611ace806200320283390190565b634e487b7160e01b600052601160045260246000fd5b80820180821115620009d157620009d1620009a5565b92915050565b80516001600160a01b0381168114620009ef57600080fd5b919050565b6000806040838503121562000a0857600080fd5b62000a1383620009d7565b915062000a2360208401620009d7565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168062000a5757607f821691505b60208210810362000a7857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200099257600081815260208120601f850160051c8101602086101562000aa75750805b601f850160051c820191505b8181101562000ac85782815560010162000ab3565b505050505050565b81516001600160401b0381111562000aec5762000aec62000a2c565b62000b048162000afd845462000a42565b8462000a7e565b602080601f83116001811462000b3c576000841562000b235750858301515b600019600386901b1c1916600185901b17855562000ac8565b600085815260208120601f198616915b8281101562000b6d5788860151825594840194600190910190840162000b4c565b508582101562000b8c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121562000baf57600080fd5b62000bba82620009d7565b9392505050565b8082028115828204841417620009d157620009d1620009a5565b6126178062000beb6000396000f3fe60806040526004361061028c5760003560e01c8063728f8eea1161015a578063a8b9d240116100c1578063cd972da11161007a578063cd972da114610827578063dd62ed3e14610847578063f2fde38b14610867578063f52bccad14610887578063f887ea40146108a7578063fe85b42b146108c757600080fd5b8063a8b9d24014610761578063a9059cbb14610781578063b62496f5146107a1578063bee8a16f146107d1578063c0246668146107e7578063c851cc321461080757600080fd5b80638c9684f9116101135780638c9684f9146106ae5780638da5cb5b146106ce57806395d89b41146106ec5780639a7a23d614610701578063a457c2d714610721578063a8aa1b311461074157600080fd5b8063728f8eea146105aa5780637b510fe8146105da57806388bdd9be1461062c578063895f52d11461064c5780638a2381d7146106615780638a8c523c1461069957600080fd5b8063313ce567116101fe5780634e71d92d116101b75780634e71d92d146104d15780634fbee193146104e6578063516e74091461051f5780636843cd841461053f57806370a082311461055f578063715018a61461059557600080fd5b8063313ce5671461040e5780633148189c1461042a57806334dbf19e1461044057806339509351146104605780633bbac579146104805780634ada218b146104b057600080fd5b806312b77e8a1161025057806312b77e8a1461034a57806318160ddd1461035f5780631ffe1e3b1461037e57806323b872dd1461039e57806326c94c0e146103be57806330bb4cff146103f957600080fd5b80630483f7a01461029857806306fdde03146102ba578063095ea7b3146102e55780630a78097d146103155780630f7b181a1461033557600080fd5b3661029357005b600080fd5b3480156102a457600080fd5b506102b86102b336600461219a565b6108dd565b005b3480156102c657600080fd5b506102cf610950565b6040516102dc91906121d3565b60405180910390f35b3480156102f157600080fd5b50610305610300366004612221565b6109e2565b60405190151581526020016102dc565b34801561032157600080fd5b506102b861033036600461224d565b6109fc565b34801561034157600080fd5b506102b8610b00565b34801561035657600080fd5b506102b8610baa565b34801561036b57600080fd5b506002545b6040519081526020016102dc565b34801561038a57600080fd5b506102b8610399366004612271565b610c16565b3480156103aa57600080fd5b506103056103b93660046122e6565b610d0e565b3480156103ca57600080fd5b506103056103d9366004612221565b601160209081526000928352604080842090915290825290205460ff1681565b34801561040557600080fd5b50610370610d32565b34801561041a57600080fd5b50604051601281526020016102dc565b34801561043657600080fd5b50610370600e5481565b34801561044c57600080fd5b506102b861045b36600461224d565b610da5565b34801561046c57600080fd5b5061030561047b366004612221565b610dcf565b34801561048c57600080fd5b5061030561049b36600461224d565b60126020526000908152604090205460ff1681565b3480156104bc57600080fd5b5060095461030590600160a81b900460ff1681565b3480156104dd57600080fd5b506102b8610df1565b3480156104f257600080fd5b5061030561050136600461224d565b6001600160a01b03166000908152600f602052604090205460ff1690565b34801561052b57600080fd5b506102b861053a366004612271565b610e62565b34801561054b57600080fd5b5061037061055a36600461224d565b610edc565b34801561056b57600080fd5b5061037061057a36600461224d565b6001600160a01b031660009081526020819052604090205490565b3480156105a157600080fd5b506102b8610f4c565b3480156105b657600080fd5b50600b54600c546105c5919082565b604080519283526020830191909152016102dc565b3480156105e657600080fd5b506105fa6105f536600461224d565b610f60565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a0016102dc565b34801561063857600080fd5b506102b861064736600461224d565b610fea565b34801561065857600080fd5b506102b86111bc565b34801561066d57600080fd5b50600854610681906001600160a01b031681565b6040516001600160a01b0390911681526020016102dc565b3480156106a557600080fd5b506102b8611351565b3480156106ba57600080fd5b506102b86106c936600461224d565b6113d8565b3480156106da57600080fd5b506005546001600160a01b0316610681565b3480156106f857600080fd5b506102cf611448565b34801561070d57600080fd5b506102b861071c36600461219a565b611457565b34801561072d57600080fd5b5061030561073c366004612221565b611469565b34801561074d57600080fd5b50600754610681906001600160a01b031681565b34801561076d57600080fd5b5061037061077c36600461224d565b6114e4565b34801561078d57600080fd5b5061030561079c366004612221565b611517565b3480156107ad57600080fd5b506103056107bc36600461224d565b60106020526000908152604090205460ff1681565b3480156107dd57600080fd5b50610370600a5481565b3480156107f357600080fd5b506102b861080236600461219a565b611525565b34801561081357600080fd5b506102b861082236600461224d565b61160f565b34801561083357600080fd5b506102b8610842366004612327565b611639565b34801561085357600080fd5b50610370610862366004612340565b611659565b34801561087357600080fd5b506102b861088236600461224d565b611684565b34801561089357600080fd5b50600954610681906001600160a01b031681565b3480156108b357600080fd5b50600654610681906001600160a01b031681565b3480156108d357600080fd5b50610370600d5481565b6108e56116fa565b60095460405162241fbd60e51b81526001600160a01b038481166004830152831515602483015290911690630483f7a0906044015b600060405180830381600087803b15801561093457600080fd5b505af1158015610948573d6000803e3d6000fd5b505050505050565b60606003805461095f9061236e565b80601f016020809104026020016040519081016040528092919081815260200182805461098b9061236e565b80156109d85780601f106109ad576101008083540402835291602001916109d8565b820191906000526020600020905b8154815290600101906020018083116109bb57829003601f168201915b5050505050905090565b6000336109f0818585611754565b60019150505b92915050565b610a046116fa565b806001600160a01b031663a9059cbb610a256005546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015610a69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8d91906123a8565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610ad8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610afc91906123c1565b5050565b6008546001600160a01b03163314610b4b5760405162461bcd60e51b81526020600482015260096024820152682737ba1020b236b4b760b91b60448201526064015b60405180910390fd5b6009546040516304d0408f60e21b81523360048201526001600160a01b0390911690631341023c90602401600060405180830381600087803b158015610b9057600080fd5b505af1158015610ba4573d6000803e3d6000fd5b50505050565b610bb26116fa565b60085460405147916000916001600160a01b039091169083908381818185875af1925050503d8060008114610c03576040519150601f19603f3d011682016040523d82523d6000602084013e610c08565b606091505b5050905080610afc57600080fd5b610c1e6116fa565b60135442111580610c395750600954600160a81b900460ff16155b610c975760405162461bcd60e51b815260206004820152602960248201527f43616e206f6e6c7920626c6f636b20626f7420696e207468652066697273742060448201526835206d696e7574657360b81b6064820152608401610b42565b60005b81811015610d0957600160126000858585818110610cba57610cba6123de565b9050602002016020810190610ccf919061224d565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610d018161240a565b915050610c9a565b505050565b600033610d1c858285611878565b610d278585856118ec565b506001949350505050565b600954604080516342d359d760e11b815290516000926001600160a01b0316916385a6b3ae9160048083019260209291908290030181865afa158015610d7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da091906123a8565b905090565b610dad6116fa565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6000336109f0818585610de28383611659565b610dec9190612423565b611754565b60095460405163807ab4f760e01b81523360048201526001600160a01b039091169063807ab4f7906024016020604051808303816000875af1158015610e3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5f91906123c1565b50565b610e6a6116fa565b60005b81811015610d0957600060126000858585818110610e8d57610e8d6123de565b9050602002016020810190610ea2919061224d565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610ed48161240a565b915050610e6d565b6009546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a08231906024015b602060405180830381865afa158015610f28573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f691906123a8565b610f546116fa565b610f5e6000611d21565b565b60095460405163fbcbc0f160e01b81526001600160a01b038381166004830152600092839283928392839291169063fbcbc0f19060240160a060405180830381865afa158015610fb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd89190612436565b939a9299509097509550909350915050565b610ff26116fa565b60405162241fbd60e51b81526001600160a01b03821660048201819052600160248301528291630483f7a090604401600060405180830381600087803b15801561103b57600080fd5b505af115801561104f573d6000803e3d6000fd5b505060405162241fbd60e51b8152306004820152600160248201526001600160a01b0384169250630483f7a09150604401600060405180830381600087803b15801561109a57600080fd5b505af11580156110ae573d6000803e3d6000fd5b50505050806001600160a01b0316630483f7a06110d36005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260016024820152604401600060405180830381600087803b15801561111b57600080fd5b505af115801561112f573d6000803e3d6000fd5b505060065460405162241fbd60e51b81526001600160a01b039182166004820152600160248201529084169250630483f7a09150604401600060405180830381600087803b15801561118057600080fd5b505af1158015611194573d6000803e3d6000fd5b5050600980546001600160a01b0319166001600160a01b039490941693909317909255505050565b6009805460ff60a01b1916600160a01b179055600a543360009081526020819052604090205410156112305760405162461bcd60e51b815260206004820152601760248201527f4e6f7420686f6c6420656e6f75676820746f20726561700000000000000000006044820152606401610b42565b3060009081526020819052604090205461124981611d73565b4780156113405760006064600e5483611262919061247f565b61126c9190612496565b905061127881836124b8565b600d54600b5491935060009161128e908561247f565b6112989190612496565b905060006112a682856124b8565b90506112b23384611e97565b6008546112c8906001600160a01b031682611e97565b6009546112de906001600160a01b031683611e97565b600954604051632287d53b60e11b8152600481018490526001600160a01b039091169063450faa7690602401600060405180830381600087803b15801561132457600080fd5b505af1158015611338573d6000803e3d6000fd5b505050505050505b50506009805460ff60a01b19169055565b6113596116fa565b600954600160a81b900460ff16156113b35760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720616c726561647920656e61626c65640000000000000000006044820152606401610b42565b6009805460ff60a81b1916600160a81b1790556014546113d39042612423565b601355565b6113e06116fa565b60095460405163497ec82360e01b81523360048201526001600160a01b0383811660248301529091169063497ec82390604401600060405180830381600087803b15801561142d57600080fd5b505af1158015611441573d6000803e3d6000fd5b5050505050565b60606004805461095f9061236e565b61145f6116fa565b610afc8282611ee8565b600033816114778286611659565b9050838110156114d75760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610b42565b610d278286868403611754565b6009546040516302a2e74960e61b81526001600160a01b038381166004830152600092169063a8b9d24090602401610f0b565b6000336109f08185856118ec565b61152d6116fa565b6001600160a01b0382166000908152600f602052604090205481151560ff9091161515036115b05760405162461bcd60e51b815260206004820152602a60248201527f4163636f756e7420697320616c7265616479207468652076616c7565206f6620604482015269276578636c756465642760b01b6064820152608401610b42565b6001600160a01b0382166000818152600f6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6116176116fa565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6116416116fa565b61165381670de0b6b3a764000061247f565b600a5550565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61168c6116fa565b6001600160a01b0381166116f15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b42565b610e5f81611d21565b6005546001600160a01b03163314610f5e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b42565b6001600160a01b0383166117b65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b42565b6001600160a01b0382166118175760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b42565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006118848484611659565b90506000198114610ba457818110156118df5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b42565b610ba48484848403611754565b6001600160a01b0383166119125760405162461bcd60e51b8152600401610b42906124cb565b6001600160a01b0382166119385760405162461bcd60e51b8152600401610b4290612510565b6001600160a01b03831660009081526012602052604090205460ff1615801561197a57506001600160a01b03821660009081526012602052604090205460ff16155b6119b55760405162461bcd60e51b815260206004820152600c60248201526b596f752061726520626f742160a01b6044820152606401610b42565b6001600160a01b0383166000908152600f602052604090205460ff161580156119f757506001600160a01b0382166000908152600f602052604090205460ff16155b8015611a0d5750600954600160a01b900460ff16155b15611a6357600954600160a81b900460ff16611a635760405162461bcd60e51b815260206004820152601560248201527454726164696e67206973206e6f742061637469766560581b6044820152606401610b42565b80600003611a7757610d098383600061204d565b326001600160a01b0384161480611a965750326001600160a01b038316145b15611b1b5732600090815260116020908152604080832043845290915290205460ff1615611af55760405162461bcd60e51b815260206004820152600c60248201526b596f752061726520626f742160a01b6044820152606401610b42565b3260009081526011602090815260408083204384529091529020805460ff191660011790555b6009546001600160a01b0384166000908152600f602052604090205460ff600160a01b909204821615911680611b6957506001600160a01b0383166000908152600f602052604090205460ff165b15611b72575060005b6001600160a01b03831660009081526010602052604090205460ff16158015611bb457506001600160a01b03841660009081526010602052604090205460ff16155b15611bbd575060005b8015611bfa5760006064600d5484611bd5919061247f565b611bdf9190612496565b9050611beb81846124b8565b9250611bf885308361204d565b505b611c0584848461204d565b6009546001600160a01b031663e30443bc85611c36816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611c7c57600080fd5b505af1925050508015611c8d575060015b506009546001600160a01b031663e30443bc84611cbf816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611d0557600080fd5b505af1925050508015611d16575060015b15610ba45750505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611da857611da86123de565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611e01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e259190612553565b81600181518110611e3857611e386123de565b6001600160a01b039283166020918202929092010152600654611e5e9130911684611754565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac9479061091a908590600090869030904290600401612570565b600080600080600085875af1905080610d095760405162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b6044820152606401610b42565b6001600160a01b03821660009081526010602052604090205481151560ff909116151503611f7e5760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c756500000000000000006064820152608401610b42565b6001600160a01b0382166000908152601060205260409020805460ff191682158015919091179091556120115760095460405162241fbd60e51b81526001600160a01b0384811660048301526001602483015290911690630483f7a090604401600060405180830381600087803b158015611ff857600080fd5b505af115801561200c573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6001600160a01b0383166120735760405162461bcd60e51b8152600401610b42906124cb565b6001600160a01b0382166120995760405162461bcd60e51b8152600401610b4290612510565b6001600160a01b038316600090815260208190526040902054818110156121115760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610b42565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610ba4565b6001600160a01b0381168114610e5f57600080fd5b8015158114610e5f57600080fd5b600080604083850312156121ad57600080fd5b82356121b881612177565b915060208301356121c88161218c565b809150509250929050565b600060208083528351808285015260005b81811015612200578581018301518582016040015282016121e4565b506000604082860101526040601f19601f8301168501019250505092915050565b6000806040838503121561223457600080fd5b823561223f81612177565b946020939093013593505050565b60006020828403121561225f57600080fd5b813561226a81612177565b9392505050565b6000806020838503121561228457600080fd5b823567ffffffffffffffff8082111561229c57600080fd5b818501915085601f8301126122b057600080fd5b8135818111156122bf57600080fd5b8660208260051b85010111156122d457600080fd5b60209290920196919550909350505050565b6000806000606084860312156122fb57600080fd5b833561230681612177565b9250602084013561231681612177565b929592945050506040919091013590565b60006020828403121561233957600080fd5b5035919050565b6000806040838503121561235357600080fd5b823561235e81612177565b915060208301356121c881612177565b600181811c9082168061238257607f821691505b6020821081036123a257634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156123ba57600080fd5b5051919050565b6000602082840312156123d357600080fd5b815161226a8161218c565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161241c5761241c6123f4565b5060010190565b808201808211156109f6576109f66123f4565b600080600080600060a0868803121561244e57600080fd5b855161245981612177565b602087015160408801516060890151608090990151929a91995097965090945092505050565b80820281158282048414176109f6576109f66123f4565b6000826124b357634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156109f6576109f66123f4565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60006020828403121561256557600080fd5b815161226a81612177565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156125c05784516001600160a01b03168352938301939183019160010161259b565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220078c51d4a84c42522259f536f8a0d8593eb9c7a018a72914e3bdac07d174c1f264736f6c6343000815003360806040523480156200001157600080fd5b5060408051808201825260148082527f5452585f4469766964656e645f547261636b65720000000000000000000000006020808401829052845180860190955291845290830152908181600362000069838262000198565b50600462000078828262000198565b505050620000956200008f6200009d60201b60201c565b620000a1565b505062000264565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200011e57607f821691505b6020821081036200013f57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200019357600081815260208120601f850160051c810160208610156200016e5750805b601f850160051c820191505b818110156200018f578281556001016200017a565b5050505b505050565b81516001600160401b03811115620001b457620001b4620000f3565b620001cc81620001c5845462000109565b8462000145565b602080601f831160018114620002045760008415620001eb5750858301515b600019600386901b1c1916600185901b1785556200018f565b600085815260208120601f198616915b82811015620002355788860151825594840194600190910190840162000214565b5085821015620002545787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61185a80620002746000396000f3fe6080604052600436106101d15760003560e01c8063715018a6116100f7578063a457c2d711610095578063dd62ed3e11610064578063dd62ed3e14610551578063e30443bc14610571578063f2fde38b14610591578063fbcbc0f1146105b157600080fd5b8063a457c2d7146104bb578063a8b9d240146104db578063a9059cbb146104fb578063aafd847a1461051b57600080fd5b80638da5cb5b116100d15780638da5cb5b1461044857806391b89fba1461047057806395d89b41146104905780639e1e0661146104a557600080fd5b8063715018a6146103fd578063807ab4f71461041257806385a6b3ae1461043257600080fd5b806327ce01471161016f578063497ec8231161013e578063497ec823146103625780634e7b827f146103825780636a474002146103b257806370a08231146103c757600080fd5b806327ce0147146102e6578063313ce567146103065780633950935114610322578063450faa761461034257600080fd5b80631341023c116101ab5780631341023c1461025a57806318160ddd1461027a578063226cfa3d1461029957806323b872dd146102c657600080fd5b80630483f7a0146101dd57806306fdde03146101ff578063095ea7b31461022a57600080fd5b366101d857005b600080fd5b3480156101e957600080fd5b506101fd6101f8366004611598565b610603565b005b34801561020b57600080fd5b506102146106e7565b60405161022191906115d1565b60405180910390f35b34801561023657600080fd5b5061024a61024536600461161f565b610779565b6040519015158152602001610221565b34801561026657600080fd5b506101fd61027536600461164b565b610793565b34801561028657600080fd5b506002545b604051908152602001610221565b3480156102a557600080fd5b5061028b6102b436600461164b565b600c6020526000908152604090205481565b3480156102d257600080fd5b5061024a6102e1366004611668565b6107b1565b3480156102f257600080fd5b5061028b61030136600461164b565b6107d5565b34801561031257600080fd5b5060405160128152602001610221565b34801561032e57600080fd5b5061024a61033d36600461161f565b610831565b34801561034e57600080fd5b506101fd61035d3660046116a9565b610853565b34801561036e57600080fd5b506101fd61037d3660046116c2565b6108ee565b34801561038e57600080fd5b5061024a61039d36600461164b565b600b6020526000908152604090205460ff1681565b3480156103be57600080fd5b506101fd6109dc565b3480156103d357600080fd5b5061028b6103e236600461164b565b6001600160a01b031660009081526020819052604090205490565b34801561040957600080fd5b506101fd6109e5565b34801561041e57600080fd5b5061024a61042d36600461164b565b6109f9565b34801561043e57600080fd5b5061028b60095481565b34801561045457600080fd5b506005546040516001600160a01b039091168152602001610221565b34801561047c57600080fd5b5061028b61048b36600461164b565b610a7d565b34801561049c57600080fd5b50610214610a88565b3480156104b157600080fd5b5061028b600a5481565b3480156104c757600080fd5b5061024a6104d636600461161f565b610a97565b3480156104e757600080fd5b5061028b6104f636600461164b565b610b17565b34801561050757600080fd5b5061024a61051636600461161f565b610b43565b34801561052757600080fd5b5061028b61053636600461164b565b6001600160a01b031660009081526008602052604090205490565b34801561055d57600080fd5b5061028b61056c3660046116c2565b610b51565b34801561057d57600080fd5b506101fd61058c36600461161f565b610b7c565b34801561059d57600080fd5b506101fd6105ac36600461164b565b610bb2565b3480156105bd57600080fd5b506105d16105cc36600461164b565b610c28565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a001610221565b61060b610cd0565b6001600160a01b0382166000908152600b602052604090205481151560ff90911615150361063857600080fd5b6001600160a01b0382166000908152600b60205260409020805460ff191682151590811790915560010361067657610671826000610d2a565b61069e565b61069e82610699846001600160a01b031660009081526020819052604090205490565b610d2a565b816001600160a01b03167fa3c7c11b2e12c4144b09a7813f3393ba646392788638998c97be8da908cf04be826040516106db911515815260200190565b60405180910390a25050565b6060600380546106f6906116f0565b80601f0160208091040260200160405190810160405280929190818152602001828054610722906116f0565b801561076f5780601f106107445761010080835404028352916020019161076f565b820191906000526020600020905b81548152906001019060200180831161075257829003601f168201915b5050505050905090565b600033610787818585610d89565b60019150505b92915050565b61079b610cd0565b6107ae6001600160a01b03821647610ead565b50565b6000336107bf858285610efe565b6107ca858585610f72565b506001949350505050565b6001600160a01b03811660009081526007602090815260408083205491839052822054600654600160801b92610827926108229261081c916108179190610fcd565b611056565b90611066565b6110a4565b61078d9190611740565b6000336107878185856108448383610b51565b61084e9190611762565b610d89565b61085b610cd0565b600061086660025490565b1161087057600080fd5b80156107ae576108a361088260025490565b61089083600160801b610fcd565b61089a9190611740565b600654906110b7565b60065560405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a26009546108e890826110b7565b60095550565b6108f6610cd0565b6040516370a0823160e01b81523060048201526001600160a01b0382169063a9059cbb90849083906370a0823190602401602060405180830381865afa158015610944573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109689190611775565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156109b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d7919061178e565b505050565b6107ae33611116565b6109ed610cd0565b6109f760006111d1565b565b6000610a03610cd0565b6000610a0e83611116565b90508015610a74576001600160a01b0383166000818152600c602052604090819020429055517f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d490610a639084815260200190565b60405180910390a250600192915050565b50600092915050565b600061078d82610b17565b6060600480546106f6906116f0565b60003381610aa58286610b51565b905083811015610b0a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6107ca8286868403610d89565b6001600160a01b03811660009081526008602052604081205461078d90610b3d846107d5565b90611223565b600033610787818585610f72565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610b84610cd0565b6001600160a01b0382166000908152600b602052604090205460ff16610bae57610bae8282610d2a565b5050565b610bba610cd0565b6001600160a01b038116610c1f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b01565b6107ae816111d1565b6000806000806000610c64604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b6001600160a01b0387168152610c7987610b17565b6020820152610c87876107d5565b60408281019182526001600160a01b03989098166000908152600c60209081529890205460608301819052825198909201519051600a5498999198909750919550909350915050565b6005546001600160a01b031633146109f75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b01565b6001600160a01b03821660009081526020819052604090205480821115610d69576000610d578383611223565b9050610d638482611265565b50505050565b808210156109d7576000610d7d8284611223565b9050610d6384826112c9565b6001600160a01b038316610deb5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b01565b6001600160a01b038216610e4c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b01565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600080600080600085875af19050806109d75760405162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b6044820152606401610b01565b6000610f0a8484610b51565b90506000198114610d635781811015610f655760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b01565b610d638484848403610d89565b60405162461bcd60e51b815260206004820152602a60248201527f5452585f4469766964656e645f547261636b65723a205472616e73666572206e6044820152691bdd08185b1b1bddd95960b21b6064820152608401610b01565b600082600003610fdf5750600061078d565b6000610feb83856117ab565b905082610ff88583611740565b1461104f5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610b01565b9392505050565b6000818181121561078d57600080fd5b60008061107383856117c2565b9050600083121580156110865750838112155b8061109b575060008312801561109b57508381125b61104f57600080fd5b6000808212156110b357600080fd5b5090565b6000806110c48385611762565b90508381101561104f5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610b01565b60008061112283610b17565b90508015610a74576001600160a01b03831660009081526008602052604090205461114d90826110b7565b6001600160a01b038416600090815260086020526040812091909155600a805483929061117b908490611762565b90915550506040518181526001600160a01b038416907fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d9060200160405180910390a261078d6001600160a01b03841682610ead565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061104f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061130d565b61126f8282611347565b6112a961128a61081783600654610fcd90919063ffffffff16565b6001600160a01b03841660009081526007602052604090205490611406565b6001600160a01b0390921660009081526007602052604090209190915550565b6112d38282611443565b6112a96112ee61081783600654610fcd90919063ffffffff16565b6001600160a01b03841660009081526007602052604090205490611066565b600081848411156113315760405162461bcd60e51b8152600401610b0191906115d1565b50600061133e84866117ea565b95945050505050565b6001600160a01b03821661139d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610b01565b80600260008282546113af9190611762565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b60008061141383856117fd565b9050600083121580156114265750838113155b8061109b575060008312801561109b575083811361104f57600080fd5b6001600160a01b0382166114a35760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610b01565b6001600160a01b038216600090815260208190526040902054818110156115175760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610b01565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6001600160a01b03811681146107ae57600080fd5b80151581146107ae57600080fd5b600080604083850312156115ab57600080fd5b82356115b681611575565b915060208301356115c68161158a565b809150509250929050565b600060208083528351808285015260005b818110156115fe578581018301518582016040015282016115e2565b506000604082860101526040601f19601f8301168501019250505092915050565b6000806040838503121561163257600080fd5b823561163d81611575565b946020939093013593505050565b60006020828403121561165d57600080fd5b813561104f81611575565b60008060006060848603121561167d57600080fd5b833561168881611575565b9250602084013561169881611575565b929592945050506040919091013590565b6000602082840312156116bb57600080fd5b5035919050565b600080604083850312156116d557600080fd5b82356116e081611575565b915060208301356115c681611575565b600181811c9082168061170457607f821691505b60208210810361172457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008261175d57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561078d5761078d61172a565b60006020828403121561178757600080fd5b5051919050565b6000602082840312156117a057600080fd5b815161104f8161158a565b808202811582820484141761078d5761078d61172a565b80820182811260008312801582168215821617156117e2576117e261172a565b505092915050565b8181038181111561078d5761078d61172a565b818103600083128015838313168383128216171561181d5761181d61172a565b509291505056fea2646970667358221220d10f5e60802bc805ce2d55e903b4c09f357e16ae6f7e251c92eff1681ebaf57364736f6c634300081500330000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000006f45862b83998ccf1d89725ab950992a1e1b83c7

Deployed Bytecode

0x60806040526004361061028c5760003560e01c8063728f8eea1161015a578063a8b9d240116100c1578063cd972da11161007a578063cd972da114610827578063dd62ed3e14610847578063f2fde38b14610867578063f52bccad14610887578063f887ea40146108a7578063fe85b42b146108c757600080fd5b8063a8b9d24014610761578063a9059cbb14610781578063b62496f5146107a1578063bee8a16f146107d1578063c0246668146107e7578063c851cc321461080757600080fd5b80638c9684f9116101135780638c9684f9146106ae5780638da5cb5b146106ce57806395d89b41146106ec5780639a7a23d614610701578063a457c2d714610721578063a8aa1b311461074157600080fd5b8063728f8eea146105aa5780637b510fe8146105da57806388bdd9be1461062c578063895f52d11461064c5780638a2381d7146106615780638a8c523c1461069957600080fd5b8063313ce567116101fe5780634e71d92d116101b75780634e71d92d146104d15780634fbee193146104e6578063516e74091461051f5780636843cd841461053f57806370a082311461055f578063715018a61461059557600080fd5b8063313ce5671461040e5780633148189c1461042a57806334dbf19e1461044057806339509351146104605780633bbac579146104805780634ada218b146104b057600080fd5b806312b77e8a1161025057806312b77e8a1461034a57806318160ddd1461035f5780631ffe1e3b1461037e57806323b872dd1461039e57806326c94c0e146103be57806330bb4cff146103f957600080fd5b80630483f7a01461029857806306fdde03146102ba578063095ea7b3146102e55780630a78097d146103155780630f7b181a1461033557600080fd5b3661029357005b600080fd5b3480156102a457600080fd5b506102b86102b336600461219a565b6108dd565b005b3480156102c657600080fd5b506102cf610950565b6040516102dc91906121d3565b60405180910390f35b3480156102f157600080fd5b50610305610300366004612221565b6109e2565b60405190151581526020016102dc565b34801561032157600080fd5b506102b861033036600461224d565b6109fc565b34801561034157600080fd5b506102b8610b00565b34801561035657600080fd5b506102b8610baa565b34801561036b57600080fd5b506002545b6040519081526020016102dc565b34801561038a57600080fd5b506102b8610399366004612271565b610c16565b3480156103aa57600080fd5b506103056103b93660046122e6565b610d0e565b3480156103ca57600080fd5b506103056103d9366004612221565b601160209081526000928352604080842090915290825290205460ff1681565b34801561040557600080fd5b50610370610d32565b34801561041a57600080fd5b50604051601281526020016102dc565b34801561043657600080fd5b50610370600e5481565b34801561044c57600080fd5b506102b861045b36600461224d565b610da5565b34801561046c57600080fd5b5061030561047b366004612221565b610dcf565b34801561048c57600080fd5b5061030561049b36600461224d565b60126020526000908152604090205460ff1681565b3480156104bc57600080fd5b5060095461030590600160a81b900460ff1681565b3480156104dd57600080fd5b506102b8610df1565b3480156104f257600080fd5b5061030561050136600461224d565b6001600160a01b03166000908152600f602052604090205460ff1690565b34801561052b57600080fd5b506102b861053a366004612271565b610e62565b34801561054b57600080fd5b5061037061055a36600461224d565b610edc565b34801561056b57600080fd5b5061037061057a36600461224d565b6001600160a01b031660009081526020819052604090205490565b3480156105a157600080fd5b506102b8610f4c565b3480156105b657600080fd5b50600b54600c546105c5919082565b604080519283526020830191909152016102dc565b3480156105e657600080fd5b506105fa6105f536600461224d565b610f60565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a0016102dc565b34801561063857600080fd5b506102b861064736600461224d565b610fea565b34801561065857600080fd5b506102b86111bc565b34801561066d57600080fd5b50600854610681906001600160a01b031681565b6040516001600160a01b0390911681526020016102dc565b3480156106a557600080fd5b506102b8611351565b3480156106ba57600080fd5b506102b86106c936600461224d565b6113d8565b3480156106da57600080fd5b506005546001600160a01b0316610681565b3480156106f857600080fd5b506102cf611448565b34801561070d57600080fd5b506102b861071c36600461219a565b611457565b34801561072d57600080fd5b5061030561073c366004612221565b611469565b34801561074d57600080fd5b50600754610681906001600160a01b031681565b34801561076d57600080fd5b5061037061077c36600461224d565b6114e4565b34801561078d57600080fd5b5061030561079c366004612221565b611517565b3480156107ad57600080fd5b506103056107bc36600461224d565b60106020526000908152604090205460ff1681565b3480156107dd57600080fd5b50610370600a5481565b3480156107f357600080fd5b506102b861080236600461219a565b611525565b34801561081357600080fd5b506102b861082236600461224d565b61160f565b34801561083357600080fd5b506102b8610842366004612327565b611639565b34801561085357600080fd5b50610370610862366004612340565b611659565b34801561087357600080fd5b506102b861088236600461224d565b611684565b34801561089357600080fd5b50600954610681906001600160a01b031681565b3480156108b357600080fd5b50600654610681906001600160a01b031681565b3480156108d357600080fd5b50610370600d5481565b6108e56116fa565b60095460405162241fbd60e51b81526001600160a01b038481166004830152831515602483015290911690630483f7a0906044015b600060405180830381600087803b15801561093457600080fd5b505af1158015610948573d6000803e3d6000fd5b505050505050565b60606003805461095f9061236e565b80601f016020809104026020016040519081016040528092919081815260200182805461098b9061236e565b80156109d85780601f106109ad576101008083540402835291602001916109d8565b820191906000526020600020905b8154815290600101906020018083116109bb57829003601f168201915b5050505050905090565b6000336109f0818585611754565b60019150505b92915050565b610a046116fa565b806001600160a01b031663a9059cbb610a256005546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015610a69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8d91906123a8565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610ad8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610afc91906123c1565b5050565b6008546001600160a01b03163314610b4b5760405162461bcd60e51b81526020600482015260096024820152682737ba1020b236b4b760b91b60448201526064015b60405180910390fd5b6009546040516304d0408f60e21b81523360048201526001600160a01b0390911690631341023c90602401600060405180830381600087803b158015610b9057600080fd5b505af1158015610ba4573d6000803e3d6000fd5b50505050565b610bb26116fa565b60085460405147916000916001600160a01b039091169083908381818185875af1925050503d8060008114610c03576040519150601f19603f3d011682016040523d82523d6000602084013e610c08565b606091505b5050905080610afc57600080fd5b610c1e6116fa565b60135442111580610c395750600954600160a81b900460ff16155b610c975760405162461bcd60e51b815260206004820152602960248201527f43616e206f6e6c7920626c6f636b20626f7420696e207468652066697273742060448201526835206d696e7574657360b81b6064820152608401610b42565b60005b81811015610d0957600160126000858585818110610cba57610cba6123de565b9050602002016020810190610ccf919061224d565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610d018161240a565b915050610c9a565b505050565b600033610d1c858285611878565b610d278585856118ec565b506001949350505050565b600954604080516342d359d760e11b815290516000926001600160a01b0316916385a6b3ae9160048083019260209291908290030181865afa158015610d7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da091906123a8565b905090565b610dad6116fa565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6000336109f0818585610de28383611659565b610dec9190612423565b611754565b60095460405163807ab4f760e01b81523360048201526001600160a01b039091169063807ab4f7906024016020604051808303816000875af1158015610e3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5f91906123c1565b50565b610e6a6116fa565b60005b81811015610d0957600060126000858585818110610e8d57610e8d6123de565b9050602002016020810190610ea2919061224d565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610ed48161240a565b915050610e6d565b6009546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a08231906024015b602060405180830381865afa158015610f28573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f691906123a8565b610f546116fa565b610f5e6000611d21565b565b60095460405163fbcbc0f160e01b81526001600160a01b038381166004830152600092839283928392839291169063fbcbc0f19060240160a060405180830381865afa158015610fb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd89190612436565b939a9299509097509550909350915050565b610ff26116fa565b60405162241fbd60e51b81526001600160a01b03821660048201819052600160248301528291630483f7a090604401600060405180830381600087803b15801561103b57600080fd5b505af115801561104f573d6000803e3d6000fd5b505060405162241fbd60e51b8152306004820152600160248201526001600160a01b0384169250630483f7a09150604401600060405180830381600087803b15801561109a57600080fd5b505af11580156110ae573d6000803e3d6000fd5b50505050806001600160a01b0316630483f7a06110d36005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260016024820152604401600060405180830381600087803b15801561111b57600080fd5b505af115801561112f573d6000803e3d6000fd5b505060065460405162241fbd60e51b81526001600160a01b039182166004820152600160248201529084169250630483f7a09150604401600060405180830381600087803b15801561118057600080fd5b505af1158015611194573d6000803e3d6000fd5b5050600980546001600160a01b0319166001600160a01b039490941693909317909255505050565b6009805460ff60a01b1916600160a01b179055600a543360009081526020819052604090205410156112305760405162461bcd60e51b815260206004820152601760248201527f4e6f7420686f6c6420656e6f75676820746f20726561700000000000000000006044820152606401610b42565b3060009081526020819052604090205461124981611d73565b4780156113405760006064600e5483611262919061247f565b61126c9190612496565b905061127881836124b8565b600d54600b5491935060009161128e908561247f565b6112989190612496565b905060006112a682856124b8565b90506112b23384611e97565b6008546112c8906001600160a01b031682611e97565b6009546112de906001600160a01b031683611e97565b600954604051632287d53b60e11b8152600481018490526001600160a01b039091169063450faa7690602401600060405180830381600087803b15801561132457600080fd5b505af1158015611338573d6000803e3d6000fd5b505050505050505b50506009805460ff60a01b19169055565b6113596116fa565b600954600160a81b900460ff16156113b35760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720616c726561647920656e61626c65640000000000000000006044820152606401610b42565b6009805460ff60a81b1916600160a81b1790556014546113d39042612423565b601355565b6113e06116fa565b60095460405163497ec82360e01b81523360048201526001600160a01b0383811660248301529091169063497ec82390604401600060405180830381600087803b15801561142d57600080fd5b505af1158015611441573d6000803e3d6000fd5b5050505050565b60606004805461095f9061236e565b61145f6116fa565b610afc8282611ee8565b600033816114778286611659565b9050838110156114d75760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610b42565b610d278286868403611754565b6009546040516302a2e74960e61b81526001600160a01b038381166004830152600092169063a8b9d24090602401610f0b565b6000336109f08185856118ec565b61152d6116fa565b6001600160a01b0382166000908152600f602052604090205481151560ff9091161515036115b05760405162461bcd60e51b815260206004820152602a60248201527f4163636f756e7420697320616c7265616479207468652076616c7565206f6620604482015269276578636c756465642760b01b6064820152608401610b42565b6001600160a01b0382166000818152600f6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6116176116fa565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6116416116fa565b61165381670de0b6b3a764000061247f565b600a5550565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61168c6116fa565b6001600160a01b0381166116f15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b42565b610e5f81611d21565b6005546001600160a01b03163314610f5e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b42565b6001600160a01b0383166117b65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b42565b6001600160a01b0382166118175760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b42565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006118848484611659565b90506000198114610ba457818110156118df5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b42565b610ba48484848403611754565b6001600160a01b0383166119125760405162461bcd60e51b8152600401610b42906124cb565b6001600160a01b0382166119385760405162461bcd60e51b8152600401610b4290612510565b6001600160a01b03831660009081526012602052604090205460ff1615801561197a57506001600160a01b03821660009081526012602052604090205460ff16155b6119b55760405162461bcd60e51b815260206004820152600c60248201526b596f752061726520626f742160a01b6044820152606401610b42565b6001600160a01b0383166000908152600f602052604090205460ff161580156119f757506001600160a01b0382166000908152600f602052604090205460ff16155b8015611a0d5750600954600160a01b900460ff16155b15611a6357600954600160a81b900460ff16611a635760405162461bcd60e51b815260206004820152601560248201527454726164696e67206973206e6f742061637469766560581b6044820152606401610b42565b80600003611a7757610d098383600061204d565b326001600160a01b0384161480611a965750326001600160a01b038316145b15611b1b5732600090815260116020908152604080832043845290915290205460ff1615611af55760405162461bcd60e51b815260206004820152600c60248201526b596f752061726520626f742160a01b6044820152606401610b42565b3260009081526011602090815260408083204384529091529020805460ff191660011790555b6009546001600160a01b0384166000908152600f602052604090205460ff600160a01b909204821615911680611b6957506001600160a01b0383166000908152600f602052604090205460ff165b15611b72575060005b6001600160a01b03831660009081526010602052604090205460ff16158015611bb457506001600160a01b03841660009081526010602052604090205460ff16155b15611bbd575060005b8015611bfa5760006064600d5484611bd5919061247f565b611bdf9190612496565b9050611beb81846124b8565b9250611bf885308361204d565b505b611c0584848461204d565b6009546001600160a01b031663e30443bc85611c36816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611c7c57600080fd5b505af1925050508015611c8d575060015b506009546001600160a01b031663e30443bc84611cbf816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611d0557600080fd5b505af1925050508015611d16575060015b15610ba45750505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611da857611da86123de565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611e01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e259190612553565b81600181518110611e3857611e386123de565b6001600160a01b039283166020918202929092010152600654611e5e9130911684611754565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac9479061091a908590600090869030904290600401612570565b600080600080600085875af1905080610d095760405162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b6044820152606401610b42565b6001600160a01b03821660009081526010602052604090205481151560ff909116151503611f7e5760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c756500000000000000006064820152608401610b42565b6001600160a01b0382166000908152601060205260409020805460ff191682158015919091179091556120115760095460405162241fbd60e51b81526001600160a01b0384811660048301526001602483015290911690630483f7a090604401600060405180830381600087803b158015611ff857600080fd5b505af115801561200c573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6001600160a01b0383166120735760405162461bcd60e51b8152600401610b42906124cb565b6001600160a01b0382166120995760405162461bcd60e51b8152600401610b4290612510565b6001600160a01b038316600090815260208190526040902054818110156121115760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610b42565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610ba4565b6001600160a01b0381168114610e5f57600080fd5b8015158114610e5f57600080fd5b600080604083850312156121ad57600080fd5b82356121b881612177565b915060208301356121c88161218c565b809150509250929050565b600060208083528351808285015260005b81811015612200578581018301518582016040015282016121e4565b506000604082860101526040601f19601f8301168501019250505092915050565b6000806040838503121561223457600080fd5b823561223f81612177565b946020939093013593505050565b60006020828403121561225f57600080fd5b813561226a81612177565b9392505050565b6000806020838503121561228457600080fd5b823567ffffffffffffffff8082111561229c57600080fd5b818501915085601f8301126122b057600080fd5b8135818111156122bf57600080fd5b8660208260051b85010111156122d457600080fd5b60209290920196919550909350505050565b6000806000606084860312156122fb57600080fd5b833561230681612177565b9250602084013561231681612177565b929592945050506040919091013590565b60006020828403121561233957600080fd5b5035919050565b6000806040838503121561235357600080fd5b823561235e81612177565b915060208301356121c881612177565b600181811c9082168061238257607f821691505b6020821081036123a257634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156123ba57600080fd5b5051919050565b6000602082840312156123d357600080fd5b815161226a8161218c565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161241c5761241c6123f4565b5060010190565b808201808211156109f6576109f66123f4565b600080600080600060a0868803121561244e57600080fd5b855161245981612177565b602087015160408801516060890151608090990151929a91995097965090945092505050565b80820281158282048414176109f6576109f66123f4565b6000826124b357634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156109f6576109f66123f4565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60006020828403121561256557600080fd5b815161226a81612177565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156125c05784516001600160a01b03168352938301939183019160010161259b565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220078c51d4a84c42522259f536f8a0d8593eb9c7a018a72914e3bdac07d174c1f264736f6c63430008150033

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

0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000006f45862b83998ccf1d89725ab950992a1e1b83c7

-----Decoded View---------------
Arg [0] : _routerAddress (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [1] : _developmentFund (address): 0x6F45862b83998cCF1d89725ab950992A1e1b83c7

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [1] : 0000000000000000000000006f45862b83998ccf1d89725ab950992a1e1b83c7


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.