ETH Price: $3,513.41 (-2.23%)
Gas: 6 Gwei

Contract

0xd226B32b1099503EE8Cf8888E5706f70314F48cB
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Refund175075832023-06-18 15:34:23365 days ago1687102463IN
0xd226B32b...0314F48cB
0 ETH0.0007517219.32702134
Refund174320522023-06-08 0:30:11375 days ago1686184211IN
0xd226B32b...0314F48cB
0 ETH0.000869622.35770885
Refund174310312023-06-07 21:02:59376 days ago1686171779IN
0xd226B32b...0314F48cB
0 ETH0.0009272223.83924219
Refund174216752023-06-06 13:22:59377 days ago1686057779IN
0xd226B32b...0314F48cB
0 ETH0.0013226734.00630721
Refund174216722023-06-06 13:22:23377 days ago1686057743IN
0xd226B32b...0314F48cB
0 ETH0.0014003136.00234923
Refund174202762023-06-06 8:37:35377 days ago1686040655IN
0xd226B32b...0314F48cB
0 ETH0.000880622.64058468
Refund174202002023-06-06 8:22:11377 days ago1686039731IN
0xd226B32b...0314F48cB
0 ETH0.0008762822.52959209
Refund174189762023-06-06 4:14:35377 days ago1686024875IN
0xd226B32b...0314F48cB
0 ETH0.000817821.02607251
Refund174187562023-06-06 3:30:11377 days ago1686022211IN
0xd226B32b...0314F48cB
0 ETH0.0008757422.5154975
Refund174175932023-06-05 23:34:47377 days ago1686008087IN
0xd226B32b...0314F48cB
0 ETH0.0008378421.5412372
Refund174173332023-06-05 22:42:11377 days ago1686004931IN
0xd226B32b...0314F48cB
0 ETH0.0010100125.96774547
Refund174170992023-06-05 21:53:23377 days ago1686002003IN
0xd226B32b...0314F48cB
0 ETH0.0010551127.1271888
Refund174168962023-06-05 21:12:11377 days ago1685999531IN
0xd226B32b...0314F48cB
0 ETH0.0010603327.2613953
Refund174168682023-06-05 21:06:35378 days ago1685999195IN
0xd226B32b...0314F48cB
0 ETH0.0013565834.87815431
Refund174168682023-06-05 21:06:35378 days ago1685999195IN
0xd226B32b...0314F48cB
0 ETH0.0013565834.87815431
Refund174168332023-06-05 20:59:23378 days ago1685998763IN
0xd226B32b...0314F48cB
0 ETH0.0012252531.50165546
Refund174164222023-06-05 19:35:23378 days ago1685993723IN
0xd226B32b...0314F48cB
0 ETH0.0015669840.28760199
Refund174164152023-06-05 19:33:59378 days ago1685993639IN
0xd226B32b...0314F48cB
0 ETH0.0015964841.0461219
Refund174163692023-06-05 19:24:47378 days ago1685993087IN
0xd226B32b...0314F48cB
0 ETH0.0017092343.94483051
Refund174161732023-06-05 18:45:23378 days ago1685990723IN
0xd226B32b...0314F48cB
0 ETH0.0017300944.48110869
Refund174161712023-06-05 18:44:59378 days ago1685990699IN
0xd226B32b...0314F48cB
0 ETH0.0017919846.07228469
Refund174160922023-06-05 18:29:11378 days ago1685989751IN
0xd226B32b...0314F48cB
0 ETH0.0017965446.18949613
Refund174158872023-06-05 17:47:35378 days ago1685987255IN
0xd226B32b...0314F48cB
0 ETH0.0018469647.48588188
Refund174158682023-06-05 17:43:47378 days ago1685987027IN
0xd226B32b...0314F48cB
0 ETH0.0019132649.19049296
Refund174158142023-06-05 17:32:59378 days ago1685986379IN
0xd226B32b...0314F48cB
0 ETH0.0020687353.18778134
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
175075832023-06-18 15:34:23365 days ago1687102463
0xd226B32b...0314F48cB
0.1 ETH
174320522023-06-08 0:30:11375 days ago1686184211
0xd226B32b...0314F48cB
0.25 ETH
174310312023-06-07 21:02:59376 days ago1686171779
0xd226B32b...0314F48cB
0.05 ETH
174216752023-06-06 13:22:59377 days ago1686057779
0xd226B32b...0314F48cB
1 ETH
174216722023-06-06 13:22:23377 days ago1686057743
0xd226B32b...0314F48cB
0.05 ETH
174202762023-06-06 8:37:35377 days ago1686040655
0xd226B32b...0314F48cB
0.05 ETH
174202002023-06-06 8:22:11377 days ago1686039731
0xd226B32b...0314F48cB
0.2 ETH
174189762023-06-06 4:14:35377 days ago1686024875
0xd226B32b...0314F48cB
0.089 ETH
174187562023-06-06 3:30:11377 days ago1686022211
0xd226B32b...0314F48cB
0.05 ETH
174175932023-06-05 23:34:47377 days ago1686008087
0xd226B32b...0314F48cB
0.05 ETH
174173332023-06-05 22:42:11377 days ago1686004931
0xd226B32b...0314F48cB
0.1 ETH
174170992023-06-05 21:53:23377 days ago1686002003
0xd226B32b...0314F48cB
0.05 ETH
174168962023-06-05 21:12:11377 days ago1685999531
0xd226B32b...0314F48cB
0.11 ETH
174168682023-06-05 21:06:35378 days ago1685999195
0xd226B32b...0314F48cB
0.05 ETH
174168682023-06-05 21:06:35378 days ago1685999195
0xd226B32b...0314F48cB
0.1 ETH
174168332023-06-05 20:59:23378 days ago1685998763
0xd226B32b...0314F48cB
0.1 ETH
174164222023-06-05 19:35:23378 days ago1685993723
0xd226B32b...0314F48cB
0.15 ETH
174164152023-06-05 19:33:59378 days ago1685993639
0xd226B32b...0314F48cB
0.05 ETH
174163692023-06-05 19:24:47378 days ago1685993087
0xd226B32b...0314F48cB
0.1 ETH
174161732023-06-05 18:45:23378 days ago1685990723
0xd226B32b...0314F48cB
0.08 ETH
174161712023-06-05 18:44:59378 days ago1685990699
0xd226B32b...0314F48cB
0.25 ETH
174160922023-06-05 18:29:11378 days ago1685989751
0xd226B32b...0314F48cB
0.05 ETH
174158872023-06-05 17:47:35378 days ago1685987255
0xd226B32b...0314F48cB
0.1 ETH
174158682023-06-05 17:43:47378 days ago1685987027
0xd226B32b...0314F48cB
0.35 ETH
174158142023-06-05 17:32:59378 days ago1685986379
0xd226B32b...0314F48cB
0.1 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ShlongPresale

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 1000 runs

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

/**                    
 _____ _____ __    _____ _____ _____ 
|   __|  |  |  |  |     |   | |   __|
|__   |     |  |__|  |  | | | |  |  |
|_____|__|__|_____|_____|_|___|_____|
                                     
Website: https://www.shlongcoin.xyz/
Twitter: https://twitter.com/ShlongCoinErc
Telegram: https://t.me/SHLONGCOINETH
**/
pragma solidity ^0.8.16;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

interface IERC20 {
    function totalSupply() external view returns (uint256);
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint256);
    function approve(address spender, uint256 amount) external returns (bool);
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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

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

contract ShlongPresale is Ownable {
    using SafeMath for uint256;
    bytes32 public merkleRoot;

    bool public isInit;
    bool public isDeposit;
    bool public isRefund;
    bool public isFinish;
    bool public burnTokens = true;
    address public creatorWallet;
    address public teamWallet;
    address public weth;
    uint8 public tokenDecimals = 18;
    uint256 public ethRaised;
    uint256 public percentageRaised;
    uint256 public tokensSold;
    uint256 public claimRound = 0;

    enum SaleStates {
        CLOSED,
        WHITELIST,
        PUBLIC,
        COMPLETE
    }
    SaleStates public saleState;

    struct Pool {
        uint64 startTime;
        uint64 endTime;
        uint256 tokenDeposit;
        uint256 tokensForSale;
        uint256 tokensForLiquidity;
        uint8 liquidityPortion;
        uint256 hardCap;
        uint256 softCap;
        uint256 maxBuy;
        uint256 minBuy;
    }

    IERC20 public tokenInstance;
    IUniswapV2Factory public UniswapV2Factory;
    IUniswapV2Router02 public UniswapV2Router02;
    Pool public pool;

    mapping(address => uint256) public ethContribution;

    struct UserClaims { 
        bool claimedRoundOne;
        bool claimedRoundTwo;
        bool claimedRoundThree;
    }
    mapping(address => UserClaims) public claims;

    /// @notice Verifies the sender is whitelisted
    modifier whitelisted(bytes32[] calldata merkleProof) {
        require(MerkleProof.verify(merkleProof, merkleRoot, _toBytes32(msg.sender)), "User is not whitelisted");
        _;
    }

    modifier onlyActive {
        require(block.timestamp >= pool.startTime, "Sale must be active.");
        require(block.timestamp <= pool.endTime, "Sale finished.");
        _;
    }

    modifier onlyInactive {
        require(
            block.timestamp < pool.startTime ||
            block.timestamp > pool.endTime ||
            ethRaised >= pool.hardCap, "Sale must be inactive."
            );
        _;
    }

    modifier onlyRefund {
        require(
            isRefund == true ||
            (block.timestamp > pool.endTime && ethRaised < pool.softCap), "Refund unavailable."
            );
        _;
    }

    constructor(
        IERC20 _tokenInstance,
        address _uniswapv2Router,
        address _uniswapv2Factory,
        address _teamWallet,
        address _weth
    ) {

        require(_uniswapv2Router != address(0), "Invalid router address");
        require(_uniswapv2Factory != address(0), "Invalid factory address");

        isInit = false;
        isDeposit = false;
        isFinish = false;
        isRefund = false;
        ethRaised = 0;

        teamWallet = _teamWallet;
        weth = _weth;
        tokenInstance = _tokenInstance;
        creatorWallet = address(payable(msg.sender));
        UniswapV2Router02 = IUniswapV2Router02(_uniswapv2Router);
        UniswapV2Factory = IUniswapV2Factory(_uniswapv2Factory);

        require(UniswapV2Factory.getPair(address(tokenInstance), weth) == address(0), "IUniswap: Pool exists.");

        tokenInstance.approve(_uniswapv2Router, tokenInstance.totalSupply());
    }

    event Liquified(
        address indexed _token,
        address indexed _router,
        address indexed _pair
        );

    event Canceled(
        address indexed _inititator,
        address indexed _token,
        address indexed _presale
        );

    event Bought(address indexed _buyer, uint256 _tokenAmount);

    event Refunded(address indexed _refunder, uint256 _tokenAmount);

    event Deposited(address indexed _initiator, uint256 _totalDeposit);

    event Claimed(address indexed _participent, uint256 _tokenAmount, uint256 _claimPercentage);

    event RefundedRemainder(address indexed _initiator, uint256 _amount);

    event BurntRemainder(address indexed _initiator, uint256 _amount);

    event Withdraw(address indexed _creator, uint256 _amount);

    event SaleStateChanged(SaleStates _saleState);

    event ClaimRoundChanged(uint256 _claimRound);

    /*
    * Reverts ethers sent to this address whenever requirements are not met
    */
    receive() external payable {
        if(block.timestamp >= pool.startTime && block.timestamp <= pool.endTime){
            buyTokens(_msgSender());
        } else {
            revert("Presale is closed");
        }
    }

    /*
    * Initiates the arguments of the sale
    @dev arguments must be pa   ssed in wei (amount*10**18)
    */
    function initSale(
        uint64 _startTime,
        uint64 _endTime,
        uint256 _tokenDeposit,
        uint256 _tokensForSale,
        uint256 _tokensForLiquidity,
        uint8 _liquidityPortion,
        uint256 _hardCap,
        uint256 _softCap,
        uint256 _maxBuy,
        uint256 _minBuy
        ) external onlyOwner onlyInactive {

        require(isInit == false, "Sale already initialized");
        require(_startTime >= block.timestamp, "Invalid start time.");
        require(_endTime > block.timestamp, "Invalid end time.");
        require(_tokenDeposit > 0, "Invalid token deposit.");
        require(_tokensForSale < _tokenDeposit, "Invalid tokens for sale.");
        require(_tokensForLiquidity < _tokenDeposit, "Invalid tokens for liquidity.");
        require(_softCap >= _hardCap / 2, "SC must be >= HC/2.");
        require(_liquidityPortion >= 50, "Liquidity must be >=50.");
        require(_liquidityPortion <= 100, "Invalid liquidity.");
        require(_minBuy < _maxBuy, "Min buy must greater than max.");
        require(_minBuy > 0, "Min buy must exceed 0.");

        Pool memory newPool = Pool(
            _startTime,
            _endTime,
            _tokenDeposit,
            _tokensForSale,
            _tokensForLiquidity,
            _liquidityPortion,
            _hardCap,
            _softCap,
            _maxBuy,
            _minBuy
        );

        pool = newPool;

        isInit = true;
        saleState = SaleStates.WHITELIST;
    }

    /*
    * Once called the owner deposits tokens into pool
    */
    function deposit() external onlyOwner {
        require(!isDeposit, "Tokens already deposited.");
        require(isInit, "Not initialized yet.");

        uint256 totalDeposit = _getTokenDeposit();

        isDeposit = true;

        require(tokenInstance.transferFrom(msg.sender, address(this), totalDeposit), "Deposit failed.");

        emit Deposited(msg.sender, totalDeposit);
    }

    /*
    * Finish the sale - Create Uniswap v2 pair, add liquidity, take fees, withrdawal funds, burn/refund unused tokens
    */
    function finishSale() external onlyOwner onlyInactive{
        require(ethRaised >= pool.softCap, "Soft Cap is not met.");
        require(block.timestamp > pool.startTime, "Can not finish before start");
        require(!isFinish, "Sale already launched.");
        require(!isRefund, "Refund process.");

        percentageRaised = _getPercentageFromValue(ethRaised, pool.hardCap);
        tokensSold = _getValueFromPercentage(percentageRaised, pool.tokensForSale);
        uint256 tokensForLiquidity = _getValueFromPercentage(percentageRaised, pool.tokensForLiquidity);
        isFinish = true;

        //add liquidity
        (uint amountToken, uint amountETH, ) = UniswapV2Router02.addLiquidityETH{value : _getLiquidityEth()}(
            address(tokenInstance),
            tokensForLiquidity,
            tokensForLiquidity,
            _getLiquidityEth(),
            owner(),
            block.timestamp + 600
        );

        require(amountToken == tokensForLiquidity && amountETH == _getLiquidityEth(), "Providing liquidity failed.");

        emit Liquified(
            address(tokenInstance),
            address(UniswapV2Router02),
            UniswapV2Factory.getPair(address(tokenInstance), weth)
        );

        //withrawal eth
        uint256 ownerShareEth = _getOwnerEth();

        if (ownerShareEth > 0) {
            payable(creatorWallet).transfer(ownerShareEth);
        }

        //If HC is not reached, burn or refund the remainder
        if (ethRaised < pool.hardCap) {
            uint256 remainder = _getUserTokens(pool.hardCap - ethRaised) + (pool.tokensForLiquidity - tokensForLiquidity);
            if(burnTokens == true){
                require(tokenInstance.transfer(
                    0x000000000000000000000000000000000000dEaD,
                    remainder), "Unable to burn."
                );
                emit BurntRemainder(msg.sender, remainder);
            } else {
                require(tokenInstance.transfer(creatorWallet, remainder), "Refund failed.");
                emit RefundedRemainder(msg.sender, remainder);
            }
        }

        saleState = SaleStates.COMPLETE;
    }

    /*
    * The owner can decide to close the sale if it is still active
    NOTE: Creator may call this function even if the Hard Cap is reached, to prevent it use:
     require(ethRaised < pool.hardCap)
    */
    function cancelSale() external onlyOwner onlyActive {
        require(!isFinish, "Sale finished.");
        pool.endTime = 0;
        isRefund = true;
        saleState = SaleStates.COMPLETE;

        if (tokenInstance.balanceOf(address(this)) > 0) {
            uint256 tokenDeposit = _getTokenDeposit();
            tokenInstance.transfer(msg.sender, tokenDeposit);
            emit Withdraw(msg.sender, tokenDeposit);
        }
        emit Canceled(msg.sender, address(tokenInstance), address(this));
    }

    /*
    * Allows participents to claim the tokens they purchased
    */
    function claimTokens() external onlyInactive {
        require(isFinish, "Sale is still active.");
        require(!isRefund, "Refund process.");
        require(claimRound > 0, "Claiming is not open.");
        require(claimRound < 4, "Claiming has finished.");

        uint256 claimPercentage = _getClaimPercentage(msg.sender);
        uint256 tokensAmount = _getValueFromPercentage(claimPercentage, _getUserTokens(ethContribution[msg.sender]));
        
        if (claimRound == 1){ 
            claims[msg.sender].claimedRoundOne = true;
        } else if (claimRound == 2){
            claims[msg.sender].claimedRoundOne = true;
            claims[msg.sender].claimedRoundTwo = true;
        } else if (claimRound == 3){
            claims[msg.sender].claimedRoundOne = true;
            claims[msg.sender].claimedRoundTwo = true;
            claims[msg.sender].claimedRoundThree = true;
            ethContribution[msg.sender] = 0;
        }

        require(tokenInstance.transfer(msg.sender, tokensAmount), "Claim failed.");
        emit Claimed(msg.sender, tokensAmount, claimPercentage);
    }
    /*
    * Refunds the Eth to participents
    */
    function refund() external onlyInactive onlyRefund {
        uint256 refundAmount = ethContribution[msg.sender];

        require(refundAmount > 0, "No refund amount");
        require(address(this).balance >= refundAmount, "No amount available");

        ethContribution[msg.sender] = 0;
        address payable refunder = payable(msg.sender);
        refunder.transfer(refundAmount);
        emit Refunded(refunder, refundAmount);
    }

    /*
    * Withdrawal tokens on refund
    */
    function withrawTokens() external onlyOwner onlyInactive onlyRefund {
        if (tokenInstance.balanceOf(address(this)) > 0) {
            uint256 tokenDeposit = _getTokenDeposit();
            require(tokenInstance.transfer(msg.sender, tokenDeposit), "Withdraw failed.");
            emit Withdraw(msg.sender, tokenDeposit);
        }
    }

    /*
    * If requirements are passed, updates user"s token balance based on their eth contribution
    */
    function buyTokensWhitelist(bytes32[] calldata merkleProof) public payable onlyActive checkState(SaleStates.WHITELIST) whitelisted(merkleProof) {
        require(isDeposit, "Tokens not deposited.");
        require(msg.value != 0, "Wei Amount is 0");
        require(msg.value >= pool.minBuy, "Min buy is not met.");
        require(msg.value + ethContribution[msg.sender] <= pool.maxBuy, "Max buy limit exceeded.");
        require(ethRaised + msg.value <= pool.hardCap, "HC Reached.");
        ethRaised += msg.value;
        ethContribution[msg.sender] += msg.value;
    }

        /*
    * If requirements are passed, updates user"s token balance based on their eth contribution
    */
    function buyTokens(address _contributor) public payable onlyActive checkState(SaleStates.PUBLIC) {
        require(isDeposit, "Tokens not deposited.");
        require(_contributor != address(0), "Transfer to 0 address.");
        require(msg.value != 0, "Wei Amount is 0");
        require(msg.value >= pool.minBuy, "Min buy is not met.");
        require(msg.value + ethContribution[_contributor] <= pool.maxBuy, "Max buy limit exceeded.");
        require(ethRaised + msg.value <= pool.hardCap, "HC Reached.");

        ethRaised += msg.value;
        ethContribution[msg.sender] += msg.value;
    }

    /// @notice Function used to change the current `saleState` value.
    /// @param newSaleState The new `saleState` value.
    function setSaleState(uint256 newSaleState) external onlyOwner {
        saleState = SaleStates(newSaleState);
        emit SaleStateChanged(saleState);
    }

    /// @notice Function used to change the current `claimRound` value.
    /// @param newClaimRound The new `saleState` value.
    function setClaimRound(uint256 newClaimRound) external onlyOwner {
        claimRound = newClaimRound;
        emit ClaimRoundChanged(claimRound);
    }

    /// @notice Verifies the current state.
    /// @param saleState_ Sale state to verify. 
    modifier checkState(SaleStates saleState_) {
        require(saleState == saleState_, "Invalid sale state");
        _;
    }

    /*
    * Internal functions, called when calculating balances
    */
    function _getUserTokens(uint256 _amount) internal view returns (uint256) {
        return _amount.mul(tokensSold).div(ethRaised);
    }

    function _getLiquidityEth() internal view returns (uint256) {
        return _getValueFromPercentage(pool.liquidityPortion, ethRaised);
    }

    function _getOwnerEth() internal view returns (uint256) {
        uint256 liquidityEthFee = _getLiquidityEth();
        return ethRaised - liquidityEthFee;
    }

    function _getTokenDeposit() internal view returns (uint256){
        return pool.tokenDeposit;
    }

    function _getPercentageFromValue(uint256 currentValue, uint256 maxValue) private pure returns (uint256) {
        require(currentValue <= maxValue, "Number too high");

        return currentValue.mul(100).div(maxValue);
    }

    function _getValueFromPercentage(uint256 currentPercentage, uint256 maxValue) private pure returns (uint256) {
        require(currentPercentage <= 100, "Number too high");
        return maxValue.mul(currentPercentage).div(100);
    }

    function _getClaimPercentage(address claimer) private view returns (uint256) {
        uint256 claimPercentage = 0;
        if (!claims[claimer].claimedRoundOne){
            claimPercentage += 50;
        }
        if (claimRound == 1) return claimPercentage;

        if (!claims[claimer].claimedRoundTwo){
            claimPercentage += 25;
        }
        if (claimRound == 2) return claimPercentage;

        if (!claims[claimer].claimedRoundThree){
            claimPercentage += 25;
        }
        return claimPercentage;
    }

    function _toBytes32(address addr) pure internal returns (bytes32) {
        return bytes32(uint256(uint160(addr)));
    }

    /// @notice Function used to set new merkle root
    /// @param _merkleRoot Newly intended `merkleRoot` value.
    function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
       merkleRoot = _merkleRoot;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 3 of 5 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

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

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 4 of 5 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 5 of 5 : 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_tokenInstance","type":"address"},{"internalType":"address","name":"_uniswapv2Router","type":"address"},{"internalType":"address","name":"_uniswapv2Factory","type":"address"},{"internalType":"address","name":"_teamWallet","type":"address"},{"internalType":"address","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"Bought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_initiator","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"BurntRemainder","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_inititator","type":"address"},{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":true,"internalType":"address","name":"_presale","type":"address"}],"name":"Canceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_claimRound","type":"uint256"}],"name":"ClaimRoundChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_participent","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_claimPercentage","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_initiator","type":"address"},{"indexed":false,"internalType":"uint256","name":"_totalDeposit","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":true,"internalType":"address","name":"_router","type":"address"},{"indexed":true,"internalType":"address","name":"_pair","type":"address"}],"name":"Liquified","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_refunder","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"Refunded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_initiator","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"RefundedRemainder","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum ShlongPresale.SaleStates","name":"_saleState","type":"uint8"}],"name":"SaleStateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_creator","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"UniswapV2Factory","outputs":[{"internalType":"contract IUniswapV2Factory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UniswapV2Router02","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contributor","type":"address"}],"name":"buyTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"buyTokensWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"cancelSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claims","outputs":[{"internalType":"bool","name":"claimedRoundOne","type":"bool"},{"internalType":"bool","name":"claimedRoundTwo","type":"bool"},{"internalType":"bool","name":"claimedRoundThree","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"creatorWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"ethContribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethRaised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finishSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_startTime","type":"uint64"},{"internalType":"uint64","name":"_endTime","type":"uint64"},{"internalType":"uint256","name":"_tokenDeposit","type":"uint256"},{"internalType":"uint256","name":"_tokensForSale","type":"uint256"},{"internalType":"uint256","name":"_tokensForLiquidity","type":"uint256"},{"internalType":"uint8","name":"_liquidityPortion","type":"uint8"},{"internalType":"uint256","name":"_hardCap","type":"uint256"},{"internalType":"uint256","name":"_softCap","type":"uint256"},{"internalType":"uint256","name":"_maxBuy","type":"uint256"},{"internalType":"uint256","name":"_minBuy","type":"uint256"}],"name":"initSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isDeposit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFinish","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isInit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRefund","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"percentageRaised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pool","outputs":[{"internalType":"uint64","name":"startTime","type":"uint64"},{"internalType":"uint64","name":"endTime","type":"uint64"},{"internalType":"uint256","name":"tokenDeposit","type":"uint256"},{"internalType":"uint256","name":"tokensForSale","type":"uint256"},{"internalType":"uint256","name":"tokensForLiquidity","type":"uint256"},{"internalType":"uint8","name":"liquidityPortion","type":"uint8"},{"internalType":"uint256","name":"hardCap","type":"uint256"},{"internalType":"uint256","name":"softCap","type":"uint256"},{"internalType":"uint256","name":"maxBuy","type":"uint256"},{"internalType":"uint256","name":"minBuy","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"enum ShlongPresale.SaleStates","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newClaimRound","type":"uint256"}],"name":"setClaimRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newSaleState","type":"uint256"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"teamWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenInstance","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526002805460ff60201b191664010000000017905560048054600960a11b60ff60a01b1990911617905560006008553480156200003f57600080fd5b5060405162003519380380620035198339810160408190526200006291620003e3565b6200006d336200037a565b6001600160a01b038416620000c95760405162461bcd60e51b815260206004820152601660248201527f496e76616c696420726f7574657220616464726573730000000000000000000060448201526064015b60405180910390fd5b6001600160a01b038316620001215760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420666163746f727920616464726573730000000000000000006044820152606401620000c0565b6002805460006005819055600380546001600160a01b03199081166001600160a01b0388811691909117909255600480548216878416908117825560098054610100600160a81b0319166101008e87168102919091179182905564ff00000001600160c81b031990971633650100000000000217909755600b805484168c8616179055600a80549093168a851690811790935560405163e6a4390560e01b815295909604909216918401919091526024830193909352919063e6a4390590604401602060405180830381865afa15801562000200573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000226919062000463565b6001600160a01b0316146200027e5760405162461bcd60e51b815260206004820152601660248201527f49556e69737761703a20506f6f6c206578697374732e000000000000000000006044820152606401620000c0565b600954604080516318160ddd60e01b815290516101009092046001600160a01b03169163095ea7b391879184916318160ddd9160048083019260209291908290030181865afa158015620002d6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002fc91906200048a565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af115801562000348573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200036e9190620004a4565b505050505050620004c8565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114620003e057600080fd5b50565b600080600080600060a08688031215620003fc57600080fd5b85516200040981620003ca565b60208701519095506200041c81620003ca565b60408701519094506200042f81620003ca565b60608701519093506200044281620003ca565b60808701519092506200045581620003ca565b809150509295509295909350565b6000602082840312156200047657600080fd5b81516200048381620003ca565b9392505050565b6000602082840312156200049d57600080fd5b5051919050565b600060208284031215620004b757600080fd5b815180151581146200048357600080fd5b61304180620004d86000396000f3fe6080604052600436106102535760003560e01c80637bc3b5ff11610138578063ca62089e116100b0578063e7e104901161007f578063f2fde38b11610064578063f2fde38b146107d1578063fddf0fc0146107f1578063ffa324dc1461080757600080fd5b8063e7e10490146107ae578063ec8ac4d8146107c357600080fd5b8063ca62089e14610743578063d0e30db014610763578063d64428e314610778578063d921eb781461078e57600080fd5b80638f86f5ea116101075780639c8fe8b9116100ec5780639c8fe8b9146106b1578063b145a5b8146106c7578063c6788bdd146106e157600080fd5b80638f86f5ea1461067c5780639af885e01461069157600080fd5b80637bc3b5ff146105f65780637cb64759146106155780637cdc65f2146106355780638da5cb5b1461065e57600080fd5b806348c54b9d116101cb578063599270441161019a578063658030b31161017f578063658030b31461059c578063715018a6146105c157806378cc70b2146105d657600080fd5b80635992704414610555578063603f4d521461057557600080fd5b806348c54b9d146104f5578063518ab2a81461050a57806355cb266614610520578063590e1ae31461054057600080fd5b80632c8ca0ea116102225780633b97e856116102075780633b97e8561461044c5780633fc8cef3146104905780634034175e146104c857600080fd5b80632c8ca0ea146104075780632eb4a7ab1461042857600080fd5b806308003f78146102ee578063084c40881461032557806316f0115b1461034557806321a51abd146103f457600080fd5b366102e957600c5467ffffffffffffffff1642108015906102875750600c54600160401b900467ffffffffffffffff164211155b1561029c5761029a3361081c565b61081c565b005b60405162461bcd60e51b815260206004820152601160248201527f50726573616c6520697320636c6f73656400000000000000000000000000000060448201526064015b60405180910390fd5b600080fd5b3480156102fa57600080fd5b5060025461031090640100000000900460ff1681565b60405190151581526020015b60405180910390f35b34801561033157600080fd5b5061029a610340366004612d26565b610b82565b34801561035157600080fd5b50600c54600d54600e54600f5460105460115460125460135460145461039b9867ffffffffffffffff80821699600160401b909204169790969095909460ff90911693909290918a565b6040805167ffffffffffffffff9b8c1681529a90991660208b0152978901969096526060880194909452608087019290925260ff1660a086015260c085015260e08401526101008301526101208201526101400161031c565b61029a610402366004612d3f565b610bff565b34801561041357600080fd5b50600254610310906301000000900460ff1681565b34801561043457600080fd5b5061043e60015481565b60405190815260200161031c565b34801561045857600080fd5b5060045461047e9074010000000000000000000000000000000000000000900460ff1681565b60405160ff909116815260200161031c565b34801561049c57600080fd5b506004546104b0906001600160a01b031681565b6040516001600160a01b03909116815260200161031c565b3480156104d457600080fd5b5061043e6104e3366004612dc9565b60156020526000908152604090205481565b34801561050157600080fd5b5061029a610f98565b34801561051657600080fd5b5061043e60075481565b34801561052c57600080fd5b50600b546104b0906001600160a01b031681565b34801561054c57600080fd5b5061029a611330565b34801561056157600080fd5b506003546104b0906001600160a01b031681565b34801561058157600080fd5b5060095461058f9060ff1681565b60405161031c9190612e03565b3480156105a857600080fd5b506009546104b09061010090046001600160a01b031681565b3480156105cd57600080fd5b5061029a61155d565b3480156105e257600080fd5b50600a546104b0906001600160a01b031681565b34801561060257600080fd5b5060025461031090610100900460ff1681565b34801561062157600080fd5b5061029a610630366004612d26565b611571565b34801561064157600080fd5b506002546104b0906501000000000090046001600160a01b031681565b34801561066a57600080fd5b506000546001600160a01b03166104b0565b34801561068857600080fd5b5061029a61157e565b34801561069d57600080fd5b5061029a6106ac366004612d26565b611cc9565b3480156106bd57600080fd5b5061043e60085481565b3480156106d357600080fd5b506002546103109060ff1681565b3480156106ed57600080fd5b506107246106fc366004612dc9565b60166020526000908152604090205460ff808216916101008104821691620100009091041683565b604080519315158452911515602084015215159082015260600161031c565b34801561074f57600080fd5b5061029a61075e366004612e48565b611d06565b34801561076f57600080fd5b5061029a612210565b34801561078457600080fd5b5061043e60065481565b34801561079a57600080fd5b506002546103109062010000900460ff1681565b3480156107ba57600080fd5b5061029a6123fb565b61029a610295366004612dc9565b3480156107dd57600080fd5b5061029a6107ec366004612dc9565b6126bd565b3480156107fd57600080fd5b5061043e60055481565b34801561081357600080fd5b5061029a61274d565b600c5467ffffffffffffffff164210156108785760405162461bcd60e51b815260206004820152601460248201527f53616c65206d757374206265206163746976652e00000000000000000000000060448201526064016102e0565b600c54600160401b900467ffffffffffffffff164211156108cc5760405162461bcd60e51b815260206004820152600e60248201526d29b0b632903334b734b9b432b21760911b60448201526064016102e0565b60028060095460ff1660038111156108e6576108e6612ded565b146109335760405162461bcd60e51b815260206004820152601260248201527f496e76616c69642073616c65207374617465000000000000000000000000000060448201526064016102e0565b600254610100900460ff1661098a5760405162461bcd60e51b815260206004820152601560248201527f546f6b656e73206e6f74206465706f73697465642e000000000000000000000060448201526064016102e0565b6001600160a01b0382166109e05760405162461bcd60e51b815260206004820152601660248201527f5472616e7366657220746f203020616464726573732e0000000000000000000060448201526064016102e0565b34600003610a305760405162461bcd60e51b815260206004820152600f60248201527f57656920416d6f756e742069732030000000000000000000000000000000000060448201526064016102e0565b601454341015610a825760405162461bcd60e51b815260206004820152601360248201527f4d696e20627579206973206e6f74206d65742e0000000000000000000000000060448201526064016102e0565b6013546001600160a01b038316600090815260156020526040902054610aa89034612eef565b1115610af65760405162461bcd60e51b815260206004820152601760248201527f4d617820627579206c696d69742065786365656465642e00000000000000000060448201526064016102e0565b601154600554610b07903490612eef565b1115610b435760405162461bcd60e51b815260206004820152600b60248201526a2421902932b0b1b432b21760a91b60448201526064016102e0565b3460056000828254610b559190612eef565b90915550503360009081526015602052604081208054349290610b79908490612eef565b90915550505050565b610b8a6129d9565b806003811115610b9c57610b9c612ded565b6009805460ff19166001836003811115610bb857610bb8612ded565b02179055506009546040517f92a17b827ee9d42ea9454bb4ca941a1800870e6d01c0842d09ba23ccc0190ee191610bf49160ff90911690612e03565b60405180910390a150565b600c5467ffffffffffffffff16421015610c5b5760405162461bcd60e51b815260206004820152601460248201527f53616c65206d757374206265206163746976652e00000000000000000000000060448201526064016102e0565b600c54600160401b900467ffffffffffffffff16421115610caf5760405162461bcd60e51b815260206004820152600e60248201526d29b0b632903334b734b9b432b21760911b60448201526064016102e0565b60018060095460ff166003811115610cc957610cc9612ded565b14610d165760405162461bcd60e51b815260206004820152601260248201527f496e76616c69642073616c65207374617465000000000000000000000000000060448201526064016102e0565b8282610d59828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506001549150339050612a33565b610da55760405162461bcd60e51b815260206004820152601760248201527f55736572206973206e6f742077686974656c697374656400000000000000000060448201526064016102e0565b600254610100900460ff16610dfc5760405162461bcd60e51b815260206004820152601560248201527f546f6b656e73206e6f74206465706f73697465642e000000000000000000000060448201526064016102e0565b34600003610e4c5760405162461bcd60e51b815260206004820152600f60248201527f57656920416d6f756e742069732030000000000000000000000000000000000060448201526064016102e0565b601454341015610e9e5760405162461bcd60e51b815260206004820152601360248201527f4d696e20627579206973206e6f74206d65742e0000000000000000000000000060448201526064016102e0565b60135433600090815260156020526040902054610ebb9034612eef565b1115610f095760405162461bcd60e51b815260206004820152601760248201527f4d617820627579206c696d69742065786365656465642e00000000000000000060448201526064016102e0565b601154600554610f1a903490612eef565b1115610f565760405162461bcd60e51b815260206004820152600b60248201526a2421902932b0b1b432b21760a91b60448201526064016102e0565b3460056000828254610f689190612eef565b90915550503360009081526015602052604081208054349290610f8c908490612eef565b90915550505050505050565b600c5467ffffffffffffffff16421080610fc45750600c54600160401b900467ffffffffffffffff1642115b80610fd3575060115460055410155b6110185760405162461bcd60e51b815260206004820152601660248201527529b0b6329036bab9ba1031329034b730b1ba34bb329760511b60448201526064016102e0565b6002546301000000900460ff166110715760405162461bcd60e51b815260206004820152601560248201527f53616c65206973207374696c6c206163746976652e000000000000000000000060448201526064016102e0565b60025462010000900460ff16156110ca5760405162461bcd60e51b815260206004820152600f60248201527f526566756e642070726f636573732e000000000000000000000000000000000060448201526064016102e0565b60006008541161111c5760405162461bcd60e51b815260206004820152601560248201527f436c61696d696e67206973206e6f74206f70656e2e000000000000000000000060448201526064016102e0565b60046008541061116e5760405162461bcd60e51b815260206004820152601660248201527f436c61696d696e67206861732066696e69736865642e0000000000000000000060448201526064016102e0565b600061117933612a49565b33600090815260156020526040812054919250906111a190839061119c90612b06565b612b29565b90506008546001036111cc57336000908152601660205260409020805460ff1916600117905561122b565b6008546002036111f757336000908152601660205260409020805461ffff191661010117905561122b565b60085460030361122b57336000908152601660209081526040808320805462ffffff19166201010117905560159091528120555b60095460405163a9059cbb60e01b8152336004820152602481018390526101009091046001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015611280573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a49190612f02565b6112f05760405162461bcd60e51b815260206004820152600d60248201527f436c61696d206661696c65642e0000000000000000000000000000000000000060448201526064016102e0565b604080518281526020810184905233917f987d620f307ff6b94d58743cb7a7509f24071586a77759b77c2d4e29f75a2f9a91015b60405180910390a25050565b600c5467ffffffffffffffff1642108061135c5750600c54600160401b900467ffffffffffffffff1642115b8061136b575060115460055410155b6113b05760405162461bcd60e51b815260206004820152601660248201527529b0b6329036bab9ba1031329034b730b1ba34bb329760511b60448201526064016102e0565b60025462010000900460ff161515600114806113ec5750600c54600160401b900467ffffffffffffffff16421180156113ec5750601254600554105b6114385760405162461bcd60e51b815260206004820152601360248201527f526566756e6420756e617661696c61626c652e0000000000000000000000000060448201526064016102e0565b33600090815260156020526040902054806114955760405162461bcd60e51b815260206004820152601060248201527f4e6f20726566756e6420616d6f756e740000000000000000000000000000000060448201526064016102e0565b804710156114e55760405162461bcd60e51b815260206004820152601360248201527f4e6f20616d6f756e7420617661696c61626c650000000000000000000000000060448201526064016102e0565b3360008181526015602052604080822082905551829184156108fc02918591818181858888f19350505050158015611521573d6000803e3d6000fd5b50806001600160a01b03167fd7dee2702d63ad89917b6a4da9981c90c4d24f8c2bdfd64c604ecae57d8d06518360405161132491815260200190565b6115656129d9565b61156f6000612b8b565b565b6115796129d9565b600155565b6115866129d9565b600c5467ffffffffffffffff164210806115b25750600c54600160401b900467ffffffffffffffff1642115b806115c1575060115460055410155b6116065760405162461bcd60e51b815260206004820152601660248201527529b0b6329036bab9ba1031329034b730b1ba34bb329760511b60448201526064016102e0565b601254600554101561165a5760405162461bcd60e51b815260206004820152601460248201527f536f667420436170206973206e6f74206d65742e00000000000000000000000060448201526064016102e0565b600c5467ffffffffffffffff1642116116b55760405162461bcd60e51b815260206004820152601b60248201527f43616e206e6f742066696e697368206265666f7265207374617274000000000060448201526064016102e0565b6002546301000000900460ff161561170f5760405162461bcd60e51b815260206004820152601660248201527f53616c6520616c7265616479206c61756e636865642e0000000000000000000060448201526064016102e0565b60025462010000900460ff16156117685760405162461bcd60e51b815260206004820152600f60248201527f526566756e642070726f636573732e000000000000000000000000000000000060448201526064016102e0565b611779600554600c60050154612bf3565b6006819055600e5461178b9190612b29565b600755600654600f546000916117a091612b29565b6002805463ff00000019166301000000179055600b5490915060009081906001600160a01b031663f305d7196117d4612c54565b60095461010090046001600160a01b031686806117ef612c54565b6000546001600160a01b031661180742610258612eef565b60405160e089901b7fffffffff000000000000000000000000000000000000000000000000000000001681526001600160a01b039687166004820152602481019590955260448501939093526064840191909152909216608482015260a481019190915260c40160606040518083038185885af115801561188c573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906118b19190612f24565b509150915082821480156118cb57506118c8612c54565b81145b6119175760405162461bcd60e51b815260206004820152601b60248201527f50726f766964696e67206c6971756964697479206661696c65642e000000000060448201526064016102e0565b600a54600954600480546040517fe6a439050000000000000000000000000000000000000000000000000000000081526001600160a01b036101009094048416928101929092528216602482015291169063e6a4390590604401602060405180830381865afa15801561198e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b29190612f52565b600b546009546040516001600160a01b039384169392831692610100909204909116907f855e21f045401bd18ad033c48b74263dc6e037024f082f3118fa5b79b8c63cf890600090a46000611a05612c71565b90508015611a5157600254604051650100000000009091046001600160a01b0316906108fc8315029083906000818181858888f19350505050158015611a4f573d6000803e3d6000fd5b505b6011546005541015611cb657600f54600090611a6e908690612f6f565b600554601154611a8691611a8191612f6f565b612b06565b611a909190612eef565b600254909150640100000000900460ff161515600103611bab5760095460405163a9059cbb60e01b815261dead6004820152602481018390526101009091046001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015611b01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b259190612f02565b611b715760405162461bcd60e51b815260206004820152600f60248201527f556e61626c6520746f206275726e2e000000000000000000000000000000000060448201526064016102e0565b60405181815233907ff64f45e6447f41665c556373a7683d2b9537f22f7498825a215561a075d341959060200160405180910390a2611cb4565b60095460025460405163a9059cbb60e01b81526001600160a01b03650100000000009092048216600482015260248101849052610100909204169063a9059cbb906044016020604051808303816000875af1158015611c0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c329190612f02565b611c7e5760405162461bcd60e51b815260206004820152600e60248201527f526566756e64206661696c65642e00000000000000000000000000000000000060448201526064016102e0565b60405181815233907fb2a2a849a821dbd9c9ae4fad722faef4e72c7edbbadaeeaabfdba3c1b17aa86a9060200160405180910390a25b505b50506009805460ff191660031790555050565b611cd16129d9565b60088190556040518181527fa6a80b5d3b2c3d4cf4372c4035871652382161dbd3842571ee290176e7deac3b90602001610bf4565b611d0e6129d9565b600c5467ffffffffffffffff16421080611d3a5750600c54600160401b900467ffffffffffffffff1642115b80611d49575060115460055410155b611d8e5760405162461bcd60e51b815260206004820152601660248201527529b0b6329036bab9ba1031329034b730b1ba34bb329760511b60448201526064016102e0565b60025460ff1615611de15760405162461bcd60e51b815260206004820152601860248201527f53616c6520616c726561647920696e697469616c697a6564000000000000000060448201526064016102e0565b428a67ffffffffffffffff161015611e3b5760405162461bcd60e51b815260206004820152601360248201527f496e76616c69642073746172742074696d652e0000000000000000000000000060448201526064016102e0565b428967ffffffffffffffff1611611e945760405162461bcd60e51b815260206004820152601160248201527f496e76616c696420656e642074696d652e00000000000000000000000000000060448201526064016102e0565b60008811611ee45760405162461bcd60e51b815260206004820152601660248201527f496e76616c696420746f6b656e206465706f7369742e0000000000000000000060448201526064016102e0565b878710611f335760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420746f6b656e7320666f722073616c652e000000000000000060448201526064016102e0565b878610611f825760405162461bcd60e51b815260206004820152601d60248201527f496e76616c696420746f6b656e7320666f72206c69717569646974792e00000060448201526064016102e0565b611f8d600285612f82565b831015611fdc5760405162461bcd60e51b815260206004820152601360248201527f5343206d757374206265203e3d2048432f322e0000000000000000000000000060448201526064016102e0565b60328560ff1610156120305760405162461bcd60e51b815260206004820152601760248201527f4c6971756964697479206d757374206265203e3d35302e00000000000000000060448201526064016102e0565b60648560ff1611156120845760405162461bcd60e51b815260206004820152601260248201527f496e76616c6964206c69717569646974792e000000000000000000000000000060448201526064016102e0565b8181106120d35760405162461bcd60e51b815260206004820152601e60248201527f4d696e20627579206d7573742067726561746572207468616e206d61782e000060448201526064016102e0565b600081116121235760405162461bcd60e51b815260206004820152601660248201527f4d696e20627579206d7573742065786365656420302e0000000000000000000060448201526064016102e0565b604080516101408101825267ffffffffffffffff9b8c168082529a909b1660208c01819052908b0189905260608b0188905260808b0187905260ff9590951660a08b0181905260c08b0185905260e08b018490526101008b01839052610120909a01819052600c80547fffffffffffffffffffffffffffffffff0000000000000000000000000000000016909917600160401b90950294909417909755600d95909555600e93909355600f919091556010805460ff199081169096179055601191909155601291909155601391909155601455600280548216600190811790915560098054909216179055565b6122186129d9565b600254610100900460ff16156122705760405162461bcd60e51b815260206004820152601960248201527f546f6b656e7320616c7265616479206465706f73697465642e0000000000000060448201526064016102e0565b60025460ff166122c25760405162461bcd60e51b815260206004820152601460248201527f4e6f7420696e697469616c697a6564207965742e00000000000000000000000060448201526064016102e0565b60006122cd600d5490565b6002805461010061ff001990911681179091556009546040517f23b872dd00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101849052929350046001600160a01b0316906323b872dd906064016020604051808303816000875af1158015612352573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123769190612f02565b6123c25760405162461bcd60e51b815260206004820152600f60248201527f4465706f736974206661696c65642e000000000000000000000000000000000060448201526064016102e0565b60405181815233907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4906020015b60405180910390a250565b6124036129d9565b600c5467ffffffffffffffff1642101561245f5760405162461bcd60e51b815260206004820152601460248201527f53616c65206d757374206265206163746976652e00000000000000000000000060448201526064016102e0565b600c54600160401b900467ffffffffffffffff164211156124b35760405162461bcd60e51b815260206004820152600e60248201526d29b0b632903334b734b9b432b21760911b60448201526064016102e0565b6002546301000000900460ff16156124fe5760405162461bcd60e51b815260206004820152600e60248201526d29b0b632903334b734b9b432b21760911b60448201526064016102e0565b600c80547fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff169055600280546201000062ff0000199091161790556009805460ff1916600317908190556040516370a0823160e01b81523060048201526000916001600160a01b0361010090910416906370a0823190602401602060405180830381865afa158015612594573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125b89190612fa4565b111561267c5760006125c9600d5490565b60095460405163a9059cbb60e01b81523360048201526024810183905291925061010090046001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015612620573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126449190612f02565b5060405181815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a2505b600954604051309161010090046001600160a01b03169033907f72452f1a219141fd5d3814b0d1d79e431ceb617f33a3a07bdd18a1a64ed0a6e890600090a4565b6126c56129d9565b6001600160a01b0381166127415760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102e0565b61274a81612b8b565b50565b6127556129d9565b600c5467ffffffffffffffff164210806127815750600c54600160401b900467ffffffffffffffff1642115b80612790575060115460055410155b6127d55760405162461bcd60e51b815260206004820152601660248201527529b0b6329036bab9ba1031329034b730b1ba34bb329760511b60448201526064016102e0565b60025462010000900460ff161515600114806128115750600c54600160401b900467ffffffffffffffff16421180156128115750601254600554105b61285d5760405162461bcd60e51b815260206004820152601360248201527f526566756e6420756e617661696c61626c652e0000000000000000000000000060448201526064016102e0565b6009546040516370a0823160e01b815230600482015260009161010090046001600160a01b0316906370a0823190602401602060405180830381865afa1580156128ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128cf9190612fa4565b111561156f5760006128e0600d5490565b60095460405163a9059cbb60e01b81523360048201526024810183905291925061010090046001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015612937573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061295b9190612f02565b6129a75760405162461bcd60e51b815260206004820152601060248201527f5769746864726177206661696c65642e0000000000000000000000000000000060448201526064016102e0565b60405181815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364906020016123f0565b6000546001600160a01b0316331461156f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102e0565b600082612a408584612c92565b14949350505050565b6001600160a01b038116600090815260166020526040812054819060ff16612a7957612a76603282612eef565b90505b600854600103612a895792915050565b6001600160a01b038316600090815260166020526040902054610100900460ff16612abc57612ab9601982612eef565b90505b600854600203612acc5792915050565b6001600160a01b03831660009081526016602052604090205462010000900460ff16612b0057612afd601982612eef565b90505b92915050565b6000612b00600554612b2360075485612cdf90919063ffffffff16565b90612ceb565b60006064831115612b7c5760405162461bcd60e51b815260206004820152600f60248201527f4e756d62657220746f6f2068696768000000000000000000000000000000000060448201526064016102e0565b612afd6064612b238486612cdf565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081831115612c455760405162461bcd60e51b815260206004820152600f60248201527f4e756d62657220746f6f2068696768000000000000000000000000000000000060448201526064016102e0565b612afd82612b23856064612cdf565b601054600554600091612c6c9160ff90911690612b29565b905090565b600080612c7c612c54565b905080600554612c8c9190612f6f565b91505090565b600081815b8451811015612cd757612cc382868381518110612cb657612cb6612fbd565b6020026020010151612cf7565b915080612ccf81612fd3565b915050612c97565b509392505050565b6000612afd8284612fec565b6000612afd8284612f82565b6000818310612d13576000828152602084905260409020612afd565b6000838152602083905260409020612afd565b600060208284031215612d3857600080fd5b5035919050565b60008060208385031215612d5257600080fd5b823567ffffffffffffffff80821115612d6a57600080fd5b818501915085601f830112612d7e57600080fd5b813581811115612d8d57600080fd5b8660208260051b8501011115612da257600080fd5b60209290920196919550909350505050565b6001600160a01b038116811461274a57600080fd5b600060208284031215612ddb57600080fd5b8135612de681612db4565b9392505050565b634e487b7160e01b600052602160045260246000fd5b6020810160048310612e2557634e487b7160e01b600052602160045260246000fd5b91905290565b803567ffffffffffffffff81168114612e4357600080fd5b919050565b6000806000806000806000806000806101408b8d031215612e6857600080fd5b612e718b612e2b565b9950612e7f60208c01612e2b565b985060408b0135975060608b0135965060808b0135955060a08b013560ff81168114612eaa57600080fd5b999c989b5096999598949794965050505060c08301359260e08101359261010082013592506101209091013590565b634e487b7160e01b600052601160045260246000fd5b80820180821115612b0057612b00612ed9565b600060208284031215612f1457600080fd5b81518015158114612de657600080fd5b600080600060608486031215612f3957600080fd5b8351925060208401519150604084015190509250925092565b600060208284031215612f6457600080fd5b8151612de681612db4565b81810381811115612b0057612b00612ed9565b600082612f9f57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215612fb657600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b600060018201612fe557612fe5612ed9565b5060010190565b600081600019048311821515161561300657613006612ed9565b50029056fea2646970667358221220c4cbacb14de36cfd8d0ad356d5779a5e92791ab140378d88a141e08e9e42dca364736f6c634300081000330000000000000000000000005ba8d7e52f838f66076cc25dc8ed9b469eabbec40000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f00000000000000000000000013dee18f5844ec6f11d0b4f5dcc6a80a9089bdea000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

Deployed Bytecode

0x6080604052600436106102535760003560e01c80637bc3b5ff11610138578063ca62089e116100b0578063e7e104901161007f578063f2fde38b11610064578063f2fde38b146107d1578063fddf0fc0146107f1578063ffa324dc1461080757600080fd5b8063e7e10490146107ae578063ec8ac4d8146107c357600080fd5b8063ca62089e14610743578063d0e30db014610763578063d64428e314610778578063d921eb781461078e57600080fd5b80638f86f5ea116101075780639c8fe8b9116100ec5780639c8fe8b9146106b1578063b145a5b8146106c7578063c6788bdd146106e157600080fd5b80638f86f5ea1461067c5780639af885e01461069157600080fd5b80637bc3b5ff146105f65780637cb64759146106155780637cdc65f2146106355780638da5cb5b1461065e57600080fd5b806348c54b9d116101cb578063599270441161019a578063658030b31161017f578063658030b31461059c578063715018a6146105c157806378cc70b2146105d657600080fd5b80635992704414610555578063603f4d521461057557600080fd5b806348c54b9d146104f5578063518ab2a81461050a57806355cb266614610520578063590e1ae31461054057600080fd5b80632c8ca0ea116102225780633b97e856116102075780633b97e8561461044c5780633fc8cef3146104905780634034175e146104c857600080fd5b80632c8ca0ea146104075780632eb4a7ab1461042857600080fd5b806308003f78146102ee578063084c40881461032557806316f0115b1461034557806321a51abd146103f457600080fd5b366102e957600c5467ffffffffffffffff1642108015906102875750600c54600160401b900467ffffffffffffffff164211155b1561029c5761029a3361081c565b61081c565b005b60405162461bcd60e51b815260206004820152601160248201527f50726573616c6520697320636c6f73656400000000000000000000000000000060448201526064015b60405180910390fd5b600080fd5b3480156102fa57600080fd5b5060025461031090640100000000900460ff1681565b60405190151581526020015b60405180910390f35b34801561033157600080fd5b5061029a610340366004612d26565b610b82565b34801561035157600080fd5b50600c54600d54600e54600f5460105460115460125460135460145461039b9867ffffffffffffffff80821699600160401b909204169790969095909460ff90911693909290918a565b6040805167ffffffffffffffff9b8c1681529a90991660208b0152978901969096526060880194909452608087019290925260ff1660a086015260c085015260e08401526101008301526101208201526101400161031c565b61029a610402366004612d3f565b610bff565b34801561041357600080fd5b50600254610310906301000000900460ff1681565b34801561043457600080fd5b5061043e60015481565b60405190815260200161031c565b34801561045857600080fd5b5060045461047e9074010000000000000000000000000000000000000000900460ff1681565b60405160ff909116815260200161031c565b34801561049c57600080fd5b506004546104b0906001600160a01b031681565b6040516001600160a01b03909116815260200161031c565b3480156104d457600080fd5b5061043e6104e3366004612dc9565b60156020526000908152604090205481565b34801561050157600080fd5b5061029a610f98565b34801561051657600080fd5b5061043e60075481565b34801561052c57600080fd5b50600b546104b0906001600160a01b031681565b34801561054c57600080fd5b5061029a611330565b34801561056157600080fd5b506003546104b0906001600160a01b031681565b34801561058157600080fd5b5060095461058f9060ff1681565b60405161031c9190612e03565b3480156105a857600080fd5b506009546104b09061010090046001600160a01b031681565b3480156105cd57600080fd5b5061029a61155d565b3480156105e257600080fd5b50600a546104b0906001600160a01b031681565b34801561060257600080fd5b5060025461031090610100900460ff1681565b34801561062157600080fd5b5061029a610630366004612d26565b611571565b34801561064157600080fd5b506002546104b0906501000000000090046001600160a01b031681565b34801561066a57600080fd5b506000546001600160a01b03166104b0565b34801561068857600080fd5b5061029a61157e565b34801561069d57600080fd5b5061029a6106ac366004612d26565b611cc9565b3480156106bd57600080fd5b5061043e60085481565b3480156106d357600080fd5b506002546103109060ff1681565b3480156106ed57600080fd5b506107246106fc366004612dc9565b60166020526000908152604090205460ff808216916101008104821691620100009091041683565b604080519315158452911515602084015215159082015260600161031c565b34801561074f57600080fd5b5061029a61075e366004612e48565b611d06565b34801561076f57600080fd5b5061029a612210565b34801561078457600080fd5b5061043e60065481565b34801561079a57600080fd5b506002546103109062010000900460ff1681565b3480156107ba57600080fd5b5061029a6123fb565b61029a610295366004612dc9565b3480156107dd57600080fd5b5061029a6107ec366004612dc9565b6126bd565b3480156107fd57600080fd5b5061043e60055481565b34801561081357600080fd5b5061029a61274d565b600c5467ffffffffffffffff164210156108785760405162461bcd60e51b815260206004820152601460248201527f53616c65206d757374206265206163746976652e00000000000000000000000060448201526064016102e0565b600c54600160401b900467ffffffffffffffff164211156108cc5760405162461bcd60e51b815260206004820152600e60248201526d29b0b632903334b734b9b432b21760911b60448201526064016102e0565b60028060095460ff1660038111156108e6576108e6612ded565b146109335760405162461bcd60e51b815260206004820152601260248201527f496e76616c69642073616c65207374617465000000000000000000000000000060448201526064016102e0565b600254610100900460ff1661098a5760405162461bcd60e51b815260206004820152601560248201527f546f6b656e73206e6f74206465706f73697465642e000000000000000000000060448201526064016102e0565b6001600160a01b0382166109e05760405162461bcd60e51b815260206004820152601660248201527f5472616e7366657220746f203020616464726573732e0000000000000000000060448201526064016102e0565b34600003610a305760405162461bcd60e51b815260206004820152600f60248201527f57656920416d6f756e742069732030000000000000000000000000000000000060448201526064016102e0565b601454341015610a825760405162461bcd60e51b815260206004820152601360248201527f4d696e20627579206973206e6f74206d65742e0000000000000000000000000060448201526064016102e0565b6013546001600160a01b038316600090815260156020526040902054610aa89034612eef565b1115610af65760405162461bcd60e51b815260206004820152601760248201527f4d617820627579206c696d69742065786365656465642e00000000000000000060448201526064016102e0565b601154600554610b07903490612eef565b1115610b435760405162461bcd60e51b815260206004820152600b60248201526a2421902932b0b1b432b21760a91b60448201526064016102e0565b3460056000828254610b559190612eef565b90915550503360009081526015602052604081208054349290610b79908490612eef565b90915550505050565b610b8a6129d9565b806003811115610b9c57610b9c612ded565b6009805460ff19166001836003811115610bb857610bb8612ded565b02179055506009546040517f92a17b827ee9d42ea9454bb4ca941a1800870e6d01c0842d09ba23ccc0190ee191610bf49160ff90911690612e03565b60405180910390a150565b600c5467ffffffffffffffff16421015610c5b5760405162461bcd60e51b815260206004820152601460248201527f53616c65206d757374206265206163746976652e00000000000000000000000060448201526064016102e0565b600c54600160401b900467ffffffffffffffff16421115610caf5760405162461bcd60e51b815260206004820152600e60248201526d29b0b632903334b734b9b432b21760911b60448201526064016102e0565b60018060095460ff166003811115610cc957610cc9612ded565b14610d165760405162461bcd60e51b815260206004820152601260248201527f496e76616c69642073616c65207374617465000000000000000000000000000060448201526064016102e0565b8282610d59828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506001549150339050612a33565b610da55760405162461bcd60e51b815260206004820152601760248201527f55736572206973206e6f742077686974656c697374656400000000000000000060448201526064016102e0565b600254610100900460ff16610dfc5760405162461bcd60e51b815260206004820152601560248201527f546f6b656e73206e6f74206465706f73697465642e000000000000000000000060448201526064016102e0565b34600003610e4c5760405162461bcd60e51b815260206004820152600f60248201527f57656920416d6f756e742069732030000000000000000000000000000000000060448201526064016102e0565b601454341015610e9e5760405162461bcd60e51b815260206004820152601360248201527f4d696e20627579206973206e6f74206d65742e0000000000000000000000000060448201526064016102e0565b60135433600090815260156020526040902054610ebb9034612eef565b1115610f095760405162461bcd60e51b815260206004820152601760248201527f4d617820627579206c696d69742065786365656465642e00000000000000000060448201526064016102e0565b601154600554610f1a903490612eef565b1115610f565760405162461bcd60e51b815260206004820152600b60248201526a2421902932b0b1b432b21760a91b60448201526064016102e0565b3460056000828254610f689190612eef565b90915550503360009081526015602052604081208054349290610f8c908490612eef565b90915550505050505050565b600c5467ffffffffffffffff16421080610fc45750600c54600160401b900467ffffffffffffffff1642115b80610fd3575060115460055410155b6110185760405162461bcd60e51b815260206004820152601660248201527529b0b6329036bab9ba1031329034b730b1ba34bb329760511b60448201526064016102e0565b6002546301000000900460ff166110715760405162461bcd60e51b815260206004820152601560248201527f53616c65206973207374696c6c206163746976652e000000000000000000000060448201526064016102e0565b60025462010000900460ff16156110ca5760405162461bcd60e51b815260206004820152600f60248201527f526566756e642070726f636573732e000000000000000000000000000000000060448201526064016102e0565b60006008541161111c5760405162461bcd60e51b815260206004820152601560248201527f436c61696d696e67206973206e6f74206f70656e2e000000000000000000000060448201526064016102e0565b60046008541061116e5760405162461bcd60e51b815260206004820152601660248201527f436c61696d696e67206861732066696e69736865642e0000000000000000000060448201526064016102e0565b600061117933612a49565b33600090815260156020526040812054919250906111a190839061119c90612b06565b612b29565b90506008546001036111cc57336000908152601660205260409020805460ff1916600117905561122b565b6008546002036111f757336000908152601660205260409020805461ffff191661010117905561122b565b60085460030361122b57336000908152601660209081526040808320805462ffffff19166201010117905560159091528120555b60095460405163a9059cbb60e01b8152336004820152602481018390526101009091046001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015611280573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a49190612f02565b6112f05760405162461bcd60e51b815260206004820152600d60248201527f436c61696d206661696c65642e0000000000000000000000000000000000000060448201526064016102e0565b604080518281526020810184905233917f987d620f307ff6b94d58743cb7a7509f24071586a77759b77c2d4e29f75a2f9a91015b60405180910390a25050565b600c5467ffffffffffffffff1642108061135c5750600c54600160401b900467ffffffffffffffff1642115b8061136b575060115460055410155b6113b05760405162461bcd60e51b815260206004820152601660248201527529b0b6329036bab9ba1031329034b730b1ba34bb329760511b60448201526064016102e0565b60025462010000900460ff161515600114806113ec5750600c54600160401b900467ffffffffffffffff16421180156113ec5750601254600554105b6114385760405162461bcd60e51b815260206004820152601360248201527f526566756e6420756e617661696c61626c652e0000000000000000000000000060448201526064016102e0565b33600090815260156020526040902054806114955760405162461bcd60e51b815260206004820152601060248201527f4e6f20726566756e6420616d6f756e740000000000000000000000000000000060448201526064016102e0565b804710156114e55760405162461bcd60e51b815260206004820152601360248201527f4e6f20616d6f756e7420617661696c61626c650000000000000000000000000060448201526064016102e0565b3360008181526015602052604080822082905551829184156108fc02918591818181858888f19350505050158015611521573d6000803e3d6000fd5b50806001600160a01b03167fd7dee2702d63ad89917b6a4da9981c90c4d24f8c2bdfd64c604ecae57d8d06518360405161132491815260200190565b6115656129d9565b61156f6000612b8b565b565b6115796129d9565b600155565b6115866129d9565b600c5467ffffffffffffffff164210806115b25750600c54600160401b900467ffffffffffffffff1642115b806115c1575060115460055410155b6116065760405162461bcd60e51b815260206004820152601660248201527529b0b6329036bab9ba1031329034b730b1ba34bb329760511b60448201526064016102e0565b601254600554101561165a5760405162461bcd60e51b815260206004820152601460248201527f536f667420436170206973206e6f74206d65742e00000000000000000000000060448201526064016102e0565b600c5467ffffffffffffffff1642116116b55760405162461bcd60e51b815260206004820152601b60248201527f43616e206e6f742066696e697368206265666f7265207374617274000000000060448201526064016102e0565b6002546301000000900460ff161561170f5760405162461bcd60e51b815260206004820152601660248201527f53616c6520616c7265616479206c61756e636865642e0000000000000000000060448201526064016102e0565b60025462010000900460ff16156117685760405162461bcd60e51b815260206004820152600f60248201527f526566756e642070726f636573732e000000000000000000000000000000000060448201526064016102e0565b611779600554600c60050154612bf3565b6006819055600e5461178b9190612b29565b600755600654600f546000916117a091612b29565b6002805463ff00000019166301000000179055600b5490915060009081906001600160a01b031663f305d7196117d4612c54565b60095461010090046001600160a01b031686806117ef612c54565b6000546001600160a01b031661180742610258612eef565b60405160e089901b7fffffffff000000000000000000000000000000000000000000000000000000001681526001600160a01b039687166004820152602481019590955260448501939093526064840191909152909216608482015260a481019190915260c40160606040518083038185885af115801561188c573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906118b19190612f24565b509150915082821480156118cb57506118c8612c54565b81145b6119175760405162461bcd60e51b815260206004820152601b60248201527f50726f766964696e67206c6971756964697479206661696c65642e000000000060448201526064016102e0565b600a54600954600480546040517fe6a439050000000000000000000000000000000000000000000000000000000081526001600160a01b036101009094048416928101929092528216602482015291169063e6a4390590604401602060405180830381865afa15801561198e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b29190612f52565b600b546009546040516001600160a01b039384169392831692610100909204909116907f855e21f045401bd18ad033c48b74263dc6e037024f082f3118fa5b79b8c63cf890600090a46000611a05612c71565b90508015611a5157600254604051650100000000009091046001600160a01b0316906108fc8315029083906000818181858888f19350505050158015611a4f573d6000803e3d6000fd5b505b6011546005541015611cb657600f54600090611a6e908690612f6f565b600554601154611a8691611a8191612f6f565b612b06565b611a909190612eef565b600254909150640100000000900460ff161515600103611bab5760095460405163a9059cbb60e01b815261dead6004820152602481018390526101009091046001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015611b01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b259190612f02565b611b715760405162461bcd60e51b815260206004820152600f60248201527f556e61626c6520746f206275726e2e000000000000000000000000000000000060448201526064016102e0565b60405181815233907ff64f45e6447f41665c556373a7683d2b9537f22f7498825a215561a075d341959060200160405180910390a2611cb4565b60095460025460405163a9059cbb60e01b81526001600160a01b03650100000000009092048216600482015260248101849052610100909204169063a9059cbb906044016020604051808303816000875af1158015611c0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c329190612f02565b611c7e5760405162461bcd60e51b815260206004820152600e60248201527f526566756e64206661696c65642e00000000000000000000000000000000000060448201526064016102e0565b60405181815233907fb2a2a849a821dbd9c9ae4fad722faef4e72c7edbbadaeeaabfdba3c1b17aa86a9060200160405180910390a25b505b50506009805460ff191660031790555050565b611cd16129d9565b60088190556040518181527fa6a80b5d3b2c3d4cf4372c4035871652382161dbd3842571ee290176e7deac3b90602001610bf4565b611d0e6129d9565b600c5467ffffffffffffffff16421080611d3a5750600c54600160401b900467ffffffffffffffff1642115b80611d49575060115460055410155b611d8e5760405162461bcd60e51b815260206004820152601660248201527529b0b6329036bab9ba1031329034b730b1ba34bb329760511b60448201526064016102e0565b60025460ff1615611de15760405162461bcd60e51b815260206004820152601860248201527f53616c6520616c726561647920696e697469616c697a6564000000000000000060448201526064016102e0565b428a67ffffffffffffffff161015611e3b5760405162461bcd60e51b815260206004820152601360248201527f496e76616c69642073746172742074696d652e0000000000000000000000000060448201526064016102e0565b428967ffffffffffffffff1611611e945760405162461bcd60e51b815260206004820152601160248201527f496e76616c696420656e642074696d652e00000000000000000000000000000060448201526064016102e0565b60008811611ee45760405162461bcd60e51b815260206004820152601660248201527f496e76616c696420746f6b656e206465706f7369742e0000000000000000000060448201526064016102e0565b878710611f335760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420746f6b656e7320666f722073616c652e000000000000000060448201526064016102e0565b878610611f825760405162461bcd60e51b815260206004820152601d60248201527f496e76616c696420746f6b656e7320666f72206c69717569646974792e00000060448201526064016102e0565b611f8d600285612f82565b831015611fdc5760405162461bcd60e51b815260206004820152601360248201527f5343206d757374206265203e3d2048432f322e0000000000000000000000000060448201526064016102e0565b60328560ff1610156120305760405162461bcd60e51b815260206004820152601760248201527f4c6971756964697479206d757374206265203e3d35302e00000000000000000060448201526064016102e0565b60648560ff1611156120845760405162461bcd60e51b815260206004820152601260248201527f496e76616c6964206c69717569646974792e000000000000000000000000000060448201526064016102e0565b8181106120d35760405162461bcd60e51b815260206004820152601e60248201527f4d696e20627579206d7573742067726561746572207468616e206d61782e000060448201526064016102e0565b600081116121235760405162461bcd60e51b815260206004820152601660248201527f4d696e20627579206d7573742065786365656420302e0000000000000000000060448201526064016102e0565b604080516101408101825267ffffffffffffffff9b8c168082529a909b1660208c01819052908b0189905260608b0188905260808b0187905260ff9590951660a08b0181905260c08b0185905260e08b018490526101008b01839052610120909a01819052600c80547fffffffffffffffffffffffffffffffff0000000000000000000000000000000016909917600160401b90950294909417909755600d95909555600e93909355600f919091556010805460ff199081169096179055601191909155601291909155601391909155601455600280548216600190811790915560098054909216179055565b6122186129d9565b600254610100900460ff16156122705760405162461bcd60e51b815260206004820152601960248201527f546f6b656e7320616c7265616479206465706f73697465642e0000000000000060448201526064016102e0565b60025460ff166122c25760405162461bcd60e51b815260206004820152601460248201527f4e6f7420696e697469616c697a6564207965742e00000000000000000000000060448201526064016102e0565b60006122cd600d5490565b6002805461010061ff001990911681179091556009546040517f23b872dd00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101849052929350046001600160a01b0316906323b872dd906064016020604051808303816000875af1158015612352573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123769190612f02565b6123c25760405162461bcd60e51b815260206004820152600f60248201527f4465706f736974206661696c65642e000000000000000000000000000000000060448201526064016102e0565b60405181815233907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4906020015b60405180910390a250565b6124036129d9565b600c5467ffffffffffffffff1642101561245f5760405162461bcd60e51b815260206004820152601460248201527f53616c65206d757374206265206163746976652e00000000000000000000000060448201526064016102e0565b600c54600160401b900467ffffffffffffffff164211156124b35760405162461bcd60e51b815260206004820152600e60248201526d29b0b632903334b734b9b432b21760911b60448201526064016102e0565b6002546301000000900460ff16156124fe5760405162461bcd60e51b815260206004820152600e60248201526d29b0b632903334b734b9b432b21760911b60448201526064016102e0565b600c80547fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff169055600280546201000062ff0000199091161790556009805460ff1916600317908190556040516370a0823160e01b81523060048201526000916001600160a01b0361010090910416906370a0823190602401602060405180830381865afa158015612594573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125b89190612fa4565b111561267c5760006125c9600d5490565b60095460405163a9059cbb60e01b81523360048201526024810183905291925061010090046001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015612620573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126449190612f02565b5060405181815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a2505b600954604051309161010090046001600160a01b03169033907f72452f1a219141fd5d3814b0d1d79e431ceb617f33a3a07bdd18a1a64ed0a6e890600090a4565b6126c56129d9565b6001600160a01b0381166127415760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102e0565b61274a81612b8b565b50565b6127556129d9565b600c5467ffffffffffffffff164210806127815750600c54600160401b900467ffffffffffffffff1642115b80612790575060115460055410155b6127d55760405162461bcd60e51b815260206004820152601660248201527529b0b6329036bab9ba1031329034b730b1ba34bb329760511b60448201526064016102e0565b60025462010000900460ff161515600114806128115750600c54600160401b900467ffffffffffffffff16421180156128115750601254600554105b61285d5760405162461bcd60e51b815260206004820152601360248201527f526566756e6420756e617661696c61626c652e0000000000000000000000000060448201526064016102e0565b6009546040516370a0823160e01b815230600482015260009161010090046001600160a01b0316906370a0823190602401602060405180830381865afa1580156128ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128cf9190612fa4565b111561156f5760006128e0600d5490565b60095460405163a9059cbb60e01b81523360048201526024810183905291925061010090046001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015612937573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061295b9190612f02565b6129a75760405162461bcd60e51b815260206004820152601060248201527f5769746864726177206661696c65642e0000000000000000000000000000000060448201526064016102e0565b60405181815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364906020016123f0565b6000546001600160a01b0316331461156f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102e0565b600082612a408584612c92565b14949350505050565b6001600160a01b038116600090815260166020526040812054819060ff16612a7957612a76603282612eef565b90505b600854600103612a895792915050565b6001600160a01b038316600090815260166020526040902054610100900460ff16612abc57612ab9601982612eef565b90505b600854600203612acc5792915050565b6001600160a01b03831660009081526016602052604090205462010000900460ff16612b0057612afd601982612eef565b90505b92915050565b6000612b00600554612b2360075485612cdf90919063ffffffff16565b90612ceb565b60006064831115612b7c5760405162461bcd60e51b815260206004820152600f60248201527f4e756d62657220746f6f2068696768000000000000000000000000000000000060448201526064016102e0565b612afd6064612b238486612cdf565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081831115612c455760405162461bcd60e51b815260206004820152600f60248201527f4e756d62657220746f6f2068696768000000000000000000000000000000000060448201526064016102e0565b612afd82612b23856064612cdf565b601054600554600091612c6c9160ff90911690612b29565b905090565b600080612c7c612c54565b905080600554612c8c9190612f6f565b91505090565b600081815b8451811015612cd757612cc382868381518110612cb657612cb6612fbd565b6020026020010151612cf7565b915080612ccf81612fd3565b915050612c97565b509392505050565b6000612afd8284612fec565b6000612afd8284612f82565b6000818310612d13576000828152602084905260409020612afd565b6000838152602083905260409020612afd565b600060208284031215612d3857600080fd5b5035919050565b60008060208385031215612d5257600080fd5b823567ffffffffffffffff80821115612d6a57600080fd5b818501915085601f830112612d7e57600080fd5b813581811115612d8d57600080fd5b8660208260051b8501011115612da257600080fd5b60209290920196919550909350505050565b6001600160a01b038116811461274a57600080fd5b600060208284031215612ddb57600080fd5b8135612de681612db4565b9392505050565b634e487b7160e01b600052602160045260246000fd5b6020810160048310612e2557634e487b7160e01b600052602160045260246000fd5b91905290565b803567ffffffffffffffff81168114612e4357600080fd5b919050565b6000806000806000806000806000806101408b8d031215612e6857600080fd5b612e718b612e2b565b9950612e7f60208c01612e2b565b985060408b0135975060608b0135965060808b0135955060a08b013560ff81168114612eaa57600080fd5b999c989b5096999598949794965050505060c08301359260e08101359261010082013592506101209091013590565b634e487b7160e01b600052601160045260246000fd5b80820180821115612b0057612b00612ed9565b600060208284031215612f1457600080fd5b81518015158114612de657600080fd5b600080600060608486031215612f3957600080fd5b8351925060208401519150604084015190509250925092565b600060208284031215612f6457600080fd5b8151612de681612db4565b81810381811115612b0057612b00612ed9565b600082612f9f57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215612fb657600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b600060018201612fe557612fe5612ed9565b5060010190565b600081600019048311821515161561300657613006612ed9565b50029056fea2646970667358221220c4cbacb14de36cfd8d0ad356d5779a5e92791ab140378d88a141e08e9e42dca364736f6c63430008100033

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

0000000000000000000000005ba8d7e52f838f66076cc25dc8ed9b469eabbec40000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f00000000000000000000000013dee18f5844ec6f11d0b4f5dcc6a80a9089bdea000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

-----Decoded View---------------
Arg [0] : _tokenInstance (address): 0x5bA8d7E52f838f66076CC25dc8ED9B469eaBbeC4
Arg [1] : _uniswapv2Router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [2] : _uniswapv2Factory (address): 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f
Arg [3] : _teamWallet (address): 0x13DeE18F5844ec6F11d0B4F5dCc6a80A9089Bdea
Arg [4] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000005ba8d7e52f838f66076cc25dc8ed9b469eabbec4
Arg [1] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [2] : 0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f
Arg [3] : 00000000000000000000000013dee18f5844ec6f11d0b4f5dcc6a80a9089bdea
Arg [4] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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