ETH Price: $2,045.96 (+0.47%)

Contract

0xA01a5bfAae4cEE91485abE9FdeaFA74D0331AdA5
 

Overview

ETH Balance

0.011030000000000001 ETH

Eth Value

$22.57 (@ $2,045.96/ETH)

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Buy With ETH232084062025-08-24 3:57:23199 days ago1756007843IN
0xA01a5bfA...D0331AdA5
0.0002 ETH0.000019970.16991933
Add Airdrop Toke...231274962025-08-12 20:57:11211 days ago1755032231IN
0xA01a5bfA...D0331AdA5
0 ETH0.000204495
Add Airdrop Toke...231274942025-08-12 20:56:47211 days ago1755032207IN
0xA01a5bfA...D0331AdA5
0 ETH0.000204555
Add Airdrop Toke...231274932025-08-12 20:56:35211 days ago1755032195IN
0xA01a5bfA...D0331AdA5
0 ETH0.000204555
Add Airdrop Toke...231274912025-08-12 20:56:11211 days ago1755032171IN
0xA01a5bfA...D0331AdA5
0 ETH0.000204495
Add Airdrop Toke...231274902025-08-12 20:55:59211 days ago1755032159IN
0xA01a5bfA...D0331AdA5
0 ETH0.000204495
Add Airdrop Toke...231274862025-08-12 20:55:11211 days ago1755032111IN
0xA01a5bfA...D0331AdA5
0 ETH0.000204495
Add Airdrop Toke...231274842025-08-12 20:54:47211 days ago1755032087IN
0xA01a5bfA...D0331AdA5
0 ETH0.000204495
Add Airdrop Toke...231274822025-08-12 20:54:23211 days ago1755032063IN
0xA01a5bfA...D0331AdA5
0 ETH0.000204495
Add Airdrop Toke...231274802025-08-12 20:53:59211 days ago1755032039IN
0xA01a5bfA...D0331AdA5
0 ETH0.000204495
Add Airdrop Toke...231274782025-08-12 20:53:35211 days ago1755032015IN
0xA01a5bfA...D0331AdA5
0 ETH0.000204495
Add Airdrop Toke...231274772025-08-12 20:53:23211 days ago1755032003IN
0xA01a5bfA...D0331AdA5
0 ETH0.000204495
Add Airdrop Toke...231274752025-08-12 20:52:59211 days ago1755031979IN
0xA01a5bfA...D0331AdA5
0 ETH0.000204495
Add Airdrop Toke...231274732025-08-12 20:52:35211 days ago1755031955IN
0xA01a5bfA...D0331AdA5
0 ETH0.000204495
Add Airdrop Toke...231274712025-08-12 20:52:11211 days ago1755031931IN
0xA01a5bfA...D0331AdA5
0 ETH0.000204495
Add Airdrop Toke...231274692025-08-12 20:51:47211 days ago1755031907IN
0xA01a5bfA...D0331AdA5
0 ETH0.000204495
Add Airdrop Toke...231274662025-08-12 20:51:11211 days ago1755031871IN
0xA01a5bfA...D0331AdA5
0 ETH0.000204495
Add Airdrop Toke...231274642025-08-12 20:50:47211 days ago1755031847IN
0xA01a5bfA...D0331AdA5
0 ETH0.000204435
Add Airdrop Toke...231274632025-08-12 20:50:35211 days ago1755031835IN
0xA01a5bfA...D0331AdA5
0 ETH0.000204555
Add Airdrop Toke...230774112025-08-05 21:00:11218 days ago1754427611IN
0xA01a5bfA...D0331AdA5
0 ETH0.000158212.7278812
Add Airdrop Toke...230774092025-08-05 20:59:47218 days ago1754427587IN
0xA01a5bfA...D0331AdA5
0 ETH0.000112642.75344874
Add Airdrop Toke...230774082025-08-05 20:59:35218 days ago1754427575IN
0xA01a5bfA...D0331AdA5
0 ETH0.000113032.76284204
Add Airdrop Toke...230774072025-08-05 20:59:23218 days ago1754427563IN
0xA01a5bfA...D0331AdA5
0 ETH0.000112492.75055522
Add Airdrop Toke...230774052025-08-05 20:58:59218 days ago1754427539IN
0xA01a5bfA...D0331AdA5
0 ETH0.000113672.77939002
Add Airdrop Toke...230774042025-08-05 20:58:47218 days ago1754427527IN
0xA01a5bfA...D0331AdA5
0 ETH0.000114822.80741299
View all transactions

Latest 9 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer229749122025-07-22 13:07:35232 days ago1753189655
0xA01a5bfA...D0331AdA5
0.09245809 ETH
Transfer228835142025-07-09 18:47:35245 days ago1752086855
0xA01a5bfA...D0331AdA5
0.24726089 ETH
Transfer228257612025-07-01 17:04:35253 days ago1751389475
0xA01a5bfA...D0331AdA5
0.30963 ETH
Transfer227730972025-06-24 8:28:59260 days ago1750753739
0xA01a5bfA...D0331AdA5
1.05658 ETH
Transfer227262102025-06-17 19:08:47267 days ago1750187327
0xA01a5bfA...D0331AdA5
0.1855643 ETH
Transfer227025072025-06-14 11:30:59270 days ago1749900659
0xA01a5bfA...D0331AdA5
0.07682 ETH
Transfer226837912025-06-11 20:45:47273 days ago1749674747
0xA01a5bfA...D0331AdA5
0.02 ETH
Transfer226666132025-06-09 11:06:23275 days ago1749467183
0xA01a5bfA...D0331AdA5
0.8137514 ETH
Transfer226228592025-06-03 8:11:59281 days ago1748938319
0xA01a5bfA...D0331AdA5
2.2981969 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Presale

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
//SPDX-License-Identifier: MIT

pragma solidity 0.8.20;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

interface Aggregator {
   function latestRoundData() external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);
}

contract Presale is Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;
	
	address private HABE;
	address private USDT;
	address private USDC;
	
	bool public claimStatus;
	bool public saleStatus;
	
	uint256 public tokenToSold;
	uint256 public tokenSold;
    uint256 public USDRaised;
	
	uint256 public currentRound;
	uint256 public saleStartTime;
	uint256 public saleEndTime;
	
	uint256 public airdropDistributed;
	uint256 public rewardDistributed;
	uint256 public rewardPerShare;
	uint256 public precisionFactor;
	uint256 public lastRewardBlock;
	uint256 public rewardPerBlock;
	
	uint256[15] public tokenPrice;
	uint256[15] public tokenRound;
	Aggregator public aggregatorInterface;
	
	struct buyTokenInfo {
		uint256 USDPaid;
		uint256 tokenFromBuy; 
		uint256 tokenFromReward;
		uint256 tokenFromAirdrop;
		uint256 rewardPerShare;
		uint256 tokenClaimed;
    }
	
	mapping(address => buyTokenInfo) public mapBuyInfo;
	
    event TokensBought(address user, uint256 tokens, uint256 amount, uint256 timestamp);
    event TokensClaimed(address user, uint256 amount, uint256 timestamp);
	event SaleStatusUpdated(bool status);
    event ClaimStatusUpdated(bool status);
	
    constructor(address _owner) {
		require(_owner != address(0), "Owner:: zero address");
		
		USDC = address(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48);
		USDT = address(0xdAC17F958D2ee523a2206206994597C13D831ec7);
		HABE = address(0x1757cD0b3e7D8c3c8e7C02613960A52A5C2554Ff);
	   
		tokenToSold = 4_250_000_000 * 10**18;
		tokenPrice = [10 * 10**2, 15 * 10**2, 20 * 10**2, 25 * 10**2, 30 * 10**2, 35 * 10**2, 40 * 10**2, 45 * 10**2, 50 * 10**2, 55 * 10**2, 60 * 10**2, 65 * 10**2, 70 * 10**2, 75 * 10**2, 80 * 10**2];
		tokenRound = [1750444200, 1752172200, 1753900200, 1755628200, 1757356200, 1759084200, 1760812200, 1762540200, 1764268200, 1765996200, 1767724200, 1769452200, 1771180200, 1772908200, 1774895400];
		
		precisionFactor = 10**18;
		rewardPerBlock = 175 * 10**18;
		saleStartTime = 1748716200;
		saleEndTime = 1774895400;
		saleStatus = true;
		
		aggregatorInterface = Aggregator(0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419);
		_transferOwnership(address(_owner));
	}
	
	function buyWithUSDT(uint256 amount) external nonReentrant {
		require(msg.sender.code.length == 0, "Only externally owned accounts (EOA) are allowed");
		require(saleStatus && block.timestamp > saleStartTime && saleEndTime > block.timestamp, "Token sale has not started yet");
		require(IERC20(USDT).balanceOf(msg.sender) >= amount, "Insufficient USDT balance to purchase tokens");
		require(IERC20(USDT).allowance(msg.sender, address(this)) >= amount, "Insufficient USDT allowance. Please approve the required amount");
		
		updateRound();
		
		uint256 price = tokenPrice[currentRound];
		uint256 tokens = amount * (10**18) / price;
		
		require((tokenToSold - tokenSold) >= tokens, "Insufficient token allocation for sale");
		
		USDRaised += amount; 
		tokenSold += tokens;
		
		if(mapBuyInfo[msg.sender].tokenFromBuy > 0)
		{
			uint256 pending = pendingReward(msg.sender);
            if(pending > 0) 
			{
				mapBuyInfo[msg.sender].tokenFromReward += pending;
            }
		}
		
		mapBuyInfo[msg.sender].USDPaid += amount;
		mapBuyInfo[msg.sender].tokenFromBuy += tokens;
		mapBuyInfo[msg.sender].rewardPerShare = ((mapBuyInfo[msg.sender].tokenFromBuy * rewardPerShare) / (precisionFactor));
		
		IERC20(USDT).safeTransferFrom(msg.sender, address(this), amount);
		emit TokensBought(msg.sender, tokens, amount, block.timestamp);
    }
	
	function buyWithUSDC(uint256 amount) external nonReentrant {
		require(msg.sender.code.length == 0, "Only externally owned accounts (EOA) are allowed");
		require(saleStatus && block.timestamp > saleStartTime && saleEndTime > block.timestamp, "Token sale has not started yet");
		require(IERC20(USDC).balanceOf(msg.sender) >= amount, "Insufficient USDC balance to purchase tokens");
		require(IERC20(USDC).allowance(msg.sender, address(this)) >= amount, "Insufficient USDC allowance. Please approve the required amount");
	   
	    updateRound();
	   
		uint256 price = tokenPrice[currentRound];
		uint256 tokens = amount * (10**18) / price;
		
		require((tokenToSold - tokenSold) >= tokens, "Insufficient token allocation for sale");
		
		USDRaised += amount; 
		tokenSold += tokens;
		
		if(mapBuyInfo[msg.sender].tokenFromBuy > 0)
		{
			uint256 pending = pendingReward(msg.sender);
            if(pending > 0) 
			{
				mapBuyInfo[msg.sender].tokenFromReward += pending;
            }
		}
		
		mapBuyInfo[msg.sender].USDPaid += amount;
		mapBuyInfo[msg.sender].tokenFromBuy += tokens;
		mapBuyInfo[msg.sender].rewardPerShare = ((mapBuyInfo[msg.sender].tokenFromBuy * rewardPerShare) / (precisionFactor));
		
		IERC20(USDC).safeTransferFrom(msg.sender, address(this), amount);
		emit TokensBought(msg.sender, tokens, amount, block.timestamp);
    }
	
	function buyWithETH() external payable nonReentrant {
		require(msg.sender.code.length == 0, "Only externally owned accounts (EOA) are allowed");
		require(saleStatus && block.timestamp > saleStartTime && saleEndTime > block.timestamp, "Token sale has not started yet");
		
		updateRound();
		
		uint256 amount = (getLatestPrice() * msg.value) / (10**30);
		uint256 price = tokenPrice[currentRound];
		uint256 tokens = amount * (10**18) / price;
		
		require((tokenToSold - tokenSold) >= tokens, "Insufficient token allocation for sale");
		
		USDRaised += amount; 
		tokenSold += tokens;
		
		if(mapBuyInfo[msg.sender].tokenFromBuy > 0)
		{
			uint256 pending = pendingReward(msg.sender);
            if(pending > 0) 
			{
				mapBuyInfo[msg.sender].tokenFromReward += pending;
            }
		}
		
		mapBuyInfo[msg.sender].USDPaid += amount;
		mapBuyInfo[msg.sender].tokenFromBuy += tokens;
		mapBuyInfo[msg.sender].rewardPerShare = ((mapBuyInfo[msg.sender].tokenFromBuy * rewardPerShare) / (precisionFactor));
	    emit TokensBought(msg.sender, tokens, amount, block.timestamp);
    }
	
	function addAirdropTokens(address[] memory users, uint256[] memory tokens) external onlyOwner nonReentrant {
		require(users.length == tokens.length, "Mismatched array lengths");
		
		for (uint256 i = 0; i < users.length; i++) {
			require(tokens[i] > 0, "Tokens must be greater than zero");
			require(users[i] != address(0), "Owner:: zero address");
			
			mapBuyInfo[users[i]].tokenFromAirdrop += tokens[i];
			airdropDistributed += tokens[i];
			
			emit TokensBought(users[i], tokens[i], 0, block.timestamp);
		}
	}
	
	function pendingReward(address user) public view returns (uint256) {
		uint256 pending = ((mapBuyInfo[user].tokenFromBuy * rewardPerShare) / (precisionFactor)) - (mapBuyInfo[user].rewardPerShare);
		return pending;
    }
	
	function updateRound() internal {
		if(block.timestamp > tokenRound[currentRound])
		{
			currentRound ++;
		}
		if(tokenSold > 0) 
		{
			uint256 amount = (block.number - lastRewardBlock) * (rewardPerBlock);
			rewardPerShare += ((amount * precisionFactor) / (tokenSold));
			rewardDistributed += amount;
		}
		lastRewardBlock = block.number;
	}
	
	function claimToken() external nonReentrant {
		require(msg.sender.code.length == 0, "Only externally owned accounts (EOA) are allowed");
		require(claimStatus, "Token claim has not started yet");
		
		uint256 pending = pendingReward(msg.sender);
		        pending = (pending + mapBuyInfo[msg.sender].tokenFromBuy + mapBuyInfo[msg.sender].tokenFromReward + mapBuyInfo[msg.sender].tokenFromAirdrop) - (mapBuyInfo[msg.sender].tokenClaimed);
		if(pending > 0) 
		{
			mapBuyInfo[msg.sender].tokenClaimed += pending;
		    IERC20(HABE).safeTransfer(msg.sender, pending);
		    emit TokensClaimed(msg.sender, pending, block.timestamp);
		}
		else
		{
			emit TokensClaimed(msg.sender, 0, block.timestamp);
		}
    }
	
	function updateSaleStatus(bool status) external onlyOwner {
		require(saleStatus != status, "Sale status is already set to this value");
		
		updateRound();
		if(status) 
		{
			require(!claimStatus, "Claim must be stopped before starting the presale");
		}
		saleStatus = status;
		emit SaleStatusUpdated(status);
	}
	
	function startClaim() external onlyOwner {
        require(!claimStatus, "Claim is already start");
		
		updateRound();
		
		claimStatus = true;
		saleStatus = false;
		
		require(IERC20(HABE).balanceOf(address(this)) >= (tokenSold + rewardDistributed + airdropDistributed), "Tokens is not available to start claim");
		emit ClaimStatusUpdated(true);
    }
	
	function withdrawFunds(address payable receiver) external onlyOwner nonReentrant {
		require(receiver != address(0), "Invalid address");
		
		uint256 usdtBalance = IERC20(USDT).balanceOf(address(this));
		if (usdtBalance > 0) {
			IERC20(USDT).safeTransfer(receiver, usdtBalance);
		}

		uint256 usdcBalance = IERC20(USDC).balanceOf(address(this));
		if (usdcBalance > 0) {
			IERC20(USDC).safeTransfer(receiver, usdcBalance);
		}
		
		uint256 ethBalance = address(this).balance;
		if (ethBalance > 0) {
			(bool sent, ) = receiver.call{value: ethBalance}("");
			require(sent, "ETH withdrawal failed");
		}
	}
	
	function getLatestPrice() public view returns (uint256) {
       (, int256 price, , , ) = aggregatorInterface.latestRoundData();
       price = (price * (10 ** 10));
       return uint256(price);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 3 of 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"ClaimStatusUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"SaleStatusUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokens","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensClaimed","type":"event"},{"inputs":[],"name":"USDRaised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"uint256[]","name":"tokens","type":"uint256[]"}],"name":"addAirdropTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"aggregatorInterface","outputs":[{"internalType":"contract Aggregator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"airdropDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyWithETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyWithUSDC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyWithUSDT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLatestPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRewardBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mapBuyInfo","outputs":[{"internalType":"uint256","name":"USDPaid","type":"uint256"},{"internalType":"uint256","name":"tokenFromBuy","type":"uint256"},{"internalType":"uint256","name":"tokenFromReward","type":"uint256"},{"internalType":"uint256","name":"tokenFromAirdrop","type":"uint256"},{"internalType":"uint256","name":"rewardPerShare","type":"uint256"},{"internalType":"uint256","name":"tokenClaimed","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"precisionFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenToSold","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":[{"internalType":"bool","name":"status","type":"bool"}],"name":"updateSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"receiver","type":"address"}],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801562000010575f80fd5b5060405162002844380380620028448339810160408190526200003391620003c2565b6200003e33620002db565b600180556001600160a01b0381166200009d5760405162461bcd60e51b815260206004820152601460248201527f4f776e65723a3a207a65726f2061646472657373000000000000000000000000604482015260640160405180910390fd5b600480546001600160a01b031990811673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb481790915560038054821673dac17f958d2ee523a2206206994597c13d831ec717905560028054909116731757cd0b3e7d8c3c8e7c02613960a52a5c2554ff1790556b0dbb8481a7362102da000000600555604080516101e0810182526103e881526105dc60208201526107d0918101919091526109c46060820152610bb86080820152610dac60a0820152610fa060c082015261119460e082015261138861010082015261157c610120820152611770610140820152611964610160820152611b58610180820152611d4c6101a0820152611f406101c0820152620001ac90601190600f6200032a565b50604080516101e081018252636855a8a8815263687006a860208083019190915263688a64a8928201929092526368a4c2a860608201526368bf20a860808201526368d97ea860a08201526368f3dca860c082015263690e3aa860e082015263692898a8610100820152636942f6a861012082015263695d54a8610140820152636977b2a861016082015263699210a86101808201526369ac6ea86101a08201526369cac1286101c0820152620002669190600f62000373565b50670de0b6b3a7640000600e5568097c9ce4cf6d5c000060105563683b4aa86009556369cac128600a556004805460ff60a81b1916600160a81b179055602f80546001600160a01b031916735f4ec3df9cbd43714fe2740f5e3616155c5b8419179055620002d481620002db565b50620003f1565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82600f810192821562000361579160200282015b8281111562000361578251829061ffff169055916020019190600101906200033e565b506200036f929150620003ac565b5090565b82600f810192821562000361579160200282015b8281111562000361578251829063ffffffff1690559160200191906001019062000387565b5b808211156200036f575f8155600101620003ad565b5f60208284031215620003d3575f80fd5b81516001600160a01b0381168114620003ea575f80fd5b9392505050565b61244580620003ff5f395ff3fe6080604052600436106101d0575f3560e01c80638da5cb5b116100fd578063c49cc64511610092578063ed338ff111610062578063ed338ff1146104fb578063f2fde38b14610510578063f40f0f521461052f578063f9020e331461054e575f80fd5b8063c49cc64514610494578063d4ddce8a146104b3578063e9483ac0146104d2578063ecbfc077146104e7575f80fd5b8063a9f8d181116100cd578063a9f8d1811461041b578063ae87fc4b14610430578063aeccf73514610460578063b2812faa1461047f575f80fd5b80638da5cb5b146103a35780638e15f473146103d35780639d902fc0146103e7578063a7c60160146103fc575f80fd5b8063519ee19e1161017357806368742da61161014357806368742da614610346578063715018a6146103655780638a19c8bc146103795780638ae39cac1461038e575f80fd5b8063519ee19e146102825780635554d7651461029757806363256fbf146102b65780636657687d14610331575f80fd5b80632bbfa6bb116101ae5780632bbfa6bb146102255780634451d89f14610244578063446a2ec814610258578063468350fc1461026d575f80fd5b80630a088949146101d4578063150d283d146101f55780631cbaee2d146101fd575b5f80fd5b3480156101df575f80fd5b506101f36101ee366004611f22565b61056e565b005b6101f36106c8565b348015610208575f80fd5b5061021260095481565b6040519081526020015b60405180910390f35b348015610230575f80fd5b506101f361023f366004612021565b610940565b34801561024f575f80fd5b506101f3610bcd565b348015610263575f80fd5b50610212600d5481565b348015610278575f80fd5b5061021260055481565b34801561028d575f80fd5b5061021260065481565b3480156102a2575f80fd5b506102126102b13660046120dd565b610d98565b3480156102c1575f80fd5b506103046102d03660046120f4565b60306020525f9081526040902080546001820154600283015460038401546004850154600590950154939492939192909186565b604080519687526020870195909552938501929092526060840152608083015260a082015260c00161021c565b34801561033c575f80fd5b50610212600b5481565b348015610351575f80fd5b506101f36103603660046120f4565b610dae565b348015610370575f80fd5b506101f3610fe6565b348015610384575f80fd5b5061021260085481565b348015610399575f80fd5b5061021260105481565b3480156103ae575f80fd5b505f546001600160a01b03165b6040516001600160a01b03909116815260200161021c565b3480156103de575f80fd5b50610212610ff9565b3480156103f2575f80fd5b50610212600e5481565b348015610407575f80fd5b506101f36104163660046120dd565b61108c565b348015610426575f80fd5b50610212600f5481565b34801561043b575f80fd5b5060045461045090600160a01b900460ff1681565b604051901515815260200161021c565b34801561046b575f80fd5b506101f361047a3660046120dd565b611490565b34801561048a575f80fd5b5061021260075481565b34801561049f575f80fd5b50602f546103bb906001600160a01b031681565b3480156104be575f80fd5b506102126104cd3660046120dd565b61186a565b3480156104dd575f80fd5b50610212600c5481565b3480156104f2575f80fd5b506101f3611879565b348015610506575f80fd5b50610212600a5481565b34801561051b575f80fd5b506101f361052a3660046120f4565b611a0a565b34801561053a575f80fd5b506102126105493660046120f4565b611a83565b348015610559575f80fd5b5060045461045090600160a81b900460ff1681565b610576611ad1565b801515600460159054906101000a900460ff161515036105ee5760405162461bcd60e51b815260206004820152602860248201527f53616c652073746174757320697320616c72656164792073657420746f20746860448201526769732076616c756560c01b60648201526084015b60405180910390fd5b6105f6611b2a565b801561067057600454600160a01b900460ff16156106705760405162461bcd60e51b815260206004820152603160248201527f436c61696d206d7573742062652073746f70706564206265666f7265207374616044820152707274696e67207468652070726573616c6560781b60648201526084016105e5565b60048054821515600160a81b0260ff60a81b199091161790556040517fc75413bb803e9f5f8572b10a8262838386a1bc5db1743ff399db4f5c32f4691e906106bd90831515815260200190565b60405180910390a150565b6002600154036106ea5760405162461bcd60e51b81526004016105e59061210f565b6002600155333b1561070e5760405162461bcd60e51b81526004016105e590612146565b600454600160a81b900460ff168015610728575060095442115b8015610735575042600a54115b6107515760405162461bcd60e51b81526004016105e590612196565b610759611b2a565b5f6c0c9f2c9cd04674edea4000000034610771610ff9565b61077b91906121e1565b61078591906121f8565b90505f6011600854600f811061079d5761079d612217565b015490505f816107b584670de0b6b3a76400006121e1565b6107bf91906121f8565b9050806006546005546107d2919061222b565b10156107f05760405162461bcd60e51b81526004016105e59061223e565b8260075f8282546108019190612284565b925050819055508060065f8282546108199190612284565b9091555050335f9081526030602052604090206001015415610870575f61083f33611a83565b9050801561086e57335f9081526030602052604081206002018054839290610868908490612284565b90915550505b505b335f908152603060205260408120805485929061088e908490612284565b9091555050335f90815260306020526040812060010180548392906108b4908490612284565b9091555050600e54600d54335f908152603060205260409020600101546108db91906121e1565b6108e591906121f8565b335f81815260306020526040908190206004019290925590517f22f6af6e13430e3e7b6418d01e6a48c1fbce5e8cb1698901fc95134b4b1c58ad9161092f91849087904290612297565b60405180910390a150506001805550565b610948611ad1565b60026001540361096a5760405162461bcd60e51b81526004016105e59061210f565b600260015580518251146109c05760405162461bcd60e51b815260206004820152601860248201527f4d69736d617463686564206172726179206c656e67746873000000000000000060448201526064016105e5565b5f5b8251811015610bc4575f8282815181106109de576109de612217565b602002602001015111610a335760405162461bcd60e51b815260206004820181905260248201527f546f6b656e73206d7573742062652067726561746572207468616e207a65726f60448201526064016105e5565b5f6001600160a01b0316838281518110610a4f57610a4f612217565b60200260200101516001600160a01b031603610aa45760405162461bcd60e51b81526020600482015260146024820152734f776e65723a3a207a65726f206164647265737360601b60448201526064016105e5565b818181518110610ab657610ab6612217565b602002602001015160305f858481518110610ad357610ad3612217565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f206003015f828254610b0b9190612284565b92505081905550818181518110610b2457610b24612217565b6020026020010151600b5f828254610b3c9190612284565b925050819055507f22f6af6e13430e3e7b6418d01e6a48c1fbce5e8cb1698901fc95134b4b1c58ad838281518110610b7657610b76612217565b6020026020010151838381518110610b9057610b90612217565b60200260200101515f42604051610baa9493929190612297565b60405180910390a180610bbc816122bd565b9150506109c2565b50506001805550565b600260015403610bef5760405162461bcd60e51b81526004016105e59061210f565b6002600155333b15610c135760405162461bcd60e51b81526004016105e590612146565b600454600160a01b900460ff16610c6c5760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e20636c61696d20686173206e6f742073746172746564207965740060448201526064016105e5565b5f610c7633611a83565b335f9081526030602052604090206005810154600382015460028301546001909301549394509092909190610cab9085612284565b610cb59190612284565b610cbf9190612284565b610cc9919061222b565b90508015610d5257335f9081526030602052604081206005018054839290610cf2908490612284565b9091555050600254610d0e906001600160a01b03163383611bd3565b6040805133815260208101839052428183015290517f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b9181900360600190a1610d91565b604080513381525f6020820152428183015290517f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b9181900360600190a15b5060018055565b602081600f8110610da7575f80fd5b0154905081565b610db6611ad1565b600260015403610dd85760405162461bcd60e51b81526004016105e59061210f565b60026001556001600160a01b038116610e255760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064016105e5565b6003546040516370a0823160e01b81523060048201525f916001600160a01b0316906370a0823190602401602060405180830381865afa158015610e6b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e8f91906122d5565b90508015610eae57600354610eae906001600160a01b03168383611bd3565b600480546040516370a0823160e01b815230928101929092525f916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610ef9573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f1d91906122d5565b90508015610f3c57600454610f3c906001600160a01b03168483611bd3565b478015610fdc575f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f8c576040519150601f19603f3d011682016040523d82523d5f602084013e610f91565b606091505b5050905080610fda5760405162461bcd60e51b8152602060048201526015602482015274115512081dda5d1a191c985dd85b0819985a5b1959605a1b60448201526064016105e5565b505b5050600180555050565b610fee611ad1565b610ff75f611c3b565b565b5f80602f5f9054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa15801561104b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061106f919061230a565b505050915050806402540be4006110869190612356565b92915050565b6002600154036110ae5760405162461bcd60e51b81526004016105e59061210f565b6002600155333b156110d25760405162461bcd60e51b81526004016105e590612146565b600454600160a81b900460ff1680156110ec575060095442115b80156110f9575042600a54115b6111155760405162461bcd60e51b81526004016105e590612196565b6003546040516370a0823160e01b815233600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa15801561115b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061117f91906122d5565b10156111e25760405162461bcd60e51b815260206004820152602c60248201527f496e73756666696369656e7420555344542062616c616e636520746f2070757260448201526b636861736520746f6b656e7360a01b60648201526084016105e5565b600354604051636eb1769f60e11b815233600482015230602482015282916001600160a01b03169063dd62ed3e90604401602060405180830381865afa15801561122e573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061125291906122d5565b10156112c65760405162461bcd60e51b815260206004820152603f60248201527f496e73756666696369656e74205553445420616c6c6f77616e63652e20506c6560448201527f61736520617070726f76652074686520726571756972656420616d6f756e740060648201526084016105e5565b6112ce611b2a565b5f6011600854600f81106112e4576112e4612217565b015490505f816112fc84670de0b6b3a76400006121e1565b61130691906121f8565b905080600654600554611319919061222b565b10156113375760405162461bcd60e51b81526004016105e59061223e565b8260075f8282546113489190612284565b925050819055508060065f8282546113609190612284565b9091555050335f90815260306020526040902060010154156113b7575f61138633611a83565b905080156113b557335f90815260306020526040812060020180548392906113af908490612284565b90915550505b505b335f90815260306020526040812080548592906113d5908490612284565b9091555050335f90815260306020526040812060010180548392906113fb908490612284565b9091555050600e54600d54335f9081526030602052604090206001015461142291906121e1565b61142c91906121f8565b335f8181526030602052604090206004019190915560035461145b916001600160a01b03909116903086611c8a565b7f22f6af6e13430e3e7b6418d01e6a48c1fbce5e8cb1698901fc95134b4b1c58ad3382854260405161092f9493929190612297565b6002600154036114b25760405162461bcd60e51b81526004016105e59061210f565b6002600155333b156114d65760405162461bcd60e51b81526004016105e590612146565b600454600160a81b900460ff1680156114f0575060095442115b80156114fd575042600a54115b6115195760405162461bcd60e51b81526004016105e590612196565b600480546040516370a0823160e01b8152339281019290925282916001600160a01b03909116906370a0823190602401602060405180830381865afa158015611564573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061158891906122d5565b10156115eb5760405162461bcd60e51b815260206004820152602c60248201527f496e73756666696369656e7420555344432062616c616e636520746f2070757260448201526b636861736520746f6b656e7360a01b60648201526084016105e5565b60048054604051636eb1769f60e11b8152339281019290925230602483015282916001600160a01b039091169063dd62ed3e90604401602060405180830381865afa15801561163c573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061166091906122d5565b10156116d45760405162461bcd60e51b815260206004820152603f60248201527f496e73756666696369656e74205553444320616c6c6f77616e63652e20506c6560448201527f61736520617070726f76652074686520726571756972656420616d6f756e740060648201526084016105e5565b6116dc611b2a565b5f6011600854600f81106116f2576116f2612217565b015490505f8161170a84670de0b6b3a76400006121e1565b61171491906121f8565b905080600654600554611727919061222b565b10156117455760405162461bcd60e51b81526004016105e59061223e565b8260075f8282546117569190612284565b925050819055508060065f82825461176e9190612284565b9091555050335f90815260306020526040902060010154156117c5575f61179433611a83565b905080156117c357335f90815260306020526040812060020180548392906117bd908490612284565b90915550505b505b335f90815260306020526040812080548592906117e3908490612284565b9091555050335f9081526030602052604081206001018054839290611809908490612284565b9091555050600e54600d54335f9081526030602052604090206001015461183091906121e1565b61183a91906121f8565b335f818152603060205260409020600490810192909255905461145b916001600160a01b03909116903086611c8a565b601181600f8110610da7575f80fd5b611881611ad1565b600454600160a01b900460ff16156118d45760405162461bcd60e51b815260206004820152601660248201527510db185a5b481a5cc8185b1c9958591e481cdd185c9d60521b60448201526064016105e5565b6118dc611b2a565b6004805461ffff60a01b1916600160a01b179055600b54600c546006546119039190612284565b61190d9190612284565b6002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611953573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061197791906122d5565b10156119d45760405162461bcd60e51b815260206004820152602660248201527f546f6b656e73206973206e6f7420617661696c61626c6520746f20737461727460448201526520636c61696d60d01b60648201526084016105e5565b604051600181527f7d9bc7474aa5661520727056d5036520e3004dfa67eebc8ea98dd139b044aae19060200160405180910390a1565b611a12611ad1565b6001600160a01b038116611a775760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105e5565b611a8081611c3b565b50565b6001600160a01b0381165f9081526030602052604081206004810154600e54600d546001909301548493611ab6916121e1565b611ac091906121f8565b611aca919061222b565b9392505050565b5f546001600160a01b03163314610ff75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105e5565b6020600854600f8110611b3f57611b3f612217565b0154421115611b5d5760088054905f611b57836122bd565b91905055505b60065415611bcd575f601054600f5443611b77919061222b565b611b8191906121e1565b9050600654600e5482611b9491906121e1565b611b9e91906121f8565b600d5f828254611bae9190612284565b9250508190555080600c5f828254611bc69190612284565b9091555050505b43600f55565b6040516001600160a01b038316602482015260448101829052611c3690849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611cc8565b505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052611cc29085906323b872dd60e01b90608401611bff565b50505050565b5f611d1c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611d999092919063ffffffff16565b805190915015611c365780806020019051810190611d3a9190612385565b611c365760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105e5565b6060611da784845f85611daf565b949350505050565b606082471015611e105760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105e5565b6001600160a01b0385163b611e675760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105e5565b5f80866001600160a01b03168587604051611e8291906123c2565b5f6040518083038185875af1925050503d805f8114611ebc576040519150601f19603f3d011682016040523d82523d5f602084013e611ec1565b606091505b5091509150611ed1828286611edc565b979650505050505050565b60608315611eeb575081611aca565b825115611efb5782518084602001fd5b8160405162461bcd60e51b81526004016105e591906123dd565b8015158114611a80575f80fd5b5f60208284031215611f32575f80fd5b8135611aca81611f15565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611f7a57611f7a611f3d565b604052919050565b5f67ffffffffffffffff821115611f9b57611f9b611f3d565b5060051b60200190565b6001600160a01b0381168114611a80575f80fd5b5f82601f830112611fc8575f80fd5b81356020611fdd611fd883611f82565b611f51565b82815260059290921b84018101918181019086841115611ffb575f80fd5b8286015b848110156120165780358352918301918301611fff565b509695505050505050565b5f8060408385031215612032575f80fd5b823567ffffffffffffffff80821115612049575f80fd5b818501915085601f83011261205c575f80fd5b8135602061206c611fd883611f82565b82815260059290921b8401810191818101908984111561208a575f80fd5b948201945b838610156120b15785356120a281611fa5565b8252948201949082019061208f565b965050860135925050808211156120c6575f80fd5b506120d385828601611fb9565b9150509250929050565b5f602082840312156120ed575f80fd5b5035919050565b5f60208284031215612104575f80fd5b8135611aca81611fa5565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526030908201527f4f6e6c792065787465726e616c6c79206f776e6564206163636f756e7473202860408201526f1153d04a48185c9948185b1b1bddd95960821b606082015260800190565b6020808252601e908201527f546f6b656e2073616c6520686173206e6f742073746172746564207965740000604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b8082028115828204841417611086576110866121cd565b5f8261221257634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52603260045260245ffd5b81810381811115611086576110866121cd565b60208082526026908201527f496e73756666696369656e7420746f6b656e20616c6c6f636174696f6e20666f604082015265722073616c6560d01b606082015260800190565b80820180821115611086576110866121cd565b6001600160a01b0394909416845260208401929092526040830152606082015260800190565b5f600182016122ce576122ce6121cd565b5060010190565b5f602082840312156122e5575f80fd5b5051919050565b805169ffffffffffffffffffff81168114612305575f80fd5b919050565b5f805f805f60a0868803121561231e575f80fd5b612327866122ec565b945060208601519350604086015192506060860151915061234a608087016122ec565b90509295509295909350565b8082025f8212600160ff1b84141615612371576123716121cd565b8181058314821517611086576110866121cd565b5f60208284031215612395575f80fd5b8151611aca81611f15565b5f5b838110156123ba5781810151838201526020016123a2565b50505f910152565b5f82516123d38184602087016123a0565b9190910192915050565b602081525f82518060208401526123fb8160408501602087016123a0565b601f01601f1916919091016040019291505056fea2646970667358221220f8abc01ff5b85a545902c1d93edc91b885bb031248dfa591125e3ff0b3824b3564736f6c634300081400330000000000000000000000007d76adb3c14c0e5d50abb9451291a0e06fd6b835

Deployed Bytecode

0x6080604052600436106101d0575f3560e01c80638da5cb5b116100fd578063c49cc64511610092578063ed338ff111610062578063ed338ff1146104fb578063f2fde38b14610510578063f40f0f521461052f578063f9020e331461054e575f80fd5b8063c49cc64514610494578063d4ddce8a146104b3578063e9483ac0146104d2578063ecbfc077146104e7575f80fd5b8063a9f8d181116100cd578063a9f8d1811461041b578063ae87fc4b14610430578063aeccf73514610460578063b2812faa1461047f575f80fd5b80638da5cb5b146103a35780638e15f473146103d35780639d902fc0146103e7578063a7c60160146103fc575f80fd5b8063519ee19e1161017357806368742da61161014357806368742da614610346578063715018a6146103655780638a19c8bc146103795780638ae39cac1461038e575f80fd5b8063519ee19e146102825780635554d7651461029757806363256fbf146102b65780636657687d14610331575f80fd5b80632bbfa6bb116101ae5780632bbfa6bb146102255780634451d89f14610244578063446a2ec814610258578063468350fc1461026d575f80fd5b80630a088949146101d4578063150d283d146101f55780631cbaee2d146101fd575b5f80fd5b3480156101df575f80fd5b506101f36101ee366004611f22565b61056e565b005b6101f36106c8565b348015610208575f80fd5b5061021260095481565b6040519081526020015b60405180910390f35b348015610230575f80fd5b506101f361023f366004612021565b610940565b34801561024f575f80fd5b506101f3610bcd565b348015610263575f80fd5b50610212600d5481565b348015610278575f80fd5b5061021260055481565b34801561028d575f80fd5b5061021260065481565b3480156102a2575f80fd5b506102126102b13660046120dd565b610d98565b3480156102c1575f80fd5b506103046102d03660046120f4565b60306020525f9081526040902080546001820154600283015460038401546004850154600590950154939492939192909186565b604080519687526020870195909552938501929092526060840152608083015260a082015260c00161021c565b34801561033c575f80fd5b50610212600b5481565b348015610351575f80fd5b506101f36103603660046120f4565b610dae565b348015610370575f80fd5b506101f3610fe6565b348015610384575f80fd5b5061021260085481565b348015610399575f80fd5b5061021260105481565b3480156103ae575f80fd5b505f546001600160a01b03165b6040516001600160a01b03909116815260200161021c565b3480156103de575f80fd5b50610212610ff9565b3480156103f2575f80fd5b50610212600e5481565b348015610407575f80fd5b506101f36104163660046120dd565b61108c565b348015610426575f80fd5b50610212600f5481565b34801561043b575f80fd5b5060045461045090600160a01b900460ff1681565b604051901515815260200161021c565b34801561046b575f80fd5b506101f361047a3660046120dd565b611490565b34801561048a575f80fd5b5061021260075481565b34801561049f575f80fd5b50602f546103bb906001600160a01b031681565b3480156104be575f80fd5b506102126104cd3660046120dd565b61186a565b3480156104dd575f80fd5b50610212600c5481565b3480156104f2575f80fd5b506101f3611879565b348015610506575f80fd5b50610212600a5481565b34801561051b575f80fd5b506101f361052a3660046120f4565b611a0a565b34801561053a575f80fd5b506102126105493660046120f4565b611a83565b348015610559575f80fd5b5060045461045090600160a81b900460ff1681565b610576611ad1565b801515600460159054906101000a900460ff161515036105ee5760405162461bcd60e51b815260206004820152602860248201527f53616c652073746174757320697320616c72656164792073657420746f20746860448201526769732076616c756560c01b60648201526084015b60405180910390fd5b6105f6611b2a565b801561067057600454600160a01b900460ff16156106705760405162461bcd60e51b815260206004820152603160248201527f436c61696d206d7573742062652073746f70706564206265666f7265207374616044820152707274696e67207468652070726573616c6560781b60648201526084016105e5565b60048054821515600160a81b0260ff60a81b199091161790556040517fc75413bb803e9f5f8572b10a8262838386a1bc5db1743ff399db4f5c32f4691e906106bd90831515815260200190565b60405180910390a150565b6002600154036106ea5760405162461bcd60e51b81526004016105e59061210f565b6002600155333b1561070e5760405162461bcd60e51b81526004016105e590612146565b600454600160a81b900460ff168015610728575060095442115b8015610735575042600a54115b6107515760405162461bcd60e51b81526004016105e590612196565b610759611b2a565b5f6c0c9f2c9cd04674edea4000000034610771610ff9565b61077b91906121e1565b61078591906121f8565b90505f6011600854600f811061079d5761079d612217565b015490505f816107b584670de0b6b3a76400006121e1565b6107bf91906121f8565b9050806006546005546107d2919061222b565b10156107f05760405162461bcd60e51b81526004016105e59061223e565b8260075f8282546108019190612284565b925050819055508060065f8282546108199190612284565b9091555050335f9081526030602052604090206001015415610870575f61083f33611a83565b9050801561086e57335f9081526030602052604081206002018054839290610868908490612284565b90915550505b505b335f908152603060205260408120805485929061088e908490612284565b9091555050335f90815260306020526040812060010180548392906108b4908490612284565b9091555050600e54600d54335f908152603060205260409020600101546108db91906121e1565b6108e591906121f8565b335f81815260306020526040908190206004019290925590517f22f6af6e13430e3e7b6418d01e6a48c1fbce5e8cb1698901fc95134b4b1c58ad9161092f91849087904290612297565b60405180910390a150506001805550565b610948611ad1565b60026001540361096a5760405162461bcd60e51b81526004016105e59061210f565b600260015580518251146109c05760405162461bcd60e51b815260206004820152601860248201527f4d69736d617463686564206172726179206c656e67746873000000000000000060448201526064016105e5565b5f5b8251811015610bc4575f8282815181106109de576109de612217565b602002602001015111610a335760405162461bcd60e51b815260206004820181905260248201527f546f6b656e73206d7573742062652067726561746572207468616e207a65726f60448201526064016105e5565b5f6001600160a01b0316838281518110610a4f57610a4f612217565b60200260200101516001600160a01b031603610aa45760405162461bcd60e51b81526020600482015260146024820152734f776e65723a3a207a65726f206164647265737360601b60448201526064016105e5565b818181518110610ab657610ab6612217565b602002602001015160305f858481518110610ad357610ad3612217565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f206003015f828254610b0b9190612284565b92505081905550818181518110610b2457610b24612217565b6020026020010151600b5f828254610b3c9190612284565b925050819055507f22f6af6e13430e3e7b6418d01e6a48c1fbce5e8cb1698901fc95134b4b1c58ad838281518110610b7657610b76612217565b6020026020010151838381518110610b9057610b90612217565b60200260200101515f42604051610baa9493929190612297565b60405180910390a180610bbc816122bd565b9150506109c2565b50506001805550565b600260015403610bef5760405162461bcd60e51b81526004016105e59061210f565b6002600155333b15610c135760405162461bcd60e51b81526004016105e590612146565b600454600160a01b900460ff16610c6c5760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e20636c61696d20686173206e6f742073746172746564207965740060448201526064016105e5565b5f610c7633611a83565b335f9081526030602052604090206005810154600382015460028301546001909301549394509092909190610cab9085612284565b610cb59190612284565b610cbf9190612284565b610cc9919061222b565b90508015610d5257335f9081526030602052604081206005018054839290610cf2908490612284565b9091555050600254610d0e906001600160a01b03163383611bd3565b6040805133815260208101839052428183015290517f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b9181900360600190a1610d91565b604080513381525f6020820152428183015290517f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b9181900360600190a15b5060018055565b602081600f8110610da7575f80fd5b0154905081565b610db6611ad1565b600260015403610dd85760405162461bcd60e51b81526004016105e59061210f565b60026001556001600160a01b038116610e255760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064016105e5565b6003546040516370a0823160e01b81523060048201525f916001600160a01b0316906370a0823190602401602060405180830381865afa158015610e6b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e8f91906122d5565b90508015610eae57600354610eae906001600160a01b03168383611bd3565b600480546040516370a0823160e01b815230928101929092525f916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610ef9573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f1d91906122d5565b90508015610f3c57600454610f3c906001600160a01b03168483611bd3565b478015610fdc575f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f8c576040519150601f19603f3d011682016040523d82523d5f602084013e610f91565b606091505b5050905080610fda5760405162461bcd60e51b8152602060048201526015602482015274115512081dda5d1a191c985dd85b0819985a5b1959605a1b60448201526064016105e5565b505b5050600180555050565b610fee611ad1565b610ff75f611c3b565b565b5f80602f5f9054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa15801561104b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061106f919061230a565b505050915050806402540be4006110869190612356565b92915050565b6002600154036110ae5760405162461bcd60e51b81526004016105e59061210f565b6002600155333b156110d25760405162461bcd60e51b81526004016105e590612146565b600454600160a81b900460ff1680156110ec575060095442115b80156110f9575042600a54115b6111155760405162461bcd60e51b81526004016105e590612196565b6003546040516370a0823160e01b815233600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa15801561115b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061117f91906122d5565b10156111e25760405162461bcd60e51b815260206004820152602c60248201527f496e73756666696369656e7420555344542062616c616e636520746f2070757260448201526b636861736520746f6b656e7360a01b60648201526084016105e5565b600354604051636eb1769f60e11b815233600482015230602482015282916001600160a01b03169063dd62ed3e90604401602060405180830381865afa15801561122e573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061125291906122d5565b10156112c65760405162461bcd60e51b815260206004820152603f60248201527f496e73756666696369656e74205553445420616c6c6f77616e63652e20506c6560448201527f61736520617070726f76652074686520726571756972656420616d6f756e740060648201526084016105e5565b6112ce611b2a565b5f6011600854600f81106112e4576112e4612217565b015490505f816112fc84670de0b6b3a76400006121e1565b61130691906121f8565b905080600654600554611319919061222b565b10156113375760405162461bcd60e51b81526004016105e59061223e565b8260075f8282546113489190612284565b925050819055508060065f8282546113609190612284565b9091555050335f90815260306020526040902060010154156113b7575f61138633611a83565b905080156113b557335f90815260306020526040812060020180548392906113af908490612284565b90915550505b505b335f90815260306020526040812080548592906113d5908490612284565b9091555050335f90815260306020526040812060010180548392906113fb908490612284565b9091555050600e54600d54335f9081526030602052604090206001015461142291906121e1565b61142c91906121f8565b335f8181526030602052604090206004019190915560035461145b916001600160a01b03909116903086611c8a565b7f22f6af6e13430e3e7b6418d01e6a48c1fbce5e8cb1698901fc95134b4b1c58ad3382854260405161092f9493929190612297565b6002600154036114b25760405162461bcd60e51b81526004016105e59061210f565b6002600155333b156114d65760405162461bcd60e51b81526004016105e590612146565b600454600160a81b900460ff1680156114f0575060095442115b80156114fd575042600a54115b6115195760405162461bcd60e51b81526004016105e590612196565b600480546040516370a0823160e01b8152339281019290925282916001600160a01b03909116906370a0823190602401602060405180830381865afa158015611564573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061158891906122d5565b10156115eb5760405162461bcd60e51b815260206004820152602c60248201527f496e73756666696369656e7420555344432062616c616e636520746f2070757260448201526b636861736520746f6b656e7360a01b60648201526084016105e5565b60048054604051636eb1769f60e11b8152339281019290925230602483015282916001600160a01b039091169063dd62ed3e90604401602060405180830381865afa15801561163c573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061166091906122d5565b10156116d45760405162461bcd60e51b815260206004820152603f60248201527f496e73756666696369656e74205553444320616c6c6f77616e63652e20506c6560448201527f61736520617070726f76652074686520726571756972656420616d6f756e740060648201526084016105e5565b6116dc611b2a565b5f6011600854600f81106116f2576116f2612217565b015490505f8161170a84670de0b6b3a76400006121e1565b61171491906121f8565b905080600654600554611727919061222b565b10156117455760405162461bcd60e51b81526004016105e59061223e565b8260075f8282546117569190612284565b925050819055508060065f82825461176e9190612284565b9091555050335f90815260306020526040902060010154156117c5575f61179433611a83565b905080156117c357335f90815260306020526040812060020180548392906117bd908490612284565b90915550505b505b335f90815260306020526040812080548592906117e3908490612284565b9091555050335f9081526030602052604081206001018054839290611809908490612284565b9091555050600e54600d54335f9081526030602052604090206001015461183091906121e1565b61183a91906121f8565b335f818152603060205260409020600490810192909255905461145b916001600160a01b03909116903086611c8a565b601181600f8110610da7575f80fd5b611881611ad1565b600454600160a01b900460ff16156118d45760405162461bcd60e51b815260206004820152601660248201527510db185a5b481a5cc8185b1c9958591e481cdd185c9d60521b60448201526064016105e5565b6118dc611b2a565b6004805461ffff60a01b1916600160a01b179055600b54600c546006546119039190612284565b61190d9190612284565b6002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611953573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061197791906122d5565b10156119d45760405162461bcd60e51b815260206004820152602660248201527f546f6b656e73206973206e6f7420617661696c61626c6520746f20737461727460448201526520636c61696d60d01b60648201526084016105e5565b604051600181527f7d9bc7474aa5661520727056d5036520e3004dfa67eebc8ea98dd139b044aae19060200160405180910390a1565b611a12611ad1565b6001600160a01b038116611a775760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105e5565b611a8081611c3b565b50565b6001600160a01b0381165f9081526030602052604081206004810154600e54600d546001909301548493611ab6916121e1565b611ac091906121f8565b611aca919061222b565b9392505050565b5f546001600160a01b03163314610ff75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105e5565b6020600854600f8110611b3f57611b3f612217565b0154421115611b5d5760088054905f611b57836122bd565b91905055505b60065415611bcd575f601054600f5443611b77919061222b565b611b8191906121e1565b9050600654600e5482611b9491906121e1565b611b9e91906121f8565b600d5f828254611bae9190612284565b9250508190555080600c5f828254611bc69190612284565b9091555050505b43600f55565b6040516001600160a01b038316602482015260448101829052611c3690849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611cc8565b505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052611cc29085906323b872dd60e01b90608401611bff565b50505050565b5f611d1c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611d999092919063ffffffff16565b805190915015611c365780806020019051810190611d3a9190612385565b611c365760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105e5565b6060611da784845f85611daf565b949350505050565b606082471015611e105760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105e5565b6001600160a01b0385163b611e675760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105e5565b5f80866001600160a01b03168587604051611e8291906123c2565b5f6040518083038185875af1925050503d805f8114611ebc576040519150601f19603f3d011682016040523d82523d5f602084013e611ec1565b606091505b5091509150611ed1828286611edc565b979650505050505050565b60608315611eeb575081611aca565b825115611efb5782518084602001fd5b8160405162461bcd60e51b81526004016105e591906123dd565b8015158114611a80575f80fd5b5f60208284031215611f32575f80fd5b8135611aca81611f15565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611f7a57611f7a611f3d565b604052919050565b5f67ffffffffffffffff821115611f9b57611f9b611f3d565b5060051b60200190565b6001600160a01b0381168114611a80575f80fd5b5f82601f830112611fc8575f80fd5b81356020611fdd611fd883611f82565b611f51565b82815260059290921b84018101918181019086841115611ffb575f80fd5b8286015b848110156120165780358352918301918301611fff565b509695505050505050565b5f8060408385031215612032575f80fd5b823567ffffffffffffffff80821115612049575f80fd5b818501915085601f83011261205c575f80fd5b8135602061206c611fd883611f82565b82815260059290921b8401810191818101908984111561208a575f80fd5b948201945b838610156120b15785356120a281611fa5565b8252948201949082019061208f565b965050860135925050808211156120c6575f80fd5b506120d385828601611fb9565b9150509250929050565b5f602082840312156120ed575f80fd5b5035919050565b5f60208284031215612104575f80fd5b8135611aca81611fa5565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526030908201527f4f6e6c792065787465726e616c6c79206f776e6564206163636f756e7473202860408201526f1153d04a48185c9948185b1b1bddd95960821b606082015260800190565b6020808252601e908201527f546f6b656e2073616c6520686173206e6f742073746172746564207965740000604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b8082028115828204841417611086576110866121cd565b5f8261221257634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52603260045260245ffd5b81810381811115611086576110866121cd565b60208082526026908201527f496e73756666696369656e7420746f6b656e20616c6c6f636174696f6e20666f604082015265722073616c6560d01b606082015260800190565b80820180821115611086576110866121cd565b6001600160a01b0394909416845260208401929092526040830152606082015260800190565b5f600182016122ce576122ce6121cd565b5060010190565b5f602082840312156122e5575f80fd5b5051919050565b805169ffffffffffffffffffff81168114612305575f80fd5b919050565b5f805f805f60a0868803121561231e575f80fd5b612327866122ec565b945060208601519350604086015192506060860151915061234a608087016122ec565b90509295509295909350565b8082025f8212600160ff1b84141615612371576123716121cd565b8181058314821517611086576110866121cd565b5f60208284031215612395575f80fd5b8151611aca81611f15565b5f5b838110156123ba5781810151838201526020016123a2565b50505f910152565b5f82516123d38184602087016123a0565b9190910192915050565b602081525f82518060208401526123fb8160408501602087016123a0565b601f01601f1916919091016040019291505056fea2646970667358221220f8abc01ff5b85a545902c1d93edc91b885bb031248dfa591125e3ff0b3824b3564736f6c63430008140033

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

0000000000000000000000007d76adb3c14c0e5d50abb9451291a0e06fd6b835

-----Decoded View---------------
Arg [0] : _owner (address): 0x7d76AdB3c14c0E5d50aBB9451291A0E06fd6b835

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000007d76adb3c14c0e5d50abb9451291a0e06fd6b835


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.