ETH Price: $2,634.40 (+0.67%)
Gas: 0.96 Gwei

Contract

0x469855ccc63f22fB4e17159e1cC3f51ed56D672a
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Wallet Limit165907982023-02-09 11:08:23560 days ago1675940903IN
0x469855cc...ed56D672a
0 ETH0.0006261721.60801642
Set Transactions...165764852023-02-07 11:03:59562 days ago1675767839IN
0x469855cc...ed56D672a
0 ETH0.0005896523.1920311
Set Trading Enab...165764692023-02-07 11:00:47562 days ago1675767647IN
0x469855cc...ed56D672a
0 ETH0.0006984726.63702635
Approve163860532023-01-11 20:49:23589 days ago1673470163IN
0x469855cc...ed56D672a
0 ETH0.0005727423.52044881
Approve158130382022-10-23 19:55:59669 days ago1666554959IN
0x469855cc...ed56D672a
0 ETH0.0003747815.39087243
Approve152284972022-07-28 3:15:34756 days ago1658978134IN
0x469855cc...ed56D672a
0 ETH0.0007091615.20679508
Approve150689762022-07-03 10:15:51781 days ago1656843351IN
0x469855cc...ed56D672a
0 ETH0.0005870812.58888123
Approve149894552022-06-19 6:56:12795 days ago1655621772IN
0x469855cc...ed56D672a
0 ETH0.0008368217.9441243
Approve148546242022-05-27 14:19:06818 days ago1653661146IN
0x469855cc...ed56D672a
0 ETH0.0014558131.21712883
Transfer147957762022-05-18 0:50:53828 days ago1652835053IN
0x469855cc...ed56D672a
0.01375033 ETH0.0004002319.05900824
Approve147083672022-05-04 2:39:59842 days ago1651631999IN
0x469855cc...ed56D672a
0 ETH0.0019273541.32850093
Approve146957922022-05-02 2:50:29844 days ago1651459829IN
0x469855cc...ed56D672a
0 ETH0.0019275841.33349837
Set Transactions...146858212022-04-30 13:21:27845 days ago1651324887IN
0x469855cc...ed56D672a
0 ETH0.004670698.64419959
Set Transactions...146858162022-04-30 13:20:12845 days ago1651324812IN
0x469855cc...ed56D672a
0 ETH0.002299290.4308744
Approve146834882022-04-30 4:31:28845 days ago1651293088IN
0x469855cc...ed56D672a
0 ETH0.0017324937.15013024
Approve146810132022-04-29 19:10:34846 days ago1651259434IN
0x469855cc...ed56D672a
0 ETH0.0025794155.31072863
Transfer146810032022-04-29 19:08:11846 days ago1651259291IN
0x469855cc...ed56D672a
0 ETH0.0022166848.73344814
Approve146809902022-04-29 19:06:21846 days ago1651259181IN
0x469855cc...ed56D672a
0 ETH0.0031412267.35769426
Approve146809892022-04-29 19:05:39846 days ago1651259139IN
0x469855cc...ed56D672a
0 ETH0.0029635863.54845881
Approve146809702022-04-29 19:01:12846 days ago1651258872IN
0x469855cc...ed56D672a
0 ETH0.0032517269.72723501
Set Transactions...146809622022-04-29 18:59:36846 days ago1651258776IN
0x469855cc...ed56D672a
0 ETH0.0031523366.57804506
Approve146809622022-04-29 18:59:36846 days ago1651258776IN
0x469855cc...ed56D672a
0 ETH0.0031183966.86804396
Approve146809592022-04-29 18:58:38846 days ago1651258718IN
0x469855cc...ed56D672a
0 ETH0.0028929262.03333859
Approve146809472022-04-29 18:56:10846 days ago1651258570IN
0x469855cc...ed56D672a
0 ETH0.0025182954
Transfer146809252022-04-29 18:52:02846 days ago1651258322IN
0x469855cc...ed56D672a
0 ETH0.01391348112.19107007
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

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 18 : CamelCoin.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.2;

import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/security/Pausable.sol";

import "./CamelLiquidityManager.sol";
import "./CamelSandstormCollector.sol";

/// @title Camel Coin ERC20 Token
/// @author metacrypt.org
contract CamelCoin is ERC20Burnable, Pausable, AccessControl {
    mapping(address => bool) private _isExcluded;

    CamelLiquidityManager public liquidityProcessor;
    CamelSandstormCollector public sandstormProcessor;

    address public walletTeam;
    address public walletMarketing;

    uint256 private constant FEE_DENOMINATOR = 10_000;

    uint256 public feeTeam; // % div FEE_DENOMINATOR
    uint256 public feeMarketing; // % div FEE_DENOMINATOR
    uint256 public feeLiquidity; // % div FEE_DENOMINATOR
    uint256 public feeSandstorm; // % div FEE_DENOMINATOR

    uint256 public walletLimit; // % div FEE_DENOMINATOR

    bool public isTradingEnabled = true;

    bool private inSwapAndLiquify = false;

    constructor() ERC20("Camel Coin", "CAMEL") {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);

        setWalletLimit(1); // 0.01% initial
        setWalletExclusion(msg.sender, true);

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

        setFees(200, 200, 100, 400); // Initial fees
    }

    function setFeeProcessors(address payable _liquidityProcessor, address payable _sandstormProcessor) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(_liquidityProcessor != address(0), "Invalid liquidityProcessor");
        require(_sandstormProcessor != address(0), "Invalid sandstormProcessor");

        liquidityProcessor = CamelLiquidityManager(_liquidityProcessor);
        sandstormProcessor = CamelSandstormCollector(_sandstormProcessor);

        setWalletExclusion(_liquidityProcessor, true);
        setWalletExclusion(_sandstormProcessor, true);
    }

    function setWallets(address _teamWallet, address _marketingWallet) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(_teamWallet != address(0), "Invalid Team Wallet");
        require(_marketingWallet != address(0), "Invalid Marketing Wallet");

        walletTeam = _teamWallet;
        walletMarketing = _marketingWallet;
    }

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

    function setWalletExclusion(address _wallet, bool _exclude) public onlyRole(DEFAULT_ADMIN_ROLE) {
        _isExcluded[_wallet] = _exclude;
    }

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

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

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

    function setFees(
        uint256 _feeTeam,
        uint256 _feeMarketing,
        uint256 _feeLiquidity,
        uint256 _feeSandstorm
    ) public onlyRole(DEFAULT_ADMIN_ROLE) {
        require(_feeTeam <= 1000 && _feeTeam >= 0, "feeTeam must be less than 10%");
        require(_feeMarketing <= 1000 && _feeMarketing >= 0, "feeMarketing must be less than 10%");
        require(_feeLiquidity <= 1000 && _feeLiquidity >= 0, "feeLiquidity must be less than 10%");
        require(_feeSandstorm <= 1000 && _feeSandstorm >= 0, "feeSandstorm must be less than 10%");

        feeTeam = _feeTeam;
        feeMarketing = _feeMarketing;
        feeLiquidity = _feeLiquidity;
        feeSandstorm = _feeSandstorm;
    }

    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal override {
        // Call processors if it's a sell tx
        if (recipient == liquidityProcessor.uniswapPair() && !inSwapAndLiquify) {
            inSwapAndLiquify = true;

            liquidityProcessor.processFunds();
            sandstormProcessor.processFunds();

            inSwapAndLiquify = false;
        }

        if (_isExcluded[sender] || _isExcluded[recipient]) {
            ERC20._transfer(sender, recipient, amount);
        } else {
            uint256 splitTeam = (amount * feeTeam) / FEE_DENOMINATOR;
            uint256 splitMarketing = (amount * feeMarketing) / FEE_DENOMINATOR;
            uint256 splitLiquidity = (amount * feeLiquidity) / FEE_DENOMINATOR;
            uint256 splitSandstorm = (amount * feeSandstorm) / FEE_DENOMINATOR;

            ERC20._transfer(sender, walletTeam, splitTeam);
            ERC20._transfer(sender, walletMarketing, splitMarketing);
            ERC20._transfer(sender, address(liquidityProcessor), splitLiquidity);
            ERC20._transfer(sender, address(sandstormProcessor), splitSandstorm);

            ERC20._transfer(sender, recipient, amount - splitTeam - splitMarketing - splitLiquidity - splitSandstorm);
        }
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override whenNotPaused {
        super._beforeTokenTransfer(from, to, amount);

        if (!isTradingEnabled) {
            require(to != liquidityProcessor.uniswapPair() && from != liquidityProcessor.uniswapPair(), "Trading is disabled");
        }
    }

    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        super._afterTokenTransfer(from, to, amount);

        if (!_isExcluded[from] && !_isExcluded[to] && walletLimit != 0) {
            require(balanceOf(from) <= (totalSupply() * walletLimit) / FEE_DENOMINATOR, "Sender wallet limit reached");
            require(balanceOf(to) <= (totalSupply() * walletLimit) / FEE_DENOMINATOR, "Receiver wallet limit reached");
        }
    }
}

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

pragma solidity ^0.8.0;

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

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @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 {
        uint256 currentAllowance = allowance(account, _msgSender());
        require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
        unchecked {
            _approve(account, _msgSender(), currentAllowance - amount);
        }
        _burn(account, amount);
    }
}

File 3 of 18 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 4 of 18 : 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 5 of 18 : CamelLiquidityManager.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 CamelLiquidityManager 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 6 of 18 : CamelSandstormCollector.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 Sandstorm Collector
/// @notice Collects and converts Camel Coins to ETH, holds until Camel Distributor is available.
/// @author metacrypt.org
contract CamelSandstormCollector is Ownable {
    CamelCoin public immutable camelCoin;

    IUniswapV2Router02 public immutable uniswapRouter;
    uint256 private minTokensToSwap;

    address payable camelDistributor;

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

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

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

    // The distributor can be set to address(0) to disable forwards.
    function setCamelDistributor(address payable _distributor) external onlyOwner {
        camelDistributor = _distributor;
    }

    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 (camelDistributor != address(0)) {
            (bool sent, ) = camelDistributor.call{value: address(this).balance}("");
            require(sent, "CamelSandstormCollector: Transfer Failed");
        }
    }

    receive() external payable {}
}

File 7 of 18 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, 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}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), 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}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - 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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][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) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, 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 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 8 of 18 : 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 9 of 18 : 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 10 of 18 : 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 11 of 18 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 12 of 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 13 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 14 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 15 of 18 : 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 16 of 18 : 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 17 of 18 : 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 18 of 18 : 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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"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":"feeLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeMarketing","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeSandstorm","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeTeam","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"isTradingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityProcessor","outputs":[{"internalType":"contract CamelLiquidityManager","name":"","type":"address"}],"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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sandstormProcessor","outputs":[{"internalType":"contract CamelSandstormCollector","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_liquidityProcessor","type":"address"},{"internalType":"address payable","name":"_sandstormProcessor","type":"address"}],"name":"setFeeProcessors","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_feeTeam","type":"uint256"},{"internalType":"uint256","name":"_feeMarketing","type":"uint256"},{"internalType":"uint256","name":"_feeLiquidity","type":"uint256"},{"internalType":"uint256","name":"_feeSandstorm","type":"uint256"}],"name":"setFees","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":[{"internalType":"address","name":"_teamWallet","type":"address"},{"internalType":"address","name":"_marketingWallet","type":"address"}],"name":"setWallets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"walletLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"walletMarketing","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"walletTeam","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040526011805461ffff191660011790553480156200001f57600080fd5b50604080518082018252600a81526921b0b6b2b61021b7b4b760b11b60208083019182528351808501909452600584526410d053515360da1b9084015281519192916200006f9160039162000ae4565b5080516200008590600490602084019062000ae4565b50506005805460ff19169055506200009f600033620000f8565b620000ab600162000183565b620000b833600162000205565b620000e033620000cb6012600a62000c9d565b620000da90624c4b4062000cae565b6200023f565b620000f260c88060646101906200033c565b62000e9c565b620001048282620004fc565b6200017f5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200013e3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600062000191813362000529565b6109c48211158015620001a2575060015b620001ff5760405162461bcd60e51b815260206004820152602260248201527f57616c6c6574206c696d6974206d757374206265206c657373207468616e2032604482015261352560f01b60648201526084015b60405180910390fd5b50601055565b600062000213813362000529565b506001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b6001600160a01b038216620002975760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401620001f6565b620002a560008383620005ac565b8060026000828254620002b9919062000cd0565b90915550506001600160a01b03821660009081526020819052604081208054839290620002e890849062000cd0565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a36200017f6000838362000791565b60006200034a813362000529565b6103e885111580156200035b575060015b620003a95760405162461bcd60e51b815260206004820152601d60248201527f6665655465616d206d757374206265206c657373207468616e203130250000006044820152606401620001f6565b6103e88411158015620003ba575060015b620004135760405162461bcd60e51b815260206004820152602260248201527f6665654d61726b6574696e67206d757374206265206c657373207468616e2031604482015261302560f01b6064820152608401620001f6565b6103e8831115801562000424575060015b6200047d5760405162461bcd60e51b815260206004820152602260248201527f6665654c6971756964697479206d757374206265206c657373207468616e2031604482015261302560f01b6064820152608401620001f6565b6103e882111580156200048e575060015b620004e75760405162461bcd60e51b815260206004820152602260248201527f66656553616e6473746f726d206d757374206265206c657373207468616e2031604482015261302560f01b6064820152608401620001f6565b50600c93909355600d91909155600e55600f55565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff165b92915050565b620005358282620004fc565b6200017f576200055b816001600160a01b031660146200092460201b62000e201760201c565b6200057183602062000e2062000924821b17811c565b6040516020016200058492919062000d1e565b60408051601f198184030181529082905262461bcd60e51b8252620001f69160040162000d97565b60055460ff1615620005f45760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401620001f6565b6200060c8383836200078c60201b6200076f1760201c565b60115460ff166200078c57600860009054906101000a90046001600160a01b03166001600160a01b031663c816841b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200066b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000691919062000dcc565b6001600160a01b0316826001600160a01b0316141580156200073e5750600860009054906101000a90046001600160a01b03166001600160a01b031663c816841b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000702573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000728919062000dcc565b6001600160a01b0316836001600160a01b031614155b6200078c5760405162461bcd60e51b815260206004820152601360248201527f54726164696e672069732064697361626c6564000000000000000000000000006044820152606401620001f6565b505050565b620007a98383836200078c60201b6200076f1760201c565b6001600160a01b03831660009081526007602052604090205460ff16158015620007ec57506001600160a01b03821660009081526007602052604090205460ff16155b8015620007fa575060105415155b156200078c57601054612710906200081160025490565b6200081d919062000cae565b62000829919062000df7565b6001600160a01b0384166000908152602081905260409020541115620008925760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722077616c6c6574206c696d6974207265616368656400000000006044820152606401620001f6565b60105461271090620008a360025490565b620008af919062000cae565b620008bb919062000df7565b6001600160a01b03831660009081526020819052604090205411156200078c5760405162461bcd60e51b815260206004820152601d60248201527f52656365697665722077616c6c6574206c696d697420726561636865640000006044820152606401620001f6565b606060006200093583600262000cae565b6200094290600262000cd0565b6001600160401b038111156200095c576200095c62000e1a565b6040519080825280601f01601f19166020018201604052801562000987576020820181803683370190505b509050600360fc1b81600081518110620009a557620009a562000e30565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110620009d757620009d762000e30565b60200101906001600160f81b031916908160001a9053506000620009fd84600262000cae565b62000a0a90600162000cd0565b90505b600181111562000a8c576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811062000a425762000a4262000e30565b1a60f81b82828151811062000a5b5762000a5b62000e30565b60200101906001600160f81b031916908160001a90535060049490941c9362000a848162000e46565b905062000a0d565b50831562000add5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401620001f6565b9392505050565b82805462000af29062000e60565b90600052602060002090601f01602090048101928262000b16576000855562000b61565b82601f1062000b3157805160ff191683800117855562000b61565b8280016001018555821562000b61579182015b8281111562000b6157825182559160200191906001019062000b44565b5062000b6f92915062000b73565b5090565b5b8082111562000b6f576000815560010162000b74565b634e487b7160e01b600052601160045260246000fd5b600181815b8085111562000be157816000190482111562000bc55762000bc562000b8a565b8085161562000bd357918102915b93841c939080029062000ba5565b509250929050565b60008262000bfa5750600162000523565b8162000c095750600062000523565b816001811462000c22576002811462000c2d5762000c4d565b600191505062000523565b60ff84111562000c415762000c4162000b8a565b50506001821b62000523565b5060208310610133831016604e8410600b841016171562000c72575081810a62000523565b62000c7e838362000ba0565b806000190482111562000c955762000c9562000b8a565b029392505050565b600062000add60ff84168362000be9565b600081600019048311821515161562000ccb5762000ccb62000b8a565b500290565b6000821982111562000ce65762000ce662000b8a565b500190565b60005b8381101562000d0857818101518382015260200162000cee565b8381111562000d18576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835162000d5881601785016020880162000ceb565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835162000d8b81602884016020880162000ceb565b01602801949350505050565b602081526000825180602084015262000db881604085016020870162000ceb565b601f01601f19169190910160400192915050565b60006020828403121562000ddf57600080fd5b81516001600160a01b038116811462000add57600080fd5b60008262000e1557634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60008162000e585762000e5862000b8a565b506000190190565b600181811c9082168062000e7557607f821691505b60208210810362000e9657634e487b7160e01b600052602260045260246000fd5b50919050565b6120cc8062000eac6000396000f3fe608060405234801561001057600080fd5b506004361061022d5760003560e01c80635c975abb1161013b578063a9059cbb116100b8578063c46cb6491161007c578063c46cb6491461049e578063d3f6a157146104b1578063d547741f146104c4578063dd62ed3e146104d7578063f1d5f5171461051057600080fd5b8063a9059cbb14610449578063b2bcf6b31461045c578063b5f1846014610465578063b99878a814610478578063c2e5ec041461048b57600080fd5b806391d14854116100ff57806391d148541461040a5780639452e81a1461041d57806395d89b4114610426578063a217fddf1461042e578063a457c2d71461043657600080fd5b80635c975abb146103b3578063688ba636146103be5780636fcba377146103d157806370a08231146103e457806379cc6790146103f757600080fd5b8063248a9ca3116101c95780633c8463a11161018d5780633c8463a114610372578063425b47a21461037b57806342966c681461038457806345e653ec1461039757806349b8d155146103aa57600080fd5b8063248a9ca3146103075780632f2ff15d1461032a578063313ce5671461033d57806336568abe1461034c578063395093511461035f57600080fd5b806301ffc9a71461023257806302f4606a1461025a578063064a59d01461026f57806306fdde031461027c578063095ea7b3146102915780630aae3412146102a4578063162088af146102cf57806318160ddd146102e257806323b872dd146102f4575b600080fd5b610245610240366004611c33565b610523565b60405190151581526020015b60405180910390f35b61026d610268366004611c87565b61055a565b005b6011546102459060ff1681565b610284610592565b6040516102519190611ce8565b61024561029f366004611d1b565b610624565b600b546102b7906001600160a01b031681565b6040516001600160a01b039091168152602001610251565b61026d6102dd366004611d47565b61063a565b6002545b604051908152602001610251565b610245610302366004611dcb565b61069a565b6102e6610315366004611e0c565b60009081526006602052604090206001015490565b61026d610338366004611e25565b610749565b60405160128152602001610251565b61026d61035a366004611e25565b610774565b61024561036d366004611d1b565b6107f2565b6102e660105481565b6102e6600f5481565b61026d610392366004611e0c565b61082e565b6008546102b7906001600160a01b031681565b6102e6600c5481565b60055460ff16610245565b600a546102b7906001600160a01b031681565b61026d6103df366004611e55565b61083b565b6102e66103f2366004611e87565b6109ed565b61026d610405366004611d1b565b610a08565b610245610418366004611e25565b610a89565b6102e6600d5481565b610284610ab4565b6102e6600081565b610245610444366004611d1b565b610ac3565b610245610457366004611d1b565b610b5c565b6102e6600e5481565b61026d610473366004611ea4565b610b69565b61026d610486366004611ed2565b610c67565b61026d610499366004611ed2565b610c89565b6009546102b7906001600160a01b031681565b61026d6104bf366004611ea4565b610ca9565b61026d6104d2366004611e25565b610d81565b6102e66104e5366004611ea4565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61026d61051e366004611e0c565b610da7565b60006001600160e01b03198216637965db0b60e01b148061055457506301ffc9a760e01b6001600160e01b03198316145b92915050565b60006105668133610fc3565b506001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b6060600380546105a190611eed565b80601f01602080910402602001604051908101604052809291908181526020018280546105cd90611eed565b801561061a5780601f106105ef5761010080835404028352916020019161061a565b820191906000526020600020905b8154815290600101906020018083116105fd57829003601f168201915b5050505050905090565b6000610631338484611027565b50600192915050565b60006106468133610fc3565b60005b838110156106935761068185858381811061066657610666611f27565b905060200201602081019061067b9190611e87565b8461055a565b8061068b81611f53565b915050610649565b5050505050565b60006106a784848461114b565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156107315760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61073e8533858403611027565b506001949350505050565b6000828152600660205260409020600101546107658133610fc3565b61076f838361143a565b505050565b6001600160a01b03811633146107e45760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610728565b6107ee82826114c0565b5050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610631918590610829908690611f6c565b611027565b6108383382611527565b50565b60006108478133610fc3565b6103e88511158015610857575060015b6108a35760405162461bcd60e51b815260206004820152601d60248201527f6665655465616d206d757374206265206c657373207468616e203130250000006044820152606401610728565b6103e884111580156108b3575060015b61090a5760405162461bcd60e51b815260206004820152602260248201527f6665654d61726b6574696e67206d757374206265206c657373207468616e2031604482015261302560f01b6064820152608401610728565b6103e8831115801561091a575060015b6109715760405162461bcd60e51b815260206004820152602260248201527f6665654c6971756964697479206d757374206265206c657373207468616e2031604482015261302560f01b6064820152608401610728565b6103e88211158015610981575060015b6109d85760405162461bcd60e51b815260206004820152602260248201527f66656553616e6473746f726d206d757374206265206c657373207468616e2031604482015261302560f01b6064820152608401610728565b50600c93909355600d91909155600e55600f55565b6001600160a01b031660009081526020819052604090205490565b6000610a1483336104e5565b905081811015610a725760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b6064820152608401610728565b610a7f8333848403611027565b61076f8383611527565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600480546105a190611eed565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610b455760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610728565b610b523385858403611027565b5060019392505050565b600061063133848461114b565b6000610b758133610fc3565b6001600160a01b038316610bcb5760405162461bcd60e51b815260206004820152601a60248201527f496e76616c6964206c697175696469747950726f636573736f720000000000006044820152606401610728565b6001600160a01b038216610c215760405162461bcd60e51b815260206004820152601a60248201527f496e76616c69642073616e6473746f726d50726f636573736f720000000000006044820152606401610728565b600880546001600160a01b038086166001600160a01b0319928316179092556009805492851692909116919091179055610c5c83600161055a565b61076f82600161055a565b6000610c738133610fc3565b8115610c81576107ee611688565b6107ee6116fd565b6000610c958133610fc3565b506011805460ff1916911515919091179055565b6000610cb58133610fc3565b6001600160a01b038316610d015760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081519585b4815d85b1b195d606a1b6044820152606401610728565b6001600160a01b038216610d525760405162461bcd60e51b8152602060048201526018602482015277125b9d985b1a590813585c9ad95d1a5b99c815d85b1b195d60421b6044820152606401610728565b50600a80546001600160a01b039384166001600160a01b031991821617909155600b8054929093169116179055565b600082815260066020526040902060010154610d9d8133610fc3565b61076f83836114c0565b6000610db38133610fc3565b6109c48211158015610dc3575060015b610e1a5760405162461bcd60e51b815260206004820152602260248201527f57616c6c6574206c696d6974206d757374206265206c657373207468616e2032604482015261352560f01b6064820152608401610728565b50601055565b60606000610e2f836002611f84565b610e3a906002611f6c565b67ffffffffffffffff811115610e5257610e52611fa3565b6040519080825280601f01601f191660200182016040528015610e7c576020820181803683370190505b509050600360fc1b81600081518110610e9757610e97611f27565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610ec657610ec6611f27565b60200101906001600160f81b031916908160001a9053506000610eea846002611f84565b610ef5906001611f6c565b90505b6001811115610f6d576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610f2957610f29611f27565b1a60f81b828281518110610f3f57610f3f611f27565b60200101906001600160f81b031916908160001a90535060049490941c93610f6681611fb9565b9050610ef8565b508315610fbc5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610728565b9392505050565b610fcd8282610a89565b6107ee57610fe5816001600160a01b03166014610e20565b610ff0836020610e20565b604051602001611001929190611fd0565b60408051601f198184030181529082905262461bcd60e51b825261072891600401611ce8565b6001600160a01b0383166110895760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610728565b6001600160a01b0382166110ea5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610728565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600860009054906101000a90046001600160a01b03166001600160a01b031663c816841b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561119e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c2919061203f565b6001600160a01b0316826001600160a01b03161480156111ea5750601154610100900460ff16155b156112d0576011805461ff00191661010017905560085460408051630ab9046560e11b815290516001600160a01b039092169163157208ca9160048082019260009290919082900301818387803b15801561124457600080fd5b505af1158015611258573d6000803e3d6000fd5b50505050600960009054906101000a90046001600160a01b03166001600160a01b031663157208ca6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156112ac57600080fd5b505af11580156112c0573d6000803e3d6000fd5b50506011805461ff001916905550505b6001600160a01b03831660009081526007602052604090205460ff168061130f57506001600160a01b03821660009081526007602052604090205460ff165b1561131f5761076f838383611777565b6000612710600c54836113329190611f84565b61133c919061205c565b90506000612710600d54846113519190611f84565b61135b919061205c565b90506000612710600e54856113709190611f84565b61137a919061205c565b90506000612710600f548661138f9190611f84565b611399919061205c565b600a549091506113b49088906001600160a01b031686611777565b600b546113cc9088906001600160a01b031685611777565b6008546113e49088906001600160a01b031684611777565b6009546113fc9088906001600160a01b031683611777565b611431878783858761140e8a8c61207e565b611418919061207e565b611422919061207e565b61142c919061207e565b611777565b50505050505050565b6114448282610a89565b6107ee5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561147c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6114ca8282610a89565b156107ee5760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b0382166115875760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610728565b6115938260008361195c565b6001600160a01b038216600090815260208190526040902054818110156116075760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610728565b6001600160a01b038316600090815260208190526040812083830390556002805484929061163690849061207e565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361076f83600084611aeb565b60055460ff16156116ab5760405162461bcd60e51b815260040161072890612095565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586116e03390565b6040516001600160a01b03909116815260200160405180910390a1565b60055460ff166117465760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610728565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336116e0565b6001600160a01b0383166117db5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610728565b6001600160a01b03821661183d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610728565b61184883838361195c565b6001600160a01b038316600090815260208190526040902054818110156118c05760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610728565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906118f7908490611f6c565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161194391815260200190565b60405180910390a3611956848484611aeb565b50505050565b60055460ff161561197f5760405162461bcd60e51b815260040161072890612095565b60115460ff1661076f57600860009054906101000a90046001600160a01b03166001600160a01b031663c816841b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156119dc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a00919061203f565b6001600160a01b0316826001600160a01b031614158015611aa95750600860009054906101000a90046001600160a01b03166001600160a01b031663c816841b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a93919061203f565b6001600160a01b0316836001600160a01b031614155b61076f5760405162461bcd60e51b8152602060048201526013602482015272151c98591a5b99c81a5cc8191a5cd8589b1959606a1b6044820152606401610728565b6001600160a01b03831660009081526007602052604090205460ff16158015611b2d57506001600160a01b03821660009081526007602052604090205460ff16155b8015611b3a575060105415155b1561076f57612710601054611b4e60025490565b611b589190611f84565b611b62919061205c565b611b6b846109ed565b1115611bb95760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722077616c6c6574206c696d6974207265616368656400000000006044820152606401610728565b612710601054611bc860025490565b611bd29190611f84565b611bdc919061205c565b611be5836109ed565b111561076f5760405162461bcd60e51b815260206004820152601d60248201527f52656365697665722077616c6c6574206c696d697420726561636865640000006044820152606401610728565b600060208284031215611c4557600080fd5b81356001600160e01b031981168114610fbc57600080fd5b6001600160a01b038116811461083857600080fd5b80358015158114611c8257600080fd5b919050565b60008060408385031215611c9a57600080fd5b8235611ca581611c5d565b9150611cb360208401611c72565b90509250929050565b60005b83811015611cd7578181015183820152602001611cbf565b838111156119565750506000910152565b6020815260008251806020840152611d07816040850160208701611cbc565b601f01601f19169190910160400192915050565b60008060408385031215611d2e57600080fd5b8235611d3981611c5d565b946020939093013593505050565b600080600060408486031215611d5c57600080fd5b833567ffffffffffffffff80821115611d7457600080fd5b818601915086601f830112611d8857600080fd5b813581811115611d9757600080fd5b8760208260051b8501011115611dac57600080fd5b602092830195509350611dc29186019050611c72565b90509250925092565b600080600060608486031215611de057600080fd5b8335611deb81611c5d565b92506020840135611dfb81611c5d565b929592945050506040919091013590565b600060208284031215611e1e57600080fd5b5035919050565b60008060408385031215611e3857600080fd5b823591506020830135611e4a81611c5d565b809150509250929050565b60008060008060808587031215611e6b57600080fd5b5050823594602084013594506040840135936060013592509050565b600060208284031215611e9957600080fd5b8135610fbc81611c5d565b60008060408385031215611eb757600080fd5b8235611ec281611c5d565b91506020830135611e4a81611c5d565b600060208284031215611ee457600080fd5b610fbc82611c72565b600181811c90821680611f0157607f821691505b602082108103611f2157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611f6557611f65611f3d565b5060010190565b60008219821115611f7f57611f7f611f3d565b500190565b6000816000190483118215151615611f9e57611f9e611f3d565b500290565b634e487b7160e01b600052604160045260246000fd5b600081611fc857611fc8611f3d565b506000190190565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260008351612002816017850160208801611cbc565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612033816028840160208801611cbc565b01602801949350505050565b60006020828403121561205157600080fd5b8151610fbc81611c5d565b60008261207957634e487b7160e01b600052601260045260246000fd5b500490565b60008282101561209057612090611f3d565b500390565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b60408201526060019056fea164736f6c634300080d000a

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061022d5760003560e01c80635c975abb1161013b578063a9059cbb116100b8578063c46cb6491161007c578063c46cb6491461049e578063d3f6a157146104b1578063d547741f146104c4578063dd62ed3e146104d7578063f1d5f5171461051057600080fd5b8063a9059cbb14610449578063b2bcf6b31461045c578063b5f1846014610465578063b99878a814610478578063c2e5ec041461048b57600080fd5b806391d14854116100ff57806391d148541461040a5780639452e81a1461041d57806395d89b4114610426578063a217fddf1461042e578063a457c2d71461043657600080fd5b80635c975abb146103b3578063688ba636146103be5780636fcba377146103d157806370a08231146103e457806379cc6790146103f757600080fd5b8063248a9ca3116101c95780633c8463a11161018d5780633c8463a114610372578063425b47a21461037b57806342966c681461038457806345e653ec1461039757806349b8d155146103aa57600080fd5b8063248a9ca3146103075780632f2ff15d1461032a578063313ce5671461033d57806336568abe1461034c578063395093511461035f57600080fd5b806301ffc9a71461023257806302f4606a1461025a578063064a59d01461026f57806306fdde031461027c578063095ea7b3146102915780630aae3412146102a4578063162088af146102cf57806318160ddd146102e257806323b872dd146102f4575b600080fd5b610245610240366004611c33565b610523565b60405190151581526020015b60405180910390f35b61026d610268366004611c87565b61055a565b005b6011546102459060ff1681565b610284610592565b6040516102519190611ce8565b61024561029f366004611d1b565b610624565b600b546102b7906001600160a01b031681565b6040516001600160a01b039091168152602001610251565b61026d6102dd366004611d47565b61063a565b6002545b604051908152602001610251565b610245610302366004611dcb565b61069a565b6102e6610315366004611e0c565b60009081526006602052604090206001015490565b61026d610338366004611e25565b610749565b60405160128152602001610251565b61026d61035a366004611e25565b610774565b61024561036d366004611d1b565b6107f2565b6102e660105481565b6102e6600f5481565b61026d610392366004611e0c565b61082e565b6008546102b7906001600160a01b031681565b6102e6600c5481565b60055460ff16610245565b600a546102b7906001600160a01b031681565b61026d6103df366004611e55565b61083b565b6102e66103f2366004611e87565b6109ed565b61026d610405366004611d1b565b610a08565b610245610418366004611e25565b610a89565b6102e6600d5481565b610284610ab4565b6102e6600081565b610245610444366004611d1b565b610ac3565b610245610457366004611d1b565b610b5c565b6102e6600e5481565b61026d610473366004611ea4565b610b69565b61026d610486366004611ed2565b610c67565b61026d610499366004611ed2565b610c89565b6009546102b7906001600160a01b031681565b61026d6104bf366004611ea4565b610ca9565b61026d6104d2366004611e25565b610d81565b6102e66104e5366004611ea4565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61026d61051e366004611e0c565b610da7565b60006001600160e01b03198216637965db0b60e01b148061055457506301ffc9a760e01b6001600160e01b03198316145b92915050565b60006105668133610fc3565b506001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b6060600380546105a190611eed565b80601f01602080910402602001604051908101604052809291908181526020018280546105cd90611eed565b801561061a5780601f106105ef5761010080835404028352916020019161061a565b820191906000526020600020905b8154815290600101906020018083116105fd57829003601f168201915b5050505050905090565b6000610631338484611027565b50600192915050565b60006106468133610fc3565b60005b838110156106935761068185858381811061066657610666611f27565b905060200201602081019061067b9190611e87565b8461055a565b8061068b81611f53565b915050610649565b5050505050565b60006106a784848461114b565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156107315760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61073e8533858403611027565b506001949350505050565b6000828152600660205260409020600101546107658133610fc3565b61076f838361143a565b505050565b6001600160a01b03811633146107e45760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610728565b6107ee82826114c0565b5050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610631918590610829908690611f6c565b611027565b6108383382611527565b50565b60006108478133610fc3565b6103e88511158015610857575060015b6108a35760405162461bcd60e51b815260206004820152601d60248201527f6665655465616d206d757374206265206c657373207468616e203130250000006044820152606401610728565b6103e884111580156108b3575060015b61090a5760405162461bcd60e51b815260206004820152602260248201527f6665654d61726b6574696e67206d757374206265206c657373207468616e2031604482015261302560f01b6064820152608401610728565b6103e8831115801561091a575060015b6109715760405162461bcd60e51b815260206004820152602260248201527f6665654c6971756964697479206d757374206265206c657373207468616e2031604482015261302560f01b6064820152608401610728565b6103e88211158015610981575060015b6109d85760405162461bcd60e51b815260206004820152602260248201527f66656553616e6473746f726d206d757374206265206c657373207468616e2031604482015261302560f01b6064820152608401610728565b50600c93909355600d91909155600e55600f55565b6001600160a01b031660009081526020819052604090205490565b6000610a1483336104e5565b905081811015610a725760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b6064820152608401610728565b610a7f8333848403611027565b61076f8383611527565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600480546105a190611eed565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610b455760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610728565b610b523385858403611027565b5060019392505050565b600061063133848461114b565b6000610b758133610fc3565b6001600160a01b038316610bcb5760405162461bcd60e51b815260206004820152601a60248201527f496e76616c6964206c697175696469747950726f636573736f720000000000006044820152606401610728565b6001600160a01b038216610c215760405162461bcd60e51b815260206004820152601a60248201527f496e76616c69642073616e6473746f726d50726f636573736f720000000000006044820152606401610728565b600880546001600160a01b038086166001600160a01b0319928316179092556009805492851692909116919091179055610c5c83600161055a565b61076f82600161055a565b6000610c738133610fc3565b8115610c81576107ee611688565b6107ee6116fd565b6000610c958133610fc3565b506011805460ff1916911515919091179055565b6000610cb58133610fc3565b6001600160a01b038316610d015760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081519585b4815d85b1b195d606a1b6044820152606401610728565b6001600160a01b038216610d525760405162461bcd60e51b8152602060048201526018602482015277125b9d985b1a590813585c9ad95d1a5b99c815d85b1b195d60421b6044820152606401610728565b50600a80546001600160a01b039384166001600160a01b031991821617909155600b8054929093169116179055565b600082815260066020526040902060010154610d9d8133610fc3565b61076f83836114c0565b6000610db38133610fc3565b6109c48211158015610dc3575060015b610e1a5760405162461bcd60e51b815260206004820152602260248201527f57616c6c6574206c696d6974206d757374206265206c657373207468616e2032604482015261352560f01b6064820152608401610728565b50601055565b60606000610e2f836002611f84565b610e3a906002611f6c565b67ffffffffffffffff811115610e5257610e52611fa3565b6040519080825280601f01601f191660200182016040528015610e7c576020820181803683370190505b509050600360fc1b81600081518110610e9757610e97611f27565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610ec657610ec6611f27565b60200101906001600160f81b031916908160001a9053506000610eea846002611f84565b610ef5906001611f6c565b90505b6001811115610f6d576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610f2957610f29611f27565b1a60f81b828281518110610f3f57610f3f611f27565b60200101906001600160f81b031916908160001a90535060049490941c93610f6681611fb9565b9050610ef8565b508315610fbc5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610728565b9392505050565b610fcd8282610a89565b6107ee57610fe5816001600160a01b03166014610e20565b610ff0836020610e20565b604051602001611001929190611fd0565b60408051601f198184030181529082905262461bcd60e51b825261072891600401611ce8565b6001600160a01b0383166110895760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610728565b6001600160a01b0382166110ea5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610728565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600860009054906101000a90046001600160a01b03166001600160a01b031663c816841b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561119e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c2919061203f565b6001600160a01b0316826001600160a01b03161480156111ea5750601154610100900460ff16155b156112d0576011805461ff00191661010017905560085460408051630ab9046560e11b815290516001600160a01b039092169163157208ca9160048082019260009290919082900301818387803b15801561124457600080fd5b505af1158015611258573d6000803e3d6000fd5b50505050600960009054906101000a90046001600160a01b03166001600160a01b031663157208ca6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156112ac57600080fd5b505af11580156112c0573d6000803e3d6000fd5b50506011805461ff001916905550505b6001600160a01b03831660009081526007602052604090205460ff168061130f57506001600160a01b03821660009081526007602052604090205460ff165b1561131f5761076f838383611777565b6000612710600c54836113329190611f84565b61133c919061205c565b90506000612710600d54846113519190611f84565b61135b919061205c565b90506000612710600e54856113709190611f84565b61137a919061205c565b90506000612710600f548661138f9190611f84565b611399919061205c565b600a549091506113b49088906001600160a01b031686611777565b600b546113cc9088906001600160a01b031685611777565b6008546113e49088906001600160a01b031684611777565b6009546113fc9088906001600160a01b031683611777565b611431878783858761140e8a8c61207e565b611418919061207e565b611422919061207e565b61142c919061207e565b611777565b50505050505050565b6114448282610a89565b6107ee5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561147c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6114ca8282610a89565b156107ee5760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b0382166115875760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610728565b6115938260008361195c565b6001600160a01b038216600090815260208190526040902054818110156116075760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610728565b6001600160a01b038316600090815260208190526040812083830390556002805484929061163690849061207e565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361076f83600084611aeb565b60055460ff16156116ab5760405162461bcd60e51b815260040161072890612095565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586116e03390565b6040516001600160a01b03909116815260200160405180910390a1565b60055460ff166117465760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610728565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336116e0565b6001600160a01b0383166117db5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610728565b6001600160a01b03821661183d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610728565b61184883838361195c565b6001600160a01b038316600090815260208190526040902054818110156118c05760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610728565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906118f7908490611f6c565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161194391815260200190565b60405180910390a3611956848484611aeb565b50505050565b60055460ff161561197f5760405162461bcd60e51b815260040161072890612095565b60115460ff1661076f57600860009054906101000a90046001600160a01b03166001600160a01b031663c816841b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156119dc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a00919061203f565b6001600160a01b0316826001600160a01b031614158015611aa95750600860009054906101000a90046001600160a01b03166001600160a01b031663c816841b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a93919061203f565b6001600160a01b0316836001600160a01b031614155b61076f5760405162461bcd60e51b8152602060048201526013602482015272151c98591a5b99c81a5cc8191a5cd8589b1959606a1b6044820152606401610728565b6001600160a01b03831660009081526007602052604090205460ff16158015611b2d57506001600160a01b03821660009081526007602052604090205460ff16155b8015611b3a575060105415155b1561076f57612710601054611b4e60025490565b611b589190611f84565b611b62919061205c565b611b6b846109ed565b1115611bb95760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722077616c6c6574206c696d6974207265616368656400000000006044820152606401610728565b612710601054611bc860025490565b611bd29190611f84565b611bdc919061205c565b611be5836109ed565b111561076f5760405162461bcd60e51b815260206004820152601d60248201527f52656365697665722077616c6c6574206c696d697420726561636865640000006044820152606401610728565b600060208284031215611c4557600080fd5b81356001600160e01b031981168114610fbc57600080fd5b6001600160a01b038116811461083857600080fd5b80358015158114611c8257600080fd5b919050565b60008060408385031215611c9a57600080fd5b8235611ca581611c5d565b9150611cb360208401611c72565b90509250929050565b60005b83811015611cd7578181015183820152602001611cbf565b838111156119565750506000910152565b6020815260008251806020840152611d07816040850160208701611cbc565b601f01601f19169190910160400192915050565b60008060408385031215611d2e57600080fd5b8235611d3981611c5d565b946020939093013593505050565b600080600060408486031215611d5c57600080fd5b833567ffffffffffffffff80821115611d7457600080fd5b818601915086601f830112611d8857600080fd5b813581811115611d9757600080fd5b8760208260051b8501011115611dac57600080fd5b602092830195509350611dc29186019050611c72565b90509250925092565b600080600060608486031215611de057600080fd5b8335611deb81611c5d565b92506020840135611dfb81611c5d565b929592945050506040919091013590565b600060208284031215611e1e57600080fd5b5035919050565b60008060408385031215611e3857600080fd5b823591506020830135611e4a81611c5d565b809150509250929050565b60008060008060808587031215611e6b57600080fd5b5050823594602084013594506040840135936060013592509050565b600060208284031215611e9957600080fd5b8135610fbc81611c5d565b60008060408385031215611eb757600080fd5b8235611ec281611c5d565b91506020830135611e4a81611c5d565b600060208284031215611ee457600080fd5b610fbc82611c72565b600181811c90821680611f0157607f821691505b602082108103611f2157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611f6557611f65611f3d565b5060010190565b60008219821115611f7f57611f7f611f3d565b500190565b6000816000190483118215151615611f9e57611f9e611f3d565b500290565b634e487b7160e01b600052604160045260246000fd5b600081611fc857611fc8611f3d565b506000190190565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260008351612002816017850160208801611cbc565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612033816028840160208801611cbc565b01602801949350505050565b60006020828403121561205157600080fd5b8151610fbc81611c5d565b60008261207957634e487b7160e01b600052601260045260246000fd5b500490565b60008282101561209057612090611f3d565b500390565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b60408201526060019056fea164736f6c634300080d000a

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.