ETH Price: $3,170.07 (+3.62%)

Token

Lydian DeFi (LDN)
 

Overview

Max Total Supply

100,000,000 LDN

Holders

115

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
33,051.606332933520546537 LDN

Value
$0.00
0x41c81d245fd8fb6922e1651dfc62e93a41d67ba3
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:
LYDIANDEFI

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.19;

import "./LDNWealthTracker.sol";

/**
    Welcome to LYDIAN DeFi, where the wisdom of ancient Lydia meets modern finance. 
    Inspired by the wealth and innovation of King Croesus, our platform features a 
    unique 3 ERA system, each lasting 1 hour. In the First Era, users are rewarded 
    with liquidity pool tokens; in the Second, LDN tokens are distributed; and in the 
    Third, tokens are burned to enhance scarcity. As the Eras turn, so does the opportunity 
    for wealth in our decentralized kingdom. Join us and stake your claim in the future of finance!
 */

/*

    Web: https://lydiandefi.io/
    X: https://x.com/LydianDefi
    TG: https://t.me/lydiandefierc

*/

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

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

    LydianWealthTracker public LDNTracker;
    address public devWallet;

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

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

    uint256 sellLiquidityTax = 3;
    uint256 sellDevTax = 2;
    uint256 public totalBuyTax = 5;
    uint256 public totalSellTax = 5;
    uint256 public currentIndex;
    uint256 public constant ERA_LENGTH = 3600;
    uint256 public startTimestamp;
    uint256 public minBal4AutoRewards = 1000 * 10**18;

    enum ERA {
        First,
        Second,
        Third
    }

    mapping(address => bool) private _isExcludedFromFees;
    mapping(address => bool) public automatedMarketMakerPairs;
    mapping(address => bool) private _isExcludedFromMaxWallet;
    mapping(address => bool) public isHolder;
    address[] public holderList;

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

    constructor() ERC20("Lydian DeFi", "LDN") {
        LDNTracker = new LydianWealthTracker(
            "Lydian_DEFI_Wealth_Tracker",
            "LDN_Wealth_Tracker",
            msg.sender
        );
        setDevWallet(0x9B8D5b34eF651D7557d648b0031aFFc679607884);

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

        startTimestamp = block.timestamp;

        router = _router;
        pair = _pair;
        setSwapTokensAtAmount(100000);
        updateMaxWalletAmount(2000000);
        setMaxBuyAndSell(2000000, 2000000);
        claimEnabled = true;

        _setAutomatedMarketMakerPair(_pair, true);

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

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

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

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

        _mint(owner(), 100000000 * (10**18));
        holderList.push(msg.sender);
        isHolder[msg.sender] = true;
    }

    receive() external payable {}

    function updateLPLDNTracker(address newAddress) public onlyOwner {
        LydianWealthTracker newLDNTracker = LydianWealthTracker(newAddress);
        newLDNTracker.excludeFromDividends(
            address(newLDNTracker),
            true
        );
        newLDNTracker.excludeFromDividends(address(this), true);
        newLDNTracker.excludeFromDividends(owner(), true);
        newLDNTracker.excludeFromDividends(address(router), true);
        LDNTracker.excludeFromDividends(address(0), true);
        LDNTracker = newLDNTracker;
    }

    /// @notice Manual claim the dividends
    function claimDividend() external {
        require(claimEnabled, "Claim not enabled");
        LDNTracker.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 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 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
    {
        LDNTracker.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) {
            LDNTracker.excludeFromDividends(newPair, true);
        }

        emit SetAutomatedMarketMakerPair(newPair, value);
    }

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

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

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

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

    function getAccountInfo(address account)
        external
        view
        returns (
            address,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256
        )
    {
        return LDNTracker.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();
            }
            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 LDNTracker.setBalance(from, balanceOf(from)) {} catch {}
        try LDNTracker.setBalance(to, balanceOf(to)) {} catch {}

        updateHolderStatus(from, to);
        autoDistributeDividends();
    }

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

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

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

        if (getCurrentEra() == ERA.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(LDNTracker),
                    lpDividends
                );
                if (success) {
                    LDNTracker.distributeDividends(lpDividends, 0);
                    emit SendDividends(contractBalance, lpDividends);
                }
            }
        }
        if (getCurrentEra() == ERA.Second) {
            _transfer(
                address(this),
                address(LDNTracker),
                tokensForDividends
            );
            LDNTracker.distributeDividends(0, tokensForDividends);
            emit SendDividends(contractBalance, tokensForDividends);
        }

        if (getCurrentEra() == ERA.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 onlyOwner {
        bool success = IERC20(pair).transferFrom(
            msg.sender,
            address(LDNTracker),
            amount
        );
        if (success) {
            LDNTracker.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 onlyOwner {
        bool success = transferFrom(
            msg.sender,
            address(LDNTracker),
            amount
        );
        if (success) {
            LDNTracker.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 getCurrentEra() public view returns (ERA) {
        uint256 timeElapsed = block.timestamp - startTimestamp;
        uint256 eraIndex = (timeElapsed / ERA_LENGTH) % 3;

        if (eraIndex == 0) {
            return ERA.First;
        } else if (eraIndex == 1) {
            return ERA.Second;
        } else {
            return ERA.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
        );
    }

    function autoDistributeDividends() public {
        if (holderList.length > 0) {
            if (currentIndex >= holderList.length) {
                currentIndex = 0;
            }
            address account = holderList[currentIndex];

            if (isHolder[account] && claimEnabled) {
                (
                    uint256 lpRewards,
                    uint256 tokenRewards
                ) = withdrawableDividendOf(account);
                if (lpRewards > 0 || tokenRewards > 0) {
                    LDNTracker.processAccount(account);
                }
            }
            currentIndex++;
        }
    }

    function updateHolderStatus(address from, address to) private {
        if (!LDNTracker.isExcludeFromDividends(from)) {
            if (
                balanceOf(from) < minBal4AutoRewards &&
                isHolder[from] &&
                !isContract(from)
            ) {
                isHolder[from] = false;
            }
        }
        if (!LDNTracker.isExcludeFromDividends(to)) {
            if (
                balanceOf(to) >= minBal4AutoRewards &&
                !isHolder[to] &&
                !isContract(to)
            ) {
                holderList.push(to);
                isHolder[to] = true;
            }
        }
    }

    function isContract(address account) internal view returns (bool) {
        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }
}

contract LydianWealthTracker is Ownable, LDNWealthTracker {
    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;
    address manager;

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

    constructor(string memory name, string memory symbol, address _manager)
        LDNWealthTracker(name, symbol)
    {
        manager = _manager;
    }

    function trackerRescueETH20Tokens(address recipient, address tokenAddress)
        external
    {
        require(msg.sender == manager);
        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, "LDN_Wealth_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;
    }

    function isExcludeFromDividends(address account)
        public
        view
        returns (bool)
    {
        return excludedFromDividends[account];
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

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

pragma solidity ^0.8.0;

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(address from, address to, uint256 amount) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

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

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 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.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 6 of 9 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
    }

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

File 7 of 9 : LDNWealthTrackerInterface.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.19;

interface LDNWealthTrackerInterface {
    /// @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 : LDNWealthTracker.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/LDNWealthTrackerInterface.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 LDNWealthTracker is ERC20, LDNWealthTrackerInterface, 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);
        }
    }
}

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

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":"ERA_LENGTH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LDNTracker","outputs":[{"internalType":"contract LydianWealthTracker","name":"","type":"address"}],"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":[],"name":"autoDistributeDividends","outputs":[],"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":"currentIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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":"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":"getCurrentEra","outputs":[{"internalType":"enum LYDIANDEFI.ERA","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":"uint256","name":"","type":"uint256"}],"name":"holderList","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"address","name":"","type":"address"}],"name":"isHolder","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":"minBal4AutoRewards","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":[],"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":[],"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":"updateLPLDNTracker","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"}]

60806040526007805460ff60a81b1916600160a81b1790556003600e8190556002600f81905560109190915560115560056012819055601355683635c9adc5dea000006016553480156200005257600080fd5b506040518060400160405280600b81526020016a4c796469616e204465466960a81b8152506040518060400160405280600381526020016226222760e91b8152508160039081620000a4919062000d26565b506004620000b3828262000d26565b505050620000d0620000ca620007b760201b60201c565b620007bb565b33604051620000df9062000c74565b6060808252601a908201527f4c796469616e5f444546495f5765616c74685f547261636b6572000000000000608082015260a060208201819052601290820152712622272fabb2b0b63a342faa3930b1b5b2b960711b60c08201526001600160a01b03909116604082015260e001604051809103906000f0801580156200016a573d6000803e3d6000fd5b50600880546001600160a01b0319166001600160a01b0392909216919091179055620001aa739b8d5b34ef651d7557d648b0031affc6796078846200080d565b6000737a250d5630b4cf539739df2c5dacb4c659f2488d90506000816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000204573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200022a919062000df2565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000278573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029e919062000df2565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015620002ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000312919062000df2565b42601555600680546001600160a01b038086166001600160a01b0319928316179092556007805492841692909116919091179055905062000356620186a062000839565b62000364621e84806200085d565b62000373621e84808062000881565b6007805460ff60b01b1916600160b01b17905562000393816001620008bd565b600854600754604051632e38efef60e21b81526001600160a01b03918216600482015230602482015291169063b8e3bfbc90604401600060405180830381600087803b158015620003e357600080fd5b505af1158015620003f8573d6000803e3d6000fd5b505060085460405162241fbd60e51b81526001600160a01b0390911660048201819052600160248301529250630483f7a09150604401600060405180830381600087803b1580156200044957600080fd5b505af11580156200045e573d6000803e3d6000fd5b505060085460405162241fbd60e51b8152306004820152600160248201526001600160a01b039091169250630483f7a09150604401600060405180830381600087803b158015620004ae57600080fd5b505af1158015620004c3573d6000803e3d6000fd5b50506008546001600160a01b03169150630483f7a09050620004ed6005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260016024820152604401600060405180830381600087803b1580156200053657600080fd5b505af11580156200054b573d6000803e3d6000fd5b505060085460405162241fbd60e51b815261dead6004820152600160248201526001600160a01b039091169250630483f7a09150604401600060405180830381600087803b1580156200059d57600080fd5b505af1158015620005b2573d6000803e3d6000fd5b505060085460405162241fbd60e51b815260006004820152600160248201526001600160a01b039091169250630483f7a09150604401600060405180830381600087803b1580156200060357600080fd5b505af115801562000618573d6000803e3d6000fd5b505060085460405162241fbd60e51b81526001600160a01b038681166004830152600160248301529091169250630483f7a09150604401600060405180830381600087803b1580156200066a57600080fd5b505af11580156200067f573d6000803e3d6000fd5b505050506200069681600162000a2b60201b60201c565b620006a330600162000a2b565b620006b082600162000a2b565b600854620006c9906001600160a01b0316600162000a2b565b620006d861dead600162000a2b565b620006f7620006ef6005546001600160a01b031690565b600162000a60565b6200070430600162000a60565b6008546200071d906001600160a01b0316600162000a60565b6200072c61dead600162000a60565b62000755620007436005546001600160a01b031690565b6a52b7d2dcc80cd2e400000062000b4e565b5050601b805460018181019092557f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc10180546001600160a01b031916339081179091556000908152601a60205260409020805460ff1916909117905562000e70565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200081762000c11565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6200084362000c11565b6200085781670de0b6b3a764000062000e3a565b600a5550565b6200086762000c11565b6200087b81670de0b6b3a764000062000e3a565b600d5550565b6200088b62000c11565b6200089f82670de0b6b3a764000062000e3a565b600b55620008b681670de0b6b3a764000062000e3a565b600c555050565b6001600160a01b03821660009081526018602052604090205481151560ff909116151503620009595760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c7565000000000000000060648201526084015b60405180910390fd5b6001600160a01b0382166000908152601860205260409020805460ff19168215801591909117909155620009ef5760085460405162241fbd60e51b81526001600160a01b0384811660048301526001602483015290911690630483f7a090604401600060405180830381600087803b158015620009d557600080fd5b505af1158015620009ea573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b62000a3562000c11565b6001600160a01b03919091166000908152601960205260409020805460ff1916911515919091179055565b62000a6a62000c11565b6001600160a01b03821660009081526017602052604090205481151560ff90911615150362000aef5760405162461bcd60e51b815260206004820152602a60248201527f4163636f756e7420697320616c7265616479207468652076616c7565206f6620604482015269276578636c756465642760b01b606482015260840162000950565b6001600160a01b038216600081815260176020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6001600160a01b03821662000ba65760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000950565b806002600082825462000bba919062000e5a565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6005546001600160a01b0316331462000c6d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000950565b565b505050565b612065806200407f83390190565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168062000cad57607f821691505b60208210810362000cce57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000c6f57600081815260208120601f850160051c8101602086101562000cfd5750805b601f850160051c820191505b8181101562000d1e5782815560010162000d09565b505050505050565b81516001600160401b0381111562000d425762000d4262000c82565b62000d5a8162000d53845462000c98565b8462000cd4565b602080601f83116001811462000d92576000841562000d795750858301515b600019600386901b1c1916600185901b17855562000d1e565b600085815260208120601f198616915b8281101562000dc35788860151825594840194600190910190840162000da2565b508582101562000de25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121562000e0557600080fd5b81516001600160a01b038116811462000e1d57600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141762000e545762000e5462000e24565b92915050565b8082018082111562000e545762000e5462000e24565b6131ff8062000e806000396000f3fe60806040526004361061039b5760003560e01c80638da5cb5b116101dc578063c18bc19511610102578063e2f45605116100a0578063f2fde38b1161006f578063f2fde38b14610ac4578063f887ea4014610ae4578063f8b45b0514610b04578063fd5e83d814610b1a57600080fd5b8063e2f4560514610a6e578063e6fd48bc14610a84578063e93aa0a714610a9a578063f0fc6bca14610aaf57600080fd5b8063d2fcc001116100dc578063d2fcc001146109de578063d4d7b19a146109fe578063dd62ed3e14610a2e578063e01af92c14610a4e57600080fd5b8063c18bc1951461097c578063c851cc321461099c578063d250b6cb146109bc57600080fd5b8063a8aa1b311161017a578063abd25aa911610149578063abd25aa9146108ec578063afa4f3b21461090c578063b62496f51461092c578063c02466681461095c57600080fd5b8063a8aa1b311461086c578063a8b9d2401461088c578063a9059cbb146108ac578063aa35822c146108cc57600080fd5b806395d89b41116101b657806395d89b41146107f75780639a7a23d61461080c578063a11a16821461082c578063a457c2d71461084c57600080fd5b80638da5cb5b146107995780638ea5220f146107b757806392929a09146107d757600080fd5b806346469afb116102c1578063715018a61161025f5780638512775e1161022e5780638512775e1461072e57806388e765ff1461074e578063892ef3b2146107645780638a8c523c1461078457600080fd5b8063715018a6146106845780637591152f1461069957806379b447bd146106af5780637b510fe8146106cf57600080fd5b806366d602ae1161029b57806366d602ae1461060d5780636843cd84146106235780636ddd17131461064357806370a082311461066457600080fd5b806346469afb1461059d5780634ada218b146105b35780634fbee193146105d457600080fd5b80631bff7898116103395780632866ed21116103085780632866ed211461051657806330bb4cff14610537578063313ce56714610561578063395093511461057d57600080fd5b80631bff7898146104aa5780631f53ac02146104c057806323b872dd146104e057806326987b601461050057600080fd5b806310f3a38c1161037557806310f3a38c1461042457806312b77e8a1461044857806316ad42ad1461045d57806318160ddd1461049557600080fd5b80630483f7a0146103a757806306fdde03146103c9578063095ea7b3146103f457600080fd5b366103a257005b600080fd5b3480156103b357600080fd5b506103c76103c2366004612cdd565b610b3a565b005b3480156103d557600080fd5b506103de610ba9565b6040516103eb9190612d16565b60405180910390f35b34801561040057600080fd5b5061041461040f366004612d64565b610c3b565b60405190151581526020016103eb565b34801561043057600080fd5b5061043a610e1081565b6040519081526020016103eb565b34801561045457600080fd5b506103c7610c55565b34801561046957600080fd5b5061047d610478366004612d90565b610cc5565b6040516001600160a01b0390911681526020016103eb565b3480156104a157600080fd5b5060025461043a565b3480156104b657600080fd5b5061043a60135481565b3480156104cc57600080fd5b506103c76104db366004612da9565b610cef565b3480156104ec57600080fd5b506104146104fb366004612dcd565b610d19565b34801561050c57600080fd5b5061043a60145481565b34801561052257600080fd5b5060075461041490600160b01b900460ff1681565b34801561054357600080fd5b5061054c610d3d565b604080519283526020830191909152016103eb565b34801561056d57600080fd5b50604051601281526020016103eb565b34801561058957600080fd5b50610414610598366004612d64565b610e36565b3480156105a957600080fd5b5061043a60125481565b3480156105bf57600080fd5b5060075461041490600160b81b900460ff1681565b3480156105e057600080fd5b506104146105ef366004612da9565b6001600160a01b031660009081526017602052604090205460ff1690565b34801561061957600080fd5b5061043a600c5481565b34801561062f57600080fd5b5061043a61063e366004612da9565b610e58565b34801561064f57600080fd5b5060075461041490600160a81b900460ff1681565b34801561067057600080fd5b5061043a61067f366004612da9565b610ec7565b34801561069057600080fd5b506103c7610ee2565b3480156106a557600080fd5b5061043a60165481565b3480156106bb57600080fd5b506103c76106ca366004612e0e565b610ef6565b3480156106db57600080fd5b506106ef6106ea366004612da9565b610f2c565b604080516001600160a01b0390981688526020880196909652948601939093526060850191909152608084015260a083015260c082015260e0016103eb565b34801561073a57600080fd5b506103c7610749366004612d90565b610fbe565b34801561075a57600080fd5b5061043a600b5481565b34801561077057600080fd5b506103c761077f366004612da9565b61108a565b34801561079057600080fd5b506103c76112b3565b3480156107a557600080fd5b506005546001600160a01b031661047d565b3480156107c357600080fd5b5060095461047d906001600160a01b031681565b3480156107e357600080fd5b506103c76107f2366004612e30565b61132f565b34801561080357600080fd5b506103de611355565b34801561081857600080fd5b506103c7610827366004612cdd565b611364565b34801561083857600080fd5b506103c7610847366004612e0e565b611376565b34801561085857600080fd5b50610414610867366004612d64565b6113e8565b34801561087857600080fd5b5060075461047d906001600160a01b031681565b34801561089857600080fd5b5061054c6108a7366004612da9565b611463565b3480156108b857600080fd5b506104146108c7366004612d64565b6114dd565b3480156108d857600080fd5b506103c76108e7366004612e0e565b6114eb565b3480156108f857600080fd5b5060085461047d906001600160a01b031681565b34801561091857600080fd5b506103c7610927366004612d90565b61155d565b34801561093857600080fd5b50610414610947366004612da9565b60186020526000908152604090205460ff1681565b34801561096857600080fd5b506103c7610977366004612cdd565b61157d565b34801561098857600080fd5b506103c7610997366004612d90565b611667565b3480156109a857600080fd5b506103c76109b7366004612da9565b611687565b3480156109c857600080fd5b506109d16116b1565b6040516103eb9190612e63565b3480156109ea57600080fd5b506103c76109f9366004612cdd565b61170b565b348015610a0a57600080fd5b50610414610a19366004612da9565b601a6020526000908152604090205460ff1681565b348015610a3a57600080fd5b5061043a610a49366004612e8b565b61173e565b348015610a5a57600080fd5b506103c7610a69366004612e30565b611769565b348015610a7a57600080fd5b5061043a600a5481565b348015610a9057600080fd5b5061043a60155481565b348015610aa657600080fd5b506103c761178f565b348015610abb57600080fd5b506103c76118b5565b348015610ad057600080fd5b506103c7610adf366004612da9565b611973565b348015610af057600080fd5b5060065461047d906001600160a01b031681565b348015610b1057600080fd5b5061043a600d5481565b348015610b2657600080fd5b506103c7610b35366004612d90565b6119e9565b610b42611a4c565b60085460405162241fbd60e51b81526001600160a01b0390911690630483f7a090610b739085908590600401612eb9565b600060405180830381600087803b158015610b8d57600080fd5b505af1158015610ba1573d6000803e3d6000fd5b505050505050565b606060038054610bb890612ed4565b80601f0160208091040260200160405190810160405280929190818152602001828054610be490612ed4565b8015610c315780601f10610c0657610100808354040283529160200191610c31565b820191906000526020600020905b815481529060010190602001808311610c1457829003601f168201915b5050505050905090565b600033610c49818585611aa6565b60019150505b92915050565b610c5d611a4c565b60095460405147916000916001600160a01b039091169083908381818185875af1925050503d8060008114610cae576040519150601f19603f3d011682016040523d82523d6000602084013e610cb3565b606091505b5050905080610cc157600080fd5b5050565b601b8181548110610cd557600080fd5b6000918252602090912001546001600160a01b0316905081565b610cf7611a4c565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b600033610d27858285611bca565b610d32858585611c44565b506001949350505050565b600080600860009054906101000a90046001600160a01b03166001600160a01b031663ccc29bf66040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db79190612f0e565b600860009054906101000a90046001600160a01b03166001600160a01b0316637bbbed366040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2e9190612f0e565b915091509091565b600033610c49818585610e49838361173e565b610e539190612f3d565b611aa6565b6008546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a0823190602401602060405180830381865afa158015610ea3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4f9190612f0e565b6001600160a01b031660009081526020819052604090205490565b610eea611a4c565b610ef460006121ec565b565b610efe611a4c565b610f1082670de0b6b3a7640000612f50565b600b55610f2581670de0b6b3a7640000612f50565b600c555050565b60085460405163fbcbc0f160e01b81526001600160a01b038381166004830152600092839283928392839283928392169063fbcbc0f19060240160e060405180830381865afa158015610f83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa79190612f67565b959e949d50929b5090995097509550909350915050565b610fc6611a4c565b6007546008546040516323b872dd60e01b81523360048201526001600160a01b0391821660248201526044810184905260009291909116906323b872dd906064016020604051808303816000875af1158015611026573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104a9190612fc4565b90508015610cc15760085460405163757e4b5b60e01b815260048101849052600060248201526001600160a01b039091169063757e4b5b90604401610b73565b611092611a4c565b60405162241fbd60e51b815281906001600160a01b03821690630483f7a0906110c2908490600190600401612eb9565b600060405180830381600087803b1580156110dc57600080fd5b505af11580156110f0573d6000803e3d6000fd5b505060405162241fbd60e51b81526001600160a01b0384169250630483f7a09150611122903090600190600401612eb9565b600060405180830381600087803b15801561113c57600080fd5b505af1158015611150573d6000803e3d6000fd5b50505050806001600160a01b0316630483f7a06111756005546001600160a01b031690565b60016040518363ffffffff1660e01b8152600401611194929190612eb9565b600060405180830381600087803b1580156111ae57600080fd5b505af11580156111c2573d6000803e3d6000fd5b505060065460405162241fbd60e51b81526001600160a01b038086169450630483f7a093506111f8921690600190600401612eb9565b600060405180830381600087803b15801561121257600080fd5b505af1158015611226573d6000803e3d6000fd5b505060085460405162241fbd60e51b81526001600160a01b039091169250630483f7a0915061125d90600090600190600401612eb9565b600060405180830381600087803b15801561127757600080fd5b505af115801561128b573d6000803e3d6000fd5b5050600880546001600160a01b0319166001600160a01b039490941693909317909255505050565b6112bb611a4c565b600754600160b81b900460ff161561131a5760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720616c726561647920656e61626c656400000000000000000060448201526064015b60405180910390fd5b6007805460ff60b81b1916600160b81b179055565b611337611a4c565b60078054911515600160b01b0260ff60b01b19909216919091179055565b606060048054610bb890612ed4565b61136c611a4c565b610cc1828261223e565b61137e611a4c565b602361138a8284612f3d565b11156113cd5760405162461bcd60e51b8152602060048201526012602482015271466565206d757374206265203c3d2033352560701b6044820152606401611311565b601082905560118190556113e18183612f3d565b6013555050565b600033816113f6828661173e565b9050838110156114565760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401611311565b610d328286868403611aa6565b6008546040516302a2e74960e61b81526001600160a01b038381166004830152600092839291169063a8b9d240906024016040805180830381865afa1580156114b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d49190612fe1565b91509150915091565b600033610c49818585611c44565b6114f3611a4c565b60236114ff8284612f3d565b11156115425760405162461bcd60e51b8152602060048201526012602482015271466565206d757374206265203c3d2033352560701b6044820152606401611311565b600e829055600f8190556115568183612f3d565b6012555050565b611565611a4c565b61157781670de0b6b3a7640000612f50565b600a5550565b611585611a4c565b6001600160a01b03821660009081526017602052604090205481151560ff9091161515036116085760405162461bcd60e51b815260206004820152602a60248201527f4163636f756e7420697320616c7265616479207468652076616c7565206f6620604482015269276578636c756465642760b01b6064820152608401611311565b6001600160a01b038216600081815260176020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b61166f611a4c565b61168181670de0b6b3a7640000612f50565b600d5550565b61168f611a4c565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b600080601554426116c29190613005565b9050600060036116d4610e108461302e565b6116de9190613042565b9050806000036116f15760009250505090565b806001036117025760019250505090565b60029250505090565b611713611a4c565b6001600160a01b03919091166000908152601960205260409020805460ff1916911515919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b611771611a4c565b60078054911515600160a81b0260ff60a81b19909216919091179055565b601b5415610ef457601b54601454106117a85760006014555b6000601b601454815481106117bf576117bf613056565b60009182526020808320909101546001600160a01b0316808352601a90915260409091205490915060ff1680156117ff5750600754600160b01b900460ff165b1561189d5760008061181083611463565b9150915060008211806118235750600081115b1561189a5760085460405163807ab4f760e01b81526001600160a01b0385811660048301529091169063807ab4f7906024016020604051808303816000875af1158015611874573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118989190612fc4565b505b50505b601480549060006118ad8361306c565b919050555050565b600754600160b01b900460ff166119025760405162461bcd60e51b815260206004820152601160248201527010db185a5b481b9bdd08195b98589b1959607a1b6044820152606401611311565b60085460405163807ab4f760e01b81523360048201526001600160a01b039091169063807ab4f7906024016020604051808303816000875af115801561194c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119709190612fc4565b50565b61197b611a4c565b6001600160a01b0381166119e05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611311565b611970816121ec565b6119f1611a4c565b600854600090611a0c9033906001600160a01b031684610d19565b90508015610cc15760085460405163757e4b5b60e01b815260006004820152602481018490526001600160a01b039091169063757e4b5b90604401610b73565b6005546001600160a01b03163314610ef45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611311565b6001600160a01b038316611b085760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401611311565b6001600160a01b038216611b695760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401611311565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000611bd6848461173e565b90506000198114611c3e5781811015611c315760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401611311565b611c3e8484848403611aa6565b50505050565b6001600160a01b038316611c6a5760405162461bcd60e51b815260040161131190613085565b6001600160a01b038216611c905760405162461bcd60e51b8152600401611311906130ca565b6001600160a01b03831660009081526017602052604090205460ff16158015611cd257506001600160a01b03821660009081526017602052604090205460ff16155b8015611ce85750600754600160a01b900460ff16155b15611eaa57600754600160b81b900460ff16611d3b5760405162461bcd60e51b815260206004820152601260248201527154726164696e67206e6f742061637469766560701b6044820152606401611311565b6001600160a01b03821660009081526018602052604090205460ff1615611db357600c54811115611dae5760405162461bcd60e51b815260206004820152601f60248201527f596f752061726520657863656564696e67206d617853656c6c416d6f756e74006044820152606401611311565b611e26565b6001600160a01b03831660009081526018602052604090205460ff1615611e2657600b54811115611e265760405162461bcd60e51b815260206004820152601e60248201527f596f752061726520657863656564696e67206d6178427579416d6f756e7400006044820152606401611311565b6001600160a01b03821660009081526019602052604090205460ff16611eaa57600d54611e5283610ec7565b611e5c9083612f3d565b1115611eaa5760405162461bcd60e51b815260206004820152601b60248201527f556e61626c6520746f20657863656564204d61782057616c6c657400000000006044820152606401611311565b80600003611ec357611ebe838360006123a2565b505050565b6000611ece30610ec7565b600a5490915081108015908190611eef5750600754600160a01b900460ff16155b8015611f045750600754600160a81b900460ff165b8015611f2857506001600160a01b03841660009081526018602052604090205460ff165b8015611f4d57506001600160a01b03851660009081526017602052604090205460ff16155b8015611f7257506001600160a01b03841660009081526017602052604090205460ff16155b15611fa8576007805460ff60a01b1916600160a01b17905560135415611f9a57611f9a6124cc565b6007805460ff60a01b191690555b6007546001600160a01b03861660009081526017602052604090205460ff600160a01b909204821615911680611ff657506001600160a01b03851660009081526017602052604090205460ff165b15611fff575060005b6001600160a01b03851660009081526018602052604090205460ff1615801561204157506001600160a01b03861660009081526018602052604090205460ff16155b1561204a575060005b80156120e9576001600160a01b03851660009081526018602052604081205460ff1615612092576064601354866120819190612f50565b61208b919061302e565b90506120d0565b6001600160a01b03871660009081526018602052604090205460ff16156120d0576064601254866120c39190612f50565b6120cd919061302e565b90505b6120da8186613005565b94506120e78730836123a2565b505b6120f48686866123a2565b6008546001600160a01b031663e30443bc8761210f81610ec7565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561215557600080fd5b505af1925050508015612166575060015b506008546001600160a01b031663e30443bc8661218281610ec7565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156121c857600080fd5b505af19250505080156121d9575060015b506121e486866128fb565b610ba161178f565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526018602052604090205481151560ff9091161515036122d45760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c756500000000000000006064820152608401611311565b6001600160a01b0382166000908152601860205260409020805460ff191682158015919091179091556123665760085460405162241fbd60e51b81526001600160a01b0390911690630483f7a090612333908590600190600401612eb9565b600060405180830381600087803b15801561234d57600080fd5b505af1158015612361573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6001600160a01b0383166123c85760405162461bcd60e51b815260040161131190613085565b6001600160a01b0382166123ee5760405162461bcd60e51b8152600401611311906130ca565b6001600160a01b038316600090815260208190526040902054818110156124665760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401611311565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611c3e565b60006124d730610ec7565b90508015806124e65750600a54155b156124ee5750565b600a546124fc90600f612f50565b81111561251457600a5461251190600f612f50565b90505b6000601354601054836125279190612f50565b612531919061302e565b90506000601354601154846125469190612f50565b612550919061302e565b9050600061255c6116b1565b600281111561256d5761256d612e4d565b0361273b5761257d60028361302e565b915061258882612aec565b478015612599576125998382612c10565b6007546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156125e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126069190612f0e565b90508080156127375760075460085460405163a9059cbb60e01b81526001600160a01b03918216600482015260248101849052600092919091169063a9059cbb906044016020604051808303816000875af1158015612669573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061268d9190612fc4565b905080156127355760085460405163757e4b5b60e01b815260048101849052600060248201526001600160a01b039091169063757e4b5b90604401600060405180830381600087803b1580156126e257600080fd5b505af11580156126f6573d6000803e3d6000fd5b5050604080518a8152602081018690527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc3935001905060405180910390a15b505b5050505b60016127456116b1565b600281111561275657612756612e4d565b03612813576008546127739030906001600160a01b031684611c44565b60085460405163757e4b5b60e01b815260006004820152602481018490526001600160a01b039091169063757e4b5b90604401600060405180830381600087803b1580156127c057600080fd5b505af11580156127d4573d6000803e3d6000fd5b505060408051868152602081018690527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc3935001905060405180910390a15b600261281d6116b1565b600281111561282e5761282e612e4d565b03612840576128403061dead84611c44565b61284981612aec565b478080156128f4576009546040516000916001600160a01b03169083908381818185875af1925050503d806000811461289e576040519150601f19603f3d011682016040523d82523d6000602084013e6128a3565b606091505b5050905080610ba15760405162461bcd60e51b815260206004820181905260248201527f4661696c656420746f2073656e642045544820746f206465762077616c6c65746044820152606401611311565b5050505050565b600854604051631b4a89ab60e11b81526001600160a01b03848116600483015290911690633695135690602401602060405180830381865afa158015612945573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129699190612fc4565b6129cf5760165461297983610ec7565b10801561299e57506001600160a01b0382166000908152601a602052604090205460ff165b80156129a95750813b155b156129cf576001600160a01b0382166000908152601a60205260409020805460ff191690555b600854604051631b4a89ab60e11b81526001600160a01b03838116600483015290911690633695135690602401602060405180830381865afa158015612a19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a3d9190612fc4565b610cc157601654612a4d82610ec7565b10158015612a7457506001600160a01b0381166000908152601a602052604090205460ff16155b8015612a7f5750803b155b15610cc157601b805460018181019092557f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc10180546001600160a01b0384166001600160a01b031990911681179091556000908152601a60205260409020805460ff191690911790555050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612b2157612b21613056565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015612b7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b9e919061310d565b81600181518110612bb157612bb1613056565b6001600160a01b039283166020918202929092010152600654612bd79130911684611aa6565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac94790610b7390859060009086903090429060040161312a565b600654612c289030906001600160a01b031684611aa6565b60065460405163f305d71960e01b8152306004820181905260248201859052600060448301819052606483015260848201524260a48201526001600160a01b039091169063f305d71990839060c40160606040518083038185885af1158015612c95573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906128f4919061319b565b6001600160a01b038116811461197057600080fd5b801515811461197057600080fd5b60008060408385031215612cf057600080fd5b8235612cfb81612cba565b91506020830135612d0b81612ccf565b809150509250929050565b600060208083528351808285015260005b81811015612d4357858101830151858201604001528201612d27565b506000604082860101526040601f19601f8301168501019250505092915050565b60008060408385031215612d7757600080fd5b8235612d8281612cba565b946020939093013593505050565b600060208284031215612da257600080fd5b5035919050565b600060208284031215612dbb57600080fd5b8135612dc681612cba565b9392505050565b600080600060608486031215612de257600080fd5b8335612ded81612cba565b92506020840135612dfd81612cba565b929592945050506040919091013590565b60008060408385031215612e2157600080fd5b50508035926020909101359150565b600060208284031215612e4257600080fd5b8135612dc681612ccf565b634e487b7160e01b600052602160045260246000fd5b6020810160038310612e8557634e487b7160e01b600052602160045260246000fd5b91905290565b60008060408385031215612e9e57600080fd5b8235612ea981612cba565b91506020830135612d0b81612cba565b6001600160a01b039290921682521515602082015260400190565b600181811c90821680612ee857607f821691505b602082108103612f0857634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215612f2057600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610c4f57610c4f612f27565b8082028115828204841417610c4f57610c4f612f27565b600080600080600080600060e0888a031215612f8257600080fd5b8751612f8d81612cba565b602089015160408a015160608b015160808c015160a08d015160c0909d0151949e939d50919b909a50909850965090945092505050565b600060208284031215612fd657600080fd5b8151612dc681612ccf565b60008060408385031215612ff457600080fd5b505080516020909101519092909150565b81810381811115610c4f57610c4f612f27565b634e487b7160e01b600052601260045260246000fd5b60008261303d5761303d613018565b500490565b60008261305157613051613018565b500690565b634e487b7160e01b600052603260045260246000fd5b60006001820161307e5761307e612f27565b5060010190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60006020828403121561311f57600080fd5b8151612dc681612cba565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b8181101561317a5784516001600160a01b031683529383019391830191600101613155565b50506001600160a01b03969096166060850152505050608001529392505050565b6000806000606084860312156131b057600080fd5b835192506020840151915060408401519050925092509256fea26469706673582212208334577b612ff67a6665e74bf07bcb0dbbad1a402657482bea6992e3c5c9ba2264736f6c6343000814003360806040523480156200001157600080fd5b5060405162002065380380620020658339810160408190526200003491620001b8565b828281816003620000468382620002d4565b506004620000558282620002d4565b505050620000726200006c6200009d60201b60201c565b620000a1565b5050601580546001600160a01b0319166001600160a01b039290921691909117905550620003a09050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200011b57600080fd5b81516001600160401b0380821115620001385762000138620000f3565b604051601f8301601f19908116603f01168101908282118183101715620001635762000163620000f3565b816040528381526020925086838588010111156200018057600080fd5b600091505b83821015620001a4578582018301518183018401529082019062000185565b600093810190920192909252949350505050565b600080600060608486031215620001ce57600080fd5b83516001600160401b0380821115620001e657600080fd5b620001f48783880162000109565b945060208601519150808211156200020b57600080fd5b506200021a8682870162000109565b604086015190935090506001600160a01b03811681146200023a57600080fd5b809150509250925092565b600181811c908216806200025a57607f821691505b6020821081036200027b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002cf57600081815260208120601f850160051c81016020861015620002aa5750805b601f850160051c820191505b81811015620002cb57828155600101620002b6565b5050505b505050565b81516001600160401b03811115620002f057620002f0620000f3565b620003088162000301845462000245565b8462000281565b602080601f831160018114620003405760008415620003275750858301515b600019600386901b1c1916600185901b178555620002cb565b600085815260208120601f198616915b82811015620003715788860151825594840194600190910190840162000350565b5085821015620003905787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611cb580620003b06000396000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c80637c3906e011610125578063b8e3bfbc116100ad578063dd62ed3e1161007c578063dd62ed3e146104d7578063e1964621146104ea578063e30443bc1461050a578063f2fde38b1461051d578063fbcbc0f11461053057600080fd5b8063b8e3bfbc1461049f578063bb06f271146104b2578063ccc29bf6146104bb578063d1b812cd146104c457600080fd5b806395d89b41116100f457806395d89b4114610428578063a457c2d714610430578063a8b9d24014610443578063a9059cbb14610456578063aafd847a1461046957600080fd5b80637c3906e0146103d1578063807ab4f7146103f15780638da5cb5b1461040457806391b89fba1461041557600080fd5b8063497ec823116101a85780636a474002116101775780636a4740021461037c57806370a0823114610384578063715018a6146103ad578063757e4b5b146103b55780637bbbed36146103c857600080fd5b8063497ec823146103125780634e7b827f146103255780635fcbd2851461034857806360aa39911461037357600080fd5b806323b872dd116101ef57806323b872dd1461028957806327ce01471461029c578063313ce567146102c457806336951356146102d357806339509351146102ff57600080fd5b80630483f7a01461022157806306fdde0314610236578063095ea7b31461025457806318160ddd14610277575b600080fd5b61023461022f3660046119f0565b610582565b005b61023e610666565b60405161024b9190611a27565b60405180910390f35b610267610262366004611a75565b6106f8565b604051901515815260200161024b565b6002545b60405190815260200161024b565b610267610297366004611a9f565b610712565b6102af6102aa366004611adb565b610736565b6040805192835260208301919091520161024b565b6040516012815260200161024b565b6102676102e1366004611adb565b6001600160a01b031660009081526012602052604090205460ff1690565b61026761030d366004611a75565b6107f5565b610234610320366004611af6565b610817565b610267610333366004611adb565b60126020526000908152604090205460ff1681565b60065461035b906001600160a01b031681565b6040516001600160a01b03909116815260200161024b565b61027b60115481565b610234610914565b61027b610392366004611adb565b6001600160a01b031660009081526020819052604090205490565b610234610921565b6102346103c3366004611b29565b610935565b61027b600f5481565b61027b6103df366004611adb565b60136020526000908152604090205481565b6102676103ff366004611adb565b610aa4565b6005546001600160a01b031661035b565b6102af610423366004611adb565b610b83565b61023e610b98565b61026761043e366004611a75565b610ba7565b6102af610451366004611adb565b610c22565b610267610464366004611a75565b610c89565b6102af610477366004611adb565b6001600160a01b03166000908152600c6020908152604080832054600d909252909120549091565b6102346104ad366004611af6565b610c97565b61027b60105481565b61027b600e5481565b60075461035b906001600160a01b031681565b61027b6104e5366004611af6565b610ccd565b61027b6104f8366004611adb565b60146020526000908152604090205481565b610234610518366004611a75565b610cf8565b61023461052b366004611adb565b610d2a565b61054361053e366004611adb565b610da3565b604080516001600160a01b0390981688526020880196909652948601939093526060850191909152608084015260a083015260c082015260e00161024b565b61058a610e81565b6001600160a01b03821660009081526012602052604090205481151560ff9091161515036105b757600080fd5b6001600160a01b0382166000908152601260205260409020805460ff19168215159081179091556001036105f5576105f0826000610edb565b61061d565b61061d82610618846001600160a01b031660009081526020819052604090205490565b610edb565b816001600160a01b03167fa3c7c11b2e12c4144b09a7813f3393ba646392788638998c97be8da908cf04be8260405161065a911515815260200190565b60405180910390a25050565b60606003805461067590611b4b565b80601f01602080910402602001604051908101604052809291908181526020018280546106a190611b4b565b80156106ee5780601f106106c3576101008083540402835291602001916106ee565b820191906000526020600020905b8154815290600101906020018083116106d157829003601f168201915b5050505050905090565b600033610706818585610f3a565b60019150505b92915050565b60003361072085828561105e565b61072b8585856110d2565b506001949350505050565b6001600160a01b0381166000908152600a60209081526040808320549183905282205482918291600160801b9161078d9161078891906107829061077d906008549061112b565b6111b4565b906111c4565b611202565b6107979190611b9b565b6001600160a01b0385166000908152600b6020908152604080832054918390528220549293509091600160801b916107df9161078891906107829061077d906009549061112b565b6107e99190611b9b565b91959194509092505050565b6000336107068185856108088383610ccd565b6108129190611bbd565b610f3a565b6015546001600160a01b0316331461082e57600080fd5b6040516370a0823160e01b81523060048201526001600160a01b0382169063a9059cbb90849083906370a0823190602401602060405180830381865afa15801561087c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a09190611bd0565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156108eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090f9190611be9565b505050565b61091d33611215565b5050565b610929610e81565b610933600061152e565b565b61093d610e81565b600061094860025490565b116109a95760405162461bcd60e51b815260206004820152602660248201527f546f74616c20737570706c79206d7573742062652067726561746572207468616044820152656e207a65726f60d01b60648201526084015b60405180910390fd5b8115610a25576109dc6109bb60025490565b6109c984600160801b61112b565b6109d39190611b9b565b60085490611580565b60085560405182815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a2600e54610a219083611580565b600e555b801561091d57610a58610a3760025490565b610a4583600160801b61112b565b610a4f9190611b9b565b60095490611580565b60095560405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a2600f54610a9d9082611580565b600f555050565b6000610aae610e81565b600080610aba84611215565b90925090508115610b24576001600160a01b03841660008181526013602052604090819020429055517f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d490610b129085815260200190565b60405180910390a25060019392505050565b8015610b77576001600160a01b03841660008181526014602052604090819020429055517f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d490610b129084815260200190565b6001925050505b919050565b600080610b8f83610c22565b91509150915091565b60606004805461067590611b4b565b60003381610bb58286610ccd565b905083811015610c155760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016109a0565b61072b8286868403610f3a565b600080600080610c3185610736565b6001600160a01b0387166000908152600c60205260409020549193509150610c5a9083906115df565b6001600160a01b0386166000908152600d6020526040902054610c7e9083906115df565b935093505050915091565b6000336107068185856110d2565b610c9f610e81565b600680546001600160a01b039384166001600160a01b03199182161790915560078054929093169116179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610d00610e81565b6001600160a01b03821660009081526012602052604090205460ff1661091d5761091d8282610edb565b610d32610e81565b6001600160a01b038116610d975760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109a0565b610da08161152e565b50565b6000806000806000806000610df76040518060e0016040528060006001600160a01b031681526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6001600160a01b0389168152610e0c89610c22565b506020820152610e1b89610736565b608083015260608201526001600160a01b039890981660008181526013602090815260408083205460a08d01908152938352601482529091205460c08b018190528a5191909a01519151601054601154929c939b8c9b5091995090975095509350915050565b6005546001600160a01b031633146109335760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109a0565b6001600160a01b03821660009081526020819052604090205480821115610f1a576000610f0883836115df565b9050610f148482611621565b50505050565b8082101561090f576000610f2e82846115df565b9050610f1484826116d2565b6001600160a01b038316610f9c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016109a0565b6001600160a01b038216610ffd5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016109a0565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061106a8484610ccd565b90506000198114610f1457818110156110c55760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016109a0565b610f148484848403610f3a565b60405162461bcd60e51b815260206004820152602860248201527f4c444e5f5765616c74685f547261636b65723a204e6f207472616e736665727360448201526708185b1b1bddd95960c21b60648201526084016109a0565b60008260000361113d5750600061070c565b60006111498385611c06565b9050826111568583611b9b565b146111ad5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b60648201526084016109a0565b9392505050565b6000818181121561070c57600080fd5b6000806111d18385611c1d565b9050600083121580156111e45750838112155b806111f957506000831280156111f957508381125b6111ad57600080fd5b60008082121561121157600080fd5b5090565b60008060008060008061122787610c22565b909250905081156113a7576001600160a01b0387166000908152600c60205260409020546112559083611580565b6001600160a01b0388166000908152600c602052604081209190915560108054849290611283908490611bbd565b90915550506040518281526001600160a01b038816907fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d9060200160405180910390a260065460405163a9059cbb60e01b81526001600160a01b03898116600483015260248201859052600092169063a9059cbb906044016020604051808303816000875af115801561131a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061133e9190611be9565b9050806113a1576001600160a01b0388166000908152600c602052604090205461136890846115df565b6001600160a01b0389166000908152600c602052604081209190915560108054859290611396908490611c45565b909155506113a59050565b8294505b505b8015611522576001600160a01b0387166000908152600d60205260409020546113d09082611580565b6001600160a01b0388166000908152600d6020526040812091909155601180548392906113fe908490611bbd565b90915550506040518181526001600160a01b038816907fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d9060200160405180910390a260075460405163a9059cbb60e01b81526001600160a01b03898116600483015260248201849052600092169063a9059cbb906044016020604051808303816000875af1158015611495573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b99190611be9565b90508061151c576001600160a01b0388166000908152600d60205260409020546114e390836115df565b6001600160a01b0389166000908152600d602052604081209190915560118054849290611511908490611c45565b909155506115209050565b8193505b505b50919590945092505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008061158d8385611bbd565b9050838110156111ad5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016109a0565b60006111ad83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611763565b61162b828261179d565b61166561164661077d8360085461112b90919063ffffffff16565b6001600160a01b0384166000908152600a60205260409020549061185c565b6001600160a01b0383166000908152600a60205260409020556009546116b2906116939061077d908461112b565b6001600160a01b0384166000908152600b60205260409020549061185c565b6001600160a01b039092166000908152600b602052604090209190915550565b6116dc8282611899565b6117166116f761077d8360085461112b90919063ffffffff16565b6001600160a01b0384166000908152600a6020526040902054906111c4565b6001600160a01b0383166000908152600a60205260409020556009546116b2906117449061077d908461112b565b6001600160a01b0384166000908152600b6020526040902054906111c4565b600081848411156117875760405162461bcd60e51b81526004016109a09190611a27565b5060006117948486611c45565b95945050505050565b6001600160a01b0382166117f35760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016109a0565b80600260008282546118059190611bbd565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6000806118698385611c58565b90506000831215801561187c5750838113155b806111f957506000831280156111f957508381136111ad57600080fd5b6001600160a01b0382166118f95760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016109a0565b6001600160a01b0382166000908152602081905260409020548181101561196d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016109a0565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b80356001600160a01b0381168114610b7e57600080fd5b8015158114610da057600080fd5b60008060408385031215611a0357600080fd5b611a0c836119cb565b91506020830135611a1c816119e2565b809150509250929050565b600060208083528351808285015260005b81811015611a5457858101830151858201604001528201611a38565b506000604082860101526040601f19601f8301168501019250505092915050565b60008060408385031215611a8857600080fd5b611a91836119cb565b946020939093013593505050565b600080600060608486031215611ab457600080fd5b611abd846119cb565b9250611acb602085016119cb565b9150604084013590509250925092565b600060208284031215611aed57600080fd5b6111ad826119cb565b60008060408385031215611b0957600080fd5b611b12836119cb565b9150611b20602084016119cb565b90509250929050565b60008060408385031215611b3c57600080fd5b50508035926020909101359150565b600181811c90821680611b5f57607f821691505b602082108103611b7f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082611bb857634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561070c5761070c611b85565b600060208284031215611be257600080fd5b5051919050565b600060208284031215611bfb57600080fd5b81516111ad816119e2565b808202811582820484141761070c5761070c611b85565b8082018281126000831280158216821582161715611c3d57611c3d611b85565b505092915050565b8181038181111561070c5761070c611b85565b8181036000831280158383131683831282161715611c7857611c78611b85565b509291505056fea26469706673582212207ae6e04351169a2907aafee107c54646a0d3c4500f08b2fca2598106871e68e664736f6c63430008140033

Deployed Bytecode

0x60806040526004361061039b5760003560e01c80638da5cb5b116101dc578063c18bc19511610102578063e2f45605116100a0578063f2fde38b1161006f578063f2fde38b14610ac4578063f887ea4014610ae4578063f8b45b0514610b04578063fd5e83d814610b1a57600080fd5b8063e2f4560514610a6e578063e6fd48bc14610a84578063e93aa0a714610a9a578063f0fc6bca14610aaf57600080fd5b8063d2fcc001116100dc578063d2fcc001146109de578063d4d7b19a146109fe578063dd62ed3e14610a2e578063e01af92c14610a4e57600080fd5b8063c18bc1951461097c578063c851cc321461099c578063d250b6cb146109bc57600080fd5b8063a8aa1b311161017a578063abd25aa911610149578063abd25aa9146108ec578063afa4f3b21461090c578063b62496f51461092c578063c02466681461095c57600080fd5b8063a8aa1b311461086c578063a8b9d2401461088c578063a9059cbb146108ac578063aa35822c146108cc57600080fd5b806395d89b41116101b657806395d89b41146107f75780639a7a23d61461080c578063a11a16821461082c578063a457c2d71461084c57600080fd5b80638da5cb5b146107995780638ea5220f146107b757806392929a09146107d757600080fd5b806346469afb116102c1578063715018a61161025f5780638512775e1161022e5780638512775e1461072e57806388e765ff1461074e578063892ef3b2146107645780638a8c523c1461078457600080fd5b8063715018a6146106845780637591152f1461069957806379b447bd146106af5780637b510fe8146106cf57600080fd5b806366d602ae1161029b57806366d602ae1461060d5780636843cd84146106235780636ddd17131461064357806370a082311461066457600080fd5b806346469afb1461059d5780634ada218b146105b35780634fbee193146105d457600080fd5b80631bff7898116103395780632866ed21116103085780632866ed211461051657806330bb4cff14610537578063313ce56714610561578063395093511461057d57600080fd5b80631bff7898146104aa5780631f53ac02146104c057806323b872dd146104e057806326987b601461050057600080fd5b806310f3a38c1161037557806310f3a38c1461042457806312b77e8a1461044857806316ad42ad1461045d57806318160ddd1461049557600080fd5b80630483f7a0146103a757806306fdde03146103c9578063095ea7b3146103f457600080fd5b366103a257005b600080fd5b3480156103b357600080fd5b506103c76103c2366004612cdd565b610b3a565b005b3480156103d557600080fd5b506103de610ba9565b6040516103eb9190612d16565b60405180910390f35b34801561040057600080fd5b5061041461040f366004612d64565b610c3b565b60405190151581526020016103eb565b34801561043057600080fd5b5061043a610e1081565b6040519081526020016103eb565b34801561045457600080fd5b506103c7610c55565b34801561046957600080fd5b5061047d610478366004612d90565b610cc5565b6040516001600160a01b0390911681526020016103eb565b3480156104a157600080fd5b5060025461043a565b3480156104b657600080fd5b5061043a60135481565b3480156104cc57600080fd5b506103c76104db366004612da9565b610cef565b3480156104ec57600080fd5b506104146104fb366004612dcd565b610d19565b34801561050c57600080fd5b5061043a60145481565b34801561052257600080fd5b5060075461041490600160b01b900460ff1681565b34801561054357600080fd5b5061054c610d3d565b604080519283526020830191909152016103eb565b34801561056d57600080fd5b50604051601281526020016103eb565b34801561058957600080fd5b50610414610598366004612d64565b610e36565b3480156105a957600080fd5b5061043a60125481565b3480156105bf57600080fd5b5060075461041490600160b81b900460ff1681565b3480156105e057600080fd5b506104146105ef366004612da9565b6001600160a01b031660009081526017602052604090205460ff1690565b34801561061957600080fd5b5061043a600c5481565b34801561062f57600080fd5b5061043a61063e366004612da9565b610e58565b34801561064f57600080fd5b5060075461041490600160a81b900460ff1681565b34801561067057600080fd5b5061043a61067f366004612da9565b610ec7565b34801561069057600080fd5b506103c7610ee2565b3480156106a557600080fd5b5061043a60165481565b3480156106bb57600080fd5b506103c76106ca366004612e0e565b610ef6565b3480156106db57600080fd5b506106ef6106ea366004612da9565b610f2c565b604080516001600160a01b0390981688526020880196909652948601939093526060850191909152608084015260a083015260c082015260e0016103eb565b34801561073a57600080fd5b506103c7610749366004612d90565b610fbe565b34801561075a57600080fd5b5061043a600b5481565b34801561077057600080fd5b506103c761077f366004612da9565b61108a565b34801561079057600080fd5b506103c76112b3565b3480156107a557600080fd5b506005546001600160a01b031661047d565b3480156107c357600080fd5b5060095461047d906001600160a01b031681565b3480156107e357600080fd5b506103c76107f2366004612e30565b61132f565b34801561080357600080fd5b506103de611355565b34801561081857600080fd5b506103c7610827366004612cdd565b611364565b34801561083857600080fd5b506103c7610847366004612e0e565b611376565b34801561085857600080fd5b50610414610867366004612d64565b6113e8565b34801561087857600080fd5b5060075461047d906001600160a01b031681565b34801561089857600080fd5b5061054c6108a7366004612da9565b611463565b3480156108b857600080fd5b506104146108c7366004612d64565b6114dd565b3480156108d857600080fd5b506103c76108e7366004612e0e565b6114eb565b3480156108f857600080fd5b5060085461047d906001600160a01b031681565b34801561091857600080fd5b506103c7610927366004612d90565b61155d565b34801561093857600080fd5b50610414610947366004612da9565b60186020526000908152604090205460ff1681565b34801561096857600080fd5b506103c7610977366004612cdd565b61157d565b34801561098857600080fd5b506103c7610997366004612d90565b611667565b3480156109a857600080fd5b506103c76109b7366004612da9565b611687565b3480156109c857600080fd5b506109d16116b1565b6040516103eb9190612e63565b3480156109ea57600080fd5b506103c76109f9366004612cdd565b61170b565b348015610a0a57600080fd5b50610414610a19366004612da9565b601a6020526000908152604090205460ff1681565b348015610a3a57600080fd5b5061043a610a49366004612e8b565b61173e565b348015610a5a57600080fd5b506103c7610a69366004612e30565b611769565b348015610a7a57600080fd5b5061043a600a5481565b348015610a9057600080fd5b5061043a60155481565b348015610aa657600080fd5b506103c761178f565b348015610abb57600080fd5b506103c76118b5565b348015610ad057600080fd5b506103c7610adf366004612da9565b611973565b348015610af057600080fd5b5060065461047d906001600160a01b031681565b348015610b1057600080fd5b5061043a600d5481565b348015610b2657600080fd5b506103c7610b35366004612d90565b6119e9565b610b42611a4c565b60085460405162241fbd60e51b81526001600160a01b0390911690630483f7a090610b739085908590600401612eb9565b600060405180830381600087803b158015610b8d57600080fd5b505af1158015610ba1573d6000803e3d6000fd5b505050505050565b606060038054610bb890612ed4565b80601f0160208091040260200160405190810160405280929190818152602001828054610be490612ed4565b8015610c315780601f10610c0657610100808354040283529160200191610c31565b820191906000526020600020905b815481529060010190602001808311610c1457829003601f168201915b5050505050905090565b600033610c49818585611aa6565b60019150505b92915050565b610c5d611a4c565b60095460405147916000916001600160a01b039091169083908381818185875af1925050503d8060008114610cae576040519150601f19603f3d011682016040523d82523d6000602084013e610cb3565b606091505b5050905080610cc157600080fd5b5050565b601b8181548110610cd557600080fd5b6000918252602090912001546001600160a01b0316905081565b610cf7611a4c565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b600033610d27858285611bca565b610d32858585611c44565b506001949350505050565b600080600860009054906101000a90046001600160a01b03166001600160a01b031663ccc29bf66040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db79190612f0e565b600860009054906101000a90046001600160a01b03166001600160a01b0316637bbbed366040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2e9190612f0e565b915091509091565b600033610c49818585610e49838361173e565b610e539190612f3d565b611aa6565b6008546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a0823190602401602060405180830381865afa158015610ea3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4f9190612f0e565b6001600160a01b031660009081526020819052604090205490565b610eea611a4c565b610ef460006121ec565b565b610efe611a4c565b610f1082670de0b6b3a7640000612f50565b600b55610f2581670de0b6b3a7640000612f50565b600c555050565b60085460405163fbcbc0f160e01b81526001600160a01b038381166004830152600092839283928392839283928392169063fbcbc0f19060240160e060405180830381865afa158015610f83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa79190612f67565b959e949d50929b5090995097509550909350915050565b610fc6611a4c565b6007546008546040516323b872dd60e01b81523360048201526001600160a01b0391821660248201526044810184905260009291909116906323b872dd906064016020604051808303816000875af1158015611026573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104a9190612fc4565b90508015610cc15760085460405163757e4b5b60e01b815260048101849052600060248201526001600160a01b039091169063757e4b5b90604401610b73565b611092611a4c565b60405162241fbd60e51b815281906001600160a01b03821690630483f7a0906110c2908490600190600401612eb9565b600060405180830381600087803b1580156110dc57600080fd5b505af11580156110f0573d6000803e3d6000fd5b505060405162241fbd60e51b81526001600160a01b0384169250630483f7a09150611122903090600190600401612eb9565b600060405180830381600087803b15801561113c57600080fd5b505af1158015611150573d6000803e3d6000fd5b50505050806001600160a01b0316630483f7a06111756005546001600160a01b031690565b60016040518363ffffffff1660e01b8152600401611194929190612eb9565b600060405180830381600087803b1580156111ae57600080fd5b505af11580156111c2573d6000803e3d6000fd5b505060065460405162241fbd60e51b81526001600160a01b038086169450630483f7a093506111f8921690600190600401612eb9565b600060405180830381600087803b15801561121257600080fd5b505af1158015611226573d6000803e3d6000fd5b505060085460405162241fbd60e51b81526001600160a01b039091169250630483f7a0915061125d90600090600190600401612eb9565b600060405180830381600087803b15801561127757600080fd5b505af115801561128b573d6000803e3d6000fd5b5050600880546001600160a01b0319166001600160a01b039490941693909317909255505050565b6112bb611a4c565b600754600160b81b900460ff161561131a5760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720616c726561647920656e61626c656400000000000000000060448201526064015b60405180910390fd5b6007805460ff60b81b1916600160b81b179055565b611337611a4c565b60078054911515600160b01b0260ff60b01b19909216919091179055565b606060048054610bb890612ed4565b61136c611a4c565b610cc1828261223e565b61137e611a4c565b602361138a8284612f3d565b11156113cd5760405162461bcd60e51b8152602060048201526012602482015271466565206d757374206265203c3d2033352560701b6044820152606401611311565b601082905560118190556113e18183612f3d565b6013555050565b600033816113f6828661173e565b9050838110156114565760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401611311565b610d328286868403611aa6565b6008546040516302a2e74960e61b81526001600160a01b038381166004830152600092839291169063a8b9d240906024016040805180830381865afa1580156114b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d49190612fe1565b91509150915091565b600033610c49818585611c44565b6114f3611a4c565b60236114ff8284612f3d565b11156115425760405162461bcd60e51b8152602060048201526012602482015271466565206d757374206265203c3d2033352560701b6044820152606401611311565b600e829055600f8190556115568183612f3d565b6012555050565b611565611a4c565b61157781670de0b6b3a7640000612f50565b600a5550565b611585611a4c565b6001600160a01b03821660009081526017602052604090205481151560ff9091161515036116085760405162461bcd60e51b815260206004820152602a60248201527f4163636f756e7420697320616c7265616479207468652076616c7565206f6620604482015269276578636c756465642760b01b6064820152608401611311565b6001600160a01b038216600081815260176020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b61166f611a4c565b61168181670de0b6b3a7640000612f50565b600d5550565b61168f611a4c565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b600080601554426116c29190613005565b9050600060036116d4610e108461302e565b6116de9190613042565b9050806000036116f15760009250505090565b806001036117025760019250505090565b60029250505090565b611713611a4c565b6001600160a01b03919091166000908152601960205260409020805460ff1916911515919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b611771611a4c565b60078054911515600160a81b0260ff60a81b19909216919091179055565b601b5415610ef457601b54601454106117a85760006014555b6000601b601454815481106117bf576117bf613056565b60009182526020808320909101546001600160a01b0316808352601a90915260409091205490915060ff1680156117ff5750600754600160b01b900460ff165b1561189d5760008061181083611463565b9150915060008211806118235750600081115b1561189a5760085460405163807ab4f760e01b81526001600160a01b0385811660048301529091169063807ab4f7906024016020604051808303816000875af1158015611874573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118989190612fc4565b505b50505b601480549060006118ad8361306c565b919050555050565b600754600160b01b900460ff166119025760405162461bcd60e51b815260206004820152601160248201527010db185a5b481b9bdd08195b98589b1959607a1b6044820152606401611311565b60085460405163807ab4f760e01b81523360048201526001600160a01b039091169063807ab4f7906024016020604051808303816000875af115801561194c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119709190612fc4565b50565b61197b611a4c565b6001600160a01b0381166119e05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611311565b611970816121ec565b6119f1611a4c565b600854600090611a0c9033906001600160a01b031684610d19565b90508015610cc15760085460405163757e4b5b60e01b815260006004820152602481018490526001600160a01b039091169063757e4b5b90604401610b73565b6005546001600160a01b03163314610ef45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611311565b6001600160a01b038316611b085760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401611311565b6001600160a01b038216611b695760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401611311565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000611bd6848461173e565b90506000198114611c3e5781811015611c315760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401611311565b611c3e8484848403611aa6565b50505050565b6001600160a01b038316611c6a5760405162461bcd60e51b815260040161131190613085565b6001600160a01b038216611c905760405162461bcd60e51b8152600401611311906130ca565b6001600160a01b03831660009081526017602052604090205460ff16158015611cd257506001600160a01b03821660009081526017602052604090205460ff16155b8015611ce85750600754600160a01b900460ff16155b15611eaa57600754600160b81b900460ff16611d3b5760405162461bcd60e51b815260206004820152601260248201527154726164696e67206e6f742061637469766560701b6044820152606401611311565b6001600160a01b03821660009081526018602052604090205460ff1615611db357600c54811115611dae5760405162461bcd60e51b815260206004820152601f60248201527f596f752061726520657863656564696e67206d617853656c6c416d6f756e74006044820152606401611311565b611e26565b6001600160a01b03831660009081526018602052604090205460ff1615611e2657600b54811115611e265760405162461bcd60e51b815260206004820152601e60248201527f596f752061726520657863656564696e67206d6178427579416d6f756e7400006044820152606401611311565b6001600160a01b03821660009081526019602052604090205460ff16611eaa57600d54611e5283610ec7565b611e5c9083612f3d565b1115611eaa5760405162461bcd60e51b815260206004820152601b60248201527f556e61626c6520746f20657863656564204d61782057616c6c657400000000006044820152606401611311565b80600003611ec357611ebe838360006123a2565b505050565b6000611ece30610ec7565b600a5490915081108015908190611eef5750600754600160a01b900460ff16155b8015611f045750600754600160a81b900460ff165b8015611f2857506001600160a01b03841660009081526018602052604090205460ff165b8015611f4d57506001600160a01b03851660009081526017602052604090205460ff16155b8015611f7257506001600160a01b03841660009081526017602052604090205460ff16155b15611fa8576007805460ff60a01b1916600160a01b17905560135415611f9a57611f9a6124cc565b6007805460ff60a01b191690555b6007546001600160a01b03861660009081526017602052604090205460ff600160a01b909204821615911680611ff657506001600160a01b03851660009081526017602052604090205460ff165b15611fff575060005b6001600160a01b03851660009081526018602052604090205460ff1615801561204157506001600160a01b03861660009081526018602052604090205460ff16155b1561204a575060005b80156120e9576001600160a01b03851660009081526018602052604081205460ff1615612092576064601354866120819190612f50565b61208b919061302e565b90506120d0565b6001600160a01b03871660009081526018602052604090205460ff16156120d0576064601254866120c39190612f50565b6120cd919061302e565b90505b6120da8186613005565b94506120e78730836123a2565b505b6120f48686866123a2565b6008546001600160a01b031663e30443bc8761210f81610ec7565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561215557600080fd5b505af1925050508015612166575060015b506008546001600160a01b031663e30443bc8661218281610ec7565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156121c857600080fd5b505af19250505080156121d9575060015b506121e486866128fb565b610ba161178f565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526018602052604090205481151560ff9091161515036122d45760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c756500000000000000006064820152608401611311565b6001600160a01b0382166000908152601860205260409020805460ff191682158015919091179091556123665760085460405162241fbd60e51b81526001600160a01b0390911690630483f7a090612333908590600190600401612eb9565b600060405180830381600087803b15801561234d57600080fd5b505af1158015612361573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6001600160a01b0383166123c85760405162461bcd60e51b815260040161131190613085565b6001600160a01b0382166123ee5760405162461bcd60e51b8152600401611311906130ca565b6001600160a01b038316600090815260208190526040902054818110156124665760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401611311565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611c3e565b60006124d730610ec7565b90508015806124e65750600a54155b156124ee5750565b600a546124fc90600f612f50565b81111561251457600a5461251190600f612f50565b90505b6000601354601054836125279190612f50565b612531919061302e565b90506000601354601154846125469190612f50565b612550919061302e565b9050600061255c6116b1565b600281111561256d5761256d612e4d565b0361273b5761257d60028361302e565b915061258882612aec565b478015612599576125998382612c10565b6007546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156125e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126069190612f0e565b90508080156127375760075460085460405163a9059cbb60e01b81526001600160a01b03918216600482015260248101849052600092919091169063a9059cbb906044016020604051808303816000875af1158015612669573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061268d9190612fc4565b905080156127355760085460405163757e4b5b60e01b815260048101849052600060248201526001600160a01b039091169063757e4b5b90604401600060405180830381600087803b1580156126e257600080fd5b505af11580156126f6573d6000803e3d6000fd5b5050604080518a8152602081018690527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc3935001905060405180910390a15b505b5050505b60016127456116b1565b600281111561275657612756612e4d565b03612813576008546127739030906001600160a01b031684611c44565b60085460405163757e4b5b60e01b815260006004820152602481018490526001600160a01b039091169063757e4b5b90604401600060405180830381600087803b1580156127c057600080fd5b505af11580156127d4573d6000803e3d6000fd5b505060408051868152602081018690527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc3935001905060405180910390a15b600261281d6116b1565b600281111561282e5761282e612e4d565b03612840576128403061dead84611c44565b61284981612aec565b478080156128f4576009546040516000916001600160a01b03169083908381818185875af1925050503d806000811461289e576040519150601f19603f3d011682016040523d82523d6000602084013e6128a3565b606091505b5050905080610ba15760405162461bcd60e51b815260206004820181905260248201527f4661696c656420746f2073656e642045544820746f206465762077616c6c65746044820152606401611311565b5050505050565b600854604051631b4a89ab60e11b81526001600160a01b03848116600483015290911690633695135690602401602060405180830381865afa158015612945573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129699190612fc4565b6129cf5760165461297983610ec7565b10801561299e57506001600160a01b0382166000908152601a602052604090205460ff165b80156129a95750813b155b156129cf576001600160a01b0382166000908152601a60205260409020805460ff191690555b600854604051631b4a89ab60e11b81526001600160a01b03838116600483015290911690633695135690602401602060405180830381865afa158015612a19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a3d9190612fc4565b610cc157601654612a4d82610ec7565b10158015612a7457506001600160a01b0381166000908152601a602052604090205460ff16155b8015612a7f5750803b155b15610cc157601b805460018181019092557f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc10180546001600160a01b0384166001600160a01b031990911681179091556000908152601a60205260409020805460ff191690911790555050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612b2157612b21613056565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015612b7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b9e919061310d565b81600181518110612bb157612bb1613056565b6001600160a01b039283166020918202929092010152600654612bd79130911684611aa6565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac94790610b7390859060009086903090429060040161312a565b600654612c289030906001600160a01b031684611aa6565b60065460405163f305d71960e01b8152306004820181905260248201859052600060448301819052606483015260848201524260a48201526001600160a01b039091169063f305d71990839060c40160606040518083038185885af1158015612c95573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906128f4919061319b565b6001600160a01b038116811461197057600080fd5b801515811461197057600080fd5b60008060408385031215612cf057600080fd5b8235612cfb81612cba565b91506020830135612d0b81612ccf565b809150509250929050565b600060208083528351808285015260005b81811015612d4357858101830151858201604001528201612d27565b506000604082860101526040601f19601f8301168501019250505092915050565b60008060408385031215612d7757600080fd5b8235612d8281612cba565b946020939093013593505050565b600060208284031215612da257600080fd5b5035919050565b600060208284031215612dbb57600080fd5b8135612dc681612cba565b9392505050565b600080600060608486031215612de257600080fd5b8335612ded81612cba565b92506020840135612dfd81612cba565b929592945050506040919091013590565b60008060408385031215612e2157600080fd5b50508035926020909101359150565b600060208284031215612e4257600080fd5b8135612dc681612ccf565b634e487b7160e01b600052602160045260246000fd5b6020810160038310612e8557634e487b7160e01b600052602160045260246000fd5b91905290565b60008060408385031215612e9e57600080fd5b8235612ea981612cba565b91506020830135612d0b81612cba565b6001600160a01b039290921682521515602082015260400190565b600181811c90821680612ee857607f821691505b602082108103612f0857634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215612f2057600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610c4f57610c4f612f27565b8082028115828204841417610c4f57610c4f612f27565b600080600080600080600060e0888a031215612f8257600080fd5b8751612f8d81612cba565b602089015160408a015160608b015160808c015160a08d015160c0909d0151949e939d50919b909a50909850965090945092505050565b600060208284031215612fd657600080fd5b8151612dc681612ccf565b60008060408385031215612ff457600080fd5b505080516020909101519092909150565b81810381811115610c4f57610c4f612f27565b634e487b7160e01b600052601260045260246000fd5b60008261303d5761303d613018565b500490565b60008261305157613051613018565b500690565b634e487b7160e01b600052603260045260246000fd5b60006001820161307e5761307e612f27565b5060010190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60006020828403121561311f57600080fd5b8151612dc681612cba565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b8181101561317a5784516001600160a01b031683529383019391830191600101613155565b50506001600160a01b03969096166060850152505050608001529392505050565b6000806000606084860312156131b057600080fd5b835192506020840151915060408401519050925092509256fea26469706673582212208334577b612ff67a6665e74bf07bcb0dbbad1a402657482bea6992e3c5c9ba2264736f6c63430008140033

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.