ETH Price: $3,499.83 (+0.27%)
Gas: 2 Gwei

Token

Camel Coin (CMLCOIN)
 

Overview

Max Total Supply

4,099,800 CMLCOIN

Holders

211

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
500 CMLCOIN

Value
$0.00
0x33d3cc2a7b7578313895bc630e21f3304aee4b6e
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:
CamelCoin

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 11 : CamelCoin.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@openzeppelin/contracts/security/Pausable.sol";


import "./CamelLiquidityProcessor.sol";
import "./CamelCollector.sol";

/**
 * @dev Implementation of the CamelCoin V3.
 */
contract CamelCoin is Context, IERC20, IERC20Metadata, Pausable {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    address private _owner;
    
    mapping(address => bool) public _isExcludedFee;
    mapping(address => bool) public _isExcludedWallet;
    mapping(address => bool) public _isLiquidityPair;

    CamelLiquidityProcessor public liquidityProcessor;
    CamelCollector public collector;

    uint256 private constant FEE_DENOMINATOR = 100_000;

    uint256 private walletLimit = 2_000;

    bool public isTradingEnabled = true;

    bool private inSwapAndLiquify = false;

    struct Fees {
        uint16 buyFee;
        uint16 sellFee;
        uint16 transferFee;
    }

    struct Ratios {
        uint16 liquidity;
        uint16 sandstorm;
        uint16 converter;
        uint16 total;
    }

    Fees public _taxRates = Fees({
        buyFee: 5_000,
        sellFee: 15_000,
        transferFee: 0
        });

    Ratios public _ratios = Ratios({
        liquidity: 4,
        sandstorm: 2,
        converter: 4,
        total: 10
        });

    uint256 constant public maxBuyTaxes = 10_000;
    uint256 constant public maxSellTaxes = 20_000;
    uint256 constant public maxTransferTaxes = 10_000;
    uint256 constant masterTaxDivisor = 100_000;

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

    modifier onlyOwner() {
        require(_owner == _msgSender(), "Caller =/= owner.");
        _;
    }

    /**
     * @dev Sets CamelCoin default values
     * such as name, symbol, fees, owners, and exclusion lists 
     */
    constructor() {
        _name = "Camel Coin";
        _symbol = "CMLCOIN";
        _owner = msg.sender;

        setFeeExclusion(msg.sender, true);
        setWalletExclusion(msg.sender, true);

        _mint(_msgSender(), 5_000_000 * (10**decimals()));
    }

    /**
     * @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.
     * Set to the default of 18
     */
    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
     * process token fees, and process funds for liquidity and team collection
     *
     * 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;
        }
        uint256 receivedAmount = takeTaxes(from, to, amount);
        _balances[to] += receivedAmount;

        emit Transfer(from, to, receivedAmount);

        // Process Liquidity and Fees
        if (_isLiquidityPair[to] && !inSwapAndLiquify) {
            inSwapAndLiquify = true;
            liquidityProcessor.processFunds();
            collector.processFunds();
            inSwapAndLiquify = false;
        }

        _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;
        _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;
        }
        _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 {
        if (!isTradingEnabled) {
            require(to != liquidityProcessor.uniswapPair() && from != liquidityProcessor.uniswapPair(), "Trading is disabled");
        }
    }

    /**
     * @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 {
        if (walletLimit != 0) {
            if (!_isExcludedWallet[from]) {
                require(balanceOf(from) <= (totalSupply() * walletLimit) / FEE_DENOMINATOR, "Sender wallet limit reached");
            }
            if (!_isExcludedWallet[to]) {
                require(balanceOf(to) <= (totalSupply() * walletLimit) / FEE_DENOMINATOR, "Receiver wallet limit reached");
            }
        }
    }


    /**
     * @dev Calculates fees and returns the amount to address should receive
     */
    function takeTaxes(address from, address to, uint256 amount) internal returns (uint256) {
        uint256 currentFee;
        if (_isExcludedFee[from] || _isExcludedFee[to]) {
            return amount;
        } else if (_isLiquidityPair[from] && !inSwapAndLiquify) {
            currentFee = _taxRates.buyFee;
        } else if (_isLiquidityPair[to] && !inSwapAndLiquify) {
            currentFee = _taxRates.sellFee;
        } else {
            currentFee = _taxRates.transferFee;
        }

        uint256 feeAmount = amount * currentFee / masterTaxDivisor;

        _balances[address(collector)] += feeAmount;
        emit Transfer(from, address(collector), feeAmount);
        return amount - feeAmount;
    }

    function transferOwner(address newOwner) external onlyOwner() {
        require(newOwner != address(0), "Call renounceOwnership to transfer owner to the zero address.");
        setFeeExclusion(_owner, false);
        setFeeExclusion(newOwner, true);
        
        if(balanceOf(_owner) > 0) {
            _transfer(_owner, newOwner, balanceOf(_owner));
        }
        
        _owner = newOwner;
        emit OwnershipTransferred(_owner, newOwner);
        
    }



    /* ----------------------------
    ----------ERC20Burnable--------
    -------------------------------
    */ 

        /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }




    /* ----------------------------
    -------CamelCoin Setters-------
    -------------------------------
    */ 

     function setFeeProcessors(address payable _liquidityProcessor, address payable _collector) external onlyOwner {
        require(_liquidityProcessor != address(0), "Invalid liquidityProcessor");
        require(_collector != address(0), "Invalid collector");

        liquidityProcessor = CamelLiquidityProcessor(_liquidityProcessor);
        collector = CamelCollector(_collector);

        setFeeExclusion(_collector, true);

        setWalletExclusion(_liquidityProcessor, true);
        setWalletExclusion(_collector, true);

        setWalletExclusion(liquidityProcessor.uniswapPair(), true);

        setLiquidityPair(liquidityProcessor.uniswapPair(), true);
    }

      function setWalletLimit(uint256 _walletLimit) public onlyOwner {
        require(_walletLimit <= 25_000 && _walletLimit >= 0, "Wallet limit must be less than 25%");
        walletLimit = _walletLimit;
    }

    function setFeeExclusion(address _wallet, bool _exclude) public onlyOwner {
        require(_wallet != address(0), "Invalid Wallet");
        _isExcludedFee[_wallet] = _exclude;
    }

    function setFeeExclusion(address[] calldata _wallet, bool _exclude) public onlyOwner {
        for (uint256 i = 0; i < _wallet.length; i++) {
            setFeeExclusion(_wallet[i], _exclude);
        }
    }

    function setWalletExclusion(address _wallet, bool _exclude) public onlyOwner {
        require(_wallet != address(0), "Invalid Wallet");

        _isExcludedWallet[_wallet] = _exclude;
    }

    function setWalletExclusion(address[] calldata _wallet, bool _exclude) public onlyOwner {
        for (uint256 i = 0; i < _wallet.length; i++) {
            setWalletExclusion(_wallet[i], _exclude);
        }
    }

    function setTradingEnabled(bool _enabled) external onlyOwner {
        isTradingEnabled = _enabled;
    }

    function setTransactionsPaused(bool _p) external onlyOwner {
        if (_p) {
            _pause();
        } else {
            _unpause();
        }
    }

    function setTaxes(uint16 buyFee, uint16 sellFee, uint16 transferFee) external onlyOwner {
        require(buyFee <= maxBuyTaxes
                && sellFee <= maxSellTaxes
                && transferFee <= maxTransferTaxes,
                "Taxes cannot exceed maximums.");
        _taxRates.buyFee = buyFee;
        _taxRates.sellFee = sellFee;
        _taxRates.transferFee = transferFee;
    }

    function setRatios(uint16 _liquidity, uint16 _sandstorm, uint16 _converter) external onlyOwner {
        _ratios.liquidity = _liquidity;
        _ratios.sandstorm = _sandstorm;
        _ratios.converter = _converter;
        _ratios.total = _liquidity + _sandstorm + _converter;
    }    


    function setLiquidityPair(address _lpAddr, bool _isLP) public onlyOwner {
        _isLiquidityPair[_lpAddr] = _isLP; 
    }

    function currentWalletLimit() public view virtual onlyOwner returns(uint256) {
        uint256 limVal = (totalSupply() * walletLimit) / FEE_DENOMINATOR;
        return limVal;
    }




}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

File 5 of 11 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 6 of 11 : CamelLiquidityProcessor.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.2;

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

import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";

import "./CamelCoin.sol";

/// @title Camel Coin Liquidity Manager
/// @author metacrypt.org
contract CamelLiquidityProcessor is Ownable {
    CamelCoin public immutable camelCoin;

    IUniswapV2Router02 public immutable uniswapRouter;
    address public immutable uniswapPair;

    uint256 public minTokensToSwap;

    constructor(address _uniswapRouterAddress, address _camelCoinAddress) {
        require(_uniswapRouterAddress != address(0), "Uniswap Router can not be address(0)");
        require(_camelCoinAddress != address(0), "Camel Coin can not be address(0)");
        uniswapRouter = IUniswapV2Router02(_uniswapRouterAddress);
        camelCoin = CamelCoin(_camelCoinAddress);

        uniswapPair = IUniswapV2Factory(uniswapRouter.factory()).createPair(_camelCoinAddress, uniswapRouter.WETH());

        setMinTokensToAdd(100 * (10**camelCoin.decimals()));
    }

    function setMinTokensToAdd(uint256 _minTokensToSwap) public onlyOwner {
        minTokensToSwap = _minTokensToSwap;
    }

    function addLiquidity() public {
        uint256 balanceToAdd = camelCoin.balanceOf(address(this));

        camelCoin.approve(address(uniswapRouter), balanceToAdd);

        uniswapRouter.addLiquidityETH{value: address(this).balance}(
            address(camelCoin),
            balanceToAdd,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            address(this),
            block.timestamp + 1
        );
    }

    function autoSwap() internal returns (bool) {
        uint256 balanceToSwap = (camelCoin.balanceOf(address(this)) * 2) / 5;

        if (balanceToSwap < minTokensToSwap) {
            return false;
        }

        // Let's approve the exact swap amount.
        camelCoin.approve(address(uniswapRouter), balanceToSwap);

        // Router Path Token -> WETH
        address[] memory path = new address[](2);
        path[0] = address(camelCoin);
        path[1] = uniswapRouter.WETH();

        uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
            balanceToSwap,
            0, // slippage is unavoidable
            path,
            address(this),
            block.timestamp + 1
        );

        return true;
    }

    function processFunds() external {
        if (autoSwap()) {
            addLiquidity();
        }
    }

    function recoverToken(address tokenAddress, uint256 tokenAmount) external onlyOwner {
        require(tokenAddress != address(camelCoin), "Can not recover Camel Coin");
        IERC20(tokenAddress).transfer(owner(), tokenAmount == 0 ? IERC20(tokenAddress).balanceOf(address(this)) : tokenAmount);
    }

    receive() external payable {}
}

File 7 of 11 : CamelCollector.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.2;

import "@openzeppelin/contracts/access/Ownable.sol";

import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";

import "./CamelCoin.sol";

/// @title Camel Coin Converter
/// @notice Collects and converts Camel Coins to ETH, sends them to team & marketing wallets.
/// @author metacrypt.org
contract CamelCollector is Ownable {
    CamelCoin public immutable camelCoin;

    IUniswapV2Router02 public immutable uniswapRouter;
    uint256 private minTokensToSwap;

    address payable public teamWallet;
    address payable public marketingWallet;

    constructor(
        address _uniswapRouterAddress,
        address _camelCoinAddress,
        address payable _teamWallet,
        address payable _marketingWallet
    ) {
        uniswapRouter = IUniswapV2Router02(_uniswapRouterAddress);
        camelCoin = CamelCoin(_camelCoinAddress);

        setMinTokensToSwap(10000 * (10**camelCoin.decimals()));
        setDistributors(_teamWallet, _marketingWallet);
    }

    function setMinTokensToSwap(uint256 _minTokensToSwap) public onlyOwner {
        minTokensToSwap = _minTokensToSwap;
    }

    function setDistributors(address payable _teamWallet, address payable _marketingWallet) public onlyOwner {
        teamWallet = _teamWallet;
        marketingWallet = _marketingWallet;
    }

    // function setSplits(uint256 _splitTeam, uint256 _splitMarketing) public onlyOwner {
    //     splitTeam = _splitTeam;
    //     splitMarketing = _splitMarketing;
    // }

    function autoSwap() internal returns (bool) {
        uint256 balanceToSwap = camelCoin.balanceOf(address(this));

        if (balanceToSwap < minTokensToSwap) {
            return false;
        }

        // Let's approve the exact swap amount.
        camelCoin.approve(address(uniswapRouter), balanceToSwap);

        // Router Path Token -> WETH
        address[] memory path = new address[](2);
        path[0] = address(camelCoin);
        path[1] = uniswapRouter.WETH();

        uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
            balanceToSwap,
            0, // slippage is unavoidable
            path,
            address(this),
            block.timestamp + 1
        );

        return true;
    }

    function processFunds() external {
        autoSwap();
        if (teamWallet != address(0) && address(this).balance > 0) {
            (bool sent, ) = teamWallet.call{value: (address(this).balance)}("");
            require(sent, "CamelConverter: Transfer Failed");
        }
    }

    receive() external payable {}
}

File 8 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

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

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

import './IUniswapV2Router01.sol';

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

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

File 10 of 11 : IUniswapV2Factory.sol
pragma solidity >=0.5.0;

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

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

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

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

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

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

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

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

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 100
  },
  "metadata": {
    "bytecodeHash": "none"
  },
  "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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isExcludedFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isExcludedWallet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isLiquidityPair","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_ratios","outputs":[{"internalType":"uint16","name":"liquidity","type":"uint16"},{"internalType":"uint16","name":"sandstorm","type":"uint16"},{"internalType":"uint16","name":"converter","type":"uint16"},{"internalType":"uint16","name":"total","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_taxRates","outputs":[{"internalType":"uint16","name":"buyFee","type":"uint16"},{"internalType":"uint16","name":"sellFee","type":"uint16"},{"internalType":"uint16","name":"transferFee","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collector","outputs":[{"internalType":"contract CamelCollector","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentWalletLimit","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":[{"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":[],"name":"isTradingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityProcessor","outputs":[{"internalType":"contract CamelLiquidityProcessor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBuyTaxes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSellTaxes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTransferTaxes","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"bool","name":"_exclude","type":"bool"}],"name":"setFeeExclusion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_wallet","type":"address[]"},{"internalType":"bool","name":"_exclude","type":"bool"}],"name":"setFeeExclusion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_liquidityProcessor","type":"address"},{"internalType":"address payable","name":"_collector","type":"address"}],"name":"setFeeProcessors","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_lpAddr","type":"address"},{"internalType":"bool","name":"_isLP","type":"bool"}],"name":"setLiquidityPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_liquidity","type":"uint16"},{"internalType":"uint16","name":"_sandstorm","type":"uint16"},{"internalType":"uint16","name":"_converter","type":"uint16"}],"name":"setRatios","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"buyFee","type":"uint16"},{"internalType":"uint16","name":"sellFee","type":"uint16"},{"internalType":"uint16","name":"transferFee","type":"uint16"}],"name":"setTaxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setTradingEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_p","type":"bool"}],"name":"setTransactionsPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"bool","name":"_exclude","type":"bool"}],"name":"setWalletExclusion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_wallet","type":"address[]"},{"internalType":"bool","name":"_exclude","type":"bool"}],"name":"setWalletExclusion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_walletLimit","type":"uint256"}],"name":"setWalletLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"transferOwner","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6107d0600c55600d805461ffff19166001179055611388608052613a9860a052600060c052600e805465ffffffffffff1916633a981388179055610160604052600460e081905260026101005261012052600a61014052600f8054660a0004000200046001600160401b03199091161790553480156200007e57600080fd5b506000805460ff1916905560408051808201909152600a8082526921b0b6b2b61021b7b4b760b11b6020909201918252620000bc91600491620006ce565b506040805180820190915260078082526621a6a621a7a4a760c91b6020909201918252620000ed91600591620006ce565b50600680546001600160a01b03191633908117909155620001109060016200014b565b6200011d33600162000213565b6200014533620001306012600a62000889565b6200013f90624c4b40620008a1565b620002d7565b62000968565b6006546001600160a01b031633146200019f5760405162461bcd60e51b815260206004820152601160248201527021b0b63632b9101e979e9037bbb732b91760791b60448201526064015b60405180910390fd5b6001600160a01b038216620001e85760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a590815d85b1b195d60921b604482015260640162000196565b6001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b6006546001600160a01b03163314620002635760405162461bcd60e51b815260206004820152601160248201527021b0b63632b9101e979e9037bbb732b91760791b604482015260640162000196565b6001600160a01b038216620002ac5760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a590815d85b1b195d60921b604482015260640162000196565b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6001600160a01b0382166200032f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000196565b6200033d60008383620003d8565b8060036000828254620003519190620008c3565b90915550506001600160a01b0382166000908152600160205260408120805483929062000380908490620008c3565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3620003d4600083836200055d565b5050565b600d5460ff166200055857600a60009054906101000a90046001600160a01b03166001600160a01b031663c816841b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000437573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200045d9190620008de565b6001600160a01b0316826001600160a01b0316141580156200050a5750600a60009054906101000a90046001600160a01b03166001600160a01b031663c816841b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015620004ce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620004f49190620008de565b6001600160a01b0316836001600160a01b031614155b620005585760405162461bcd60e51b815260206004820152601360248201527f54726164696e672069732064697361626c656400000000000000000000000000604482015260640162000196565b505050565b600c541562000558576001600160a01b03831660009081526008602052604090205460ff166200061a57600c54620186a0906200059960035490565b620005a59190620008a1565b620005b1919062000909565b6001600160a01b03841660009081526001602052604090205411156200061a5760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722077616c6c6574206c696d697420726561636865640000000000604482015260640162000196565b6001600160a01b03821660009081526008602052604090205460ff166200055857600c54620186a0906200064d60035490565b620006599190620008a1565b62000665919062000909565b6001600160a01b0383166000908152600160205260409020541115620005585760405162461bcd60e51b815260206004820152601d60248201527f52656365697665722077616c6c6574206c696d69742072656163686564000000604482015260640162000196565b828054620006dc906200092c565b90600052602060002090601f0160209004810192826200070057600085556200074b565b82601f106200071b57805160ff19168380011785556200074b565b828001600101855582156200074b579182015b828111156200074b5782518255916020019190600101906200072e565b50620007599291506200075d565b5090565b5b808211156200075957600081556001016200075e565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620007cb578160001904821115620007af57620007af62000774565b80851615620007bd57918102915b93841c93908002906200078f565b509250929050565b600082620007e45750600162000883565b81620007f35750600062000883565b81600181146200080c5760028114620008175762000837565b600191505062000883565b60ff8411156200082b576200082b62000774565b50506001821b62000883565b5060208310610133831016604e8410600b84101617156200085c575081810a62000883565b6200086883836200078a565b80600019048211156200087f576200087f62000774565b0290505b92915050565b60006200089a60ff841683620007d3565b9392505050565b6000816000190483118215151615620008be57620008be62000774565b500290565b60008219821115620008d957620008d962000774565b500190565b600060208284031215620008f157600080fd5b81516001600160a01b03811681146200089a57600080fd5b6000826200092757634e487b7160e01b600052601260045260246000fd5b500490565b600181811c908216806200094157607f821691505b6020821081036200096257634e487b7160e01b600052602260045260246000fd5b50919050565b611f6080620009786000396000f3fe608060405234801561001057600080fd5b50600436106102125760003560e01c806370a0823111610120578063b1b08f71116100b8578063cf8477061161007c578063cf847706146104cb578063dd62ed3e14610525578063f1d5f51714610538578063f79dcf321461054b578063fd5194411461056e57600080fd5b8063b1b08f711461032c578063b3d514fb14610489578063b5f1846014610492578063b99878a8146104a5578063c2e5ec04146104b857600080fd5b806370a08231146103d957806379cc6790146103ec578063913e77ad146103ff5780639155802a1461041257806395d89b41146104355780639a48ec451461043d578063a457c2d714610450578063a9059cbb14610463578063aa22b1721461047657600080fd5b806323b872dd116101ae5780633950935111610172578063395093511461036a57806342966c681461037d57806345e653ec146103905780634fb2e45d146103bb5780635c975abb146103ce57600080fd5b806323b872dd146103195780632b28fc7a1461032c57806330b94cd514610335578063313ce5671461034857806332cde6641461035757600080fd5b806302f4606a14610217578063064a59d01461022c578063069d955f1461024e57806306fdde031461029657806308739d3b146102ab578063095ea7b3146102ce578063162088af146102e157806318160ddd146102f45780632387606414610306575b600080fd5b61022a610225366004611b5d565b610576565b005b600d546102399060ff1681565b60405190151581526020015b60405180910390f35b600e546102719061ffff80821691620100008104821691600160201b9091041683565b6040805161ffff94851681529284166020840152921691810191909152606001610245565b61029e6105fa565b6040516102459190611b92565b6102396102b9366004611be7565b60076020526000908152604090205460ff1681565b6102396102dc366004611c04565b61068c565b61022a6102ef366004611c30565b6106a4565b6003545b604051908152602001610245565b61022a610314366004611b5d565b610721565b610239610327366004611cb4565b610776565b6102f861271081565b61022a610343366004611b5d565b61079c565b60405160128152602001610245565b61022a610365366004611d07565b610817565b610239610378366004611c04565b6108f9565b61022a61038b366004611d41565b61091b565b600a546103a3906001600160a01b031681565b6040516001600160a01b039091168152602001610245565b61022a6103c9366004611be7565b610928565b60005460ff16610239565b6102f86103e7366004611be7565b610a79565b61022a6103fa366004611c04565b610a94565b600b546103a3906001600160a01b031681565b610239610420366004611be7565b60096020526000908152604090205460ff1681565b61029e610aad565b61022a61044b366004611c30565b610abc565b61023961045e366004611c04565b610b33565b610239610471366004611c04565b610bb9565b61022a610484366004611d07565b610bc7565b6102f8614e2081565b61022a6104a0366004611d5a565b610c67565b61022a6104b3366004611d93565b610e6e565b61022a6104c6366004611d93565b610eae565b600f546104f79061ffff80821691620100008104821691600160201b8204811691600160301b90041684565b6040805161ffff95861681529385166020850152918416918301919091529091166060820152608001610245565b6102f8610533366004611d5a565b610eeb565b61022a610546366004611d41565b610f16565b610239610559366004611be7565b60086020526000908152604090205460ff1681565b6102f8610fac565b6006546001600160a01b031633146105a95760405162461bcd60e51b81526004016105a090611dae565b60405180910390fd5b6001600160a01b0382166105cf5760405162461bcd60e51b81526004016105a090611dd9565b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b60606004805461060990611e01565b80601f016020809104026020016040519081016040528092919081815260200182805461063590611e01565b80156106825780601f1061065757610100808354040283529160200191610682565b820191906000526020600020905b81548152906001019060200180831161066557829003601f168201915b5050505050905090565b60003361069a818585611005565b5060019392505050565b6006546001600160a01b031633146106ce5760405162461bcd60e51b81526004016105a090611dae565b60005b8281101561071b576107098484838181106106ee576106ee611e3b565b90506020020160208101906107039190611be7565b83610576565b8061071381611e67565b9150506106d1565b50505050565b6006546001600160a01b0316331461074b5760405162461bcd60e51b81526004016105a090611dae565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b600033610784858285611129565b61078f85858561119d565b60019150505b9392505050565b6006546001600160a01b031633146107c65760405162461bcd60e51b81526004016105a090611dae565b6001600160a01b0382166107ec5760405162461bcd60e51b81526004016105a090611dd9565b6001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b6006546001600160a01b031633146108415760405162461bcd60e51b81526004016105a090611dae565b6127108361ffff161115801561085d5750614e208261ffff1611155b801561086f57506127108161ffff1611155b6108bb5760405162461bcd60e51b815260206004820152601d60248201527f54617865732063616e6e6f7420657863656564206d6178696d756d732e00000060448201526064016105a0565b600e805461ffff94851663ffffffff199091161762010000938516939093029290921765ffff000000001916600160201b9190931602919091179055565b60003361069a81858561090c8383610eeb565b6109169190611e80565b611005565b61092533826114a5565b50565b6006546001600160a01b031633146109525760405162461bcd60e51b81526004016105a090611dae565b6001600160a01b0381166109ce5760405162461bcd60e51b815260206004820152603d60248201527f43616c6c2072656e6f756e63654f776e65727368697020746f207472616e736660448201527f6572206f776e657220746f20746865207a65726f20616464726573732e00000060648201526084016105a0565b6006546109e5906001600160a01b0316600061079c565b6109f081600161079c565b600654600090610a08906001600160a01b0316610a79565b1115610a2d57600654610a2d906001600160a01b031682610a2882610a79565b61119d565b600680546001600160a01b0319166001600160a01b03831690811790915560405181907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a350565b6001600160a01b031660009081526001602052604090205490565b610a9f823383611129565b610aa982826114a5565b5050565b60606005805461060990611e01565b6006546001600160a01b03163314610ae65760405162461bcd60e51b81526004016105a090611dae565b60005b8281101561071b57610b21848483818110610b0657610b06611e3b565b9050602002016020810190610b1b9190611be7565b8361079c565b80610b2b81611e67565b915050610ae9565b60003381610b418286610eeb565b905083811015610ba15760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105a0565b610bae8286868403611005565b506001949350505050565b60003361069a81858561119d565b6006546001600160a01b03163314610bf15760405162461bcd60e51b81526004016105a090611dae565b600f805461ffff838116600160201b0265ffff0000000019868316620100000263ffffffff1990941692881692909217929092171617905580610c348385611e98565b610c3e9190611e98565b600f805461ffff92909216600160301b0267ffff00000000000019909216919091179055505050565b6006546001600160a01b03163314610c915760405162461bcd60e51b81526004016105a090611dae565b6001600160a01b038216610ce75760405162461bcd60e51b815260206004820152601a60248201527f496e76616c6964206c697175696469747950726f636573736f7200000000000060448201526064016105a0565b6001600160a01b038116610d315760405162461bcd60e51b815260206004820152601160248201527024b73b30b634b21031b7b63632b1ba37b960791b60448201526064016105a0565b600a80546001600160a01b038085166001600160a01b031992831617909255600b805492841692909116919091179055610d6c81600161079c565b610d77826001610576565b610d82816001610576565b600a546040805163c816841b60e01b81529051610df8926001600160a01b03169163c816841b9160048083019260209291908290030181865afa158015610dcd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df19190611ebe565b6001610576565b600a546040805163c816841b60e01b81529051610aa9926001600160a01b03169163c816841b9160048083019260209291908290030181865afa158015610e43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e679190611ebe565b6001610721565b6006546001600160a01b03163314610e985760405162461bcd60e51b81526004016105a090611dae565b8015610ea6576109256115f9565b610925611691565b6006546001600160a01b03163314610ed85760405162461bcd60e51b81526004016105a090611dae565b600d805460ff1916911515919091179055565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6006546001600160a01b03163314610f405760405162461bcd60e51b81526004016105a090611dae565b6161a88111158015610f50575060015b610fa75760405162461bcd60e51b815260206004820152602260248201527f57616c6c6574206c696d6974206d757374206265206c657373207468616e2032604482015261352560f01b60648201526084016105a0565b600c55565b6006546000906001600160a01b03163314610fd95760405162461bcd60e51b81526004016105a090611dae565b6000620186a0600c54610feb60035490565b610ff59190611edb565b610fff9190611efa565b91505090565b6001600160a01b0383166110675760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105a0565b6001600160a01b0382166110c85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105a0565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006111358484610eeb565b9050600019811461071b57818110156111905760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016105a0565b61071b8484848403611005565b6001600160a01b0383166112015760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105a0565b6001600160a01b0382166112635760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105a0565b61126e83838361170b565b6001600160a01b038316600090815260016020526040902054818110156112e65760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105a0565b6001600160a01b0384166000908152600160205260408120838303905561130e858585611877565b6001600160a01b03851660009081526001602052604081208054929350839290919061133b908490611e80565b92505081905550836001600160a01b0316856001600160a01b0316600080516020611f348339815191528360405161137591815260200190565b60405180910390a36001600160a01b03841660009081526009602052604090205460ff1680156113ad5750600d54610100900460ff16155b1561149357600d805461ff001916610100179055600a5460408051630ab9046560e11b815290516001600160a01b039092169163157208ca9160048082019260009290919082900301818387803b15801561140757600080fd5b505af115801561141b573d6000803e3d6000fd5b50505050600b60009054906101000a90046001600160a01b03166001600160a01b031663157208ca6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561146f57600080fd5b505af1158015611483573d6000803e3d6000fd5b5050600d805461ff001916905550505b61149e8585856119f5565b5050505050565b6001600160a01b0382166115055760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105a0565b6115118260008361170b565b6001600160a01b038216600090815260016020526040902054818110156115855760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105a0565b6001600160a01b03831660009081526001602052604081208383039055600380548492906115b4908490611f1c565b90915550506040518281526000906001600160a01b03851690600080516020611f348339815191529060200160405180910390a36115f4836000846119f5565b505050565b60005460ff161561163f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016105a0565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586116743390565b6040516001600160a01b03909116815260200160405180910390a1565b60005460ff166116da5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016105a0565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611674565b600d5460ff166115f457600a60009054906101000a90046001600160a01b03166001600160a01b031663c816841b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611768573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178c9190611ebe565b6001600160a01b0316826001600160a01b0316141580156118355750600a60009054906101000a90046001600160a01b03166001600160a01b031663c816841b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181f9190611ebe565b6001600160a01b0316836001600160a01b031614155b6115f45760405162461bcd60e51b8152602060048201526013602482015272151c98591a5b99c81a5cc8191a5cd8589b1959606a1b60448201526064016105a0565b6001600160a01b038316600090815260076020526040812054819060ff16806118b857506001600160a01b03841660009081526007602052604090205460ff165b156118c65782915050610795565b6001600160a01b03851660009081526009602052604090205460ff1680156118f65750600d54610100900460ff16155b156119085750600e5461ffff16611960565b6001600160a01b03841660009081526009602052604090205460ff1680156119385750600d54610100900460ff16155b156119505750600e5462010000900461ffff16611960565b50600e54600160201b900461ffff165b6000620186a06119708386611edb565b61197a9190611efa565b600b546001600160a01b03166000908152600160205260408120805492935083929091906119a9908490611e80565b9091555050600b546040518281526001600160a01b0391821691881690600080516020611f348339815191529060200160405180910390a36119eb8185611f1c565b9695505050505050565b600c54156115f4576001600160a01b03831660009081526008602052604090205460ff16611a9857620186a0600c54611a2d60035490565b611a379190611edb565b611a419190611efa565b611a4a84610a79565b1115611a985760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722077616c6c6574206c696d69742072656163686564000000000060448201526064016105a0565b6001600160a01b03821660009081526008602052604090205460ff166115f457620186a0600c54611ac860035490565b611ad29190611edb565b611adc9190611efa565b611ae583610a79565b11156115f45760405162461bcd60e51b815260206004820152601d60248201527f52656365697665722077616c6c6574206c696d6974207265616368656400000060448201526064016105a0565b6001600160a01b038116811461092557600080fd5b80358015158114611b5857600080fd5b919050565b60008060408385031215611b7057600080fd5b8235611b7b81611b33565b9150611b8960208401611b48565b90509250929050565b600060208083528351808285015260005b81811015611bbf57858101830151858201604001528201611ba3565b81811115611bd1576000604083870101525b50601f01601f1916929092016040019392505050565b600060208284031215611bf957600080fd5b813561079581611b33565b60008060408385031215611c1757600080fd5b8235611c2281611b33565b946020939093013593505050565b600080600060408486031215611c4557600080fd5b833567ffffffffffffffff80821115611c5d57600080fd5b818601915086601f830112611c7157600080fd5b813581811115611c8057600080fd5b8760208260051b8501011115611c9557600080fd5b602092830195509350611cab9186019050611b48565b90509250925092565b600080600060608486031215611cc957600080fd5b8335611cd481611b33565b92506020840135611ce481611b33565b929592945050506040919091013590565b803561ffff81168114611b5857600080fd5b600080600060608486031215611d1c57600080fd5b611d2584611cf5565b9250611d3360208501611cf5565b9150611cab60408501611cf5565b600060208284031215611d5357600080fd5b5035919050565b60008060408385031215611d6d57600080fd5b8235611d7881611b33565b91506020830135611d8881611b33565b809150509250929050565b600060208284031215611da557600080fd5b61079582611b48565b60208082526011908201527021b0b63632b9101e979e9037bbb732b91760791b604082015260600190565b6020808252600e908201526d125b9d985b1a590815d85b1b195d60921b604082015260600190565b600181811c90821680611e1557607f821691505b602082108103611e3557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611e7957611e79611e51565b5060010190565b60008219821115611e9357611e93611e51565b500190565b600061ffff808316818516808303821115611eb557611eb5611e51565b01949350505050565b600060208284031215611ed057600080fd5b815161079581611b33565b6000816000190483118215151615611ef557611ef5611e51565b500290565b600082611f1757634e487b7160e01b600052601260045260246000fd5b500490565b600082821015611f2e57611f2e611e51565b50039056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa164736f6c634300080d000a

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102125760003560e01c806370a0823111610120578063b1b08f71116100b8578063cf8477061161007c578063cf847706146104cb578063dd62ed3e14610525578063f1d5f51714610538578063f79dcf321461054b578063fd5194411461056e57600080fd5b8063b1b08f711461032c578063b3d514fb14610489578063b5f1846014610492578063b99878a8146104a5578063c2e5ec04146104b857600080fd5b806370a08231146103d957806379cc6790146103ec578063913e77ad146103ff5780639155802a1461041257806395d89b41146104355780639a48ec451461043d578063a457c2d714610450578063a9059cbb14610463578063aa22b1721461047657600080fd5b806323b872dd116101ae5780633950935111610172578063395093511461036a57806342966c681461037d57806345e653ec146103905780634fb2e45d146103bb5780635c975abb146103ce57600080fd5b806323b872dd146103195780632b28fc7a1461032c57806330b94cd514610335578063313ce5671461034857806332cde6641461035757600080fd5b806302f4606a14610217578063064a59d01461022c578063069d955f1461024e57806306fdde031461029657806308739d3b146102ab578063095ea7b3146102ce578063162088af146102e157806318160ddd146102f45780632387606414610306575b600080fd5b61022a610225366004611b5d565b610576565b005b600d546102399060ff1681565b60405190151581526020015b60405180910390f35b600e546102719061ffff80821691620100008104821691600160201b9091041683565b6040805161ffff94851681529284166020840152921691810191909152606001610245565b61029e6105fa565b6040516102459190611b92565b6102396102b9366004611be7565b60076020526000908152604090205460ff1681565b6102396102dc366004611c04565b61068c565b61022a6102ef366004611c30565b6106a4565b6003545b604051908152602001610245565b61022a610314366004611b5d565b610721565b610239610327366004611cb4565b610776565b6102f861271081565b61022a610343366004611b5d565b61079c565b60405160128152602001610245565b61022a610365366004611d07565b610817565b610239610378366004611c04565b6108f9565b61022a61038b366004611d41565b61091b565b600a546103a3906001600160a01b031681565b6040516001600160a01b039091168152602001610245565b61022a6103c9366004611be7565b610928565b60005460ff16610239565b6102f86103e7366004611be7565b610a79565b61022a6103fa366004611c04565b610a94565b600b546103a3906001600160a01b031681565b610239610420366004611be7565b60096020526000908152604090205460ff1681565b61029e610aad565b61022a61044b366004611c30565b610abc565b61023961045e366004611c04565b610b33565b610239610471366004611c04565b610bb9565b61022a610484366004611d07565b610bc7565b6102f8614e2081565b61022a6104a0366004611d5a565b610c67565b61022a6104b3366004611d93565b610e6e565b61022a6104c6366004611d93565b610eae565b600f546104f79061ffff80821691620100008104821691600160201b8204811691600160301b90041684565b6040805161ffff95861681529385166020850152918416918301919091529091166060820152608001610245565b6102f8610533366004611d5a565b610eeb565b61022a610546366004611d41565b610f16565b610239610559366004611be7565b60086020526000908152604090205460ff1681565b6102f8610fac565b6006546001600160a01b031633146105a95760405162461bcd60e51b81526004016105a090611dae565b60405180910390fd5b6001600160a01b0382166105cf5760405162461bcd60e51b81526004016105a090611dd9565b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b60606004805461060990611e01565b80601f016020809104026020016040519081016040528092919081815260200182805461063590611e01565b80156106825780601f1061065757610100808354040283529160200191610682565b820191906000526020600020905b81548152906001019060200180831161066557829003601f168201915b5050505050905090565b60003361069a818585611005565b5060019392505050565b6006546001600160a01b031633146106ce5760405162461bcd60e51b81526004016105a090611dae565b60005b8281101561071b576107098484838181106106ee576106ee611e3b565b90506020020160208101906107039190611be7565b83610576565b8061071381611e67565b9150506106d1565b50505050565b6006546001600160a01b0316331461074b5760405162461bcd60e51b81526004016105a090611dae565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b600033610784858285611129565b61078f85858561119d565b60019150505b9392505050565b6006546001600160a01b031633146107c65760405162461bcd60e51b81526004016105a090611dae565b6001600160a01b0382166107ec5760405162461bcd60e51b81526004016105a090611dd9565b6001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b6006546001600160a01b031633146108415760405162461bcd60e51b81526004016105a090611dae565b6127108361ffff161115801561085d5750614e208261ffff1611155b801561086f57506127108161ffff1611155b6108bb5760405162461bcd60e51b815260206004820152601d60248201527f54617865732063616e6e6f7420657863656564206d6178696d756d732e00000060448201526064016105a0565b600e805461ffff94851663ffffffff199091161762010000938516939093029290921765ffff000000001916600160201b9190931602919091179055565b60003361069a81858561090c8383610eeb565b6109169190611e80565b611005565b61092533826114a5565b50565b6006546001600160a01b031633146109525760405162461bcd60e51b81526004016105a090611dae565b6001600160a01b0381166109ce5760405162461bcd60e51b815260206004820152603d60248201527f43616c6c2072656e6f756e63654f776e65727368697020746f207472616e736660448201527f6572206f776e657220746f20746865207a65726f20616464726573732e00000060648201526084016105a0565b6006546109e5906001600160a01b0316600061079c565b6109f081600161079c565b600654600090610a08906001600160a01b0316610a79565b1115610a2d57600654610a2d906001600160a01b031682610a2882610a79565b61119d565b600680546001600160a01b0319166001600160a01b03831690811790915560405181907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a350565b6001600160a01b031660009081526001602052604090205490565b610a9f823383611129565b610aa982826114a5565b5050565b60606005805461060990611e01565b6006546001600160a01b03163314610ae65760405162461bcd60e51b81526004016105a090611dae565b60005b8281101561071b57610b21848483818110610b0657610b06611e3b565b9050602002016020810190610b1b9190611be7565b8361079c565b80610b2b81611e67565b915050610ae9565b60003381610b418286610eeb565b905083811015610ba15760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105a0565b610bae8286868403611005565b506001949350505050565b60003361069a81858561119d565b6006546001600160a01b03163314610bf15760405162461bcd60e51b81526004016105a090611dae565b600f805461ffff838116600160201b0265ffff0000000019868316620100000263ffffffff1990941692881692909217929092171617905580610c348385611e98565b610c3e9190611e98565b600f805461ffff92909216600160301b0267ffff00000000000019909216919091179055505050565b6006546001600160a01b03163314610c915760405162461bcd60e51b81526004016105a090611dae565b6001600160a01b038216610ce75760405162461bcd60e51b815260206004820152601a60248201527f496e76616c6964206c697175696469747950726f636573736f7200000000000060448201526064016105a0565b6001600160a01b038116610d315760405162461bcd60e51b815260206004820152601160248201527024b73b30b634b21031b7b63632b1ba37b960791b60448201526064016105a0565b600a80546001600160a01b038085166001600160a01b031992831617909255600b805492841692909116919091179055610d6c81600161079c565b610d77826001610576565b610d82816001610576565b600a546040805163c816841b60e01b81529051610df8926001600160a01b03169163c816841b9160048083019260209291908290030181865afa158015610dcd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df19190611ebe565b6001610576565b600a546040805163c816841b60e01b81529051610aa9926001600160a01b03169163c816841b9160048083019260209291908290030181865afa158015610e43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e679190611ebe565b6001610721565b6006546001600160a01b03163314610e985760405162461bcd60e51b81526004016105a090611dae565b8015610ea6576109256115f9565b610925611691565b6006546001600160a01b03163314610ed85760405162461bcd60e51b81526004016105a090611dae565b600d805460ff1916911515919091179055565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6006546001600160a01b03163314610f405760405162461bcd60e51b81526004016105a090611dae565b6161a88111158015610f50575060015b610fa75760405162461bcd60e51b815260206004820152602260248201527f57616c6c6574206c696d6974206d757374206265206c657373207468616e2032604482015261352560f01b60648201526084016105a0565b600c55565b6006546000906001600160a01b03163314610fd95760405162461bcd60e51b81526004016105a090611dae565b6000620186a0600c54610feb60035490565b610ff59190611edb565b610fff9190611efa565b91505090565b6001600160a01b0383166110675760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105a0565b6001600160a01b0382166110c85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105a0565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006111358484610eeb565b9050600019811461071b57818110156111905760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016105a0565b61071b8484848403611005565b6001600160a01b0383166112015760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105a0565b6001600160a01b0382166112635760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105a0565b61126e83838361170b565b6001600160a01b038316600090815260016020526040902054818110156112e65760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105a0565b6001600160a01b0384166000908152600160205260408120838303905561130e858585611877565b6001600160a01b03851660009081526001602052604081208054929350839290919061133b908490611e80565b92505081905550836001600160a01b0316856001600160a01b0316600080516020611f348339815191528360405161137591815260200190565b60405180910390a36001600160a01b03841660009081526009602052604090205460ff1680156113ad5750600d54610100900460ff16155b1561149357600d805461ff001916610100179055600a5460408051630ab9046560e11b815290516001600160a01b039092169163157208ca9160048082019260009290919082900301818387803b15801561140757600080fd5b505af115801561141b573d6000803e3d6000fd5b50505050600b60009054906101000a90046001600160a01b03166001600160a01b031663157208ca6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561146f57600080fd5b505af1158015611483573d6000803e3d6000fd5b5050600d805461ff001916905550505b61149e8585856119f5565b5050505050565b6001600160a01b0382166115055760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105a0565b6115118260008361170b565b6001600160a01b038216600090815260016020526040902054818110156115855760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105a0565b6001600160a01b03831660009081526001602052604081208383039055600380548492906115b4908490611f1c565b90915550506040518281526000906001600160a01b03851690600080516020611f348339815191529060200160405180910390a36115f4836000846119f5565b505050565b60005460ff161561163f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016105a0565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586116743390565b6040516001600160a01b03909116815260200160405180910390a1565b60005460ff166116da5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016105a0565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611674565b600d5460ff166115f457600a60009054906101000a90046001600160a01b03166001600160a01b031663c816841b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611768573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178c9190611ebe565b6001600160a01b0316826001600160a01b0316141580156118355750600a60009054906101000a90046001600160a01b03166001600160a01b031663c816841b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181f9190611ebe565b6001600160a01b0316836001600160a01b031614155b6115f45760405162461bcd60e51b8152602060048201526013602482015272151c98591a5b99c81a5cc8191a5cd8589b1959606a1b60448201526064016105a0565b6001600160a01b038316600090815260076020526040812054819060ff16806118b857506001600160a01b03841660009081526007602052604090205460ff165b156118c65782915050610795565b6001600160a01b03851660009081526009602052604090205460ff1680156118f65750600d54610100900460ff16155b156119085750600e5461ffff16611960565b6001600160a01b03841660009081526009602052604090205460ff1680156119385750600d54610100900460ff16155b156119505750600e5462010000900461ffff16611960565b50600e54600160201b900461ffff165b6000620186a06119708386611edb565b61197a9190611efa565b600b546001600160a01b03166000908152600160205260408120805492935083929091906119a9908490611e80565b9091555050600b546040518281526001600160a01b0391821691881690600080516020611f348339815191529060200160405180910390a36119eb8185611f1c565b9695505050505050565b600c54156115f4576001600160a01b03831660009081526008602052604090205460ff16611a9857620186a0600c54611a2d60035490565b611a379190611edb565b611a419190611efa565b611a4a84610a79565b1115611a985760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722077616c6c6574206c696d69742072656163686564000000000060448201526064016105a0565b6001600160a01b03821660009081526008602052604090205460ff166115f457620186a0600c54611ac860035490565b611ad29190611edb565b611adc9190611efa565b611ae583610a79565b11156115f45760405162461bcd60e51b815260206004820152601d60248201527f52656365697665722077616c6c6574206c696d6974207265616368656400000060448201526064016105a0565b6001600160a01b038116811461092557600080fd5b80358015158114611b5857600080fd5b919050565b60008060408385031215611b7057600080fd5b8235611b7b81611b33565b9150611b8960208401611b48565b90509250929050565b600060208083528351808285015260005b81811015611bbf57858101830151858201604001528201611ba3565b81811115611bd1576000604083870101525b50601f01601f1916929092016040019392505050565b600060208284031215611bf957600080fd5b813561079581611b33565b60008060408385031215611c1757600080fd5b8235611c2281611b33565b946020939093013593505050565b600080600060408486031215611c4557600080fd5b833567ffffffffffffffff80821115611c5d57600080fd5b818601915086601f830112611c7157600080fd5b813581811115611c8057600080fd5b8760208260051b8501011115611c9557600080fd5b602092830195509350611cab9186019050611b48565b90509250925092565b600080600060608486031215611cc957600080fd5b8335611cd481611b33565b92506020840135611ce481611b33565b929592945050506040919091013590565b803561ffff81168114611b5857600080fd5b600080600060608486031215611d1c57600080fd5b611d2584611cf5565b9250611d3360208501611cf5565b9150611cab60408501611cf5565b600060208284031215611d5357600080fd5b5035919050565b60008060408385031215611d6d57600080fd5b8235611d7881611b33565b91506020830135611d8881611b33565b809150509250929050565b600060208284031215611da557600080fd5b61079582611b48565b60208082526011908201527021b0b63632b9101e979e9037bbb732b91760791b604082015260600190565b6020808252600e908201526d125b9d985b1a590815d85b1b195d60921b604082015260600190565b600181811c90821680611e1557607f821691505b602082108103611e3557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611e7957611e79611e51565b5060010190565b60008219821115611e9357611e93611e51565b500190565b600061ffff808316818516808303821115611eb557611eb5611e51565b01949350505050565b600060208284031215611ed057600080fd5b815161079581611b33565b6000816000190483118215151615611ef557611ef5611e51565b500290565b600082611f1757634e487b7160e01b600052601260045260246000fd5b500490565b600082821015611f2e57611f2e611e51565b50039056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa164736f6c634300080d000a

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.