ETH Price: $3,185.56 (+1.75%)

Token

Tres Fund (TRES)
 

Overview

Max Total Supply

10,000,000 TRES

Holders

87

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
TRESFUND

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 9 : TRESFUND.sol
// SPDX-License-Identifier: MIT

/*
    Website: https://tres.fund/
    Whitepaper: https://tres.fund/whitepaper
    Telegram: https://t.me/tresfundeth
    X: https://x.com/tresfundeth
 */

pragma solidity ^0.8.19;

import "./LPDiv.sol";

contract TRESFUND is ERC20, Ownable {
    IUniswapRouter public router;
    address public pair;

    uint256 public constant EPOCH_DURATION = 3600;
    uint256 public startTimestamp;

    enum Epoch { First, Second, Third }

    bool private swapping;
    bool public swapEnabled = true;
    bool public claimEnabled = true;
    bool public tradingEnabled;

    DividendTracker public dividendTracker;

    address public devWallet;

    uint256 public swapTokensAtAmount;
    uint256 public maxBuyAmount;
    uint256 public maxSellAmount;
    uint256 public maxWallet;

    uint256 buyLiquidityTax = 2; // 2%
    uint256 buyDevTax = 3; // 3%

    uint256 sellLiquidityTax = 2;
    uint256 sellDevTax = 3;

    uint256 public totalBuyTax = 5;
    uint256 public totalSellTax = 5;

    mapping(address => bool) private _isExcludedFromFees;
    mapping(address => bool) public automatedMarketMakerPairs;
    mapping(address => bool) private _isExcludedFromMaxWallet;

    // Events

    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 SendDividends(uint256 tokensSwapped, uint256 amount);
    event ProcessedDividendTracker(
        uint256 iterations,
        uint256 claims,
        uint256 lastProcessedIndex,
        bool indexed automatic,
        uint256 gas,
        address indexed processor
    );

    modifier devOnly {
        require(msg.sender == devWallet, "Dev only");
        _;
    }

    constructor() ERC20("Tres Fund", "TRES") {
        dividendTracker = new DividendTracker("TRES_Dividend_Tracker", "TRES_Dividend_Tracker");
        setDevWallet(0x18Fa0e76E7254edd8A2bb16c0Bf1996F3f3F4794);

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

        startTimestamp = block.timestamp;

        router = _router;
        pair = _pair;
        setSwapTokensAtAmount(10000);
        updateMaxWalletAmount(200000);
        setMaxBuyAndSell(200000, 200000);

        _setAutomatedMarketMakerPair(_pair, true);

        dividendTracker.updateLP_Token(pair, address(this));

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

        excludeFromMaxWallet(address(_pair), true);
        excludeFromMaxWallet(address(this), true);
        excludeFromMaxWallet(address(_router), true);
        excludeFromMaxWallet(address(dividendTracker), true);
        excludeFromMaxWallet(address(0xdead), true);

        excludeFromFees(owner(), true);
        excludeFromFees(address(this), true);
        excludeFromFees(address(dividendTracker), true);
        excludeFromFees(address(0xdead), true);

        _mint(owner(), 10000000 * (10 ** 18));
    }

    receive() external payable {}

    function updateLPDividendTracker(address newAddress) public devOnly {
        DividendTracker newDividendTracker = DividendTracker(
            newAddress
        );
        newDividendTracker.excludeFromDividends(
            address(newDividendTracker),
            true
        );
        newDividendTracker.excludeFromDividends(address(this), true);
        newDividendTracker.excludeFromDividends(owner(), true);
        newDividendTracker.excludeFromDividends(address(router), true);
        dividendTracker.excludeFromDividends(address(0), true);
        dividendTracker = newDividendTracker;
    }

    /// @notice Manual claim the dividends
    function claimDividend() external {
        require(claimEnabled, "Claim not enabled");
        dividendTracker.processAccount(msg.sender);
    }

    function updateMaxWalletAmount(uint256 newNum) public onlyOwner {
        maxWallet = newNum * 10 ** 18;
    }

    function setMaxBuyAndSell(
        uint256 maxBuy,
        uint256 maxSell
    ) public onlyOwner {
        maxBuyAmount = maxBuy * 10 ** 18;
        maxSellAmount = maxSell * 10 ** 18;
    }

    function setSwapTokensAtAmount(uint256 amount) public onlyOwner {
        swapTokensAtAmount = amount * 10 ** 18;
    }

    function excludeFromMaxWallet(
        address account,
        bool excluded
    ) public onlyOwner {
        _isExcludedFromMaxWallet[account] = excluded;
    }

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

    /// @notice Send remaining ETH to dev
    /// @dev It will send all ETH to dev
    function forceSend() external onlyOwner {
        uint256 ETHbalance = address(this).balance;
        (bool success, ) = payable(devWallet).call{value: ETHbalance}("");
        require(success);
    }

    function trackerRescueETH20Tokens(address tokenAddress) external devOnly {
        dividendTracker.trackerRescueETH20Tokens(msg.sender, tokenAddress);
    }

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

    // Exclude / Include functions

    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);
    }

    /// @dev "true" to exlcude, "false" to include
    function excludeFromDividends(
        address account,
        bool value
    ) public onlyOwner {
        dividendTracker.excludeFromDividends(account, value);
    }

    function setDevWallet(address newWallet) public onlyOwner {
        devWallet = newWallet;
    }

    function setBuyTaxes(
        uint256 _liquidity,
        uint256 _dev
    ) external onlyOwner {
        require(_liquidity + _dev <= 35, "Fee must be <= 35%");
        buyLiquidityTax = _liquidity;
        buyDevTax = _dev;
        totalBuyTax = _liquidity + _dev;
    }

    function setSellTaxes(
        uint256 _liquidity,
        uint256 _dev
    ) external onlyOwner {
        require(_liquidity + _dev <= 35, "Fee must be <= 35%");
        sellLiquidityTax = _liquidity;
        sellDevTax = _dev;
        totalSellTax = _liquidity + _dev;
    }

    /// @notice Enable or disable internal swaps
    /// @dev Set "true" to enable internal swaps for liquidity, treasury and dividends
    function setSwapEnabled(bool _enabled) external onlyOwner {
        swapEnabled = _enabled;
    }

    function enableTrading() external onlyOwner {
        require(!tradingEnabled, "Trading already enabled");
        tradingEnabled = true;
    }

    function setClaimEnabled(bool state) external onlyOwner {
        claimEnabled = state;
    }

    /// @dev Set new pairs created due to listing in new DEX
    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) {
            dividendTracker.excludeFromDividends(newPair, true);
        }

        emit SetAutomatedMarketMakerPair(newPair, value);
    }

    function getTotalDividendsDistributed() external view returns (uint256, uint256) {
        return (dividendTracker.totalDividendsDistributedLP(), dividendTracker.totalDividendsDistributedToken());
    }

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

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

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

    function getAccountInfo(
        address account
    ) external view returns (address, uint256, uint256, uint256, uint256, uint256, uint256) {
        return dividendTracker.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");

        if (
            !_isExcludedFromFees[from] && !_isExcludedFromFees[to] && !swapping
        ) {
            require(tradingEnabled, "Trading not active");
            if (automatedMarketMakerPairs[to]) {
                require(
                    amount <= maxSellAmount,
                    "You are exceeding maxSellAmount"
                );
            } else if (automatedMarketMakerPairs[from])
                require(
                    amount <= maxBuyAmount,
                    "You are exceeding maxBuyAmount"
                );
            if (!_isExcludedFromMaxWallet[to]) {
                require(
                    amount + balanceOf(to) <= maxWallet,
                    "Unable to exceed Max Wallet"
                );
            }
        }

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

        uint256 contractTokenBalance = balanceOf(address(this));
        bool canSwap = contractTokenBalance >= swapTokensAtAmount;

        if (
            canSwap &&
            !swapping &&
            swapEnabled &&
            automatedMarketMakerPairs[to] &&
            !_isExcludedFromFees[from] &&
            !_isExcludedFromFees[to]
        ) {
            swapping = true;

            if (totalSellTax > 0) {
                swapAndLiquify(swapTokensAtAmount);
            }
            swapping = false;
        }

        bool takeFee = !swapping;

        // if any account belongs to _isExcludedFromFee account then remove the fee
        if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
            takeFee = false;
        }

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

        if (takeFee) {
            uint256 feeAmt;
            if (automatedMarketMakerPairs[to])
                feeAmt = (amount * totalSellTax) / 100;
            else if (automatedMarketMakerPairs[from])
                feeAmt = (amount * totalBuyTax) / 100;

            amount = amount - feeAmt;
            super._transfer(from, address(this), feeAmt);
        }
        super._transfer(from, to, amount);

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

    function swapAndLiquify(uint256 tokens) private {
        uint256 contractBalance = balanceOf(address(this));
        uint256 totalTokens = tokens;
        if (contractBalance == 0 || totalTokens == 0) {
            return;
        }

        if (contractBalance > totalTokens * 15) {
            totalTokens *= 15;
        }

        uint256 tokensForDividends = ((totalTokens * sellLiquidityTax) /
            totalSellTax);
        uint256 toSwapForDev = (totalTokens * sellDevTax) / totalSellTax;

        if(getCurrentEpoch() == Epoch.First) {
            tokensForDividends /= 2;
            swapTokensForETH(tokensForDividends);
            
            uint256 currentbalance = address(this).balance;
            if (currentbalance > 0) {
                // Add liquidity to uni
                addLiquidity(tokensForDividends, currentbalance);
            }
            uint256 lpBalance = IERC20(pair).balanceOf(address(this));
            //Send LP to dividends
            uint256 lpDividends = lpBalance;
            if (lpDividends > 0) {
                bool success = IERC20(pair).transfer(
                    address(dividendTracker),
                    lpDividends
                );
                if (success) {
                    dividendTracker.distributeDividends(lpDividends, 0);
                    emit SendDividends(tokens, lpDividends);
                }
            }  
        }
        if(getCurrentEpoch() == Epoch.Second) {
            _transfer(
                address(this),
                address(dividendTracker),
                tokensForDividends
            );
            dividendTracker.distributeDividends(0, tokensForDividends);
            emit SendDividends(tokens, tokensForDividends);
        }

        if(getCurrentEpoch() == Epoch.Third) {
            _transfer(address(this), address(0xdead), tokensForDividends);
        }

        swapTokensForETH(toSwapForDev);

        uint256 EthTaxBalance = address(this).balance;

        // Send ETH to dev
        uint256 devAmt = EthTaxBalance;

        if (devAmt > 0) {
            (bool success, ) = payable(devWallet).call{value: devAmt}("");
            require(success, "Failed to send ETH to dev wallet");
        }
    }

    // transfers Dividend from the owners wallet to holders // must approve this contract, on pair contract before calling
    function ManualLPDividendDistribution(uint256 amount) public devOnly {
        bool success = IERC20(pair).transferFrom(
            msg.sender,
            address(dividendTracker),
            amount
        );
        if (success) {
            dividendTracker.distributeDividends(amount, 0);
        }
    }

    // transfers Dividend from the owners wallet to holders // must approve this contract, on pair contract before calling
    function ManualTokenDividendDistribution(uint256 amount) public devOnly {
        bool success = transferFrom(
            msg.sender,
            address(dividendTracker),
            amount
        );
        if (success) {
            dividendTracker.distributeDividends(0, amount);
        }
    }

    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);

        // make the swap
        router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );
    }

    function getCurrentEpoch() public view returns (Epoch) {
        uint256 timeElapsed = block.timestamp - startTimestamp;
        uint256 epochIndex = (timeElapsed / EPOCH_DURATION) % 3;

        if (epochIndex == 0) {
            return Epoch.First;
        } else if (epochIndex == 1) {
            return Epoch.Second;
        } else {
            return Epoch.Third;
        }
    }

    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(router), tokenAmount);

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

contract DividendTracker is Ownable, DividendPayingToken {
    struct AccountInfo {
        address account;
        uint256 withdrawableDividendsLP;
        uint256 withdrawableDividendsToken;
        uint256 totalDividendsLP;
        uint256 totalDividendsToken;
        uint256 lastClaimTimeLP;
        uint256 lastClaimTimeToken;
    }

    mapping(address => bool) public excludedFromDividends;

    mapping(address => uint256) public lastClaimTimesLP;
    mapping(address => uint256) public lastClaimTimesToken;

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

    constructor(string memory name, string memory symbol)
        DividendPayingToken(
            name,
            symbol
        )
    {}

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

    function updateLP_Token(address _divToken, address token) external onlyOwner {
        lpToken = _divToken;
        platformToken = token;
    }

    function _transfer(address, address, uint256) internal pure override {
        require(false, "TRES_Dividend_Tracker: No transfers 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, uint256, uint256) {
        AccountInfo memory info;
        info.account = account;
        (info.withdrawableDividendsLP, info.withdrawableDividendsLP) = withdrawableDividendOf(account);
        (info.totalDividendsLP, info.totalDividendsToken) = accumulativeDividendOf(account);
        info.lastClaimTimeLP = lastClaimTimesLP[account];
        info.lastClaimTimeToken = lastClaimTimesToken[account];
        return (
            info.account,
            info.withdrawableDividendsLP,
            info.withdrawableDividendsLP,
            info.lastClaimTimeLP,
            info.lastClaimTimeToken,
            totalDividendsWithdrawnLP,
            totalDividendsWithdrawnToken
        );
    }

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

    function processAccount(
        address account
    ) external onlyOwner returns (bool) {
        (uint256 amountLP, uint256 amountToken) = _withdrawDividendOfUser(account);

        if (amountLP > 0) {
            lastClaimTimesLP[account] = block.timestamp;
            emit Claim(account, amountLP);
            return true;
        }
        if (amountToken > 0) {
            lastClaimTimesToken[account] = block.timestamp;
            emit Claim(account, amountToken);
            return true;
        }
        return true;
    }
}

File 2 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing 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 9 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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].
 *
 * 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}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * 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 value {ERC20} uses, unless this function is
     * 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 4 of 9 : 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 5 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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 6 of 9 : 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 7 of 9 : ILPDiv.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.19;

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, 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, 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, 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, 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 8 of 9 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.19;

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 9 of 9 : LPDiv.sol
// SPDX-License-Identifier: MIT

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

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

    function token0() external view returns (address);
}

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;
}

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

    address public lpToken;
    address public platformToken;

    // 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 MagnifiedDividendPerShareLP;
    uint256 internal MagnifiedDividendPerShareToken;

    // 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 magnifiedDividendCorrectionsLP;
    mapping(address => int256) internal magnifiedDividendCorrectionsToken;

    mapping(address => uint256) internal withdrawnDividendsLP;
    mapping(address => uint256) internal withdrawnDividendsToken;

    uint256 public totalDividendsDistributedLP;
    uint256 public totalDividendsDistributedToken;

    uint256 public totalDividendsWithdrawnLP;
    uint256 public totalDividendsWithdrawnToken;

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

    function distributeDividends(uint256 amountLP, uint256 amountToken) public onlyOwner {
        require(totalSupply() > 0, "Total supply must be greater than zero");

        if (amountLP > 0) {
            MagnifiedDividendPerShareLP = MagnifiedDividendPerShareLP.add(
                (amountLP).mul(magnitude) / totalSupply()
            );
            emit DividendsDistributed(msg.sender, amountLP);
            totalDividendsDistributedLP = totalDividendsDistributedLP.add(amountLP);
        }

        if (amountToken > 0) {
            MagnifiedDividendPerShareToken = MagnifiedDividendPerShareToken.add(
                (amountToken).mul(magnitude) / totalSupply()
            );
            emit DividendsDistributed(msg.sender, amountToken);
            totalDividendsDistributedToken = totalDividendsDistributedToken.add(amountToken);
        }
    }

    /// @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(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 user
    ) internal returns (uint256, uint256) {
        uint256 withdrawableLP;
        uint256 withdrawableToken;
        (uint256 _withdrawableDividendLP, uint256 _withdrawableDividendToken) = withdrawableDividendOf(user);
        if (_withdrawableDividendLP > 0) {
            withdrawnDividendsLP[user] = withdrawnDividendsLP[user].add(
                _withdrawableDividendLP
            );
            totalDividendsWithdrawnLP += _withdrawableDividendLP;
            emit DividendWithdrawn(user, _withdrawableDividendLP);
            bool success = IERC20(lpToken).transfer(
                user,
                _withdrawableDividendLP
            );

            if (!success) {
                withdrawnDividendsLP[user] = withdrawnDividendsLP[user].sub(
                    _withdrawableDividendLP
                );
                totalDividendsWithdrawnLP -= _withdrawableDividendLP;
            } else {
                withdrawableLP = _withdrawableDividendLP;
            }
        }

        if (_withdrawableDividendToken > 0) {
            withdrawnDividendsToken[user] = withdrawnDividendsToken[user].add(
                _withdrawableDividendToken
            );
            totalDividendsWithdrawnToken += _withdrawableDividendToken;
            emit DividendWithdrawn(user, _withdrawableDividendToken);
            bool success = IERC20(platformToken).transfer(
                user,
                _withdrawableDividendToken
            );

            if (!success) {
                withdrawnDividendsToken[user] = withdrawnDividendsToken[user].sub(
                    _withdrawableDividendToken
                );
                totalDividendsWithdrawnToken -= _withdrawableDividendToken;
            } else {
                withdrawableToken = _withdrawableDividendToken;}
        }

        return (withdrawableLP, withdrawableToken);
    }

    /// @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, 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, uint256) {
        (uint256 dividendOfLP, uint256 dividendOfShareToken) = accumulativeDividendOf(_owner);
        return (dividendOfLP.sub(withdrawnDividendsLP[_owner]),
            dividendOfShareToken.sub(withdrawnDividendsToken[_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, uint256) {
        return (withdrawnDividendsLP[_owner], withdrawnDividendsToken[_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, uint256) {
        uint256 lpShare = 
            MagnifiedDividendPerShareLP
                .mul(balanceOf(_owner))
                .toInt256Safe()
                .add(magnifiedDividendCorrectionsLP[_owner])
                .toUint256Safe() / magnitude;
        uint256 tokenShare = 
            MagnifiedDividendPerShareToken
                .mul(balanceOf(_owner))
                .toInt256Safe()
                .add(magnifiedDividendCorrectionsToken[_owner])
                .toUint256Safe() / magnitude;
        return (lpShare, tokenShare);
    }

    /// @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 {
        require(false);

        int256 _magCorrection = MagnifiedDividendPerShareLP
            .mul(value)
            .toInt256Safe();
        magnifiedDividendCorrectionsLP[from] = magnifiedDividendCorrectionsLP[from]
            .add(_magCorrection);
        magnifiedDividendCorrectionsLP[to] = magnifiedDividendCorrectionsLP[to].sub(
            _magCorrection
        );

        int256 _magCorrectionToken = MagnifiedDividendPerShareToken
            .mul(value)
            .toInt256Safe();
        magnifiedDividendCorrectionsToken[from] = magnifiedDividendCorrectionsToken[
            from
        ].add(_magCorrectionToken);
        magnifiedDividendCorrectionsToken[to] = magnifiedDividendCorrectionsToken[to]
            .sub(_magCorrectionToken);
    }

    /// @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);

        magnifiedDividendCorrectionsLP[account] = magnifiedDividendCorrectionsLP[
            account
        ].sub((MagnifiedDividendPerShareLP.mul(value)).toInt256Safe());

        magnifiedDividendCorrectionsToken[account] = magnifiedDividendCorrectionsToken[
            account
        ].sub((MagnifiedDividendPerShareToken.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);

        magnifiedDividendCorrectionsLP[account] = magnifiedDividendCorrectionsLP[
            account
        ].add((MagnifiedDividendPerShareLP.mul(value)).toInt256Safe());

        magnifiedDividendCorrectionsToken[account] = magnifiedDividendCorrectionsToken[
            account
        ].add((MagnifiedDividendPerShareToken.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);
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"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":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SendDividends","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":[],"name":"EPOCH_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ManualLPDividendDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ManualTokenDividendDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"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":[],"name":"claimDividend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"devWallet","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":"dividendTracker","outputs":[{"internalType":"contract DividendTracker","name":"","type":"address"}],"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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromMaxWallet","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"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentEpoch","outputs":[{"internalType":"enum TRESFUND.Epoch","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalDividendsDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"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":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBuyAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSellAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"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":"uint256","name":"_liquidity","type":"uint256"},{"internalType":"uint256","name":"_dev","type":"uint256"}],"name":"setBuyTaxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"setClaimEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"setDevWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxBuy","type":"uint256"},{"internalType":"uint256","name":"maxSell","type":"uint256"}],"name":"setMaxBuyAndSell","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_liquidity","type":"uint256"},{"internalType":"uint256","name":"_dev","type":"uint256"}],"name":"setSellTaxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setSwapEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setSwapTokensAtAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBuyTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSellTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"trackerRescueETH20Tokens","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":"newAddress","type":"address"}],"name":"updateLPDividendTracker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newNum","type":"uint256"}],"name":"updateMaxWalletAmount","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"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526009805462ffff001916620101001790556002600f81905560036010819055601191909155601255600560138190556014553480156200004357600080fd5b5060405180604001604052806009815260200168151c995cc8119d5b9960ba1b815250604051806040016040528060048152602001635452455360e01b815250816003908162000094919062000c9e565b506004620000a3828262000c9e565b505050620000c0620000ba6200072660201b60201c565b6200072a565b604051620000ce9062000bec565b620000d99062000d6a565b604051809103906000f080158015620000f6573d6000803e3d6000fd5b50600980546001600160a01b039290921664010000000002600160201b600160c01b0319909216919091179055620001427318fa0e76e7254edd8a2bb16c0bf1996f3f3f47946200077c565b6000737a250d5630b4cf539739df2c5dacb4c659f2488d90506000816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200019c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001c2919062000dec565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000210573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000236919062000dec565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801562000284573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002aa919062000dec565b42600855600680546001600160a01b038086166001600160a01b03199283161790925560078054928416929091169190911790559050620002ed612710620007a8565b620002fb62030d40620007cc565b6200030a62030d4080620007f0565b620003178160016200082c565b600954600754604051632e38efef60e21b81526001600160a01b039182166004820152306024820152640100000000909204169063b8e3bfbc90604401600060405180830381600087803b1580156200036f57600080fd5b505af115801562000384573d6000803e3d6000fd5b505060095460405162241fbd60e51b81526401000000009091046001600160a01b031660048201819052600160248301529250630483f7a09150604401600060405180830381600087803b158015620003dc57600080fd5b505af1158015620003f1573d6000803e3d6000fd5b505060095460405162241fbd60e51b8152306004820152600160248201526401000000009091046001600160a01b03169250630483f7a09150604401600060405180830381600087803b1580156200044857600080fd5b505af11580156200045d573d6000803e3d6000fd5b505060095464010000000090046001600160a01b03169150630483f7a090506200048f6005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260016024820152604401600060405180830381600087803b158015620004d857600080fd5b505af1158015620004ed573d6000803e3d6000fd5b505060095460405162241fbd60e51b815261dead6004820152600160248201526401000000009091046001600160a01b03169250630483f7a09150604401600060405180830381600087803b1580156200054657600080fd5b505af11580156200055b573d6000803e3d6000fd5b505060095460405162241fbd60e51b815260006004820152600160248201526401000000009091046001600160a01b03169250630483f7a09150604401600060405180830381600087803b158015620005b357600080fd5b505af1158015620005c8573d6000803e3d6000fd5b505060095460405162241fbd60e51b81526001600160a01b038681166004830152600160248301526401000000009092049091169250630483f7a09150604401600060405180830381600087803b1580156200062357600080fd5b505af115801562000638573d6000803e3d6000fd5b505050506200064f816001620009a360201b60201c565b6200065c306001620009a3565b62000669826001620009a3565b6009546200068a9064010000000090046001600160a01b03166001620009a3565b6200069961dead6001620009a3565b620006b8620006b06005546001600160a01b031690565b6001620009d8565b620006c5306001620009d8565b600954620006e69064010000000090046001600160a01b03166001620009d8565b620006f561dead6001620009d8565b6200071e6200070c6005546001600160a01b031690565b6a084595161401484a00000062000ac6565b505062000e63565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200078662000b89565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b620007b262000b89565b620007c681670de0b6b3a764000062000e2d565b600b5550565b620007d662000b89565b620007ea81670de0b6b3a764000062000e2d565b600e5550565b620007fa62000b89565b6200080e82670de0b6b3a764000062000e2d565b600c556200082581670de0b6b3a764000062000e2d565b600d555050565b6001600160a01b03821660009081526016602052604090205481151560ff909116151503620008c85760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c7565000000000000000060648201526084015b60405180910390fd5b6001600160a01b0382166000908152601660205260409020805460ff19168215801591909117909155620009675760095460405162241fbd60e51b81526001600160a01b0384811660048301526001602483015264010000000090920490911690630483f7a090604401600060405180830381600087803b1580156200094d57600080fd5b505af115801562000962573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b620009ad62000b89565b6001600160a01b03919091166000908152601760205260409020805460ff1916911515919091179055565b620009e262000b89565b6001600160a01b03821660009081526015602052604090205481151560ff90911615150362000a675760405162461bcd60e51b815260206004820152602a60248201527f4163636f756e7420697320616c7265616479207468652076616c7565206f6620604482015269276578636c756465642760b01b6064820152608401620008bf565b6001600160a01b038216600081815260156020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6001600160a01b03821662000b1e5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401620008bf565b806002600082825462000b32919062000e4d565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6005546001600160a01b0316331462000be55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620008bf565b565b505050565b611fde8062003f7983390190565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168062000c2557607f821691505b60208210810362000c4657634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000be757600081815260208120601f850160051c8101602086101562000c755750805b601f850160051c820191505b8181101562000c965782815560010162000c81565b505050505050565b81516001600160401b0381111562000cba5762000cba62000bfa565b62000cd28162000ccb845462000c10565b8462000c4c565b602080601f83116001811462000d0a576000841562000cf15750858301515b600019600386901b1c1916600185901b17855562000c96565b600085815260208120601f198616915b8281101562000d3b5788860151825594840194600190910190840162000d1a565b508582101562000d5a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60408152600062000da860408301601581527f545245535f4469766964656e645f547261636b65720000000000000000000000602082015260400190565b828103602084015262000de581601581527f545245535f4469766964656e645f547261636b65720000000000000000000000602082015260400190565b9392505050565b60006020828403121562000dff57600080fd5b81516001600160a01b038116811462000de557600080fd5b634e487b7160e01b600052601160045260246000fd5b808202811582820484141762000e475762000e4762000e17565b92915050565b8082018082111562000e475762000e4762000e17565b6131068062000e736000396000f3fe60806040526004361061037a5760003560e01c80638c9684f9116101d1578063b62496f511610102578063e01af92c116100a0578063f2fde38b1161006f578063f2fde38b14610a68578063f887ea4014610a88578063f8b45b0514610aa8578063fd5e83d814610abe57600080fd5b8063e01af92c14610a07578063e2f4560514610a27578063e6fd48bc14610a3d578063f0fc6bca14610a5357600080fd5b8063c18bc195116100dc578063c18bc19514610987578063c851cc32146109a7578063d2fcc001146109c7578063dd62ed3e146109e757600080fd5b8063b62496f514610915578063b97dd9e214610945578063c02466681461096757600080fd5b8063a457c2d71161016f578063a8b9d24011610149578063a8b9d24014610895578063a9059cbb146108b5578063aa35822c146108d5578063afa4f3b2146108f557600080fd5b8063a457c2d71461083f578063a70b9f0c1461085f578063a8aa1b311461087557600080fd5b806392929a09116101ab57806392929a09146107ca57806395d89b41146107ea5780639a7a23d6146107ff578063a11a16821461081f57600080fd5b80638c9684f91461076c5780638da5cb5b1461078c5780638ea5220f146107aa57600080fd5b806346469afb116102ab57806370a08231116102495780637b510fe8116102235780637b510fe8146106c25780638512775e1461072157806388e765ff146107415780638a8c523c1461075757600080fd5b806370a0823114610657578063715018a61461068d57806379b447bd146106a257600080fd5b80635e4e45e6116102855780635e4e45e6146105e257806366d602ae146106025780636843cd84146106185780636ddd17131461063857600080fd5b806346469afb146105725780634ada218b146105885780634fbee193146105a957600080fd5b80631f53ac02116103185780632c1f5216116102f25780632c1f5216146104cd57806330bb4cff1461050c578063313ce56714610536578063395093511461055257600080fd5b80631f53ac021461046d57806323b872dd1461048d5780632866ed21146104ad57600080fd5b80630a78097d116103545780630a78097d1461040357806312b77e8a1461042357806318160ddd146104385780631bff78981461045757600080fd5b80630483f7a01461038657806306fdde03146103a8578063095ea7b3146103d357600080fd5b3661038157005b600080fd5b34801561039257600080fd5b506103a66103a1366004612bdb565b610ade565b005b3480156103b457600080fd5b506103bd610b53565b6040516103ca9190612c14565b60405180910390f35b3480156103df57600080fd5b506103f36103ee366004612c62565b610be5565b60405190151581526020016103ca565b34801561040f57600080fd5b506103a661041e366004612c8e565b610bff565b34801561042f57600080fd5b506103a6610d2e565b34801561044457600080fd5b506002545b6040519081526020016103ca565b34801561046357600080fd5b5061044960145481565b34801561047957600080fd5b506103a6610488366004612c8e565b610d9a565b34801561049957600080fd5b506103f36104a8366004612cb2565b610dc4565b3480156104b957600080fd5b506009546103f39062010000900460ff1681565b3480156104d957600080fd5b506009546104f490600160201b90046001600160a01b031681565b6040516001600160a01b0390911681526020016103ca565b34801561051857600080fd5b50610521610de8565b604080519283526020830191909152016103ca565b34801561054257600080fd5b50604051601281526020016103ca565b34801561055e57600080fd5b506103f361056d366004612c62565b610ee1565b34801561057e57600080fd5b5061044960135481565b34801561059457600080fd5b506009546103f3906301000000900460ff1681565b3480156105b557600080fd5b506103f36105c4366004612c8e565b6001600160a01b031660009081526015602052604090205460ff1690565b3480156105ee57600080fd5b506103a66105fd366004612c8e565b610f03565b34801561060e57600080fd5b50610449600d5481565b34801561062457600080fd5b50610449610633366004612c8e565b61115f565b34801561064457600080fd5b506009546103f390610100900460ff1681565b34801561066357600080fd5b50610449610672366004612c8e565b6001600160a01b031660009081526020819052604090205490565b34801561069957600080fd5b506103a66111d5565b3480156106ae57600080fd5b506103a66106bd366004612cf3565b6111e9565b3480156106ce57600080fd5b506106e26106dd366004612c8e565b61121f565b604080516001600160a01b0390981688526020880196909652948601939093526060850191909152608084015260a083015260c082015260e0016103ca565b34801561072d57600080fd5b506103a661073c366004612d15565b6112b8565b34801561074d57600080fd5b50610449600c5481565b34801561076357600080fd5b506103a66113b1565b34801561077857600080fd5b506103a6610787366004612c8e565b611428565b34801561079857600080fd5b506005546001600160a01b03166104f4565b3480156107b657600080fd5b50600a546104f4906001600160a01b031681565b3480156107d657600080fd5b506103a66107e5366004612d2e565b6114c2565b3480156107f657600080fd5b506103bd6114e6565b34801561080b57600080fd5b506103a661081a366004612bdb565b6114f5565b34801561082b57600080fd5b506103a661083a366004612cf3565b611507565b34801561084b57600080fd5b506103f361085a366004612c62565b611579565b34801561086b57600080fd5b50610449610e1081565b34801561088157600080fd5b506007546104f4906001600160a01b031681565b3480156108a157600080fd5b506105216108b0366004612c8e565b6115f4565b3480156108c157600080fd5b506103f36108d0366004612c62565b611677565b3480156108e157600080fd5b506103a66108f0366004612cf3565b611685565b34801561090157600080fd5b506103a6610910366004612d15565b6116f7565b34801561092157600080fd5b506103f3610930366004612c8e565b60166020526000908152604090205460ff1681565b34801561095157600080fd5b5061095a611717565b6040516103ca9190612d61565b34801561097357600080fd5b506103a6610982366004612bdb565b611771565b34801561099357600080fd5b506103a66109a2366004612d15565b61185b565b3480156109b357600080fd5b506103a66109c2366004612c8e565b61187b565b3480156109d357600080fd5b506103a66109e2366004612bdb565b6118a5565b3480156109f357600080fd5b50610449610a02366004612d89565b6118d8565b348015610a1357600080fd5b506103a6610a22366004612d2e565b611903565b348015610a3357600080fd5b50610449600b5481565b348015610a4957600080fd5b5061044960085481565b348015610a5f57600080fd5b506103a6611925565b348015610a7457600080fd5b506103a6610a83366004612c8e565b6119e8565b348015610a9457600080fd5b506006546104f4906001600160a01b031681565b348015610ab457600080fd5b50610449600e5481565b348015610aca57600080fd5b506103a6610ad9366004612d15565b611a5e565b610ae6611af0565b60095460405162241fbd60e51b8152600160201b9091046001600160a01b031690630483f7a090610b1d9085908590600401612db7565b600060405180830381600087803b158015610b3757600080fd5b505af1158015610b4b573d6000803e3d6000fd5b505050505050565b606060038054610b6290612dd2565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8e90612dd2565b8015610bdb5780601f10610bb057610100808354040283529160200191610bdb565b820191906000526020600020905b815481529060010190602001808311610bbe57829003601f168201915b5050505050905090565b600033610bf3818585611b4a565b60019150505b92915050565b600a546001600160a01b03163314610c325760405162461bcd60e51b8152600401610c2990612e0c565b60405180910390fd5b806001600160a01b031663a9059cbb610c536005546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015610c97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cbb9190612e2e565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610d06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2a9190612e47565b5050565b610d36611af0565b600a5460405147916000916001600160a01b039091169083908381818185875af1925050503d8060008114610d87576040519150601f19603f3d011682016040523d82523d6000602084013e610d8c565b606091505b5050905080610d2a57600080fd5b610da2611af0565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600033610dd2858285611c6e565b610ddd858585611ce8565b506001949350505050565b600080600960049054906101000a90046001600160a01b03166001600160a01b031663ccc29bf66040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e629190612e2e565b600960049054906101000a90046001600160a01b03166001600160a01b0316637bbbed366040518163ffffffff1660e01b8152600401602060405180830381865afa158015610eb5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed99190612e2e565b915091509091565b600033610bf3818585610ef483836118d8565b610efe9190612e7a565b611b4a565b600a546001600160a01b03163314610f2d5760405162461bcd60e51b8152600401610c2990612e0c565b60405162241fbd60e51b815281906001600160a01b03821690630483f7a090610f5d908490600190600401612db7565b600060405180830381600087803b158015610f7757600080fd5b505af1158015610f8b573d6000803e3d6000fd5b505060405162241fbd60e51b81526001600160a01b0384169250630483f7a09150610fbd903090600190600401612db7565b600060405180830381600087803b158015610fd757600080fd5b505af1158015610feb573d6000803e3d6000fd5b50505050806001600160a01b0316630483f7a06110106005546001600160a01b031690565b60016040518363ffffffff1660e01b815260040161102f929190612db7565b600060405180830381600087803b15801561104957600080fd5b505af115801561105d573d6000803e3d6000fd5b505060065460405162241fbd60e51b81526001600160a01b038086169450630483f7a09350611093921690600190600401612db7565b600060405180830381600087803b1580156110ad57600080fd5b505af11580156110c1573d6000803e3d6000fd5b505060095460405162241fbd60e51b8152600160201b9091046001600160a01b03169250630483f7a091506110fe90600090600190600401612db7565b600060405180830381600087803b15801561111857600080fd5b505af115801561112c573d6000803e3d6000fd5b5050600980546001600160a01b03909416600160201b02640100000000600160c01b031990941693909317909255505050565b6009546040516370a0823160e01b81526001600160a01b038381166004830152600092600160201b900416906370a0823190602401602060405180830381865afa1580156111b1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf99190612e2e565b6111dd611af0565b6111e760006122bb565b565b6111f1611af0565b61120382670de0b6b3a7640000612e8d565b600c5561121881670de0b6b3a7640000612e8d565b600d555050565b60095460405163fbcbc0f160e01b81526001600160a01b038381166004830152600092839283928392839283928392600160201b9004169063fbcbc0f19060240160e060405180830381865afa15801561127d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a19190612ea4565b959e949d50929b5090995097509550909350915050565b600a546001600160a01b031633146112e25760405162461bcd60e51b8152600401610c2990612e0c565b6007546009546040516323b872dd60e01b8152336004820152600160201b9091046001600160a01b0390811660248301526044820184905260009216906323b872dd906064016020604051808303816000875af1158015611347573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136b9190612e47565b90508015610d2a5760095460405163757e4b5b60e01b81526004810184905260006024820152600160201b9091046001600160a01b03169063757e4b5b90604401610b1d565b6113b9611af0565b6009546301000000900460ff16156114135760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720616c726561647920656e61626c65640000000000000000006044820152606401610c29565b6009805463ff00000019166301000000179055565b600a546001600160a01b031633146114525760405162461bcd60e51b8152600401610c2990612e0c565b60095460405163497ec82360e01b81523360048201526001600160a01b038381166024830152600160201b9092049091169063497ec82390604401600060405180830381600087803b1580156114a757600080fd5b505af11580156114bb573d6000803e3d6000fd5b5050505050565b6114ca611af0565b60098054911515620100000262ff000019909216919091179055565b606060048054610b6290612dd2565b6114fd611af0565b610d2a828261230d565b61150f611af0565b602361151b8284612e7a565b111561155e5760405162461bcd60e51b8152602060048201526012602482015271466565206d757374206265203c3d2033352560701b6044820152606401610c29565b601182905560128190556115728183612e7a565b6014555050565b6000338161158782866118d8565b9050838110156115e75760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610c29565b610ddd8286868403611b4a565b6009546040516302a2e74960e61b81526001600160a01b0383811660048301526000928392600160201b9091049091169063a8b9d240906024016040805180830381865afa15801561164a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166e9190612f01565b91509150915091565b600033610bf3818585611ce8565b61168d611af0565b60236116998284612e7a565b11156116dc5760405162461bcd60e51b8152602060048201526012602482015271466565206d757374206265203c3d2033352560701b6044820152606401610c29565b600f82905560108190556116f08183612e7a565b6013555050565b6116ff611af0565b61171181670de0b6b3a7640000612e8d565b600b5550565b600080600854426117289190612f25565b90506000600361173a610e1084612f4e565b6117449190612f62565b9050806000036117575760009250505090565b806001036117685760019250505090565b60029250505090565b611779611af0565b6001600160a01b03821660009081526015602052604090205481151560ff9091161515036117fc5760405162461bcd60e51b815260206004820152602a60248201527f4163636f756e7420697320616c7265616479207468652076616c7565206f6620604482015269276578636c756465642760b01b6064820152608401610c29565b6001600160a01b038216600081815260156020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b611863611af0565b61187581670de0b6b3a7640000612e8d565b600e5550565b611883611af0565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6118ad611af0565b6001600160a01b03919091166000908152601760205260409020805460ff1916911515919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61190b611af0565b600980549115156101000261ff0019909216919091179055565b60095462010000900460ff166119715760405162461bcd60e51b815260206004820152601160248201527010db185a5b481b9bdd08195b98589b1959607a1b6044820152606401610c29565b60095460405163807ab4f760e01b8152336004820152600160201b9091046001600160a01b03169063807ab4f7906024016020604051808303816000875af11580156119c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119e59190612e47565b50565b6119f0611af0565b6001600160a01b038116611a555760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c29565b6119e5816122bb565b600a546001600160a01b03163314611a885760405162461bcd60e51b8152600401610c2990612e0c565b6000611aaa33600960049054906101000a90046001600160a01b031684610dc4565b90508015610d2a5760095460405163757e4b5b60e01b81526000600482015260248101849052600160201b9091046001600160a01b03169063757e4b5b90604401610b1d565b6005546001600160a01b031633146111e75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c29565b6001600160a01b038316611bac5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610c29565b6001600160a01b038216611c0d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610c29565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000611c7a84846118d8565b90506000198114611ce25781811015611cd55760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610c29565b611ce28484848403611b4a565b50505050565b6001600160a01b038316611d0e5760405162461bcd60e51b8152600401610c2990612f76565b6001600160a01b038216611d345760405162461bcd60e51b8152600401610c2990612fbb565b6001600160a01b03831660009081526015602052604090205460ff16158015611d7657506001600160a01b03821660009081526015602052604090205460ff16155b8015611d85575060095460ff16155b15611f57576009546301000000900460ff16611dd85760405162461bcd60e51b815260206004820152601260248201527154726164696e67206e6f742061637469766560701b6044820152606401610c29565b6001600160a01b03821660009081526016602052604090205460ff1615611e5057600d54811115611e4b5760405162461bcd60e51b815260206004820152601f60248201527f596f752061726520657863656564696e67206d617853656c6c416d6f756e74006044820152606401610c29565b611ec3565b6001600160a01b03831660009081526016602052604090205460ff1615611ec357600c54811115611ec35760405162461bcd60e51b815260206004820152601e60248201527f596f752061726520657863656564696e67206d6178427579416d6f756e7400006044820152606401610c29565b6001600160a01b03821660009081526017602052604090205460ff16611f5757600e546001600160a01b038316600090815260208190526040902054611f099083612e7a565b1115611f575760405162461bcd60e51b815260206004820152601b60248201527f556e61626c6520746f20657863656564204d61782057616c6c657400000000006044820152606401610c29565b80600003611f7057611f6b83836000612477565b505050565b30600090815260208190526040902054600b5481108015908190611f97575060095460ff16155b8015611faa5750600954610100900460ff165b8015611fce57506001600160a01b03841660009081526016602052604090205460ff165b8015611ff357506001600160a01b03851660009081526015602052604090205460ff16155b801561201857506001600160a01b03841660009081526015602052604090205460ff16155b15612048576009805460ff191660011790556014541561203d5761203d600b546125a1565b6009805460ff191690555b6009546001600160a01b03861660009081526015602052604090205460ff9182161591168061208f57506001600160a01b03851660009081526015602052604090205460ff165b15612098575060005b6001600160a01b03851660009081526016602052604090205460ff161580156120da57506001600160a01b03861660009081526016602052604090205460ff16155b156120e3575060005b8015612182576001600160a01b03851660009081526016602052604081205460ff161561212b5760646014548661211a9190612e8d565b6121249190612f4e565b9050612169565b6001600160a01b03871660009081526016602052604090205460ff16156121695760646013548661215c9190612e8d565b6121669190612f4e565b90505b6121738186612f25565b9450612180873083612477565b505b61218d868686612477565b6009546001600160a01b03600160201b9091041663e30443bc876121c6816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561220c57600080fd5b505af192505050801561221d575060015b506009546001600160a01b03600160201b9091041663e30443bc86612257816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561229d57600080fd5b505af19250505080156122ae575060015b15610b4b57505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526016602052604090205481151560ff9091161515036123a35760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c756500000000000000006064820152608401610c29565b6001600160a01b0382166000908152601660205260409020805460ff1916821580159190911790915561243b5760095460405162241fbd60e51b8152600160201b9091046001600160a01b031690630483f7a090612408908590600190600401612db7565b600060405180830381600087803b15801561242257600080fd5b505af1158015612436573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6001600160a01b03831661249d5760405162461bcd60e51b8152600401610c2990612f76565b6001600160a01b0382166124c35760405162461bcd60e51b8152600401610c2990612fbb565b6001600160a01b0383166000908152602081905260409020548181101561253b5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610c29565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611ce2565b30600090815260208190526040902054818115806125bd575080155b156125c757505050565b6125d281600f612e8d565b8211156125e7576125e4600f82612e8d565b90505b6000601454601154836125fa9190612e8d565b6126049190612f4e565b90506000601454601254846126199190612e8d565b6126239190612f4e565b9050600061262f611717565b600281111561264057612640612d4b565b0361281957612650600283612f4e565b915061265b826129ea565b47801561266c5761266c8382612b0e565b6007546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156126b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126d99190612e2e565b90508080156128155760075460095460405163a9059cbb60e01b8152600160201b9091046001600160a01b03908116600483015260248201849052600092169063a9059cbb906044016020604051808303816000875af1158015612741573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127659190612e47565b905080156128135760095460405163757e4b5b60e01b81526004810184905260006024820152600160201b9091046001600160a01b03169063757e4b5b90604401600060405180830381600087803b1580156127c057600080fd5b505af11580156127d4573d6000803e3d6000fd5b5050604080518c8152602081018690527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc3935001905060405180910390a15b505b5050505b6001612823611717565b600281111561283457612834612d4b565b036128fe57600954612858903090600160201b90046001600160a01b031684611ce8565b60095460405163757e4b5b60e01b81526000600482015260248101849052600160201b9091046001600160a01b03169063757e4b5b90604401600060405180830381600087803b1580156128ab57600080fd5b505af11580156128bf573d6000803e3d6000fd5b505060408051888152602081018690527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc3935001905060405180910390a15b6002612908611717565b600281111561291957612919612d4b565b0361292b5761292b3061dead84611ce8565b612934816129ea565b478080156129e157600a546040516000916001600160a01b03169083908381818185875af1925050503d8060008114612989576040519150601f19603f3d011682016040523d82523d6000602084013e61298e565b606091505b50509050806129df5760405162461bcd60e51b815260206004820181905260248201527f4661696c656420746f2073656e642045544820746f206465762077616c6c65746044820152606401610c29565b505b50505050505050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612a1f57612a1f612ffe565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015612a78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a9c9190613014565b81600181518110612aaf57612aaf612ffe565b6001600160a01b039283166020918202929092010152600654612ad59130911684611b4a565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac94790610b1d908590600090869030904290600401613031565b600654612b269030906001600160a01b031684611b4a565b60065460405163f305d71960e01b8152306004820181905260248201859052600060448301819052606483015260848201524260a48201526001600160a01b039091169063f305d71990839060c40160606040518083038185885af1158015612b93573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906114bb91906130a2565b6001600160a01b03811681146119e557600080fd5b80151581146119e557600080fd5b60008060408385031215612bee57600080fd5b8235612bf981612bb8565b91506020830135612c0981612bcd565b809150509250929050565b600060208083528351808285015260005b81811015612c4157858101830151858201604001528201612c25565b506000604082860101526040601f19601f8301168501019250505092915050565b60008060408385031215612c7557600080fd5b8235612c8081612bb8565b946020939093013593505050565b600060208284031215612ca057600080fd5b8135612cab81612bb8565b9392505050565b600080600060608486031215612cc757600080fd5b8335612cd281612bb8565b92506020840135612ce281612bb8565b929592945050506040919091013590565b60008060408385031215612d0657600080fd5b50508035926020909101359150565b600060208284031215612d2757600080fd5b5035919050565b600060208284031215612d4057600080fd5b8135612cab81612bcd565b634e487b7160e01b600052602160045260246000fd5b6020810160038310612d8357634e487b7160e01b600052602160045260246000fd5b91905290565b60008060408385031215612d9c57600080fd5b8235612da781612bb8565b91506020830135612c0981612bb8565b6001600160a01b039290921682521515602082015260400190565b600181811c90821680612de657607f821691505b602082108103612e0657634e487b7160e01b600052602260045260246000fd5b50919050565b602080825260089082015267446576206f6e6c7960c01b604082015260600190565b600060208284031215612e4057600080fd5b5051919050565b600060208284031215612e5957600080fd5b8151612cab81612bcd565b634e487b7160e01b600052601160045260246000fd5b80820180821115610bf957610bf9612e64565b8082028115828204841417610bf957610bf9612e64565b600080600080600080600060e0888a031215612ebf57600080fd5b8751612eca81612bb8565b602089015160408a015160608b015160808c015160a08d015160c0909d0151949e939d50919b909a50909850965090945092505050565b60008060408385031215612f1457600080fd5b505080516020909101519092909150565b81810381811115610bf957610bf9612e64565b634e487b7160e01b600052601260045260246000fd5b600082612f5d57612f5d612f38565b500490565b600082612f7157612f71612f38565b500690565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561302657600080fd5b8151612cab81612bb8565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156130815784516001600160a01b03168352938301939183019160010161305c565b50506001600160a01b03969096166060850152505050608001529392505050565b6000806000606084860312156130b757600080fd5b835192506020840151915060408401519050925092509256fea26469706673582212203d9ba491f2490ad3150f0f2ab2fbba57648ed2c11e60cd56294f4beb41d7970e64736f6c6343000814003360806040523480156200001157600080fd5b5060405162001fde38038062001fde833981016040819052620000349162000197565b81818181600362000046838262000290565b50600462000055828262000290565b505050620000726200006c6200007c60201b60201c565b62000080565b505050506200035c565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620000fa57600080fd5b81516001600160401b0380821115620001175762000117620000d2565b604051601f8301601f19908116603f01168101908282118183101715620001425762000142620000d2565b816040528381526020925086838588010111156200015f57600080fd5b600091505b8382101562000183578582018301518183018401529082019062000164565b600093810190920192909252949350505050565b60008060408385031215620001ab57600080fd5b82516001600160401b0380821115620001c357600080fd5b620001d186838701620000e8565b93506020850151915080821115620001e857600080fd5b50620001f785828601620000e8565b9150509250929050565b600181811c908216806200021657607f821691505b6020821081036200023757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200028b57600081815260208120601f850160051c81016020861015620002665750805b601f850160051c820191505b81811015620002875782815560010162000272565b5050505b505050565b81516001600160401b03811115620002ac57620002ac620000d2565b620002c481620002bd845462000201565b846200023d565b602080601f831160018114620002fc5760008415620002e35750858301515b600019600386901b1c1916600185901b17855562000287565b600085815260208120601f198616915b828110156200032d578886015182559484019460019091019084016200030c565b50858210156200034c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611c72806200036c6000396000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c80637c3906e011610125578063b8e3bfbc116100ad578063dd62ed3e1161007c578063dd62ed3e146104a0578063e1964621146104b3578063e30443bc146104d3578063f2fde38b146104e6578063fbcbc0f1146104f957600080fd5b8063b8e3bfbc14610468578063bb06f2711461047b578063ccc29bf614610484578063d1b812cd1461048d57600080fd5b806395d89b41116100f457806395d89b41146103f1578063a457c2d7146103f9578063a8b9d2401461040c578063a9059cbb1461041f578063aafd847a1461043257600080fd5b80637c3906e01461039a578063807ab4f7146103ba5780638da5cb5b146103cd57806391b89fba146103de57600080fd5b8063497ec823116101a85780636a474002116101775780636a4740021461034557806370a082311461034d578063715018a614610376578063757e4b5b1461037e5780637bbbed361461039157600080fd5b8063497ec823146102db5780634e7b827f146102ee5780635fcbd2851461031157806360aa39911461033c57600080fd5b806323b872dd116101e457806323b872dd1461027e57806327ce014714610291578063313ce567146102b957806339509351146102c857600080fd5b80630483f7a01461021657806306fdde031461022b578063095ea7b31461024957806318160ddd1461026c575b600080fd5b6102296102243660046119ad565b61054b565b005b61023361062f565b60405161024091906119e4565b60405180910390f35b61025c610257366004611a32565b6106c1565b6040519015158152602001610240565b6002545b604051908152602001610240565b61025c61028c366004611a5c565b6106db565b6102a461029f366004611a98565b6106ff565b60408051928352602083019190915201610240565b60405160128152602001610240565b61025c6102d6366004611a32565b6107be565b6102296102e9366004611ab3565b6107e0565b61025c6102fc366004611a98565b60126020526000908152604090205460ff1681565b600654610324906001600160a01b031681565b6040516001600160a01b039091168152602001610240565b61027060115481565b6102296108ce565b61027061035b366004611a98565b6001600160a01b031660009081526020819052604090205490565b6102296108db565b61022961038c366004611ae6565b6108ef565b610270600f5481565b6102706103a8366004611a98565b60136020526000908152604090205481565b61025c6103c8366004611a98565b610a5e565b6005546001600160a01b0316610324565b6102a46103ec366004611a98565b610b3d565b610233610b52565b61025c610407366004611a32565b610b61565b6102a461041a366004611a98565b610bdc565b61025c61042d366004611a32565b610c43565b6102a4610440366004611a98565b6001600160a01b03166000908152600c6020908152604080832054600d909252909120549091565b610229610476366004611ab3565b610c51565b61027060105481565b610270600e5481565b600754610324906001600160a01b031681565b6102706104ae366004611ab3565b610c87565b6102706104c1366004611a98565b60146020526000908152604090205481565b6102296104e1366004611a32565b610cb2565b6102296104f4366004611a98565b610ce4565b61050c610507366004611a98565b610d5d565b604080516001600160a01b0390981688526020880196909652948601939093526060850191909152608084015260a083015260c082015260e001610240565b610553610e3b565b6001600160a01b03821660009081526012602052604090205481151560ff90911615150361058057600080fd5b6001600160a01b0382166000908152601260205260409020805460ff19168215159081179091556001036105be576105b9826000610e95565b6105e6565b6105e6826105e1846001600160a01b031660009081526020819052604090205490565b610e95565b816001600160a01b03167fa3c7c11b2e12c4144b09a7813f3393ba646392788638998c97be8da908cf04be82604051610623911515815260200190565b60405180910390a25050565b60606003805461063e90611b08565b80601f016020809104026020016040519081016040528092919081815260200182805461066a90611b08565b80156106b75780601f1061068c576101008083540402835291602001916106b7565b820191906000526020600020905b81548152906001019060200180831161069a57829003601f168201915b5050505050905090565b6000336106cf818585610ef4565b60019150505b92915050565b6000336106e9858285611018565b6106f485858561108c565b506001949350505050565b6001600160a01b0381166000908152600a60209081526040808320549183905282205482918291600160801b9161075691610751919061074b9061074690600854906110e8565b611171565b90611181565b6111bf565b6107609190611b58565b6001600160a01b0385166000908152600b6020908152604080832054918390528220549293509091600160801b916107a891610751919061074b9061074690600954906110e8565b6107b29190611b58565b91959194509092505050565b6000336106cf8185856107d18383610c87565b6107db9190611b7a565b610ef4565b6107e8610e3b565b6040516370a0823160e01b81523060048201526001600160a01b0382169063a9059cbb90849083906370a0823190602401602060405180830381865afa158015610836573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085a9190611b8d565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156108a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c99190611ba6565b505050565b6108d7336111d2565b5050565b6108e3610e3b565b6108ed60006114eb565b565b6108f7610e3b565b600061090260025490565b116109635760405162461bcd60e51b815260206004820152602660248201527f546f74616c20737570706c79206d7573742062652067726561746572207468616044820152656e207a65726f60d01b60648201526084015b60405180910390fd5b81156109df5761099661097560025490565b61098384600160801b6110e8565b61098d9190611b58565b6008549061153d565b60085560405182815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a2600e546109db908361153d565b600e555b80156108d757610a126109f160025490565b6109ff83600160801b6110e8565b610a099190611b58565b6009549061153d565b60095560405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a2600f54610a57908261153d565b600f555050565b6000610a68610e3b565b600080610a74846111d2565b90925090508115610ade576001600160a01b03841660008181526013602052604090819020429055517f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d490610acc9085815260200190565b60405180910390a25060019392505050565b8015610b31576001600160a01b03841660008181526014602052604090819020429055517f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d490610acc9084815260200190565b6001925050505b919050565b600080610b4983610bdc565b91509150915091565b60606004805461063e90611b08565b60003381610b6f8286610c87565b905083811015610bcf5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161095a565b6106f48286868403610ef4565b600080600080610beb856106ff565b6001600160a01b0387166000908152600c60205260409020549193509150610c1490839061159c565b6001600160a01b0386166000908152600d6020526040902054610c3890839061159c565b935093505050915091565b6000336106cf81858561108c565b610c59610e3b565b600680546001600160a01b039384166001600160a01b03199182161790915560078054929093169116179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610cba610e3b565b6001600160a01b03821660009081526012602052604090205460ff166108d7576108d78282610e95565b610cec610e3b565b6001600160a01b038116610d515760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161095a565b610d5a816114eb565b50565b6000806000806000806000610db16040518060e0016040528060006001600160a01b031681526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6001600160a01b0389168152610dc689610bdc565b506020820152610dd5896106ff565b608083015260608201526001600160a01b039890981660008181526013602090815260408083205460a08d01908152938352601482529091205460c08b018190528a5191909a01519151601054601154929c939b8c9b5091995090975095509350915050565b6005546001600160a01b031633146108ed5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161095a565b6001600160a01b03821660009081526020819052604090205480821115610ed4576000610ec2838361159c565b9050610ece84826115de565b50505050565b808210156108c9576000610ee8828461159c565b9050610ece848261168f565b6001600160a01b038316610f565760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161095a565b6001600160a01b038216610fb75760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161095a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006110248484610c87565b90506000198114610ece578181101561107f5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161095a565b610ece8484848403610ef4565b60405162461bcd60e51b815260206004820152602b60248201527f545245535f4469766964656e645f547261636b65723a204e6f207472616e736660448201526a195c9cc8185b1b1bddd95960aa1b606482015260840161095a565b6000826000036110fa575060006106d5565b60006111068385611bc3565b9050826111138583611b58565b1461116a5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b606482015260840161095a565b9392505050565b600081818112156106d557600080fd5b60008061118e8385611bda565b9050600083121580156111a15750838112155b806111b657506000831280156111b657508381125b61116a57600080fd5b6000808212156111ce57600080fd5b5090565b6000806000806000806111e487610bdc565b90925090508115611364576001600160a01b0387166000908152600c6020526040902054611212908361153d565b6001600160a01b0388166000908152600c602052604081209190915560108054849290611240908490611b7a565b90915550506040518281526001600160a01b038816907fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d9060200160405180910390a260065460405163a9059cbb60e01b81526001600160a01b03898116600483015260248201859052600092169063a9059cbb906044016020604051808303816000875af11580156112d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112fb9190611ba6565b90508061135e576001600160a01b0388166000908152600c6020526040902054611325908461159c565b6001600160a01b0389166000908152600c602052604081209190915560108054859290611353908490611c02565b909155506113629050565b8294505b505b80156114df576001600160a01b0387166000908152600d602052604090205461138d908261153d565b6001600160a01b0388166000908152600d6020526040812091909155601180548392906113bb908490611b7a565b90915550506040518181526001600160a01b038816907fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d9060200160405180910390a260075460405163a9059cbb60e01b81526001600160a01b03898116600483015260248201849052600092169063a9059cbb906044016020604051808303816000875af1158015611452573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114769190611ba6565b9050806114d9576001600160a01b0388166000908152600d60205260409020546114a0908361159c565b6001600160a01b0389166000908152600d6020526040812091909155601180548492906114ce908490611c02565b909155506114dd9050565b8193505b505b50919590945092505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008061154a8385611b7a565b90508381101561116a5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015260640161095a565b600061116a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611720565b6115e8828261175a565b611622611603610746836008546110e890919063ffffffff16565b6001600160a01b0384166000908152600a602052604090205490611819565b6001600160a01b0383166000908152600a602052604090205560095461166f906116509061074690846110e8565b6001600160a01b0384166000908152600b602052604090205490611819565b6001600160a01b039092166000908152600b602052604090209190915550565b6116998282611856565b6116d36116b4610746836008546110e890919063ffffffff16565b6001600160a01b0384166000908152600a602052604090205490611181565b6001600160a01b0383166000908152600a602052604090205560095461166f906117019061074690846110e8565b6001600160a01b0384166000908152600b602052604090205490611181565b600081848411156117445760405162461bcd60e51b815260040161095a91906119e4565b5060006117518486611c02565b95945050505050565b6001600160a01b0382166117b05760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161095a565b80600260008282546117c29190611b7a565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6000806118268385611c15565b9050600083121580156118395750838113155b806111b657506000831280156111b6575083811361116a57600080fd5b6001600160a01b0382166118b65760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161095a565b6001600160a01b0382166000908152602081905260409020548181101561192a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161095a565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b80356001600160a01b0381168114610b3857600080fd5b8015158114610d5a57600080fd5b600080604083850312156119c057600080fd5b6119c983611988565b915060208301356119d98161199f565b809150509250929050565b600060208083528351808285015260005b81811015611a11578581018301518582016040015282016119f5565b506000604082860101526040601f19601f8301168501019250505092915050565b60008060408385031215611a4557600080fd5b611a4e83611988565b946020939093013593505050565b600080600060608486031215611a7157600080fd5b611a7a84611988565b9250611a8860208501611988565b9150604084013590509250925092565b600060208284031215611aaa57600080fd5b61116a82611988565b60008060408385031215611ac657600080fd5b611acf83611988565b9150611add60208401611988565b90509250929050565b60008060408385031215611af957600080fd5b50508035926020909101359150565b600181811c90821680611b1c57607f821691505b602082108103611b3c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082611b7557634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156106d5576106d5611b42565b600060208284031215611b9f57600080fd5b5051919050565b600060208284031215611bb857600080fd5b815161116a8161199f565b80820281158282048414176106d5576106d5611b42565b8082018281126000831280158216821582161715611bfa57611bfa611b42565b505092915050565b818103818111156106d5576106d5611b42565b8181036000831280158383131683831282161715611c3557611c35611b42565b509291505056fea2646970667358221220824e918c2959a3f7775c4c4f33c106531b3d626fa61e8e9b60ded6d59c08874364736f6c63430008140033

Deployed Bytecode

0x60806040526004361061037a5760003560e01c80638c9684f9116101d1578063b62496f511610102578063e01af92c116100a0578063f2fde38b1161006f578063f2fde38b14610a68578063f887ea4014610a88578063f8b45b0514610aa8578063fd5e83d814610abe57600080fd5b8063e01af92c14610a07578063e2f4560514610a27578063e6fd48bc14610a3d578063f0fc6bca14610a5357600080fd5b8063c18bc195116100dc578063c18bc19514610987578063c851cc32146109a7578063d2fcc001146109c7578063dd62ed3e146109e757600080fd5b8063b62496f514610915578063b97dd9e214610945578063c02466681461096757600080fd5b8063a457c2d71161016f578063a8b9d24011610149578063a8b9d24014610895578063a9059cbb146108b5578063aa35822c146108d5578063afa4f3b2146108f557600080fd5b8063a457c2d71461083f578063a70b9f0c1461085f578063a8aa1b311461087557600080fd5b806392929a09116101ab57806392929a09146107ca57806395d89b41146107ea5780639a7a23d6146107ff578063a11a16821461081f57600080fd5b80638c9684f91461076c5780638da5cb5b1461078c5780638ea5220f146107aa57600080fd5b806346469afb116102ab57806370a08231116102495780637b510fe8116102235780637b510fe8146106c25780638512775e1461072157806388e765ff146107415780638a8c523c1461075757600080fd5b806370a0823114610657578063715018a61461068d57806379b447bd146106a257600080fd5b80635e4e45e6116102855780635e4e45e6146105e257806366d602ae146106025780636843cd84146106185780636ddd17131461063857600080fd5b806346469afb146105725780634ada218b146105885780634fbee193146105a957600080fd5b80631f53ac02116103185780632c1f5216116102f25780632c1f5216146104cd57806330bb4cff1461050c578063313ce56714610536578063395093511461055257600080fd5b80631f53ac021461046d57806323b872dd1461048d5780632866ed21146104ad57600080fd5b80630a78097d116103545780630a78097d1461040357806312b77e8a1461042357806318160ddd146104385780631bff78981461045757600080fd5b80630483f7a01461038657806306fdde03146103a8578063095ea7b3146103d357600080fd5b3661038157005b600080fd5b34801561039257600080fd5b506103a66103a1366004612bdb565b610ade565b005b3480156103b457600080fd5b506103bd610b53565b6040516103ca9190612c14565b60405180910390f35b3480156103df57600080fd5b506103f36103ee366004612c62565b610be5565b60405190151581526020016103ca565b34801561040f57600080fd5b506103a661041e366004612c8e565b610bff565b34801561042f57600080fd5b506103a6610d2e565b34801561044457600080fd5b506002545b6040519081526020016103ca565b34801561046357600080fd5b5061044960145481565b34801561047957600080fd5b506103a6610488366004612c8e565b610d9a565b34801561049957600080fd5b506103f36104a8366004612cb2565b610dc4565b3480156104b957600080fd5b506009546103f39062010000900460ff1681565b3480156104d957600080fd5b506009546104f490600160201b90046001600160a01b031681565b6040516001600160a01b0390911681526020016103ca565b34801561051857600080fd5b50610521610de8565b604080519283526020830191909152016103ca565b34801561054257600080fd5b50604051601281526020016103ca565b34801561055e57600080fd5b506103f361056d366004612c62565b610ee1565b34801561057e57600080fd5b5061044960135481565b34801561059457600080fd5b506009546103f3906301000000900460ff1681565b3480156105b557600080fd5b506103f36105c4366004612c8e565b6001600160a01b031660009081526015602052604090205460ff1690565b3480156105ee57600080fd5b506103a66105fd366004612c8e565b610f03565b34801561060e57600080fd5b50610449600d5481565b34801561062457600080fd5b50610449610633366004612c8e565b61115f565b34801561064457600080fd5b506009546103f390610100900460ff1681565b34801561066357600080fd5b50610449610672366004612c8e565b6001600160a01b031660009081526020819052604090205490565b34801561069957600080fd5b506103a66111d5565b3480156106ae57600080fd5b506103a66106bd366004612cf3565b6111e9565b3480156106ce57600080fd5b506106e26106dd366004612c8e565b61121f565b604080516001600160a01b0390981688526020880196909652948601939093526060850191909152608084015260a083015260c082015260e0016103ca565b34801561072d57600080fd5b506103a661073c366004612d15565b6112b8565b34801561074d57600080fd5b50610449600c5481565b34801561076357600080fd5b506103a66113b1565b34801561077857600080fd5b506103a6610787366004612c8e565b611428565b34801561079857600080fd5b506005546001600160a01b03166104f4565b3480156107b657600080fd5b50600a546104f4906001600160a01b031681565b3480156107d657600080fd5b506103a66107e5366004612d2e565b6114c2565b3480156107f657600080fd5b506103bd6114e6565b34801561080b57600080fd5b506103a661081a366004612bdb565b6114f5565b34801561082b57600080fd5b506103a661083a366004612cf3565b611507565b34801561084b57600080fd5b506103f361085a366004612c62565b611579565b34801561086b57600080fd5b50610449610e1081565b34801561088157600080fd5b506007546104f4906001600160a01b031681565b3480156108a157600080fd5b506105216108b0366004612c8e565b6115f4565b3480156108c157600080fd5b506103f36108d0366004612c62565b611677565b3480156108e157600080fd5b506103a66108f0366004612cf3565b611685565b34801561090157600080fd5b506103a6610910366004612d15565b6116f7565b34801561092157600080fd5b506103f3610930366004612c8e565b60166020526000908152604090205460ff1681565b34801561095157600080fd5b5061095a611717565b6040516103ca9190612d61565b34801561097357600080fd5b506103a6610982366004612bdb565b611771565b34801561099357600080fd5b506103a66109a2366004612d15565b61185b565b3480156109b357600080fd5b506103a66109c2366004612c8e565b61187b565b3480156109d357600080fd5b506103a66109e2366004612bdb565b6118a5565b3480156109f357600080fd5b50610449610a02366004612d89565b6118d8565b348015610a1357600080fd5b506103a6610a22366004612d2e565b611903565b348015610a3357600080fd5b50610449600b5481565b348015610a4957600080fd5b5061044960085481565b348015610a5f57600080fd5b506103a6611925565b348015610a7457600080fd5b506103a6610a83366004612c8e565b6119e8565b348015610a9457600080fd5b506006546104f4906001600160a01b031681565b348015610ab457600080fd5b50610449600e5481565b348015610aca57600080fd5b506103a6610ad9366004612d15565b611a5e565b610ae6611af0565b60095460405162241fbd60e51b8152600160201b9091046001600160a01b031690630483f7a090610b1d9085908590600401612db7565b600060405180830381600087803b158015610b3757600080fd5b505af1158015610b4b573d6000803e3d6000fd5b505050505050565b606060038054610b6290612dd2565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8e90612dd2565b8015610bdb5780601f10610bb057610100808354040283529160200191610bdb565b820191906000526020600020905b815481529060010190602001808311610bbe57829003601f168201915b5050505050905090565b600033610bf3818585611b4a565b60019150505b92915050565b600a546001600160a01b03163314610c325760405162461bcd60e51b8152600401610c2990612e0c565b60405180910390fd5b806001600160a01b031663a9059cbb610c536005546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015610c97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cbb9190612e2e565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610d06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2a9190612e47565b5050565b610d36611af0565b600a5460405147916000916001600160a01b039091169083908381818185875af1925050503d8060008114610d87576040519150601f19603f3d011682016040523d82523d6000602084013e610d8c565b606091505b5050905080610d2a57600080fd5b610da2611af0565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600033610dd2858285611c6e565b610ddd858585611ce8565b506001949350505050565b600080600960049054906101000a90046001600160a01b03166001600160a01b031663ccc29bf66040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e629190612e2e565b600960049054906101000a90046001600160a01b03166001600160a01b0316637bbbed366040518163ffffffff1660e01b8152600401602060405180830381865afa158015610eb5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed99190612e2e565b915091509091565b600033610bf3818585610ef483836118d8565b610efe9190612e7a565b611b4a565b600a546001600160a01b03163314610f2d5760405162461bcd60e51b8152600401610c2990612e0c565b60405162241fbd60e51b815281906001600160a01b03821690630483f7a090610f5d908490600190600401612db7565b600060405180830381600087803b158015610f7757600080fd5b505af1158015610f8b573d6000803e3d6000fd5b505060405162241fbd60e51b81526001600160a01b0384169250630483f7a09150610fbd903090600190600401612db7565b600060405180830381600087803b158015610fd757600080fd5b505af1158015610feb573d6000803e3d6000fd5b50505050806001600160a01b0316630483f7a06110106005546001600160a01b031690565b60016040518363ffffffff1660e01b815260040161102f929190612db7565b600060405180830381600087803b15801561104957600080fd5b505af115801561105d573d6000803e3d6000fd5b505060065460405162241fbd60e51b81526001600160a01b038086169450630483f7a09350611093921690600190600401612db7565b600060405180830381600087803b1580156110ad57600080fd5b505af11580156110c1573d6000803e3d6000fd5b505060095460405162241fbd60e51b8152600160201b9091046001600160a01b03169250630483f7a091506110fe90600090600190600401612db7565b600060405180830381600087803b15801561111857600080fd5b505af115801561112c573d6000803e3d6000fd5b5050600980546001600160a01b03909416600160201b02640100000000600160c01b031990941693909317909255505050565b6009546040516370a0823160e01b81526001600160a01b038381166004830152600092600160201b900416906370a0823190602401602060405180830381865afa1580156111b1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf99190612e2e565b6111dd611af0565b6111e760006122bb565b565b6111f1611af0565b61120382670de0b6b3a7640000612e8d565b600c5561121881670de0b6b3a7640000612e8d565b600d555050565b60095460405163fbcbc0f160e01b81526001600160a01b038381166004830152600092839283928392839283928392600160201b9004169063fbcbc0f19060240160e060405180830381865afa15801561127d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a19190612ea4565b959e949d50929b5090995097509550909350915050565b600a546001600160a01b031633146112e25760405162461bcd60e51b8152600401610c2990612e0c565b6007546009546040516323b872dd60e01b8152336004820152600160201b9091046001600160a01b0390811660248301526044820184905260009216906323b872dd906064016020604051808303816000875af1158015611347573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136b9190612e47565b90508015610d2a5760095460405163757e4b5b60e01b81526004810184905260006024820152600160201b9091046001600160a01b03169063757e4b5b90604401610b1d565b6113b9611af0565b6009546301000000900460ff16156114135760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720616c726561647920656e61626c65640000000000000000006044820152606401610c29565b6009805463ff00000019166301000000179055565b600a546001600160a01b031633146114525760405162461bcd60e51b8152600401610c2990612e0c565b60095460405163497ec82360e01b81523360048201526001600160a01b038381166024830152600160201b9092049091169063497ec82390604401600060405180830381600087803b1580156114a757600080fd5b505af11580156114bb573d6000803e3d6000fd5b5050505050565b6114ca611af0565b60098054911515620100000262ff000019909216919091179055565b606060048054610b6290612dd2565b6114fd611af0565b610d2a828261230d565b61150f611af0565b602361151b8284612e7a565b111561155e5760405162461bcd60e51b8152602060048201526012602482015271466565206d757374206265203c3d2033352560701b6044820152606401610c29565b601182905560128190556115728183612e7a565b6014555050565b6000338161158782866118d8565b9050838110156115e75760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610c29565b610ddd8286868403611b4a565b6009546040516302a2e74960e61b81526001600160a01b0383811660048301526000928392600160201b9091049091169063a8b9d240906024016040805180830381865afa15801561164a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166e9190612f01565b91509150915091565b600033610bf3818585611ce8565b61168d611af0565b60236116998284612e7a565b11156116dc5760405162461bcd60e51b8152602060048201526012602482015271466565206d757374206265203c3d2033352560701b6044820152606401610c29565b600f82905560108190556116f08183612e7a565b6013555050565b6116ff611af0565b61171181670de0b6b3a7640000612e8d565b600b5550565b600080600854426117289190612f25565b90506000600361173a610e1084612f4e565b6117449190612f62565b9050806000036117575760009250505090565b806001036117685760019250505090565b60029250505090565b611779611af0565b6001600160a01b03821660009081526015602052604090205481151560ff9091161515036117fc5760405162461bcd60e51b815260206004820152602a60248201527f4163636f756e7420697320616c7265616479207468652076616c7565206f6620604482015269276578636c756465642760b01b6064820152608401610c29565b6001600160a01b038216600081815260156020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b611863611af0565b61187581670de0b6b3a7640000612e8d565b600e5550565b611883611af0565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6118ad611af0565b6001600160a01b03919091166000908152601760205260409020805460ff1916911515919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61190b611af0565b600980549115156101000261ff0019909216919091179055565b60095462010000900460ff166119715760405162461bcd60e51b815260206004820152601160248201527010db185a5b481b9bdd08195b98589b1959607a1b6044820152606401610c29565b60095460405163807ab4f760e01b8152336004820152600160201b9091046001600160a01b03169063807ab4f7906024016020604051808303816000875af11580156119c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119e59190612e47565b50565b6119f0611af0565b6001600160a01b038116611a555760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c29565b6119e5816122bb565b600a546001600160a01b03163314611a885760405162461bcd60e51b8152600401610c2990612e0c565b6000611aaa33600960049054906101000a90046001600160a01b031684610dc4565b90508015610d2a5760095460405163757e4b5b60e01b81526000600482015260248101849052600160201b9091046001600160a01b03169063757e4b5b90604401610b1d565b6005546001600160a01b031633146111e75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c29565b6001600160a01b038316611bac5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610c29565b6001600160a01b038216611c0d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610c29565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000611c7a84846118d8565b90506000198114611ce25781811015611cd55760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610c29565b611ce28484848403611b4a565b50505050565b6001600160a01b038316611d0e5760405162461bcd60e51b8152600401610c2990612f76565b6001600160a01b038216611d345760405162461bcd60e51b8152600401610c2990612fbb565b6001600160a01b03831660009081526015602052604090205460ff16158015611d7657506001600160a01b03821660009081526015602052604090205460ff16155b8015611d85575060095460ff16155b15611f57576009546301000000900460ff16611dd85760405162461bcd60e51b815260206004820152601260248201527154726164696e67206e6f742061637469766560701b6044820152606401610c29565b6001600160a01b03821660009081526016602052604090205460ff1615611e5057600d54811115611e4b5760405162461bcd60e51b815260206004820152601f60248201527f596f752061726520657863656564696e67206d617853656c6c416d6f756e74006044820152606401610c29565b611ec3565b6001600160a01b03831660009081526016602052604090205460ff1615611ec357600c54811115611ec35760405162461bcd60e51b815260206004820152601e60248201527f596f752061726520657863656564696e67206d6178427579416d6f756e7400006044820152606401610c29565b6001600160a01b03821660009081526017602052604090205460ff16611f5757600e546001600160a01b038316600090815260208190526040902054611f099083612e7a565b1115611f575760405162461bcd60e51b815260206004820152601b60248201527f556e61626c6520746f20657863656564204d61782057616c6c657400000000006044820152606401610c29565b80600003611f7057611f6b83836000612477565b505050565b30600090815260208190526040902054600b5481108015908190611f97575060095460ff16155b8015611faa5750600954610100900460ff165b8015611fce57506001600160a01b03841660009081526016602052604090205460ff165b8015611ff357506001600160a01b03851660009081526015602052604090205460ff16155b801561201857506001600160a01b03841660009081526015602052604090205460ff16155b15612048576009805460ff191660011790556014541561203d5761203d600b546125a1565b6009805460ff191690555b6009546001600160a01b03861660009081526015602052604090205460ff9182161591168061208f57506001600160a01b03851660009081526015602052604090205460ff165b15612098575060005b6001600160a01b03851660009081526016602052604090205460ff161580156120da57506001600160a01b03861660009081526016602052604090205460ff16155b156120e3575060005b8015612182576001600160a01b03851660009081526016602052604081205460ff161561212b5760646014548661211a9190612e8d565b6121249190612f4e565b9050612169565b6001600160a01b03871660009081526016602052604090205460ff16156121695760646013548661215c9190612e8d565b6121669190612f4e565b90505b6121738186612f25565b9450612180873083612477565b505b61218d868686612477565b6009546001600160a01b03600160201b9091041663e30443bc876121c6816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561220c57600080fd5b505af192505050801561221d575060015b506009546001600160a01b03600160201b9091041663e30443bc86612257816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561229d57600080fd5b505af19250505080156122ae575060015b15610b4b57505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526016602052604090205481151560ff9091161515036123a35760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c756500000000000000006064820152608401610c29565b6001600160a01b0382166000908152601660205260409020805460ff1916821580159190911790915561243b5760095460405162241fbd60e51b8152600160201b9091046001600160a01b031690630483f7a090612408908590600190600401612db7565b600060405180830381600087803b15801561242257600080fd5b505af1158015612436573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6001600160a01b03831661249d5760405162461bcd60e51b8152600401610c2990612f76565b6001600160a01b0382166124c35760405162461bcd60e51b8152600401610c2990612fbb565b6001600160a01b0383166000908152602081905260409020548181101561253b5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610c29565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611ce2565b30600090815260208190526040902054818115806125bd575080155b156125c757505050565b6125d281600f612e8d565b8211156125e7576125e4600f82612e8d565b90505b6000601454601154836125fa9190612e8d565b6126049190612f4e565b90506000601454601254846126199190612e8d565b6126239190612f4e565b9050600061262f611717565b600281111561264057612640612d4b565b0361281957612650600283612f4e565b915061265b826129ea565b47801561266c5761266c8382612b0e565b6007546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156126b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126d99190612e2e565b90508080156128155760075460095460405163a9059cbb60e01b8152600160201b9091046001600160a01b03908116600483015260248201849052600092169063a9059cbb906044016020604051808303816000875af1158015612741573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127659190612e47565b905080156128135760095460405163757e4b5b60e01b81526004810184905260006024820152600160201b9091046001600160a01b03169063757e4b5b90604401600060405180830381600087803b1580156127c057600080fd5b505af11580156127d4573d6000803e3d6000fd5b5050604080518c8152602081018690527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc3935001905060405180910390a15b505b5050505b6001612823611717565b600281111561283457612834612d4b565b036128fe57600954612858903090600160201b90046001600160a01b031684611ce8565b60095460405163757e4b5b60e01b81526000600482015260248101849052600160201b9091046001600160a01b03169063757e4b5b90604401600060405180830381600087803b1580156128ab57600080fd5b505af11580156128bf573d6000803e3d6000fd5b505060408051888152602081018690527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc3935001905060405180910390a15b6002612908611717565b600281111561291957612919612d4b565b0361292b5761292b3061dead84611ce8565b612934816129ea565b478080156129e157600a546040516000916001600160a01b03169083908381818185875af1925050503d8060008114612989576040519150601f19603f3d011682016040523d82523d6000602084013e61298e565b606091505b50509050806129df5760405162461bcd60e51b815260206004820181905260248201527f4661696c656420746f2073656e642045544820746f206465762077616c6c65746044820152606401610c29565b505b50505050505050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612a1f57612a1f612ffe565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015612a78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a9c9190613014565b81600181518110612aaf57612aaf612ffe565b6001600160a01b039283166020918202929092010152600654612ad59130911684611b4a565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac94790610b1d908590600090869030904290600401613031565b600654612b269030906001600160a01b031684611b4a565b60065460405163f305d71960e01b8152306004820181905260248201859052600060448301819052606483015260848201524260a48201526001600160a01b039091169063f305d71990839060c40160606040518083038185885af1158015612b93573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906114bb91906130a2565b6001600160a01b03811681146119e557600080fd5b80151581146119e557600080fd5b60008060408385031215612bee57600080fd5b8235612bf981612bb8565b91506020830135612c0981612bcd565b809150509250929050565b600060208083528351808285015260005b81811015612c4157858101830151858201604001528201612c25565b506000604082860101526040601f19601f8301168501019250505092915050565b60008060408385031215612c7557600080fd5b8235612c8081612bb8565b946020939093013593505050565b600060208284031215612ca057600080fd5b8135612cab81612bb8565b9392505050565b600080600060608486031215612cc757600080fd5b8335612cd281612bb8565b92506020840135612ce281612bb8565b929592945050506040919091013590565b60008060408385031215612d0657600080fd5b50508035926020909101359150565b600060208284031215612d2757600080fd5b5035919050565b600060208284031215612d4057600080fd5b8135612cab81612bcd565b634e487b7160e01b600052602160045260246000fd5b6020810160038310612d8357634e487b7160e01b600052602160045260246000fd5b91905290565b60008060408385031215612d9c57600080fd5b8235612da781612bb8565b91506020830135612c0981612bb8565b6001600160a01b039290921682521515602082015260400190565b600181811c90821680612de657607f821691505b602082108103612e0657634e487b7160e01b600052602260045260246000fd5b50919050565b602080825260089082015267446576206f6e6c7960c01b604082015260600190565b600060208284031215612e4057600080fd5b5051919050565b600060208284031215612e5957600080fd5b8151612cab81612bcd565b634e487b7160e01b600052601160045260246000fd5b80820180821115610bf957610bf9612e64565b8082028115828204841417610bf957610bf9612e64565b600080600080600080600060e0888a031215612ebf57600080fd5b8751612eca81612bb8565b602089015160408a015160608b015160808c015160a08d015160c0909d0151949e939d50919b909a50909850965090945092505050565b60008060408385031215612f1457600080fd5b505080516020909101519092909150565b81810381811115610bf957610bf9612e64565b634e487b7160e01b600052601260045260246000fd5b600082612f5d57612f5d612f38565b500490565b600082612f7157612f71612f38565b500690565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561302657600080fd5b8151612cab81612bb8565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156130815784516001600160a01b03168352938301939183019160010161305c565b50506001600160a01b03969096166060850152505050608001529392505050565b6000806000606084860312156130b757600080fd5b835192506020840151915060408401519050925092509256fea26469706673582212203d9ba491f2490ad3150f0f2ab2fbba57648ed2c11e60cd56294f4beb41d7970e64736f6c63430008140033

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

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