ETH Price: $2,696.61 (+2.22%)

Contract

0x63d65F04759da8be0E491585c8b7236f188082AB
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Buy Tokens Nativ...206595632024-09-02 1:21:2325 days ago1725240083IN
0x63d65F04...f188082AB
0.0109 ETH0.000021550.5185445
Buy Tokens Nativ...200132332024-06-03 18:58:23116 days ago1717441103IN
0x63d65F04...f188082AB
0.019 ETH0.0006015514.47286673
Buy Tokens Nativ...200108412024-06-03 10:57:23116 days ago1717412243IN
0x63d65F04...f188082AB
0.0785 ETH0.0005105212.28295906
Buy Tokens Nativ...199817262024-05-30 9:19:23120 days ago1717060763IN
0x63d65F04...f188082AB
0.0065 ETH0.0005323712.80846019
Buy Tokens Wert199741472024-05-29 7:52:23121 days ago1716969143IN
0x63d65F04...f188082AB
0.001 ETH0.0005070911.16867298
Buy Tokens Nativ...199661602024-05-28 5:04:35122 days ago1716872675IN
0x63d65F04...f188082AB
0.0005 ETH0.0005350112.87204427
Buy Tokens Nativ...199611562024-05-27 12:17:11123 days ago1716812231IN
0x63d65F04...f188082AB
0.07 ETH0.0005248512.62764282
Buy Tokens Nativ...199598552024-05-27 7:56:11123 days ago1716796571IN
0x63d65F04...f188082AB
0.002521 ETH0.00034218.23084891
Buy Tokens Nativ...199592322024-05-27 5:50:47123 days ago1716789047IN
0x63d65F04...f188082AB
0.031 ETH0.000263086.32956171
Buy Tokens USDT199581192024-05-27 2:07:11123 days ago1716775631IN
0x63d65F04...f188082AB
0 ETH0.0003195.54266421
Buy Tokens Wert199580212024-05-27 1:47:35123 days ago1716774455IN
0x63d65F04...f188082AB
0.066 ETH0.000251335.53413816
Buy Tokens Nativ...199579032024-05-27 1:23:47123 days ago1716773027IN
0x63d65F04...f188082AB
0.04683193 ETH0.000169814.08556318
Buy Tokens Nativ...199578972024-05-27 1:22:23123 days ago1716772943IN
0x63d65F04...f188082AB
0.0887 ETH0.000167354.02633868
Buy Tokens Nativ...199578812024-05-27 1:19:11123 days ago1716772751IN
0x63d65F04...f188082AB
0.06511098 ETH0.000164973.96922679
Buy Tokens Nativ...199578692024-05-27 1:16:47123 days ago1716772607IN
0x63d65F04...f188082AB
0.04 ETH0.000163153.92538591
Buy Tokens Nativ...199577192024-05-27 0:46:23123 days ago1716770783IN
0x63d65F04...f188082AB
0.04 ETH0.000169654.08170982
Buy Tokens Nativ...199576432024-05-27 0:31:11123 days ago1716769871IN
0x63d65F04...f188082AB
0.0782 ETH0.00021825.24977979
Buy Tokens Wert199575432024-05-27 0:10:59123 days ago1716768659IN
0x63d65F04...f188082AB
0.003 ETH0.000252575.56303342
Buy Tokens Nativ...199575162024-05-27 0:05:35123 days ago1716768335IN
0x63d65F04...f188082AB
0.00052259 ETH0.000172784.15707611
Buy Tokens Nativ...199574212024-05-26 23:46:23123 days ago1716767183IN
0x63d65F04...f188082AB
0.2 ETH0.000156113.75613489
Buy Tokens Nativ...199574002024-05-26 23:42:11123 days ago1716766931IN
0x63d65F04...f188082AB
0.01 ETH0.000185724.46834885
Buy Tokens Nativ...199573572024-05-26 23:33:23123 days ago1716766403IN
0x63d65F04...f188082AB
0.005 ETH0.00014323.44535866
Buy Tokens Nativ...199573082024-05-26 23:23:35123 days ago1716765815IN
0x63d65F04...f188082AB
0.04 ETH0.000141593.40669975
Buy Tokens Nativ...199571612024-05-26 22:53:59123 days ago1716764039IN
0x63d65F04...f188082AB
0.022 ETH0.000156983.77686409
Buy Tokens Nativ...199568302024-05-26 21:47:11124 days ago1716760031IN
0x63d65F04...f188082AB
0.01 ETH0.000237995.72610273
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
206595632024-09-02 1:21:2325 days ago1725240083
0x63d65F04...f188082AB
0.0109 ETH
200132332024-06-03 18:58:23116 days ago1717441103
0x63d65F04...f188082AB
0.019 ETH
200108412024-06-03 10:57:23116 days ago1717412243
0x63d65F04...f188082AB
0.0785 ETH
199817262024-05-30 9:19:23120 days ago1717060763
0x63d65F04...f188082AB
0.0065 ETH
199741472024-05-29 7:52:23121 days ago1716969143
0x63d65F04...f188082AB
0.001 ETH
199661602024-05-28 5:04:35122 days ago1716872675
0x63d65F04...f188082AB
0.0005 ETH
199611562024-05-27 12:17:11123 days ago1716812231
0x63d65F04...f188082AB
0.07 ETH
199598552024-05-27 7:56:11123 days ago1716796571
0x63d65F04...f188082AB
0.002521 ETH
199592322024-05-27 5:50:47123 days ago1716789047
0x63d65F04...f188082AB
0.031 ETH
199580212024-05-27 1:47:35123 days ago1716774455
0x63d65F04...f188082AB
0.066 ETH
199579032024-05-27 1:23:47123 days ago1716773027
0x63d65F04...f188082AB
0.04683193 ETH
199578972024-05-27 1:22:23123 days ago1716772943
0x63d65F04...f188082AB
0.0887 ETH
199578812024-05-27 1:19:11123 days ago1716772751
0x63d65F04...f188082AB
0.06511098 ETH
199578692024-05-27 1:16:47123 days ago1716772607
0x63d65F04...f188082AB
0.04 ETH
199577192024-05-27 0:46:23123 days ago1716770783
0x63d65F04...f188082AB
0.04 ETH
199576432024-05-27 0:31:11123 days ago1716769871
0x63d65F04...f188082AB
0.0782 ETH
199575432024-05-27 0:10:59123 days ago1716768659
0x63d65F04...f188082AB
0.003 ETH
199575162024-05-27 0:05:35123 days ago1716768335
0x63d65F04...f188082AB
0.00052259 ETH
199574212024-05-26 23:46:23123 days ago1716767183
0x63d65F04...f188082AB
0.2 ETH
199574002024-05-26 23:42:11123 days ago1716766931
0x63d65F04...f188082AB
0.01 ETH
199573572024-05-26 23:33:23123 days ago1716766403
0x63d65F04...f188082AB
0.005 ETH
199573082024-05-26 23:23:35123 days ago1716765815
0x63d65F04...f188082AB
0.04 ETH
199571612024-05-26 22:53:59123 days ago1716764039
0x63d65F04...f188082AB
0.022 ETH
199568302024-05-26 21:47:11124 days ago1716760031
0x63d65F04...f188082AB
0.01 ETH
199568002024-05-26 21:41:11124 days ago1716759671
0x63d65F04...f188082AB
0.014 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FifthScapeSale_Ethereum

Compiler Version
v0.8.22+commit.4fc1097e

Optimization Enabled:
No with 200 runs

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

pragma solidity 0.8.22;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Pausable} from "@openzeppelin/contracts/utils/Pausable.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {AggregatorV3Interface} from "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";

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

    IERC20 public s_usdt;

    address public i_eth_usd_priceFeed;
    address public i_usdt_usd_priceFeed;

    uint256 public s_usdtPrice = 1871;
    uint256 public s_minAmountToInvest = 10;
    uint256 public s_maxAmountToInvest = 5000000000;
    uint256 public s_tokenSold;

    mapping(address => uint256) public s_investemetByAddress;

    constructor(
        address _usdt,
        address _owner
    ) Ownable(_owner) {
        if (block.chainid == 1) {
            i_eth_usd_priceFeed = 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419;
            i_usdt_usd_priceFeed = 0x3E7d1eAB13ad0104d2750B8863b489D65364e32D;
            s_usdt = IERC20(_usdt);
        } else {
            i_eth_usd_priceFeed = 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419;
            i_usdt_usd_priceFeed = 0x3E7d1eAB13ad0104d2750B8863b489D65364e32D;
            s_usdt = IERC20(_usdt);
        }
    }

    function _multiply(uint256 x, uint256 y) internal pure returns (uint256 z) {
        require(y == 0 || (z = x * y) / y == x);
    }

    function _div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    function _getDerivedPrice(
        address _base,
        address _quote,
        uint8 _decimals
    ) internal view returns (int256) {
        require(
            _decimals > uint8(0) && _decimals <= uint8(18),
            "Invalid decimals"
        );
        int256 decimals = int256(10 ** uint256(_decimals));
        (, int256 basePrice, , , ) = AggregatorV3Interface(_base)
            .latestRoundData();
        uint8 baseDecimals = AggregatorV3Interface(_base).decimals();
        basePrice = _scalePrice(basePrice, baseDecimals, _decimals);

        (, int256 quotePrice, , , ) = AggregatorV3Interface(_quote)
            .latestRoundData();
        uint8 quoteDecimals = AggregatorV3Interface(_quote).decimals();
        quotePrice = _scalePrice(quotePrice, quoteDecimals, _decimals);

        return (basePrice * decimals) / quotePrice;
    }

    function _scalePrice(
        int256 _price,
        uint8 _priceDecimals,
        uint8 _decimals
    ) internal pure returns (int256) {
        if (_priceDecimals < _decimals) {
            return _price * int256(10 ** uint256(_decimals - _priceDecimals));
        } else if (_priceDecimals > _decimals) {
            return _price / int256(10 ** uint256(_priceDecimals - _decimals));
        }
        return _price;
    }

    event BoughtWithNativeToken(address user, uint256 amount, uint256 time);
    event BoughtWithUSDT(address user, uint256 amount, uint256 time);
    event BoughtWithWert(address _user, uint256 _amount, uint _price);

    function buyTokensNative() external payable whenNotPaused {
        (bool sent, ) = payable(owner()).call{value: msg.value}("");
        require(sent, "Funds transfer unsuccesfull");
        emit BoughtWithNativeToken(msg.sender, msg.value, block.timestamp);
    }

    function buyTokensUSDT(uint256 amount) external whenNotPaused {
        s_usdt.safeTransferFrom(msg.sender, owner(), amount);
        emit BoughtWithUSDT(msg.sender, amount, block.timestamp);
    }

   

    function buyTokensWert(address user, uint256 amount, uint256 price) external payable whenNotPaused nonReentrant {

        (bool sent, ) = payable(owner()).call{value: msg.value}("");
        require(sent, "Funds transfer unsuccesfull");

         // Print the _user address and the amount
        emit BoughtWithWert(user, amount, price);
    }

    function updateMaxInvestment(uint256 amount) external onlyOwner {
        s_maxAmountToInvest = amount;
    }

    function updateMinInvestment(uint256 amount) external onlyOwner {
        s_minAmountToInvest = amount;
    }

    function pause() external whenNotPaused onlyOwner {
        _pause();
    }

    function unpause() external whenPaused onlyOwner {
        _unpause();
    }

    function withdrawERC20(
        address _tokenAddress,
        uint256 _amount
    ) external onlyOwner {
        IERC20 currentToken = IERC20(_tokenAddress);
        currentToken.approve(address(this), _amount);
        currentToken.safeTransferFrom(address(this), owner(), _amount);
    }

    function withdrawNative(uint256 _amount) external onlyOwner {
        (bool hs, ) = payable(owner()).call{value: _amount}("");
        require(hs, "EnergiWanBridge:: Failed to withdraw native coins");
    }
}

File 2 of 10 : AggregatorV3Interface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface AggregatorV3Interface {
  function decimals() external view returns (uint8);

  function description() external view returns (string memory);

  function version() external view returns (uint256);

  function getRoundData(
    uint80 _roundId
  ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);

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

File 3 of 10 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../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;

    /**
     * @dev An operation with an ERC20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @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);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // 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 cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
    }
}

File 4 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}

File 5 of 10 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @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;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    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() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

File 6 of 10 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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 {
    bool private _paused;

    /**
     * @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);

    /**
     * @dev The operation failed because the contract is paused.
     */
    error EnforcedPause();

    /**
     * @dev The operation failed because the contract is not paused.
     */
    error ExpectedPause();

    /**
     * @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 {
        if (paused()) {
            revert EnforcedPause();
        }
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        if (!paused()) {
            revert ExpectedPause();
        }
    }

    /**
     * @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 7 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @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 {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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 8 of 10 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 9 of 10 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

    /**
     * @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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert AddressInsufficientBalance(address(this));
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

    /**
     * @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 or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {FailedInnerCall} error.
     *
     * 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.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @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`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) private pure {
        // 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 FailedInnerCall();
        }
    }
}

File 10 of 10 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;

/**
 * @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.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
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].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_usdt","type":"address"},{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"BoughtWithNativeToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"BoughtWithUSDT","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_price","type":"uint256"}],"name":"BoughtWithWert","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"buyTokensNative","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyTokensUSDT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"buyTokensWert","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"i_eth_usd_priceFeed","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"i_usdt_usd_priceFeed","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"s_investemetByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"s_maxAmountToInvest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"s_minAmountToInvest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"s_tokenSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"s_usdt","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"s_usdtPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"updateMaxInvestment","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"updateMinInvestment","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawNative","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405261074f600555600a60065564012a05f20060075534801562000024575f80fd5b50604051620019823803806200198283398181016040528101906200004a9190620003fe565b805f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000be575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000b5919062000454565b60405180910390fd5b620000cf81620002d860201b60201c565b505f8060146101000a81548160ff0219169083151502179055506001808190555060014603620001e757735f4ec3df9cbd43714fe2740f5e3616155c5b841960035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550733e7d1eab13ad0104d2750b8863b489d65364e32d60045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620002d0565b735f4ec3df9cbd43714fe2740f5e3616155c5b841960035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550733e7d1eab13ad0104d2750b8863b489d65364e32d60045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b50506200046f565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f620003c8826200039d565b9050919050565b620003da81620003bc565b8114620003e5575f80fd5b50565b5f81519050620003f881620003cf565b92915050565b5f806040838503121562000417576200041662000399565b5b5f6200042685828601620003e8565b92505060206200043985828601620003e8565b9150509250929050565b6200044e81620003bc565b82525050565b5f602082019050620004695f83018462000443565b92915050565b611505806200047d5f395ff3fe608060405260043610610129575f3560e01c806384276d81116100aa5780639f243c141161006e5780639f243c1414610345578063a1db97821461036d578063bc57218214610395578063c1c13507146103bf578063e190be09146103e9578063f2fde38b1461041357610129565b806384276d81146102895780638456cb59146102b15780638da5cb5b146102c75780639548e227146102f157806399d51ada1461031b57610129565b80636c663864116100f15780636c663864146101ed578063715018a61461021757806373d87a3e1461022d5780637932cb9e14610237578063834719171461025f57610129565b806318c6611f1461012d57806323c468aa14610155578063259cf89c146101915780633f4ba83a146101ad5780635c975abb146101c3575b5f80fd5b348015610138575f80fd5b50610153600480360381019061014e9190610ff5565b61043b565b005b348015610160575f80fd5b5061017b6004803603810190610176919061107a565b6104d6565b60405161018891906110b4565b60405180910390f35b6101ab60048036038101906101a691906110cd565b6104eb565b005b3480156101b8575f80fd5b506101c16105f3565b005b3480156101ce575f80fd5b506101d761060d565b6040516101e49190611137565b60405180910390f35b3480156101f8575f80fd5b50610201610622565b60405161020e91906111ab565b60405180910390f35b348015610222575f80fd5b5061022b610647565b005b61023561065a565b005b348015610242575f80fd5b5061025d60048036038101906102589190610ff5565b61074f565b005b34801561026a575f80fd5b50610273610761565b60405161028091906111d3565b60405180910390f35b348015610294575f80fd5b506102af60048036038101906102aa9190610ff5565b610786565b005b3480156102bc575f80fd5b506102c5610841565b005b3480156102d2575f80fd5b506102db61085b565b6040516102e891906111d3565b60405180910390f35b3480156102fc575f80fd5b50610305610882565b60405161031291906110b4565b60405180910390f35b348015610326575f80fd5b5061032f610888565b60405161033c91906110b4565b60405180910390f35b348015610350575f80fd5b5061036b60048036038101906103669190610ff5565b61088e565b005b348015610378575f80fd5b50610393600480360381019061038e91906111ec565b6108a0565b005b3480156103a0575f80fd5b506103a9610961565b6040516103b691906110b4565b60405180910390f35b3480156103ca575f80fd5b506103d3610967565b6040516103e091906111d3565b60405180910390f35b3480156103f4575f80fd5b506103fd61098c565b60405161040a91906110b4565b60405180910390f35b34801561041e575f80fd5b506104396004803603810190610434919061107a565b610992565b005b610443610a16565b6104983361044f61085b565b8360025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610a57909392919063ffffffff16565b7fba8a0c50b92271711d3f854db35684163f8207e83da52b251ff49e813e87fdc53382426040516104cb9392919061122a565b60405180910390a150565b6009602052805f5260405f205f915090505481565b6104f3610a16565b6104fb610ad9565b5f61050461085b565b73ffffffffffffffffffffffffffffffffffffffff16346040516105279061128c565b5f6040518083038185875af1925050503d805f8114610561576040519150601f19603f3d011682016040523d82523d5f602084013e610566565b606091505b50509050806105aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105a1906112fa565b60405180910390fd5b7fc2eb5648ab5f3a6b3246b618026c7ee29e339ddab47e3514a1a2bcf0f5de40388484846040516105dd9392919061122a565b60405180910390a1506105ee610b1f565b505050565b6105fb610b28565b610603610b68565b61060b610bef565b565b5f8060149054906101000a900460ff16905090565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61064f610b68565b6106585f610c50565b565b610662610a16565b5f61066b61085b565b73ffffffffffffffffffffffffffffffffffffffff163460405161068e9061128c565b5f6040518083038185875af1925050503d805f81146106c8576040519150601f19603f3d011682016040523d82523d5f602084013e6106cd565b606091505b5050905080610711576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610708906112fa565b60405180910390fd5b7fbd16745e57747959fc6b7a733f6d955ea95759b2987c3db35eadd160f3e8c1e63334426040516107449392919061122a565b60405180910390a150565b610757610b68565b8060078190555050565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61078e610b68565b5f61079761085b565b73ffffffffffffffffffffffffffffffffffffffff16826040516107ba9061128c565b5f6040518083038185875af1925050503d805f81146107f4576040519150601f19603f3d011682016040523d82523d5f602084013e6107f9565b606091505b505090508061083d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083490611388565b60405180910390fd5b5050565b610849610a16565b610851610b68565b610859610d11565b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60065481565b60075481565b610896610b68565b8060068190555050565b6108a8610b68565b5f8290508073ffffffffffffffffffffffffffffffffffffffff1663095ea7b330846040518363ffffffff1660e01b81526004016108e79291906113a6565b6020604051808303815f875af1158015610903573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061092791906113f7565b5061095c3061093461085b565b848473ffffffffffffffffffffffffffffffffffffffff16610a57909392919063ffffffff16565b505050565b60085481565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b61099a610b68565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a0a575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610a0191906111d3565b60405180910390fd5b610a1381610c50565b50565b610a1e61060d565b15610a55576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b610ad3848573ffffffffffffffffffffffffffffffffffffffff166323b872dd868686604051602401610a8c93929190611422565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610d73565b50505050565b600260015403610b15576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b60018081905550565b610b3061060d565b610b66576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b610b70610e08565b73ffffffffffffffffffffffffffffffffffffffff16610b8e61085b565b73ffffffffffffffffffffffffffffffffffffffff1614610bed57610bb1610e08565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610be491906111d3565b60405180910390fd5b565b610bf7610b28565b5f8060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610c39610e08565b604051610c4691906111d3565b60405180910390a1565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610d19610a16565b60015f60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610d5c610e08565b604051610d6991906111d3565b60405180910390a1565b5f610d9d828473ffffffffffffffffffffffffffffffffffffffff16610e0f90919063ffffffff16565b90505f815114158015610dc1575080806020019051810190610dbf91906113f7565b155b15610e0357826040517f5274afe7000000000000000000000000000000000000000000000000000000008152600401610dfa91906111d3565b60405180910390fd5b505050565b5f33905090565b6060610e1c83835f610e24565b905092915050565b606081471015610e6b57306040517fcd786059000000000000000000000000000000000000000000000000000000008152600401610e6291906111d3565b60405180910390fd5b5f808573ffffffffffffffffffffffffffffffffffffffff168486604051610e9391906114b9565b5f6040518083038185875af1925050503d805f8114610ecd576040519150601f19603f3d011682016040523d82523d5f602084013e610ed2565b606091505b5091509150610ee2868383610eed565b925050509392505050565b606082610f0257610efd82610f7a565b610f72565b5f8251148015610f2857505f8473ffffffffffffffffffffffffffffffffffffffff163b145b15610f6a57836040517f9996b315000000000000000000000000000000000000000000000000000000008152600401610f6191906111d3565b60405180910390fd5b819050610f73565b5b9392505050565b5f81511115610f8c5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f80fd5b5f819050919050565b610fd481610fc2565b8114610fde575f80fd5b50565b5f81359050610fef81610fcb565b92915050565b5f6020828403121561100a57611009610fbe565b5b5f61101784828501610fe1565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61104982611020565b9050919050565b6110598161103f565b8114611063575f80fd5b50565b5f8135905061107481611050565b92915050565b5f6020828403121561108f5761108e610fbe565b5b5f61109c84828501611066565b91505092915050565b6110ae81610fc2565b82525050565b5f6020820190506110c75f8301846110a5565b92915050565b5f805f606084860312156110e4576110e3610fbe565b5b5f6110f186828701611066565b935050602061110286828701610fe1565b925050604061111386828701610fe1565b9150509250925092565b5f8115159050919050565b6111318161111d565b82525050565b5f60208201905061114a5f830184611128565b92915050565b5f819050919050565b5f61117361116e61116984611020565b611150565b611020565b9050919050565b5f61118482611159565b9050919050565b5f6111958261117a565b9050919050565b6111a58161118b565b82525050565b5f6020820190506111be5f83018461119c565b92915050565b6111cd8161103f565b82525050565b5f6020820190506111e65f8301846111c4565b92915050565b5f806040838503121561120257611201610fbe565b5b5f61120f85828601611066565b925050602061122085828601610fe1565b9150509250929050565b5f60608201905061123d5f8301866111c4565b61124a60208301856110a5565b61125760408301846110a5565b949350505050565b5f81905092915050565b50565b5f6112775f8361125f565b915061128282611269565b5f82019050919050565b5f6112968261126c565b9150819050919050565b5f82825260208201905092915050565b7f46756e6473207472616e7366657220756e73756363657366756c6c00000000005f82015250565b5f6112e4601b836112a0565b91506112ef826112b0565b602082019050919050565b5f6020820190508181035f830152611311816112d8565b9050919050565b7f456e6572676957616e4272696467653a3a204661696c656420746f20776974685f8201527f64726177206e617469766520636f696e73000000000000000000000000000000602082015250565b5f6113726031836112a0565b915061137d82611318565b604082019050919050565b5f6020820190508181035f83015261139f81611366565b9050919050565b5f6040820190506113b95f8301856111c4565b6113c660208301846110a5565b9392505050565b6113d68161111d565b81146113e0575f80fd5b50565b5f815190506113f1816113cd565b92915050565b5f6020828403121561140c5761140b610fbe565b5b5f611419848285016113e3565b91505092915050565b5f6060820190506114355f8301866111c4565b61144260208301856111c4565b61144f60408301846110a5565b949350505050565b5f81519050919050565b5f5b8381101561147e578082015181840152602081019050611463565b5f8484015250505050565b5f61149382611457565b61149d818561125f565b93506114ad818560208601611461565b80840191505092915050565b5f6114c48284611489565b91508190509291505056fea2646970667358221220f1ef67de11bce148f988ebe35f648f763c07df272039660f9b7c3140b5474de864736f6c63430008160033000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c9099c3d0608bb6d1b02f44830e6437675dc0e5c

Deployed Bytecode

0x608060405260043610610129575f3560e01c806384276d81116100aa5780639f243c141161006e5780639f243c1414610345578063a1db97821461036d578063bc57218214610395578063c1c13507146103bf578063e190be09146103e9578063f2fde38b1461041357610129565b806384276d81146102895780638456cb59146102b15780638da5cb5b146102c75780639548e227146102f157806399d51ada1461031b57610129565b80636c663864116100f15780636c663864146101ed578063715018a61461021757806373d87a3e1461022d5780637932cb9e14610237578063834719171461025f57610129565b806318c6611f1461012d57806323c468aa14610155578063259cf89c146101915780633f4ba83a146101ad5780635c975abb146101c3575b5f80fd5b348015610138575f80fd5b50610153600480360381019061014e9190610ff5565b61043b565b005b348015610160575f80fd5b5061017b6004803603810190610176919061107a565b6104d6565b60405161018891906110b4565b60405180910390f35b6101ab60048036038101906101a691906110cd565b6104eb565b005b3480156101b8575f80fd5b506101c16105f3565b005b3480156101ce575f80fd5b506101d761060d565b6040516101e49190611137565b60405180910390f35b3480156101f8575f80fd5b50610201610622565b60405161020e91906111ab565b60405180910390f35b348015610222575f80fd5b5061022b610647565b005b61023561065a565b005b348015610242575f80fd5b5061025d60048036038101906102589190610ff5565b61074f565b005b34801561026a575f80fd5b50610273610761565b60405161028091906111d3565b60405180910390f35b348015610294575f80fd5b506102af60048036038101906102aa9190610ff5565b610786565b005b3480156102bc575f80fd5b506102c5610841565b005b3480156102d2575f80fd5b506102db61085b565b6040516102e891906111d3565b60405180910390f35b3480156102fc575f80fd5b50610305610882565b60405161031291906110b4565b60405180910390f35b348015610326575f80fd5b5061032f610888565b60405161033c91906110b4565b60405180910390f35b348015610350575f80fd5b5061036b60048036038101906103669190610ff5565b61088e565b005b348015610378575f80fd5b50610393600480360381019061038e91906111ec565b6108a0565b005b3480156103a0575f80fd5b506103a9610961565b6040516103b691906110b4565b60405180910390f35b3480156103ca575f80fd5b506103d3610967565b6040516103e091906111d3565b60405180910390f35b3480156103f4575f80fd5b506103fd61098c565b60405161040a91906110b4565b60405180910390f35b34801561041e575f80fd5b506104396004803603810190610434919061107a565b610992565b005b610443610a16565b6104983361044f61085b565b8360025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610a57909392919063ffffffff16565b7fba8a0c50b92271711d3f854db35684163f8207e83da52b251ff49e813e87fdc53382426040516104cb9392919061122a565b60405180910390a150565b6009602052805f5260405f205f915090505481565b6104f3610a16565b6104fb610ad9565b5f61050461085b565b73ffffffffffffffffffffffffffffffffffffffff16346040516105279061128c565b5f6040518083038185875af1925050503d805f8114610561576040519150601f19603f3d011682016040523d82523d5f602084013e610566565b606091505b50509050806105aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105a1906112fa565b60405180910390fd5b7fc2eb5648ab5f3a6b3246b618026c7ee29e339ddab47e3514a1a2bcf0f5de40388484846040516105dd9392919061122a565b60405180910390a1506105ee610b1f565b505050565b6105fb610b28565b610603610b68565b61060b610bef565b565b5f8060149054906101000a900460ff16905090565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61064f610b68565b6106585f610c50565b565b610662610a16565b5f61066b61085b565b73ffffffffffffffffffffffffffffffffffffffff163460405161068e9061128c565b5f6040518083038185875af1925050503d805f81146106c8576040519150601f19603f3d011682016040523d82523d5f602084013e6106cd565b606091505b5050905080610711576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610708906112fa565b60405180910390fd5b7fbd16745e57747959fc6b7a733f6d955ea95759b2987c3db35eadd160f3e8c1e63334426040516107449392919061122a565b60405180910390a150565b610757610b68565b8060078190555050565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61078e610b68565b5f61079761085b565b73ffffffffffffffffffffffffffffffffffffffff16826040516107ba9061128c565b5f6040518083038185875af1925050503d805f81146107f4576040519150601f19603f3d011682016040523d82523d5f602084013e6107f9565b606091505b505090508061083d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083490611388565b60405180910390fd5b5050565b610849610a16565b610851610b68565b610859610d11565b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60065481565b60075481565b610896610b68565b8060068190555050565b6108a8610b68565b5f8290508073ffffffffffffffffffffffffffffffffffffffff1663095ea7b330846040518363ffffffff1660e01b81526004016108e79291906113a6565b6020604051808303815f875af1158015610903573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061092791906113f7565b5061095c3061093461085b565b848473ffffffffffffffffffffffffffffffffffffffff16610a57909392919063ffffffff16565b505050565b60085481565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b61099a610b68565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a0a575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610a0191906111d3565b60405180910390fd5b610a1381610c50565b50565b610a1e61060d565b15610a55576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b610ad3848573ffffffffffffffffffffffffffffffffffffffff166323b872dd868686604051602401610a8c93929190611422565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610d73565b50505050565b600260015403610b15576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b60018081905550565b610b3061060d565b610b66576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b610b70610e08565b73ffffffffffffffffffffffffffffffffffffffff16610b8e61085b565b73ffffffffffffffffffffffffffffffffffffffff1614610bed57610bb1610e08565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610be491906111d3565b60405180910390fd5b565b610bf7610b28565b5f8060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610c39610e08565b604051610c4691906111d3565b60405180910390a1565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610d19610a16565b60015f60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610d5c610e08565b604051610d6991906111d3565b60405180910390a1565b5f610d9d828473ffffffffffffffffffffffffffffffffffffffff16610e0f90919063ffffffff16565b90505f815114158015610dc1575080806020019051810190610dbf91906113f7565b155b15610e0357826040517f5274afe7000000000000000000000000000000000000000000000000000000008152600401610dfa91906111d3565b60405180910390fd5b505050565b5f33905090565b6060610e1c83835f610e24565b905092915050565b606081471015610e6b57306040517fcd786059000000000000000000000000000000000000000000000000000000008152600401610e6291906111d3565b60405180910390fd5b5f808573ffffffffffffffffffffffffffffffffffffffff168486604051610e9391906114b9565b5f6040518083038185875af1925050503d805f8114610ecd576040519150601f19603f3d011682016040523d82523d5f602084013e610ed2565b606091505b5091509150610ee2868383610eed565b925050509392505050565b606082610f0257610efd82610f7a565b610f72565b5f8251148015610f2857505f8473ffffffffffffffffffffffffffffffffffffffff163b145b15610f6a57836040517f9996b315000000000000000000000000000000000000000000000000000000008152600401610f6191906111d3565b60405180910390fd5b819050610f73565b5b9392505050565b5f81511115610f8c5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f80fd5b5f819050919050565b610fd481610fc2565b8114610fde575f80fd5b50565b5f81359050610fef81610fcb565b92915050565b5f6020828403121561100a57611009610fbe565b5b5f61101784828501610fe1565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61104982611020565b9050919050565b6110598161103f565b8114611063575f80fd5b50565b5f8135905061107481611050565b92915050565b5f6020828403121561108f5761108e610fbe565b5b5f61109c84828501611066565b91505092915050565b6110ae81610fc2565b82525050565b5f6020820190506110c75f8301846110a5565b92915050565b5f805f606084860312156110e4576110e3610fbe565b5b5f6110f186828701611066565b935050602061110286828701610fe1565b925050604061111386828701610fe1565b9150509250925092565b5f8115159050919050565b6111318161111d565b82525050565b5f60208201905061114a5f830184611128565b92915050565b5f819050919050565b5f61117361116e61116984611020565b611150565b611020565b9050919050565b5f61118482611159565b9050919050565b5f6111958261117a565b9050919050565b6111a58161118b565b82525050565b5f6020820190506111be5f83018461119c565b92915050565b6111cd8161103f565b82525050565b5f6020820190506111e65f8301846111c4565b92915050565b5f806040838503121561120257611201610fbe565b5b5f61120f85828601611066565b925050602061122085828601610fe1565b9150509250929050565b5f60608201905061123d5f8301866111c4565b61124a60208301856110a5565b61125760408301846110a5565b949350505050565b5f81905092915050565b50565b5f6112775f8361125f565b915061128282611269565b5f82019050919050565b5f6112968261126c565b9150819050919050565b5f82825260208201905092915050565b7f46756e6473207472616e7366657220756e73756363657366756c6c00000000005f82015250565b5f6112e4601b836112a0565b91506112ef826112b0565b602082019050919050565b5f6020820190508181035f830152611311816112d8565b9050919050565b7f456e6572676957616e4272696467653a3a204661696c656420746f20776974685f8201527f64726177206e617469766520636f696e73000000000000000000000000000000602082015250565b5f6113726031836112a0565b915061137d82611318565b604082019050919050565b5f6020820190508181035f83015261139f81611366565b9050919050565b5f6040820190506113b95f8301856111c4565b6113c660208301846110a5565b9392505050565b6113d68161111d565b81146113e0575f80fd5b50565b5f815190506113f1816113cd565b92915050565b5f6020828403121561140c5761140b610fbe565b5b5f611419848285016113e3565b91505092915050565b5f6060820190506114355f8301866111c4565b61144260208301856111c4565b61144f60408301846110a5565b949350505050565b5f81519050919050565b5f5b8381101561147e578082015181840152602081019050611463565b5f8484015250505050565b5f61149382611457565b61149d818561125f565b93506114ad818560208601611461565b80840191505092915050565b5f6114c48284611489565b91508190509291505056fea2646970667358221220f1ef67de11bce148f988ebe35f648f763c07df272039660f9b7c3140b5474de864736f6c63430008160033

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

000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c9099c3d0608bb6d1b02f44830e6437675dc0e5c

-----Decoded View---------------
Arg [0] : _usdt (address): 0xdAC17F958D2ee523a2206206994597C13D831ec7
Arg [1] : _owner (address): 0xc9099C3D0608bb6D1B02F44830e6437675Dc0E5c

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [1] : 000000000000000000000000c9099c3d0608bb6d1b02f44830e6437675dc0e5c


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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