Contract 0xf0eea468f6a1dfe1e687bc269a707fe459cd1f23

 
 
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0xcb4dc193e150488a5ad8924b899674d0159348171df48d31b17df2a79d8e4aa1Set Allowed Usd ...348464042022-10-27 3:00:53105 days 2 hrs agoBetVerse: Deployer IN  0xf0eea468f6a1dfe1e687bc269a707fe459cd1f230 MATIC0.0138657 300
0x55f11d532cba51ded733e24760e88af0ad136e15aaf88a62f6c5e0f04e6c78e3Set Allowed Usd ...348464002022-10-27 3:00:45105 days 2 hrs agoBetVerse: Deployer IN  0xf0eea468f6a1dfe1e687bc269a707fe459cd1f230 MATIC0.0138657 300
0x89ef5d2c787a55290d4e244ab287ccb7d9533474eca156109ee1db77068b1b370x60806040348463952022-10-27 3:00:31105 days 2 hrs agoBetVerse: Deployer IN  Create: IcoGeneric0 MATIC0.986403 300
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
IcoGeneric

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 200000 runs

Other Settings:
byzantium EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 11 : IcoGeneric.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.14;

import '@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/utils/math/SafeMath.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/math/SafeMath.sol';
import '@openzeppelin/contracts/token/ERC20/utils/TokenTimelock.sol';

contract IcoGeneric is ReentrancyGuard, Ownable {
    using SafeMath for uint256;

    struct Sale {
        address investor;
        uint256 amount;
        address[] lockedAddress;
        string usdSymbol;
        uint256 usdAmount;
        uint256 timestamp;
        address usdAddress;
    }
    struct Allowed {
        bool isAllowed;
    }

    mapping(address => Sale) public sales;
    mapping(address => Allowed) public allowedUsdAddress;
    mapping(address => Allowed) public allowedToTrade;

    uint256 public end;
    uint256 public duration;
    uint256 public icoPriceInWei;
    uint256 public term;
    address public walletTo;
    uint256 public minimumAmountToBuyInWei;
    IERC20Metadata public token;

    constructor(
        address _tokenAddress,
        uint256 _duration,
        uint256 _icoPriceInWei,
        uint256 _term,
        address _walletTo,
        uint256 _minimumAmountToBuyInWei
    ) hasAValidContructor(_tokenAddress, _duration, _icoPriceInWei, _term, _walletTo, _minimumAmountToBuyInWei) {
        token = IERC20Metadata(_tokenAddress);
        duration = _duration;
        icoPriceInWei = _icoPriceInWei;
        term = _term;
        walletTo = _walletTo;
        minimumAmountToBuyInWei = _minimumAmountToBuyInWei;
    }

    function getUsdInfo(address usdAddress)
        public
        view
        returns (
            string memory,
            string memory,
            uint8
        )
    {
        IERC20Metadata usd = IERC20Metadata(usdAddress);
        return (usd.name(), usd.symbol(), usd.decimals());
    }

    function buy(uint256 amountInUsd, address usdAddress)
        external
        icoActive
        nonReentrant
        hasTokenBalance
        notInvesting
        isAllowedUsdAddress(usdAddress)
    {
        IERC20Metadata usd = IERC20Metadata(usdAddress);

        uint256 tokenAmountInWei = getFinalTokenAmount(amountInUsd, usd);

        require(tokenAmountInWei > 0, 'It is not possible to have a zero amount.');

        require(
            tokenAmountInWei >= minimumAmountToBuyInWei,
            'To participate in this ICO, you must purchase at least the minimum amount of USD.'
        );

        require(tokenBalance() > 0 && tokenBalance() >= tokenAmountInWei, 'Tokens are no longer available for sale in the ICO.');

        uint256 allowanceInWei = usd.allowance(msg.sender, address(this));

        uint256 usdAmountInWei = convertUsdToWei(amountInUsd, usd);

        require(allowanceInWei >= usdAmountInWei, 'This contract must be allowed to send USDT or the amount must be increased.');

        uint256 amountInUsdSafe = (usdAmountInWei / 1 ether) * 10**usd.decimals();

        usd.transferFrom(msg.sender, walletTo, amountInUsdSafe);

        transferTokenToLockedAddresses(msg.sender, tokenAmountInWei, usdAmountInWei, usd);
    }

    function buyATM(
        address customerAddress,
        uint256 amountInUsd,
        address usdAddress
    ) external icoActive nonReentrant hasTokenBalance notInvesting isAllowedUsdAddress(usdAddress) isAllowedToTrade(msg.sender) {
        IERC20Metadata usd = IERC20Metadata(usdAddress);

        uint256 tokenAmountInWei = getFinalTokenAmount(amountInUsd, usd);

        require(tokenAmountInWei > 0, 'It is not possible to have a zero amount.');

        require(
            tokenAmountInWei >= minimumAmountToBuyInWei,
            'To participate in this ICO, you must purchase at least the minimum amount of USD.'
        );

        require(tokenBalance() > 0 && tokenBalance() >= tokenAmountInWei, 'Tokens are no longer available for sale in the ICO.');

        uint256 allowanceInWei = usd.allowance(msg.sender, address(this));

        uint256 usdAmountInWei = convertUsdToWei(amountInUsd, usd);

        require(allowanceInWei >= usdAmountInWei, 'This contract must be allowed to send USDT or the amount must be increased.');

        uint256 amountInUsdSafe = (usdAmountInWei / 1 ether) * 10**usd.decimals();

        usd.transferFrom(msg.sender, walletTo, amountInUsdSafe);

        transferTokenToLockedAddresses(customerAddress, tokenAmountInWei, usdAmountInWei, usd);
    }

    function convertUsdToWei(uint256 usdtAmount, IERC20Metadata usd) public view returns (uint256) {
        return usdtAmount.div(10**usd.decimals()).mul(1 ether);
    }

    function setIcoPriceInWei(uint256 _icoPriceInWei) external onlyOwner {
        icoPriceInWei = _icoPriceInWei;
    }

    function setMinimumAmountToBuyInWei(uint256 _minimumAmountToBuyInWei) external onlyOwner {
        minimumAmountToBuyInWei = _minimumAmountToBuyInWei;
    }

    function setTokenAddress(address _tokenAddress) external onlyOwner {
        token = IERC20Metadata(_tokenAddress);
    }

    function getTokenAmountToSell(uint256 usdAmountInWei) public view returns (uint256) {
        return usdAmountInWei.div(icoPriceInWei).mul(10**token.decimals());
    }

    function getFinalTokenAmount(uint256 usdAmount, IERC20Metadata usd) public view returns (uint256) {
        uint256 usdAmountInWei = convertUsdToWei(usdAmount, usd);
        uint256 tokenAmountInWei = getTokenAmountToSell(usdAmountInWei);
        return tokenAmountInWei;
    }

    function getLockedAddresses(address investor) public view returns (address[] memory) {
        return sales[investor].lockedAddress;
    }

    function transferTokenToLockedAddresses(
        address to,
        uint256 amount,
        uint256 usdAmountInWei,
        IERC20Metadata usd
    ) internal {
        address[] memory lockedAddresses;
        sales[to] = Sale(to, amount, lockedAddresses, usd.symbol(), usdAmountInWei, block.timestamp, address(usd));
        uint256 currentDate = block.timestamp;
        for (uint256 i = 1; i <= term; i++) {
            currentDate = currentDate.add(365 days); // It will start releasing it in one year
            TokenTimelock timeLockContract = new TokenTimelock(token, to, currentDate);

            token.transfer(address(timeLockContract), amount.div(term));
            sales[to].lockedAddress.push(address(timeLockContract));
        }
    }

    function setAllowedToTrade(address _account) external onlyOwner {
        allowedToTrade[_account] = Allowed(true);
    }

    function deleteAllowedToTrade(address _account) external onlyOwner {
        delete allowedToTrade[_account];
    }

    function transferToken(address to, uint256 amount) external onlyOwner {
        token.transfer(to, amount);
    }

    function tokenBalance() public view returns (uint256) {
        return token.balanceOf(address(this));
    }

    function isIcoActive() external view icoActive returns (bool) {
        return true;
    }

    function isIcoEnded() external view icoEnded returns (bool) {
        return true;
    }

    function start() external onlyOwner icoNotActive {
        end = block.timestamp + duration;
    }

    function isAlreadyInvesting() internal view returns (bool) {
        return (sales[msg.sender].amount > 0);
    }

    function setAllowedUsdAddress(address usdAddress) external onlyOwner {
        allowedUsdAddress[usdAddress] = Allowed(true);
    }

    function deleteAllowedUsdAddress(address usdAddress) external onlyOwner {
        delete allowedUsdAddress[usdAddress];
    }

    modifier isAllowedUsdAddress(address usdAddress) {
        require(allowedUsdAddress[usdAddress].isAllowed, 'There is no whitelist entry for this USD address.');
        _;
    }

    modifier isAllowedToTrade(address _account) {
        require(allowedToTrade[_account].isAllowed, 'It is not permitted for you to trade.');
        _;
    }

    modifier icoActive() {
        require(end > 0 && (end >= block.timestamp), 'An active ICO is required.');
        _;
    }

    modifier icoNotActive() {
        require(end == 0, 'There should not be an active ICO.');
        _;
    }

    modifier icoEnded() {
        require(end > 0 && (block.timestamp >= end), 'There must have been an end to the ICO.');
        _;
    }

    modifier hasTokenBalance() {
        require(tokenBalance() > 0, 'Tokens are no longer available for sale in the ICO.');
        _;
    }

    modifier notInvesting() {
        require(!isAlreadyInvesting(), 'It is not possible to participate in the ICO more than once.');
        _;
    }

    modifier hasAValidContructor(
        address _tokenAddress,
        uint256 _duration,
        uint256 _icoPriceInWei,
        uint256 _term,
        address _walletTo,
        uint256 _minimumAmountToBuyInWei
    ) {
        require(_tokenAddress != address(0), 'There should be a difference between the _tokenAddress and the zero address.');
        require(_duration > 0, 'The _duration should be greater than zero.');
        require(_icoPriceInWei > 0, 'The _icoPriceInWei should be greater than zero.');
        require(_term > 0, 'The _term should be greater than zero.');
        require(_walletTo != address(0), 'There should be a difference between the _walletTo and the zero address.');
        require(_minimumAmountToBuyInWei > 0, 'The _minimumAmountToBuyInWei should be greater than zero.');
        _;
    }
}

File 2 of 11 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 4 of 11 : 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 5 of 11 : TokenTimelock.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/utils/TokenTimelock.sol)

pragma solidity ^0.8.0;

import "./SafeERC20.sol";

/**
 * @dev A token holder contract that will allow a beneficiary to extract the
 * tokens after a given release time.
 *
 * Useful for simple vesting schedules like "advisors get all of their tokens
 * after 1 year".
 */
contract TokenTimelock {
    using SafeERC20 for IERC20;

    // ERC20 basic token contract being held
    IERC20 private immutable _token;

    // beneficiary of tokens after they are released
    address private immutable _beneficiary;

    // timestamp when token release is enabled
    uint256 private immutable _releaseTime;

    /**
     * @dev Deploys a timelock instance that is able to hold the token specified, and will only release it to
     * `beneficiary_` when {release} is invoked after `releaseTime_`. The release time is specified as a Unix timestamp
     * (in seconds).
     */
    constructor(
        IERC20 token_,
        address beneficiary_,
        uint256 releaseTime_
    ) {
        require(releaseTime_ > block.timestamp, "TokenTimelock: release time is before current time");
        _token = token_;
        _beneficiary = beneficiary_;
        _releaseTime = releaseTime_;
    }

    /**
     * @dev Returns the token being held.
     */
    function token() public view virtual returns (IERC20) {
        return _token;
    }

    /**
     * @dev Returns the beneficiary that will receive the tokens.
     */
    function beneficiary() public view virtual returns (address) {
        return _beneficiary;
    }

    /**
     * @dev Returns the time when the tokens are released in seconds since Unix epoch (i.e. Unix timestamp).
     */
    function releaseTime() public view virtual returns (uint256) {
        return _releaseTime;
    }

    /**
     * @dev Transfers tokens held by the timelock to the beneficiary. Will only succeed if invoked after the release
     * time.
     */
    function release() public virtual {
        require(block.timestamp >= releaseTime(), "TokenTimelock: current time is before release time");

        uint256 amount = token().balanceOf(address(this));
        require(amount > 0, "TokenTimelock: no tokens to release");

        token().safeTransfer(beneficiary(), amount);
    }
}

File 6 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 7 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 8 of 11 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

File 9 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 10 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 11 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);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_icoPriceInWei","type":"uint256"},{"internalType":"uint256","name":"_term","type":"uint256"},{"internalType":"address","name":"_walletTo","type":"address"},{"internalType":"uint256","name":"_minimumAmountToBuyInWei","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowedToTrade","outputs":[{"internalType":"bool","name":"isAllowed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowedUsdAddress","outputs":[{"internalType":"bool","name":"isAllowed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountInUsd","type":"uint256"},{"internalType":"address","name":"usdAddress","type":"address"}],"name":"buy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"customerAddress","type":"address"},{"internalType":"uint256","name":"amountInUsd","type":"uint256"},{"internalType":"address","name":"usdAddress","type":"address"}],"name":"buyATM","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"usdtAmount","type":"uint256"},{"internalType":"contract IERC20Metadata","name":"usd","type":"address"}],"name":"convertUsdToWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"deleteAllowedToTrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"usdAddress","type":"address"}],"name":"deleteAllowedUsdAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"duration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"end","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"usdAmount","type":"uint256"},{"internalType":"contract IERC20Metadata","name":"usd","type":"address"}],"name":"getFinalTokenAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"investor","type":"address"}],"name":"getLockedAddresses","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"usdAmountInWei","type":"uint256"}],"name":"getTokenAmountToSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"usdAddress","type":"address"}],"name":"getUsdInfo","outputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"string","name":"","type":"string"},{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"icoPriceInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isIcoActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isIcoEnded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumAmountToBuyInWei","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"sales","outputs":[{"internalType":"address","name":"investor","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"usdSymbol","type":"string"},{"internalType":"uint256","name":"usdAmount","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"address","name":"usdAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"setAllowedToTrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"usdAddress","type":"address"}],"name":"setAllowedUsdAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_icoPriceInWei","type":"uint256"}],"name":"setIcoPriceInWei","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minimumAmountToBuyInWei","type":"uint256"}],"name":"setMinimumAmountToBuyInWei","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"setTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"start","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"term","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20Metadata","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"walletTo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162003cda38038062003cda8339810160408190526200003491620004ce565b60016000556200005f620000506401000000006200045b810204565b6401000000006200045f810204565b858585858585600160a060020a03861662000116576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604c602482015260008051602062003cba83398151915260448201527f7765656e20746865205f746f6b656e4164647265737320616e6420746865207a60648201527f65726f20616464726573732e0000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b60008511620001a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f546865205f6475726174696f6e2073686f756c6420626520677265617465722060448201527f7468616e207a65726f2e0000000000000000000000000000000000000000000060648201526084016200010d565b600084116200023a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f546865205f69636f5072696365496e5765692073686f756c642062652067726560448201527f61746572207468616e207a65726f2e000000000000000000000000000000000060648201526084016200010d565b60008311620002cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f546865205f7465726d2073686f756c642062652067726561746572207468616e60448201527f207a65726f2e000000000000000000000000000000000000000000000000000060648201526084016200010d565b600160a060020a03821662000379576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526048602482015260008051602062003cba83398151915260448201527f7765656e20746865205f77616c6c6574546f20616e6420746865207a65726f2060648201527f616464726573732e000000000000000000000000000000000000000000000000608482015260a4016200010d565b600081116200040b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603960248201527f546865205f6d696e696d756d416d6f756e74546f427579496e5765692073686f60448201527f756c642062652067726561746572207468616e207a65726f2e0000000000000060648201526084016200010d565b5050600b8054600160a060020a0319908116600160a060020a039c8d16179091556006999099555050506007949094556008929092556009805490941694169390931790915550600a556200052b565b3390565b60018054600160a060020a03838116600160a060020a0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8051600160a060020a0381168114620004c957600080fd5b919050565b60008060008060008060c08789031215620004e857600080fd5b620004f387620004b1565b95506020870151945060408701519350606087015192506200051860808801620004b1565b915060a087015190509295509295509295565b61377f806200053b6000396000f3fe60806040523480156200001157600080fd5b506004361062000236576000357c0100000000000000000000000000000000000000000000000000000000900480639e1a4d191162000142578063d86321ff11620000cc578063f79505ba1162000097578063f79505ba14620004f5578063fc0c546a14620004ff578063fd37775f1462000520578063fd6718eb146200053757600080fd5b8063d86321ff14620004a9578063def4576c14620004b3578063efbe1c1c14620004d4578063f2fde38b14620004de57600080fd5b8063bf0afff9116200010d578063bf0afff9146200042a578063c6b9f06a1462000450578063c74080d1146200047b578063d317db1c146200049257600080fd5b80639e1a4d191462000402578063a10ffbed146200040c578063ba7e424d1462000416578063be9a6555146200042057600080fd5b80634be6b28211620001c45780637deb6025116200018f5780637deb6025146200036e5780637eb2d1e214620003855780638da5cb5b14620003ab57806391f57d1514620003eb57600080fd5b80634be6b28214620003105780635831b7591462000336578063661cb770146200034d578063715018a6146200036457600080fd5b806326a4e8d2116200020557806326a4e8d214620002a3578063309dd60e14620002ba5780633f27fa9014620002e25780634a3bf39114620002f957600080fd5b80630fb5a6b4146200023b5780631072cbea14620002585780631314fe0314620002715780631fc27ef21462000288575b600080fd5b6200024560065481565b6040519081526020015b60405180910390f35b6200026f6200026936600462002746565b6200054e565b005b620002456200028236600462002775565b620005fd565b6200029262000626565b60405190151581526020016200024f565b6200026f620002b4366004620027a8565b620006ae565b620002d1620002cb366004620027a8565b620006ff565b6040516200024f9392919062002847565b6200026f620002f3366004620027a8565b62000904565b6200026f6200030a366004620027a8565b62000970565b6200032762000321366004620027a8565b620009c6565b6040516200024f919062002884565b6200024562000347366004620028e0565b62000a5b565b620002456200035e36600462002775565b62000b35565b6200026f62000bf2565b6200026f6200037f36600462002775565b62000c0a565b6200029262000396366004620027a8565b60046020526000908152604090205460ff1681565b60015473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016200024f565b6200026f620003fc366004620028e0565b620013e5565b62000245620013f4565b6200024560085481565b620002926200148f565b6200026f62001533565b620002926200043b366004620027a8565b60036020526000908152604090205460ff1681565b6200046762000461366004620027a8565b620015e3565b6040516200024f96959493929190620028fa565b6200026f6200048c366004620028e0565b620016d7565b6200026f620004a3366004620027a8565b620016e6565b62000245600a5481565b600954620003c59073ffffffffffffffffffffffffffffffffffffffff1681565b6200024560055481565b6200026f620004ef366004620027a8565b6200173c565b6200024560075481565b600b54620003c59073ffffffffffffffffffffffffffffffffffffffff1681565b6200026f6200053136600462002952565b620017f9565b6200026f62000548366004620027a8565b62002077565b62000558620020e3565b600b546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152602482018490529091169063a9059cbb906044016020604051808303816000875af1158015620005d2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620005f8919062002999565b505050565b6000806200060c848462000b35565b905060006200061b8262000a5b565b925050505b92915050565b6000806005541180156200063c57504260055410155b620006a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f416e206163746976652049434f2069732072657175697265642e00000000000060448201526064015b60405180910390fd5b50600190565b620006b8620020e3565b600b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6060806000808490508073ffffffffffffffffffffffffffffffffffffffff166306fdde036040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381865afa15801562000770573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052620007b89190810190620029ec565b8173ffffffffffffffffffffffffffffffffffffffff166395d89b416040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381865afa15801562000820573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052620008689190810190620029ec565b8273ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381865afa158015620008d0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620008f6919062002ac3565b935093509350509193909250565b6200090e620020e3565b60408051602080820183526001825273ffffffffffffffffffffffffffffffffffffffff93909316600090815260039093529120905181547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016901515179055565b6200097a620020e3565b73ffffffffffffffffffffffffffffffffffffffff16600090815260046020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b73ffffffffffffffffffffffffffffffffffffffff811660009081526002602081815260409283902090910180548351818402810184019094528084526060939283018282801562000a4f57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff16815260019091019060200180831162000a23575b50505050509050919050565b600062000620600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381865afa15801562000aeb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000b11919062002ac3565b62000b1e90600a62002c53565b60075462000b2e90859062002166565b9062002174565b600062000beb670de0b6b3a764000062000b2e8473ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381865afa15801562000bb0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000bd6919062002ac3565b62000be390600a62002c53565b869062002166565b9392505050565b62000bfc620020e3565b62000c08600062002182565b565b600060055411801562000c1f57504260055410155b62000c87576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f416e206163746976652049434f2069732072657175697265642e00000000000060448201526064016200069f565b60026000540362000cf5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016200069f565b6002600090815562000d06620013f4565b1162000d95576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603360248201527f546f6b656e7320617265206e6f206c6f6e67657220617661696c61626c65206660448201527f6f722073616c6520696e207468652049434f2e0000000000000000000000000060648201526084016200069f565b336000908152600260205260409020600101541562000e37576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603c60248201527f4974206973206e6f7420706f737369626c6520746f207061727469636970617460448201527f6520696e207468652049434f206d6f7265207468616e206f6e63652e0000000060648201526084016200069f565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260036020526040902054819060ff1662000ef0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f5468657265206973206e6f2077686974656c69737420656e74727920666f722060448201527f746869732055534420616464726573732e00000000000000000000000000000060648201526084016200069f565b81600062000eff8583620005fd565b90506000811162000f93576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4974206973206e6f7420706f737369626c6520746f20686176652061207a657260448201527f6f20616d6f756e742e000000000000000000000000000000000000000000000060648201526084016200069f565b600a548110156200104d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152605160248201527f546f20706172746963697061746520696e20746869732049434f2c20796f752060448201527f6d757374207075726368617365206174206c6561737420746865206d696e696d60648201527f756d20616d6f756e74206f66205553442e000000000000000000000000000000608482015260a4016200069f565b600062001059620013f4565b118015620010705750806200106d620013f4565b10155b620010fe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603360248201527f546f6b656e7320617265206e6f206c6f6e67657220617661696c61626c65206660448201527f6f722073616c6520696e207468652049434f2e0000000000000000000000000060648201526084016200069f565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815233600482015230602482015260009073ffffffffffffffffffffffffffffffffffffffff84169063dd62ed3e90604401602060405180830381865afa15801562001172573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001198919062002c64565b90506000620011a8878562000b35565b90508082101562001262576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604b60248201527f5468697320636f6e7472616374206d75737420626520616c6c6f77656420746f60448201527f2073656e642055534454206f722074686520616d6f756e74206d75737420626560648201527f20696e637265617365642e000000000000000000000000000000000000000000608482015260a4016200069f565b60008473ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381865afa158015620012cc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620012f2919062002ac3565b620012ff90600a62002c53565b62001313670de0b6b3a76400008462002c7e565b6200131f919062002cba565b6009546040517f23b872dd00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff9182166024820152604481018390529192508616906323b872dd906064016020604051808303816000875af1158015620013a1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620013c7919062002999565b50620013d633858488620021f9565b50506001600055505050505050565b620013ef620020e3565b600755565b600b546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa15801562001464573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200148a919062002c64565b905090565b600080600554118015620014a557506005544210155b620006a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f5468657265206d7573742068617665206265656e20616e20656e6420746f207460448201527f68652049434f2e0000000000000000000000000000000000000000000000000060648201526084016200069f565b6200153d620020e3565b60055415620015cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f54686572652073686f756c64206e6f7420626520616e2061637469766520494360448201527f4f2e00000000000000000000000000000000000000000000000000000000000060648201526084016200069f565b600654620015de904262002cfa565b600555565b60026020526000908152604090208054600182015460038301805473ffffffffffffffffffffffffffffffffffffffff909316939192620016249062002d15565b80601f0160208091040260200160405190810160405280929190818152602001828054620016529062002d15565b8015620016a35780601f106200167757610100808354040283529160200191620016a3565b820191906000526020600020905b8154815290600101906020018083116200168557829003601f168201915b50505050600483015460058401546006909401549293909290915073ffffffffffffffffffffffffffffffffffffffff1686565b620016e1620020e3565b600a55565b620016f0620020e3565b73ffffffffffffffffffffffffffffffffffffffff16600090815260036020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b62001746620020e3565b73ffffffffffffffffffffffffffffffffffffffff8116620017eb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016200069f565b620017f68162002182565b50565b60006005541180156200180e57504260055410155b62001876576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f416e206163746976652049434f2069732072657175697265642e00000000000060448201526064016200069f565b600260005403620018e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016200069f565b60026000908155620018f5620013f4565b1162001984576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603360248201527f546f6b656e7320617265206e6f206c6f6e67657220617661696c61626c65206660448201527f6f722073616c6520696e207468652049434f2e0000000000000000000000000060648201526084016200069f565b336000908152600260205260409020600101541562001a26576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603c60248201527f4974206973206e6f7420706f737369626c6520746f207061727469636970617460448201527f6520696e207468652049434f206d6f7265207468616e206f6e63652e0000000060648201526084016200069f565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260036020526040902054819060ff1662001adf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f5468657265206973206e6f2077686974656c69737420656e74727920666f722060448201527f746869732055534420616464726573732e00000000000000000000000000000060648201526084016200069f565b3360008181526004602052604090205460ff1662001b80576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4974206973206e6f74207065726d697474656420666f7220796f7520746f207460448201527f726164652e00000000000000000000000000000000000000000000000000000060648201526084016200069f565b82600062001b8f8683620005fd565b90506000811162001c23576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4974206973206e6f7420706f737369626c6520746f20686176652061207a657260448201527f6f20616d6f756e742e000000000000000000000000000000000000000000000060648201526084016200069f565b600a5481101562001cdd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152605160248201527f546f20706172746963697061746520696e20746869732049434f2c20796f752060448201527f6d757374207075726368617365206174206c6561737420746865206d696e696d60648201527f756d20616d6f756e74206f66205553442e000000000000000000000000000000608482015260a4016200069f565b600062001ce9620013f4565b11801562001d0057508062001cfd620013f4565b10155b62001d8e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603360248201527f546f6b656e7320617265206e6f206c6f6e67657220617661696c61626c65206660448201527f6f722073616c6520696e207468652049434f2e0000000000000000000000000060648201526084016200069f565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815233600482015230602482015260009073ffffffffffffffffffffffffffffffffffffffff84169063dd62ed3e90604401602060405180830381865afa15801562001e02573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001e28919062002c64565b9050600062001e38888562000b35565b90508082101562001ef2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604b60248201527f5468697320636f6e7472616374206d75737420626520616c6c6f77656420746f60448201527f2073656e642055534454206f722074686520616d6f756e74206d75737420626560648201527f20696e637265617365642e000000000000000000000000000000000000000000608482015260a4016200069f565b60008473ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381865afa15801562001f5c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001f82919062002ac3565b62001f8f90600a62002c53565b62001fa3670de0b6b3a76400008462002c7e565b62001faf919062002cba565b6009546040517f23b872dd00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff9182166024820152604481018390529192508616906323b872dd906064016020604051808303816000875af115801562002031573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002057919062002999565b50620020668a858488620021f9565b505060016000555050505050505050565b62002081620020e3565b60408051602080820183526001825273ffffffffffffffffffffffffffffffffffffffff93909316600090815260049093529120905181547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016901515179055565b60015473ffffffffffffffffffffffffffffffffffffffff16331462000c08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200069f565b600062000beb828462002c7e565b600062000beb828462002cba565b6001805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60606040518060e001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018281526020018373ffffffffffffffffffffffffffffffffffffffff166395d89b416040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381865afa15801562002296573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052620022de9190810190620029ec565b815260208082018690524260408084019190915273ffffffffffffffffffffffffffffffffffffffff8681166060909401939093528883166000908152600280845290829020855181547fffffffffffffffffffffffff00000000000000000000000000000000000000001695169490941784558483015160018501559084015180516200237593928501929190910190620025f2565b50606082015180516200239391600384019160209091019062002681565b506080820151600482015560a0820151600582015560c090910151600690910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9092169190911790554260015b6008548111620025db5762002413826301e13380620025e4565b91506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1688846040516200244a90620026fe565b73ffffffffffffffffffffffffffffffffffffffff93841681529290911660208301526040820152606001604051809103906000f08015801562002492573d6000803e3d6000fd5b50600b5460085491925073ffffffffffffffffffffffffffffffffffffffff169063a9059cbb908390620024c8908b9062002166565b6040517c010000000000000000000000000000000000000000000000000000000063ffffffff851602815273ffffffffffffffffffffffffffffffffffffffff909216600483015260248201526044016020604051808303816000875af115801562002538573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200255e919062002999565b5073ffffffffffffffffffffffffffffffffffffffff88811660009081526002602081815260408320909101805460018101825590835291200180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169290911691909117905580620025d28162002d6a565b915050620023f9565b50505050505050565b600062000beb828462002cfa565b8280548282559060005260206000209081019282156200266f579160200282015b828111156200266f57825182547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff90911617825560209092019160019091019062002613565b506200267d9291506200270c565b5090565b8280546200268f9062002d15565b90600052602060002090601f016020900481019282620026b357600085556200266f565b82601f10620026ce57805160ff19168380011785556200266f565b828001600101855582156200266f579182015b828111156200266f578251825591602001919060010190620026e1565b6109a48062002da683390190565b5b808211156200267d57600081556001016200270d565b73ffffffffffffffffffffffffffffffffffffffff81168114620017f657600080fd5b600080604083850312156200275a57600080fd5b8235620027678162002723565b946020939093013593505050565b600080604083850312156200278957600080fd5b8235915060208301356200279d8162002723565b809150509250929050565b600060208284031215620027bb57600080fd5b813562000beb8162002723565b60005b83811015620027e5578181015183820152602001620027cb565b83811115620027f5576000848401525b50505050565b6000815180845262002815816020860160208601620027c8565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6060815260006200285c6060830186620027fb565b8281036020840152620028708186620027fb565b91505060ff83166040830152949350505050565b6020808252825182820181905260009190848201906040850190845b81811015620028d457835173ffffffffffffffffffffffffffffffffffffffff1683529284019291840191600101620028a0565b50909695505050505050565b600060208284031215620028f357600080fd5b5035919050565b600073ffffffffffffffffffffffffffffffffffffffff808916835287602084015260c060408401526200293260c0840188620027fb565b6060840196909652608083019490945250911660a0909101529392505050565b6000806000606084860312156200296857600080fd5b8335620029758162002723565b92506020840135915060408401356200298e8162002723565b809150509250925092565b600060208284031215620029ac57600080fd5b8151801515811462000beb57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060208284031215620029ff57600080fd5b815167ffffffffffffffff8082111562002a1857600080fd5b818401915084601f83011262002a2d57600080fd5b81518181111562002a425762002a42620029bd565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171562002a8b5762002a8b620029bd565b8160405282815287602084870101111562002aa557600080fd5b62002ab8836020830160208801620027c8565b979650505050505050565b60006020828403121562002ad657600080fd5b815160ff8116811462000beb57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600181815b8085111562002b7857817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111562002b5a5762002b5a62002ae8565b8085161562002b6857918102915b6002909404939080029062002b1c565b509250929050565b60008262002b915750600162000620565b8162002ba05750600062000620565b816001811462002bb9576002811462002bc45762002be5565b600191505062000620565b60ff84111562002bd85762002bd862002ae8565b8360020a91505062000620565b5060208310610133831016604e8410600b841016171562002c0a575081810a62000620565b62002c16838362002b17565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111562002c4b5762002c4b62002ae8565b029392505050565b600062000beb60ff84168362002b80565b60006020828403121562002c7757600080fd5b5051919050565b60008262002cb5577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161562002cf55762002cf562002ae8565b500290565b6000821982111562002d105762002d1062002ae8565b500190565b60028104600182168062002d2a57607f821691505b60208210810362002d64577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820362002d9e5762002d9e62002ae8565b506001019056fe60e060405234801561001057600080fd5b506040516109a43803806109a483398101604081905261002f916100f5565b4281116100c2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f546f6b656e54696d656c6f636b3a2072656c656173652074696d65206973206260448201527f65666f72652063757272656e742074696d650000000000000000000000000000606482015260840160405180910390fd5b600160a060020a03928316608052911660a05260c052610138565b600160a060020a03811681146100f257600080fd5b50565b60008060006060848603121561010a57600080fd5b8351610115816100dd565b6020850151909350610126816100dd565b80925050604084015190509250925092565b60805160a05160c0516108246101806000396000818160c80152610119015260008181606f015261034d01526000818160f3015281816101d0015261032b01526108246000f3fe608060405234801561001057600080fd5b5060043610610068577c0100000000000000000000000000000000000000000000000000000000600035046338af3eed811461006d57806386d1a69f146100b9578063b91d4001146100c3578063fc0c546a146100f1575b600080fd5b7f00000000000000000000000000000000000000000000000000000000000000005b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6100c1610117565b005b6040517f000000000000000000000000000000000000000000000000000000000000000081526020016100b0565b7f000000000000000000000000000000000000000000000000000000000000000061008f565b7f00000000000000000000000000000000000000000000000000000000000000004210156101cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f546f6b656e54696d656c6f636b3a2063757272656e742074696d65206973206260448201527f65666f72652072656c656173652074696d65000000000000000000000000000060648201526084015b60405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000006040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff91909116906370a0823190602401602060405180830381865afa15801561025b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027f9190610716565b905060008111610311576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f546f6b656e54696d656c6f636b3a206e6f20746f6b656e7320746f2072656c6560448201527f617365000000000000000000000000000000000000000000000000000000000060648201526084016101c3565b61037273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083610375565b50565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610402908490610407565b505050565b6000610469826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166105139092919063ffffffff16565b8051909150156104025780806020019051810190610487919061072f565b610402576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016101c3565b6060610522848460008561052c565b90505b9392505050565b606030318311156105bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101c3565b73ffffffffffffffffffffffffffffffffffffffff85163b61063d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101c3565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516106669190610781565b60006040518083038185875af1925050503d80600081146106a3576040519150601f19603f3d011682016040523d82523d6000602084013e6106a8565b606091505b50915091506106b88282866106c3565b979650505050505050565b606083156106d2575081610525565b8251156106e25782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101c3919061079d565b60006020828403121561072857600080fd5b5051919050565b60006020828403121561074157600080fd5b8151801515811461052557600080fd5b60005b8381101561076c578181015183820152602001610754565b8381111561077b576000848401525b50505050565b60008251610793818460208701610751565b9190910192915050565b60208152600082518060208401526107bc816040850160208701610751565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea26469706673582212205354c9ef63b615e2b5ab23c810422843bb432f3d0a815c749a73ebd4791b1ff564736f6c634300080e0033a264697066735822122040718c7d4b710b266f32c84da1f361850581e001221a3d0c15e53ade99ee51dc64736f6c634300080e003354686572652073686f756c64206265206120646966666572656e636520626574000000000000000000000000bd2173e33ae4f2fb482e139db4d5c2ef1f9aa181000000000000000000000000000000000000000000000000000000000024ea00000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000002bc0f19322b069b28269595b7644aefb8a5e71e90000000000000000000000000000000000000000000000008ac7230489e80000

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

000000000000000000000000bd2173e33ae4f2fb482e139db4d5c2ef1f9aa181000000000000000000000000000000000000000000000000000000000024ea00000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000002bc0f19322b069b28269595b7644aefb8a5e71e90000000000000000000000000000000000000000000000008ac7230489e80000

-----Decoded View---------------
Arg [0] : _tokenAddress (address): 0xbd2173e33ae4f2fb482e139db4d5c2ef1f9aa181
Arg [1] : _duration (uint256): 2419200
Arg [2] : _icoPriceInWei (uint256): 100000000000000000
Arg [3] : _term (uint256): 3
Arg [4] : _walletTo (address): 0x2bc0f19322b069b28269595b7644aefb8a5e71e9
Arg [5] : _minimumAmountToBuyInWei (uint256): 10000000000000000000

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000bd2173e33ae4f2fb482e139db4d5c2ef1f9aa181
Arg [1] : 000000000000000000000000000000000000000000000000000000000024ea00
Arg [2] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [4] : 0000000000000000000000002bc0f19322b069b28269595b7644aefb8a5e71e9
Arg [5] : 0000000000000000000000000000000000000000000000008ac7230489e80000


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.