ETH Price: $3,446.89 (+4.57%)

Contract

0xa751Be8F281FdAceB11B9AE60C45F76F03e04c6c
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Purchase Tokens194083482024-03-11 0:43:11257 days ago1710117791IN
0xa751Be8F...F03e04c6c
0 ETH0.0017750546.48080684
Purchase Tokens194083472024-03-11 0:42:59257 days ago1710117779IN
0xa751Be8F...F03e04c6c
0 ETH0.0015885641.59757191
Withdraw Tokens172437432023-05-12 11:10:11561 days ago1683889811IN
0xa751Be8F...F03e04c6c
0 ETH0.0025039447.80065862
Transfer168757652023-03-21 11:38:11613 days ago1679398691IN
0xa751Be8F...F03e04c6c
0.00085196 ETH0.000283613.50505082
Purchase Tokens168706932023-03-20 18:33:23613 days ago1679337203IN
0xa751Be8F...F03e04c6c
0 ETH0.0013446535.19939352
Purchase Tokens168696392023-03-20 15:00:11613 days ago1679324411IN
0xa751Be8F...F03e04c6c
0 ETH0.0030050424.68029091
Purchase Tokens168564372023-03-18 18:31:23615 days ago1679164283IN
0xa751Be8F...F03e04c6c
0 ETH0.0023006518.89703886
Purchase Tokens168470552023-03-17 10:51:47617 days ago1679050307IN
0xa751Be8F...F03e04c6c
0 ETH0.0024774720.34601164
Purchase Tokens168317172023-03-15 7:07:35619 days ago1678864055IN
0xa751Be8F...F03e04c6c
0 ETH0.002417519.85157995
Purchase Tokens167893392023-03-09 8:03:47625 days ago1678349027IN
0xa751Be8F...F03e04c6c
0 ETH0.0030479225.03736956
Purchase Tokens167891742023-03-09 7:30:35625 days ago1678347035IN
0xa751Be8F...F03e04c6c
0 ETH0.0025308825.2898877
Purchase Tokens167859912023-03-08 20:45:23625 days ago1678308323IN
0xa751Be8F...F03e04c6c
0 ETH0.0017832646.71035918
Purchase Tokens167859582023-03-08 20:38:47625 days ago1678307927IN
0xa751Be8F...F03e04c6c
0 ETH0.0012822142.7405567
Purchase Tokens167859382023-03-08 20:34:47625 days ago1678307687IN
0xa751Be8F...F03e04c6c
0 ETH0.0011992947.97192876
Purchase Tokens167858372023-03-08 20:14:11625 days ago1678306451IN
0xa751Be8F...F03e04c6c
0 ETH0.0012193750.80733263
Purchase Tokens167858272023-03-08 20:12:11625 days ago1678306331IN
0xa751Be8F...F03e04c6c
0 ETH0.0013913355.65326039
Purchase Tokens167809642023-03-08 3:47:23626 days ago1678247243IN
0xa751Be8F...F03e04c6c
0 ETH0.0038490927.71945146
Withdraw Tokens167706972023-03-06 17:08:11627 days ago1678122491IN
0xa751Be8F...F03e04c6c
0 ETH0.0033766964.46158133
Purchase Tokens167608102023-03-05 7:47:11629 days ago1678002431IN
0xa751Be8F...F03e04c6c
0 ETH0.002620121.52088094
Purchase Tokens167426742023-03-02 18:33:47631 days ago1677782027IN
0xa751Be8F...F03e04c6c
0 ETH0.0044967236.934981
Purchase Tokens167408982023-03-02 12:31:11632 days ago1677760271IN
0xa751Be8F...F03e04c6c
0 ETH0.0026177622.38648654
Purchase Tokens167408132023-03-02 12:14:11632 days ago1677759251IN
0xa751Be8F...F03e04c6c
0 ETH0.0027297820.36439719
Withdraw Tokens167398522023-03-02 9:00:11632 days ago1677747611IN
0xa751Be8F...F03e04c6c
0 ETH0.0011313921.59352244
Purchase Tokens167397802023-03-02 8:45:23632 days ago1677746723IN
0xa751Be8F...F03e04c6c
0 ETH0.0027849522.87493106
Purchase Tokens167394982023-03-02 7:48:35632 days ago1677743315IN
0xa751Be8F...F03e04c6c
0 ETH0.0028662423.54267224
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MinimaCrowdsale

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : MinimaCrowdsale.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

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

import {ECDSA} from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

contract MinimaCrowdsale is Context, Ownable, Pausable, ReentrancyGuard {
	using SafeERC20 for IERC20;

	// The token being sold
	IERC20 private _token;
	
    // The token used to pay for the wMinima (USDT)
    IERC20 private _purchaseToken;

	// Address where funds are collected
	address private _wallet;

	// How many token units a buyer gets per wei.
	// The rate is the conversion between wei and the smallest and indivisible token unit.
	// So, if you are using a rate of 1 with a ERC20Detailed token with 3 decimals called TOK
	// 1 wei will give you 1 unit, or 0.001 TOK.
	uint256[4] private _rates;
	uint256 private _currentRate;

	//size of each wMinima price tranche 
	uint256[4] private _tranches; 

	// Amount of usdt raised
	uint256 private _usdtRaised;

	// Amount of minima sold
	uint256 private _minimaSold;

	//hardcap of the crowdsale
	uint256 private _usdtCap;

    // The address who will create ECDSA signatures for users to participate in the crowdsale
    address private _signer;

    // A mapping of addresses and a boolean of if their signatures have been used, to track
    // who has already purchased from the crowdsale 
    mapping(address => bool) public purchased;

    /// @notice the EIP712 domain separator for purchasing wMinima
    bytes32 public immutable EIP712_DOMAIN;

    /// @notice EIP-712 typehash for purchasing wMINIMA
    bytes32 public constant SUPPORT_TYPEHASH = keccak256("Purchase(address purchaser,uint256 amount)");

	event TokensPurchased(
		address indexed beneficiary,
		uint256 value,
		uint256 amount
	);

	event FundsWithdrawn(address indexed withdrawer, uint256 amount);

	constructor(
		uint256[] memory rates,
		uint256[] memory tranches,
		uint256 usdtCap,
		address wallet,
		IERC20 token,
        IERC20 purchaseToken,
        address signer
	) public {
		require(rates[0] > 0, "Crowdsale: rate[0] is 0");
		require(rates[1] > 0, "Crowdsale: rate[1] is 0");
		require(rates[2] > 0, "Crowdsale: rate[2] is 0");
		require(rates[3] > 0, "Crowdsale: rate[3] is 0");
		require(wallet != address(0), "Crowdsale: wallet is the zero address");
		require(
			address(token) != address(0),
			"Crowdsale: token is the zero address"
		);
		require(
			address(purchaseToken) != address(0),
			"Crowdsale: purchaseToken is the zero address"
		);
		_currentRate = rates[0];
		_rates[0] = rates[0];
		_rates[1] = rates[1];
		_rates[2] = rates[2];
		_rates[3] = rates[3];
		_tranches[0] = tranches[0];
		_tranches[1] = tranches[1];
		_tranches[2] = tranches[2];
		_tranches[3] = tranches[3];						
		_usdtCap = usdtCap;
		_wallet = wallet;
		_token = token;
		_purchaseToken = purchaseToken;
        _signer = signer;

		EIP712_DOMAIN = keccak256(abi.encode(
			keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
			keccak256(bytes("MinimaCrowdSale")),
			keccak256(bytes("v1")),
			block.chainid,
			address(this)
		));
	}

	function token() public view returns (IERC20) {
		return _token;
	}

	function pause() public onlyOwner {
		_pause();
	}

	function unpause() public onlyOwner {
		_unpause();
	}

	function wallet() public view returns (address) {
		return _wallet;
	}

	function currentRate() public view returns (uint256) {
		return _currentRate;
	}

	function usdtRaised() public view returns (uint256) {
		return _usdtRaised;
	}

	function minimaSold() public view returns (uint256) {
		return _minimaSold;
	}

	function usdtCap() public view returns (uint256) {
		return _usdtCap;
	}	

	function purchaseToken() public view returns (IERC20) {
		return _purchaseToken;
	}

	function signer() public view returns (address) {
		return _signer;
	}

	function getCurrentTranche() internal returns (uint256) {

		if(_minimaSold > _tranches[2]){ 
			_currentRate = _rates[3]; 
		}else if(_minimaSold > _tranches[1]){ 
			_currentRate = _rates[2];
		}else if(_minimaSold > _tranches[0]){
			 _currentRate = _rates[1];
		}else { 
			_currentRate = _rates[0];
		}
		return _currentRate;
	}

	function purchaseTokens(bytes calldata signature, address beneficiary, uint256 usdtAmount) public payable whenNotPaused nonReentrant {
		_preValidatePurchase(beneficiary, usdtAmount);
        
		bytes32 digest = toTypedDataHash(beneficiary, usdtAmount);
        address signatureSigner = ECDSA.recover(digest, signature);
        
		require(signatureSigner == _signer, "purchaseTokens: This signature was not signed by the wMinima Crowdsale signer");
        require(signatureSigner != address(0), "purchaseTokens: invalid input signature");
	   
	    purchased[beneficiary] = true;
		// calculate token amount to be created
		uint256 tokens = _getTokenAmount(usdtAmount);

		// update state
		_usdtRaised = _usdtRaised + usdtAmount;
		_minimaSold = _minimaSold + tokens;

		IERC20(_purchaseToken).safeTransferFrom(msg.sender, address(this), usdtAmount);
		
		emit TokensPurchased(beneficiary, usdtAmount, tokens);

	}

	function _preValidatePurchase(address beneficiary, uint256 usdtAmount)
		internal
		view
		virtual
	{
		require(_usdtRaised + usdtAmount <= _usdtCap, "purchaseTokens: This purchase will exceed the maximum crowsdale hardcap");
        require(!purchased[beneficiary], "Purchase: User has already purchased before");
		require(
			beneficiary != address(0),
			"Crowdsale: beneficiary is the zero address"
		);
		require(usdtAmount != 0, "Crowdsale: usdtAmount is 0");
		this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
	}

	function _getTokenAmount(uint256 usdtAmount)
		internal
		returns (uint256)
	{
		uint256 rate = getCurrentTranche();
		return usdtAmount * rate;
	}

    function toTypedDataHash(address _purchaser, uint256 _amount) internal view returns (bytes32) {
        bytes32 structHash = keccak256(abi.encode(SUPPORT_TYPEHASH, _purchaser, _amount));
        return ECDSA.toTypedDataHash(EIP712_DOMAIN, structHash);
    }

	function withdrawTokens(address _tokenContract, uint256 _amount) external onlyOwner {
		IERC20 tokenContract = IERC20(_tokenContract);
		tokenContract.safeTransfer(_wallet, _amount);
		emit FundsWithdrawn(_wallet, _amount);
	}
}

File 2 of 11 : Ownable.sol
// 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 11 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

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

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

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

File 5 of 11 : draft-IERC20Permit.sol
// 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);
}

File 6 of 11 : IERC20.sol
// 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);
}

File 7 of 11 : SafeERC20.sol
// 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");
        }
    }
}

File 8 of 11 : Address.sol
// 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);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

File 10 of 11 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 11 of 11 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256[]","name":"rates","type":"uint256[]"},{"internalType":"uint256[]","name":"tranches","type":"uint256[]"},{"internalType":"uint256","name":"usdtCap","type":"uint256"},{"internalType":"address","name":"wallet","type":"address"},{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"contract IERC20","name":"purchaseToken","type":"address"},{"internalType":"address","name":"signer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"withdrawer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FundsWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensPurchased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"EIP712_DOMAIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SUPPORT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimaSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"purchaseToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"usdtAmount","type":"uint256"}],"name":"purchaseTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"purchased","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usdtCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usdtRaised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenContract","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b50604051620037d3380380620037d3833981810160405281019062000037919062000a85565b620000576200004b6200074b60201b60201c565b6200075360201b60201c565b60008060146101000a81548160ff0219169083151502179055506001808190555060008760008151811062000091576200009062000b76565b5b602002602001015111620000dc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000d39062000c06565b60405180910390fd5b600087600181518110620000f557620000f462000b76565b5b60200260200101511162000140576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001379062000c78565b60405180910390fd5b60008760028151811062000159576200015862000b76565b5b602002602001015111620001a4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200019b9062000cea565b60405180910390fd5b600087600381518110620001bd57620001bc62000b76565b5b60200260200101511162000208576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001ff9062000d5c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036200027a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002719062000df4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603620002ec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002e39062000e8c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036200035e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003559062000f24565b60405180910390fd5b8660008151811062000375576200037462000b76565b5b6020026020010151600981905550866000815181106200039a576200039962000b76565b5b60200260200101516005600060048110620003ba57620003b962000b76565b5b018190555086600181518110620003d657620003d562000b76565b5b60200260200101516005600160048110620003f657620003f562000b76565b5b01819055508660028151811062000412576200041162000b76565b5b6020026020010151600560026004811062000432576200043162000b76565b5b0181905550866003815181106200044e576200044d62000b76565b5b602002602001015160056003600481106200046e576200046d62000b76565b5b0181905550856000815181106200048a576200048962000b76565b5b6020026020010151600a600060048110620004aa57620004a962000b76565b5b018190555085600181518110620004c657620004c562000b76565b5b6020026020010151600a600160048110620004e657620004e562000b76565b5b01819055508560028151811062000502576200050162000b76565b5b6020026020010151600a60026004811062000522576200052162000b76565b5b0181905550856003815181106200053e576200053d62000b76565b5b6020026020010151600a6003600481106200055e576200055d62000b76565b5b01819055508460108190555083600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6040518060400160405280600f81526020017f4d696e696d6143726f776453616c650000000000000000000000000000000000815250805190602001206040518060400160405280600281526020017f76310000000000000000000000000000000000000000000000000000000000008152508051906020012046306040516020016200072195949392919062000f83565b60405160208183030381529060405280519060200120608081815250505050505050505062000fe0565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000604051905090565b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200087b8262000830565b810181811067ffffffffffffffff821117156200089d576200089c62000841565b5b80604052505050565b6000620008b262000817565b9050620008c0828262000870565b919050565b600067ffffffffffffffff821115620008e357620008e262000841565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b6200090e81620008f9565b81146200091a57600080fd5b50565b6000815190506200092e8162000903565b92915050565b60006200094b6200094584620008c5565b620008a6565b90508083825260208201905060208402830185811115620009715762000970620008f4565b5b835b818110156200099e57806200098988826200091d565b84526020840193505060208101905062000973565b5050509392505050565b600082601f830112620009c057620009bf6200082b565b5b8151620009d284826020860162000934565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000a0882620009db565b9050919050565b62000a1a81620009fb565b811462000a2657600080fd5b50565b60008151905062000a3a8162000a0f565b92915050565b600062000a4d82620009fb565b9050919050565b62000a5f8162000a40565b811462000a6b57600080fd5b50565b60008151905062000a7f8162000a54565b92915050565b600080600080600080600060e0888a03121562000aa75762000aa662000821565b5b600088015167ffffffffffffffff81111562000ac85762000ac762000826565b5b62000ad68a828b01620009a8565b975050602088015167ffffffffffffffff81111562000afa5762000af962000826565b5b62000b088a828b01620009a8565b965050604062000b1b8a828b016200091d565b955050606062000b2e8a828b0162000a29565b945050608062000b418a828b0162000a6e565b93505060a062000b548a828b0162000a6e565b92505060c062000b678a828b0162000a29565b91505092959891949750929550565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082825260208201905092915050565b7f43726f776473616c653a20726174655b305d2069732030000000000000000000600082015250565b600062000bee60178362000ba5565b915062000bfb8262000bb6565b602082019050919050565b6000602082019050818103600083015262000c218162000bdf565b9050919050565b7f43726f776473616c653a20726174655b315d2069732030000000000000000000600082015250565b600062000c6060178362000ba5565b915062000c6d8262000c28565b602082019050919050565b6000602082019050818103600083015262000c938162000c51565b9050919050565b7f43726f776473616c653a20726174655b325d2069732030000000000000000000600082015250565b600062000cd260178362000ba5565b915062000cdf8262000c9a565b602082019050919050565b6000602082019050818103600083015262000d058162000cc3565b9050919050565b7f43726f776473616c653a20726174655b335d2069732030000000000000000000600082015250565b600062000d4460178362000ba5565b915062000d518262000d0c565b602082019050919050565b6000602082019050818103600083015262000d778162000d35565b9050919050565b7f43726f776473616c653a2077616c6c657420697320746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600062000ddc60258362000ba5565b915062000de98262000d7e565b604082019050919050565b6000602082019050818103600083015262000e0f8162000dcd565b9050919050565b7f43726f776473616c653a20746f6b656e20697320746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600062000e7460248362000ba5565b915062000e818262000e16565b604082019050919050565b6000602082019050818103600083015262000ea78162000e65565b9050919050565b7f43726f776473616c653a207075726368617365546f6b656e206973207468652060008201527f7a65726f20616464726573730000000000000000000000000000000000000000602082015250565b600062000f0c602c8362000ba5565b915062000f198262000eae565b604082019050919050565b6000602082019050818103600083015262000f3f8162000efd565b9050919050565b6000819050919050565b62000f5b8162000f46565b82525050565b62000f6c81620008f9565b82525050565b62000f7d81620009fb565b82525050565b600060a08201905062000f9a600083018862000f50565b62000fa9602083018762000f50565b62000fb8604083018662000f50565b62000fc7606083018562000f61565b62000fd6608083018462000f72565b9695505050505050565b6080516127d0620010036000396000818161092f0152610ec901526127d06000f3fe6080604052600436106101145760003560e01c8063715018a6116100a0578063b596a87b11610064578063b596a87b14610347578063e1b11da414610363578063f2fde38b1461038e578063f9f8bdb7146103b7578063fc0c546a146103e257610114565b8063715018a6146102985780638456cb59146102af5780638da5cb5b146102c6578063a3f246a8146102f1578063a95c4d621461031c57610114565b80633fea4dcf116100e75780633fea4dcf146101af578063521eb273146101da578063522fe98e146102055780635c975abb146102425780636fa42f341461026d57610114565b806306b091f9146101195780630ec1ecac14610142578063238ac9331461016d5780633f4ba83a14610198575b600080fd5b34801561012557600080fd5b50610140600480360381019061013b9190611780565b61040d565b005b34801561014e57600080fd5b506101576104dc565b60405161016491906117cf565b60405180910390f35b34801561017957600080fd5b506101826104e6565b60405161018f91906117f9565b60405180910390f35b3480156101a457600080fd5b506101ad610510565b005b3480156101bb57600080fd5b506101c4610522565b6040516101d1919061182d565b60405180910390f35b3480156101e657600080fd5b506101ef610546565b6040516101fc91906117f9565b60405180910390f35b34801561021157600080fd5b5061022c60048036038101906102279190611848565b610570565b6040516102399190611890565b60405180910390f35b34801561024e57600080fd5b50610257610590565b6040516102649190611890565b60405180910390f35b34801561027957600080fd5b506102826105a6565b60405161028f91906117cf565b60405180910390f35b3480156102a457600080fd5b506102ad6105b0565b005b3480156102bb57600080fd5b506102c46105c4565b005b3480156102d257600080fd5b506102db6105d6565b6040516102e891906117f9565b60405180910390f35b3480156102fd57600080fd5b506103066105ff565b60405161031391906117cf565b60405180910390f35b34801561032857600080fd5b50610331610609565b60405161033e919061190a565b60405180910390f35b610361600480360381019061035c919061198a565b610633565b005b34801561036f57600080fd5b5061037861092d565b604051610385919061182d565b60405180910390f35b34801561039a57600080fd5b506103b560048036038101906103b09190611848565b610951565b005b3480156103c357600080fd5b506103cc6109d4565b6040516103d991906117cf565b60405180910390f35b3480156103ee57600080fd5b506103f76109de565b604051610404919061190a565b60405180910390f35b610415610a08565b6000829050610467600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838373ffffffffffffffffffffffffffffffffffffffff16610a869092919063ffffffff16565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167feaff4b37086828766ad3268786972c0cd24259d4c87a80f9d3963a3c3d999b0d836040516104cf91906117cf565b60405180910390a2505050565b6000600e54905090565b6000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610518610a08565b610520610b0c565b565b7fdf328b2292b335deb135df11bb115fae8f4b5b11499e90906316ac34021cd03981565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60126020528060005260406000206000915054906101000a900460ff1681565b60008060149054906101000a900460ff16905090565b6000600f54905090565b6105b8610a08565b6105c26000610b6e565b565b6105cc610a08565b6105d4610c32565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000601054905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61063b610c95565b600260015403610680576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790611a5b565b60405180910390fd5b60026001819055506106928282610cdf565b600061069e8383610e74565b905060006106f08287878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050610ef7565b9050601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610782576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077990611b13565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036107f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e890611ba5565b60405180910390fd5b6001601260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600061085484610f1e565b905083600e546108649190611bf4565b600e8190555080600f546108789190611bf4565b600f819055506108cd333086600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610f3f909392919063ffffffff16565b8473ffffffffffffffffffffffffffffffffffffffff167f8fafebcaf9d154343dad25669bfa277f4fbacd7ac6b0c4fed522580e040a0f338583604051610915929190611c28565b60405180910390a25050506001808190555050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b610959610a08565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036109c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109bf90611cc3565b60405180910390fd5b6109d181610b6e565b50565b6000600954905090565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610a10610fc8565b73ffffffffffffffffffffffffffffffffffffffff16610a2e6105d6565b73ffffffffffffffffffffffffffffffffffffffff1614610a84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7b90611d2f565b60405180910390fd5b565b610b078363a9059cbb60e01b8484604051602401610aa5929190611d4f565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610fd0565b505050565b610b14611097565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610b57610fc8565b604051610b6491906117f9565b60405180910390a1565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610c3a610c95565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610c7e610fc8565b604051610c8b91906117f9565b60405180910390a1565b610c9d610590565b15610cdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd490611dc4565b60405180910390fd5b565b60105481600e54610cf09190611bf4565b1115610d31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2890611e7c565b60405180910390fd5b601260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610dbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db590611f0e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2490611fa0565b60405180910390fd5b60008103610e70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e679061200c565b60405180910390fd5b5050565b6000807fdf328b2292b335deb135df11bb115fae8f4b5b11499e90906316ac34021cd0398484604051602001610eac9392919061202c565b604051602081830303815290604052805190602001209050610eee7f0000000000000000000000000000000000000000000000000000000000000000826110e0565b91505092915050565b6000806000610f068585611113565b91509150610f1381611164565b819250505092915050565b600080610f29611330565b90508083610f379190612063565b915050919050565b610fc2846323b872dd60e01b858585604051602401610f60939291906120a5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610fd0565b50505050565b600033905090565b6000611032826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166114209092919063ffffffff16565b905060008151111561109257808060200190518101906110529190612108565b611091576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611088906121a7565b60405180910390fd5b5b505050565b61109f610590565b6110de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d590612213565b60405180910390fd5b565b600082826040516020016110f59291906122ab565b60405160208183030381529060405280519060200120905092915050565b60008060418351036111545760008060006020860151925060408601519150606086015160001a905061114887828585611438565b9450945050505061115d565b60006002915091505b9250929050565b60006004811115611178576111776122e2565b5b81600481111561118b5761118a6122e2565b5b031561132d57600160048111156111a5576111a46122e2565b5b8160048111156111b8576111b76122e2565b5b036111f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ef9061235d565b60405180910390fd5b6002600481111561120c5761120b6122e2565b5b81600481111561121f5761121e6122e2565b5b0361125f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611256906123c9565b60405180910390fd5b60036004811115611273576112726122e2565b5b816004811115611286576112856122e2565b5b036112c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112bd9061245b565b60405180910390fd5b6004808111156112d9576112d86122e2565b5b8160048111156112ec576112eb6122e2565b5b0361132c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611323906124ed565b60405180910390fd5b5b50565b6000600a6002600481106113475761134661250d565b5b0154600f5411156113745760056003600481106113675761136661250d565b5b0154600981905550611418565b600a6001600481106113895761138861250d565b5b0154600f5411156113b65760056002600481106113a9576113a861250d565b5b0154600981905550611417565b600a6000600481106113cb576113ca61250d565b5b0154600f5411156113f85760056001600481106113eb576113ea61250d565b5b0154600981905550611416565b600560006004811061140d5761140c61250d565b5b01546009819055505b5b5b600954905090565b606061142f8484600085611544565b90509392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561147357600060039150915061153b565b601b8560ff161415801561148b5750601c8560ff1614155b1561149d57600060049150915061153b565b6000600187878787604051600081526020016040526040516114c29493929190612558565b6020604051602081039080840390855afa1580156114e4573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036115325760006001925092505061153b565b80600092509250505b94509492505050565b606082471015611589576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115809061260f565b60405180910390fd5b61159285611658565b6115d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c89061267b565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516115fa919061270c565b60006040518083038185875af1925050503d8060008114611637576040519150601f19603f3d011682016040523d82523d6000602084013e61163c565b606091505b509150915061164c82828661167b565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561168b578290506116db565b60008351111561169e5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d29190612778565b60405180910390fd5b9392505050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611717826116ec565b9050919050565b6117278161170c565b811461173257600080fd5b50565b6000813590506117448161171e565b92915050565b6000819050919050565b61175d8161174a565b811461176857600080fd5b50565b60008135905061177a81611754565b92915050565b60008060408385031215611797576117966116e2565b5b60006117a585828601611735565b92505060206117b68582860161176b565b9150509250929050565b6117c98161174a565b82525050565b60006020820190506117e460008301846117c0565b92915050565b6117f38161170c565b82525050565b600060208201905061180e60008301846117ea565b92915050565b6000819050919050565b61182781611814565b82525050565b6000602082019050611842600083018461181e565b92915050565b60006020828403121561185e5761185d6116e2565b5b600061186c84828501611735565b91505092915050565b60008115159050919050565b61188a81611875565b82525050565b60006020820190506118a56000830184611881565b92915050565b6000819050919050565b60006118d06118cb6118c6846116ec565b6118ab565b6116ec565b9050919050565b60006118e2826118b5565b9050919050565b60006118f4826118d7565b9050919050565b611904816118e9565b82525050565b600060208201905061191f60008301846118fb565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261194a57611949611925565b5b8235905067ffffffffffffffff8111156119675761196661192a565b5b6020830191508360018202830111156119835761198261192f565b5b9250929050565b600080600080606085870312156119a4576119a36116e2565b5b600085013567ffffffffffffffff8111156119c2576119c16116e7565b5b6119ce87828801611934565b945094505060206119e187828801611735565b92505060406119f28782880161176b565b91505092959194509250565b600082825260208201905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611a45601f836119fe565b9150611a5082611a0f565b602082019050919050565b60006020820190508181036000830152611a7481611a38565b9050919050565b7f7075726368617365546f6b656e733a2054686973207369676e6174757265207760008201527f6173206e6f74207369676e65642062792074686520774d696e696d612043726f60208201527f776473616c65207369676e657200000000000000000000000000000000000000604082015250565b6000611afd604d836119fe565b9150611b0882611a7b565b606082019050919050565b60006020820190508181036000830152611b2c81611af0565b9050919050565b7f7075726368617365546f6b656e733a20696e76616c696420696e70757420736960008201527f676e617475726500000000000000000000000000000000000000000000000000602082015250565b6000611b8f6027836119fe565b9150611b9a82611b33565b604082019050919050565b60006020820190508181036000830152611bbe81611b82565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611bff8261174a565b9150611c0a8361174a565b9250828201905080821115611c2257611c21611bc5565b5b92915050565b6000604082019050611c3d60008301856117c0565b611c4a60208301846117c0565b9392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611cad6026836119fe565b9150611cb882611c51565b604082019050919050565b60006020820190508181036000830152611cdc81611ca0565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611d196020836119fe565b9150611d2482611ce3565b602082019050919050565b60006020820190508181036000830152611d4881611d0c565b9050919050565b6000604082019050611d6460008301856117ea565b611d7160208301846117c0565b9392505050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000611dae6010836119fe565b9150611db982611d78565b602082019050919050565b60006020820190508181036000830152611ddd81611da1565b9050919050565b7f7075726368617365546f6b656e733a205468697320707572636861736520776960008201527f6c6c2065786365656420746865206d6178696d756d2063726f777364616c652060208201527f6861726463617000000000000000000000000000000000000000000000000000604082015250565b6000611e666047836119fe565b9150611e7182611de4565b606082019050919050565b60006020820190508181036000830152611e9581611e59565b9050919050565b7f50757263686173653a20557365722068617320616c726561647920707572636860008201527f61736564206265666f7265000000000000000000000000000000000000000000602082015250565b6000611ef8602b836119fe565b9150611f0382611e9c565b604082019050919050565b60006020820190508181036000830152611f2781611eeb565b9050919050565b7f43726f776473616c653a2062656e656669636961727920697320746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000611f8a602a836119fe565b9150611f9582611f2e565b604082019050919050565b60006020820190508181036000830152611fb981611f7d565b9050919050565b7f43726f776473616c653a2075736474416d6f756e742069732030000000000000600082015250565b6000611ff6601a836119fe565b915061200182611fc0565b602082019050919050565b6000602082019050818103600083015261202581611fe9565b9050919050565b6000606082019050612041600083018661181e565b61204e60208301856117ea565b61205b60408301846117c0565b949350505050565b600061206e8261174a565b91506120798361174a565b92508282026120878161174a565b9150828204841483151761209e5761209d611bc5565b5b5092915050565b60006060820190506120ba60008301866117ea565b6120c760208301856117ea565b6120d460408301846117c0565b949350505050565b6120e581611875565b81146120f057600080fd5b50565b600081519050612102816120dc565b92915050565b60006020828403121561211e5761211d6116e2565b5b600061212c848285016120f3565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000612191602a836119fe565b915061219c82612135565b604082019050919050565b600060208201905081810360008301526121c081612184565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006121fd6014836119fe565b9150612208826121c7565b602082019050919050565b6000602082019050818103600083015261222c816121f0565b9050919050565b600081905092915050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b6000612274600283612233565b915061227f8261223e565b600282019050919050565b6000819050919050565b6122a56122a082611814565b61228a565b82525050565b60006122b682612267565b91506122c28285612294565b6020820191506122d28284612294565b6020820191508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006123476018836119fe565b915061235282612311565b602082019050919050565b600060208201905081810360008301526123768161233a565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006123b3601f836119fe565b91506123be8261237d565b602082019050919050565b600060208201905081810360008301526123e2816123a6565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006124456022836119fe565b9150612450826123e9565b604082019050919050565b6000602082019050818103600083015261247481612438565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006124d76022836119fe565b91506124e28261247b565b604082019050919050565b60006020820190508181036000830152612506816124ca565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060ff82169050919050565b6125528161253c565b82525050565b600060808201905061256d600083018761181e565b61257a6020830186612549565b612587604083018561181e565b612594606083018461181e565b95945050505050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006125f96026836119fe565b91506126048261259d565b604082019050919050565b60006020820190508181036000830152612628816125ec565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000612665601d836119fe565b91506126708261262f565b602082019050919050565b6000602082019050818103600083015261269481612658565b9050919050565b600081519050919050565b600081905092915050565b60005b838110156126cf5780820151818401526020810190506126b4565b60008484015250505050565b60006126e68261269b565b6126f081856126a6565b93506127008185602086016126b1565b80840191505092915050565b600061271882846126db565b915081905092915050565b600081519050919050565b6000601f19601f8301169050919050565b600061274a82612723565b61275481856119fe565b93506127648185602086016126b1565b61276d8161272e565b840191505092915050565b60006020820190508181036000830152612792818461273f565b90509291505056fea26469706673582212206740271935335b8e44d333bf49627df217416b6ee6d27d0b80cd500ea478354164736f6c6343000811003300000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000e7601da1800000000000000000000000000befde338daec0240f70cdef420cb4eedd54aa71d000000000000000000000000669c01caf0edcad7c2b8dc771474ad937a7ca4af000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000008ce4f863a62be8a23d94d8ddac96cafdfa3317e3000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000454b75ba300000000000000000000000000000000000000000000000000000003ca204a09000000000000000000000000000000000000000000000000000000035e55b90d000000000000000000000000000000000000000000000000000000030819f358800000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000084595161401484a000000000000000000000000000000000000000000000000108b2a2c28029094000000000000000000000000000000000000000000000000211654585005212800000000000000000000000000000000000000000000000031a17e847807b1bc000000

Deployed Bytecode

0x6080604052600436106101145760003560e01c8063715018a6116100a0578063b596a87b11610064578063b596a87b14610347578063e1b11da414610363578063f2fde38b1461038e578063f9f8bdb7146103b7578063fc0c546a146103e257610114565b8063715018a6146102985780638456cb59146102af5780638da5cb5b146102c6578063a3f246a8146102f1578063a95c4d621461031c57610114565b80633fea4dcf116100e75780633fea4dcf146101af578063521eb273146101da578063522fe98e146102055780635c975abb146102425780636fa42f341461026d57610114565b806306b091f9146101195780630ec1ecac14610142578063238ac9331461016d5780633f4ba83a14610198575b600080fd5b34801561012557600080fd5b50610140600480360381019061013b9190611780565b61040d565b005b34801561014e57600080fd5b506101576104dc565b60405161016491906117cf565b60405180910390f35b34801561017957600080fd5b506101826104e6565b60405161018f91906117f9565b60405180910390f35b3480156101a457600080fd5b506101ad610510565b005b3480156101bb57600080fd5b506101c4610522565b6040516101d1919061182d565b60405180910390f35b3480156101e657600080fd5b506101ef610546565b6040516101fc91906117f9565b60405180910390f35b34801561021157600080fd5b5061022c60048036038101906102279190611848565b610570565b6040516102399190611890565b60405180910390f35b34801561024e57600080fd5b50610257610590565b6040516102649190611890565b60405180910390f35b34801561027957600080fd5b506102826105a6565b60405161028f91906117cf565b60405180910390f35b3480156102a457600080fd5b506102ad6105b0565b005b3480156102bb57600080fd5b506102c46105c4565b005b3480156102d257600080fd5b506102db6105d6565b6040516102e891906117f9565b60405180910390f35b3480156102fd57600080fd5b506103066105ff565b60405161031391906117cf565b60405180910390f35b34801561032857600080fd5b50610331610609565b60405161033e919061190a565b60405180910390f35b610361600480360381019061035c919061198a565b610633565b005b34801561036f57600080fd5b5061037861092d565b604051610385919061182d565b60405180910390f35b34801561039a57600080fd5b506103b560048036038101906103b09190611848565b610951565b005b3480156103c357600080fd5b506103cc6109d4565b6040516103d991906117cf565b60405180910390f35b3480156103ee57600080fd5b506103f76109de565b604051610404919061190a565b60405180910390f35b610415610a08565b6000829050610467600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838373ffffffffffffffffffffffffffffffffffffffff16610a869092919063ffffffff16565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167feaff4b37086828766ad3268786972c0cd24259d4c87a80f9d3963a3c3d999b0d836040516104cf91906117cf565b60405180910390a2505050565b6000600e54905090565b6000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610518610a08565b610520610b0c565b565b7fdf328b2292b335deb135df11bb115fae8f4b5b11499e90906316ac34021cd03981565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60126020528060005260406000206000915054906101000a900460ff1681565b60008060149054906101000a900460ff16905090565b6000600f54905090565b6105b8610a08565b6105c26000610b6e565b565b6105cc610a08565b6105d4610c32565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000601054905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61063b610c95565b600260015403610680576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790611a5b565b60405180910390fd5b60026001819055506106928282610cdf565b600061069e8383610e74565b905060006106f08287878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050610ef7565b9050601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610782576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077990611b13565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036107f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e890611ba5565b60405180910390fd5b6001601260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600061085484610f1e565b905083600e546108649190611bf4565b600e8190555080600f546108789190611bf4565b600f819055506108cd333086600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610f3f909392919063ffffffff16565b8473ffffffffffffffffffffffffffffffffffffffff167f8fafebcaf9d154343dad25669bfa277f4fbacd7ac6b0c4fed522580e040a0f338583604051610915929190611c28565b60405180910390a25050506001808190555050505050565b7f857e948ceacb2d661a83decd61b34babee7ec144e54ab459a5c7dcc521d7bb4a81565b610959610a08565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036109c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109bf90611cc3565b60405180910390fd5b6109d181610b6e565b50565b6000600954905090565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610a10610fc8565b73ffffffffffffffffffffffffffffffffffffffff16610a2e6105d6565b73ffffffffffffffffffffffffffffffffffffffff1614610a84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7b90611d2f565b60405180910390fd5b565b610b078363a9059cbb60e01b8484604051602401610aa5929190611d4f565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610fd0565b505050565b610b14611097565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610b57610fc8565b604051610b6491906117f9565b60405180910390a1565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610c3a610c95565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610c7e610fc8565b604051610c8b91906117f9565b60405180910390a1565b610c9d610590565b15610cdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd490611dc4565b60405180910390fd5b565b60105481600e54610cf09190611bf4565b1115610d31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2890611e7c565b60405180910390fd5b601260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610dbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db590611f0e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2490611fa0565b60405180910390fd5b60008103610e70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e679061200c565b60405180910390fd5b5050565b6000807fdf328b2292b335deb135df11bb115fae8f4b5b11499e90906316ac34021cd0398484604051602001610eac9392919061202c565b604051602081830303815290604052805190602001209050610eee7f857e948ceacb2d661a83decd61b34babee7ec144e54ab459a5c7dcc521d7bb4a826110e0565b91505092915050565b6000806000610f068585611113565b91509150610f1381611164565b819250505092915050565b600080610f29611330565b90508083610f379190612063565b915050919050565b610fc2846323b872dd60e01b858585604051602401610f60939291906120a5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610fd0565b50505050565b600033905090565b6000611032826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166114209092919063ffffffff16565b905060008151111561109257808060200190518101906110529190612108565b611091576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611088906121a7565b60405180910390fd5b5b505050565b61109f610590565b6110de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d590612213565b60405180910390fd5b565b600082826040516020016110f59291906122ab565b60405160208183030381529060405280519060200120905092915050565b60008060418351036111545760008060006020860151925060408601519150606086015160001a905061114887828585611438565b9450945050505061115d565b60006002915091505b9250929050565b60006004811115611178576111776122e2565b5b81600481111561118b5761118a6122e2565b5b031561132d57600160048111156111a5576111a46122e2565b5b8160048111156111b8576111b76122e2565b5b036111f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ef9061235d565b60405180910390fd5b6002600481111561120c5761120b6122e2565b5b81600481111561121f5761121e6122e2565b5b0361125f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611256906123c9565b60405180910390fd5b60036004811115611273576112726122e2565b5b816004811115611286576112856122e2565b5b036112c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112bd9061245b565b60405180910390fd5b6004808111156112d9576112d86122e2565b5b8160048111156112ec576112eb6122e2565b5b0361132c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611323906124ed565b60405180910390fd5b5b50565b6000600a6002600481106113475761134661250d565b5b0154600f5411156113745760056003600481106113675761136661250d565b5b0154600981905550611418565b600a6001600481106113895761138861250d565b5b0154600f5411156113b65760056002600481106113a9576113a861250d565b5b0154600981905550611417565b600a6000600481106113cb576113ca61250d565b5b0154600f5411156113f85760056001600481106113eb576113ea61250d565b5b0154600981905550611416565b600560006004811061140d5761140c61250d565b5b01546009819055505b5b5b600954905090565b606061142f8484600085611544565b90509392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561147357600060039150915061153b565b601b8560ff161415801561148b5750601c8560ff1614155b1561149d57600060049150915061153b565b6000600187878787604051600081526020016040526040516114c29493929190612558565b6020604051602081039080840390855afa1580156114e4573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036115325760006001925092505061153b565b80600092509250505b94509492505050565b606082471015611589576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115809061260f565b60405180910390fd5b61159285611658565b6115d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c89061267b565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516115fa919061270c565b60006040518083038185875af1925050503d8060008114611637576040519150601f19603f3d011682016040523d82523d6000602084013e61163c565b606091505b509150915061164c82828661167b565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561168b578290506116db565b60008351111561169e5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d29190612778565b60405180910390fd5b9392505050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611717826116ec565b9050919050565b6117278161170c565b811461173257600080fd5b50565b6000813590506117448161171e565b92915050565b6000819050919050565b61175d8161174a565b811461176857600080fd5b50565b60008135905061177a81611754565b92915050565b60008060408385031215611797576117966116e2565b5b60006117a585828601611735565b92505060206117b68582860161176b565b9150509250929050565b6117c98161174a565b82525050565b60006020820190506117e460008301846117c0565b92915050565b6117f38161170c565b82525050565b600060208201905061180e60008301846117ea565b92915050565b6000819050919050565b61182781611814565b82525050565b6000602082019050611842600083018461181e565b92915050565b60006020828403121561185e5761185d6116e2565b5b600061186c84828501611735565b91505092915050565b60008115159050919050565b61188a81611875565b82525050565b60006020820190506118a56000830184611881565b92915050565b6000819050919050565b60006118d06118cb6118c6846116ec565b6118ab565b6116ec565b9050919050565b60006118e2826118b5565b9050919050565b60006118f4826118d7565b9050919050565b611904816118e9565b82525050565b600060208201905061191f60008301846118fb565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261194a57611949611925565b5b8235905067ffffffffffffffff8111156119675761196661192a565b5b6020830191508360018202830111156119835761198261192f565b5b9250929050565b600080600080606085870312156119a4576119a36116e2565b5b600085013567ffffffffffffffff8111156119c2576119c16116e7565b5b6119ce87828801611934565b945094505060206119e187828801611735565b92505060406119f28782880161176b565b91505092959194509250565b600082825260208201905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611a45601f836119fe565b9150611a5082611a0f565b602082019050919050565b60006020820190508181036000830152611a7481611a38565b9050919050565b7f7075726368617365546f6b656e733a2054686973207369676e6174757265207760008201527f6173206e6f74207369676e65642062792074686520774d696e696d612043726f60208201527f776473616c65207369676e657200000000000000000000000000000000000000604082015250565b6000611afd604d836119fe565b9150611b0882611a7b565b606082019050919050565b60006020820190508181036000830152611b2c81611af0565b9050919050565b7f7075726368617365546f6b656e733a20696e76616c696420696e70757420736960008201527f676e617475726500000000000000000000000000000000000000000000000000602082015250565b6000611b8f6027836119fe565b9150611b9a82611b33565b604082019050919050565b60006020820190508181036000830152611bbe81611b82565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611bff8261174a565b9150611c0a8361174a565b9250828201905080821115611c2257611c21611bc5565b5b92915050565b6000604082019050611c3d60008301856117c0565b611c4a60208301846117c0565b9392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611cad6026836119fe565b9150611cb882611c51565b604082019050919050565b60006020820190508181036000830152611cdc81611ca0565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611d196020836119fe565b9150611d2482611ce3565b602082019050919050565b60006020820190508181036000830152611d4881611d0c565b9050919050565b6000604082019050611d6460008301856117ea565b611d7160208301846117c0565b9392505050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000611dae6010836119fe565b9150611db982611d78565b602082019050919050565b60006020820190508181036000830152611ddd81611da1565b9050919050565b7f7075726368617365546f6b656e733a205468697320707572636861736520776960008201527f6c6c2065786365656420746865206d6178696d756d2063726f777364616c652060208201527f6861726463617000000000000000000000000000000000000000000000000000604082015250565b6000611e666047836119fe565b9150611e7182611de4565b606082019050919050565b60006020820190508181036000830152611e9581611e59565b9050919050565b7f50757263686173653a20557365722068617320616c726561647920707572636860008201527f61736564206265666f7265000000000000000000000000000000000000000000602082015250565b6000611ef8602b836119fe565b9150611f0382611e9c565b604082019050919050565b60006020820190508181036000830152611f2781611eeb565b9050919050565b7f43726f776473616c653a2062656e656669636961727920697320746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000611f8a602a836119fe565b9150611f9582611f2e565b604082019050919050565b60006020820190508181036000830152611fb981611f7d565b9050919050565b7f43726f776473616c653a2075736474416d6f756e742069732030000000000000600082015250565b6000611ff6601a836119fe565b915061200182611fc0565b602082019050919050565b6000602082019050818103600083015261202581611fe9565b9050919050565b6000606082019050612041600083018661181e565b61204e60208301856117ea565b61205b60408301846117c0565b949350505050565b600061206e8261174a565b91506120798361174a565b92508282026120878161174a565b9150828204841483151761209e5761209d611bc5565b5b5092915050565b60006060820190506120ba60008301866117ea565b6120c760208301856117ea565b6120d460408301846117c0565b949350505050565b6120e581611875565b81146120f057600080fd5b50565b600081519050612102816120dc565b92915050565b60006020828403121561211e5761211d6116e2565b5b600061212c848285016120f3565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000612191602a836119fe565b915061219c82612135565b604082019050919050565b600060208201905081810360008301526121c081612184565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006121fd6014836119fe565b9150612208826121c7565b602082019050919050565b6000602082019050818103600083015261222c816121f0565b9050919050565b600081905092915050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b6000612274600283612233565b915061227f8261223e565b600282019050919050565b6000819050919050565b6122a56122a082611814565b61228a565b82525050565b60006122b682612267565b91506122c28285612294565b6020820191506122d28284612294565b6020820191508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006123476018836119fe565b915061235282612311565b602082019050919050565b600060208201905081810360008301526123768161233a565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006123b3601f836119fe565b91506123be8261237d565b602082019050919050565b600060208201905081810360008301526123e2816123a6565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006124456022836119fe565b9150612450826123e9565b604082019050919050565b6000602082019050818103600083015261247481612438565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006124d76022836119fe565b91506124e28261247b565b604082019050919050565b60006020820190508181036000830152612506816124ca565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060ff82169050919050565b6125528161253c565b82525050565b600060808201905061256d600083018761181e565b61257a6020830186612549565b612587604083018561181e565b612594606083018461181e565b95945050505050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006125f96026836119fe565b91506126048261259d565b604082019050919050565b60006020820190508181036000830152612628816125ec565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000612665601d836119fe565b91506126708261262f565b602082019050919050565b6000602082019050818103600083015261269481612658565b9050919050565b600081519050919050565b600081905092915050565b60005b838110156126cf5780820151818401526020810190506126b4565b60008484015250505050565b60006126e68261269b565b6126f081856126a6565b93506127008185602086016126b1565b80840191505092915050565b600061271882846126db565b915081905092915050565b600081519050919050565b6000601f19601f8301169050919050565b600061274a82612723565b61275481856119fe565b93506127648185602086016126b1565b61276d8161272e565b840191505092915050565b60006020820190508181036000830152612792818461273f565b90509291505056fea26469706673582212206740271935335b8e44d333bf49627df217416b6ee6d27d0b80cd500ea478354164736f6c63430008110033

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

00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000e7601da1800000000000000000000000000befde338daec0240f70cdef420cb4eedd54aa71d000000000000000000000000669c01caf0edcad7c2b8dc771474ad937a7ca4af000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000008ce4f863a62be8a23d94d8ddac96cafdfa3317e3000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000454b75ba300000000000000000000000000000000000000000000000000000003ca204a09000000000000000000000000000000000000000000000000000000035e55b90d000000000000000000000000000000000000000000000000000000030819f358800000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000084595161401484a000000000000000000000000000000000000000000000000108b2a2c28029094000000000000000000000000000000000000000000000000211654585005212800000000000000000000000000000000000000000000000031a17e847807b1bc000000

-----Decoded View---------------
Arg [0] : rates (uint256[]): 4761900000000,4166660000000,3703700000000,3333330000000
Arg [1] : tranches (uint256[]): 10000000000000000000000000,20000000000000000000000000,40000000000000000000000000,60000000000000000000000000
Arg [2] : usdtCap (uint256): 15900000000000
Arg [3] : wallet (address): 0xBeFDE338daEc0240f70CdEF420cb4eedd54AA71d
Arg [4] : token (address): 0x669c01CAF0eDcaD7c2b8Dc771474aD937A7CA4AF
Arg [5] : purchaseToken (address): 0xdAC17F958D2ee523a2206206994597C13D831ec7
Arg [6] : signer (address): 0x8CE4F863a62BE8a23d94d8DdaC96cAFDfA3317e3

-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [2] : 00000000000000000000000000000000000000000000000000000e7601da1800
Arg [3] : 000000000000000000000000befde338daec0240f70cdef420cb4eedd54aa71d
Arg [4] : 000000000000000000000000669c01caf0edcad7c2b8dc771474ad937a7ca4af
Arg [5] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [6] : 0000000000000000000000008ce4f863a62be8a23d94d8ddac96cafdfa3317e3
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 00000000000000000000000000000000000000000000000000000454b75ba300
Arg [9] : 000000000000000000000000000000000000000000000000000003ca204a0900
Arg [10] : 0000000000000000000000000000000000000000000000000000035e55b90d00
Arg [11] : 0000000000000000000000000000000000000000000000000000030819f35880
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [13] : 000000000000000000000000000000000000000000084595161401484a000000
Arg [14] : 000000000000000000000000000000000000000000108b2a2c28029094000000
Arg [15] : 0000000000000000000000000000000000000000002116545850052128000000
Arg [16] : 00000000000000000000000000000000000000000031a17e847807b1bc000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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