ETH Price: $2,532.39 (-0.05%)

Contract

0xd27c12d2b7749280057592BF03eC2a63158F4716
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Create Presale185448302023-11-10 23:29:47292 days ago1699658987IN
0xd27c12d2...3158F4716
0 ETH0.0095787736.82513766
Change Sale Toke...185448162023-11-10 23:26:59292 days ago1699658819IN
0xd27c12d2...3158F4716
0 ETH0.0019998239.67194273
Buy With Eth183921642023-10-20 14:35:23314 days ago1697812523IN
0xd27c12d2...3158F4716
0.0735 ETH0.0022680621.24132226
Buy With Eth183921412023-10-20 14:30:47314 days ago1697812247IN
0xd27c12d2...3158F4716
0.042 ETH0.0029534819.93108284
Buy With Eth183921402023-10-20 14:30:35314 days ago1697812235IN
0xd27c12d2...3158F4716
0.0294 ETH0.0029781920.09781865
Buy With Eth183600482023-10-16 2:47:59318 days ago1697424479IN
0xd27c12d2...3158F4716
0.063 ETH0.00072916.82834222
Buy With Eth183600442023-10-16 2:47:11318 days ago1697424431IN
0xd27c12d2...3158F4716
0.525 ETH0.000745246.97872768
Buy With Eth183600402023-10-16 2:46:23318 days ago1697424383IN
0xd27c12d2...3158F4716
0.42 ETH0.000829547.76811238
Buy With Eth183600372023-10-16 2:45:47318 days ago1697424347IN
0xd27c12d2...3158F4716
0.3465 ETH0.00116057.83084125
Buy With Eth183600272023-10-16 2:43:47318 days ago1697424227IN
0xd27c12d2...3158F4716
0.2625 ETH0.00094398.83908989
Buy With Eth183600242023-10-16 2:43:11318 days ago1697424191IN
0xd27c12d2...3158F4716
0.3675 ETH0.001176177.93656155
Buy With Eth183600032023-10-16 2:38:59318 days ago1697423939IN
0xd27c12d2...3158F4716
0.8925 ETH0.000945188.85102397
Buy With Eth183600002023-10-16 2:38:23318 days ago1697423903IN
0xd27c12d2...3158F4716
1.05 ETH0.001350569.11331527
Buy With Eth183467282023-10-14 6:05:59320 days ago1697263559IN
0xd27c12d2...3158F4716
0.105 ETH0.000568935.32834099
Buy With Eth183467112023-10-14 6:02:35320 days ago1697263355IN
0xd27c12d2...3158F4716
0.0315 ETH0.000575275.38769073
Buy With Eth183467052023-10-14 6:01:23320 days ago1697263283IN
0xd27c12d2...3158F4716
0.63 ETH0.000816225.50767481
Buy With Eth183466952023-10-14 5:59:23320 days ago1697263163IN
0xd27c12d2...3158F4716
0.3675 ETH0.000572825.36417398
Buy With Eth183466912023-10-14 5:58:35320 days ago1697263115IN
0xd27c12d2...3158F4716
0.84 ETH0.000754745.0928316
Buy With Eth183466662023-10-14 5:53:35320 days ago1697262815IN
0xd27c12d2...3158F4716
1.05 ETH0.000726044.89922174
Buy With Eth183466562023-10-14 5:51:35320 days ago1697262695IN
0xd27c12d2...3158F4716
0.3675 ETH0.000549555.14626371
Buy With Eth183466532023-10-14 5:50:59320 days ago1697262659IN
0xd27c12d2...3158F4716
0.42 ETH0.00079325.35236481
Buy With Eth183466282023-10-14 5:45:59320 days ago1697262359IN
0xd27c12d2...3158F4716
0.399 ETH0.00058695.49602248
Buy With Eth183466202023-10-14 5:44:23320 days ago1697262263IN
0xd27c12d2...3158F4716
0.945 ETH0.000539995.05670639
Buy With Eth183466172023-10-14 5:43:47320 days ago1697262227IN
0xd27c12d2...3158F4716
0.525 ETH0.000797245.37962466
Buy With Eth183465902023-10-14 5:38:23320 days ago1697261903IN
0xd27c12d2...3158F4716
0.735 ETH0.000575025.38477155
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
183921642023-10-20 14:35:23314 days ago1697812523
0xd27c12d2...3158F4716
0.00583817 ETH
183921642023-10-20 14:35:23314 days ago1697812523
0xd27c12d2...3158F4716
0.06766182 ETH
183921412023-10-20 14:30:47314 days ago1697812247
0xd27c12d2...3158F4716
0.00333512 ETH
183921412023-10-20 14:30:47314 days ago1697812247
0xd27c12d2...3158F4716
0.03866487 ETH
183921402023-10-20 14:30:35314 days ago1697812235
0xd27c12d2...3158F4716
0.00233595 ETH
183921402023-10-20 14:30:35314 days ago1697812235
0xd27c12d2...3158F4716
0.02706404 ETH
183600482023-10-16 2:47:59318 days ago1697424479
0xd27c12d2...3158F4716
0.00340439 ETH
183600482023-10-16 2:47:59318 days ago1697424479
0xd27c12d2...3158F4716
0.0595956 ETH
183600442023-10-16 2:47:11318 days ago1697424431
0xd27c12d2...3158F4716
0.02837696 ETH
183600442023-10-16 2:47:11318 days ago1697424431
0xd27c12d2...3158F4716
0.49662303 ETH
183600402023-10-16 2:46:23318 days ago1697424383
0xd27c12d2...3158F4716
0.02270297 ETH
183600402023-10-16 2:46:23318 days ago1697424383
0xd27c12d2...3158F4716
0.39729702 ETH
183600372023-10-16 2:45:47318 days ago1697424347
0xd27c12d2...3158F4716
0.01872943 ETH
183600372023-10-16 2:45:47318 days ago1697424347
0xd27c12d2...3158F4716
0.32777056 ETH
183600272023-10-16 2:43:47318 days ago1697424227
0xd27c12d2...3158F4716
0.01419024 ETH
183600272023-10-16 2:43:47318 days ago1697424227
0xd27c12d2...3158F4716
0.24830975 ETH
183600242023-10-16 2:43:11318 days ago1697424191
0xd27c12d2...3158F4716
0.01986422 ETH
183600242023-10-16 2:43:11318 days ago1697424191
0xd27c12d2...3158F4716
0.34763577 ETH
183600032023-10-16 2:38:59318 days ago1697423939
0xd27c12d2...3158F4716
0.04824119 ETH
183600032023-10-16 2:38:59318 days ago1697423939
0xd27c12d2...3158F4716
0.8442588 ETH
183600002023-10-16 2:38:23318 days ago1697423903
0xd27c12d2...3158F4716
0.05675744 ETH
183600002023-10-16 2:38:23318 days ago1697423903
0xd27c12d2...3158F4716
0.99324255 ETH
183467282023-10-14 6:05:59320 days ago1697263559
0xd27c12d2...3158F4716
0.00473248 ETH
183467282023-10-14 6:05:59320 days ago1697263559
0xd27c12d2...3158F4716
0.10026751 ETH
183467112023-10-14 6:02:35320 days ago1697263355
0xd27c12d2...3158F4716
0.00142152 ETH
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x448Fe270...6a1Fd7A72
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
MemeMaster2023Presale

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : MMPRESALE.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.8.19 <0.9.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";

contract MemeMaster2023Presale is ReentrancyGuard, Ownable {
  uint256 public presaleId;
  uint256 public BASE_MULTIPLIER;

  struct Presale {
    address saleToken;
    uint256 startTime;
    uint256 endTime;
    uint256 price;
    uint256 tokensToSell;
    uint256 baseDecimals;
    uint256 inSale;
    uint256 vestingStartTime;
    uint256 vestingCliff;
    uint256 enableBuyWithEth;
    uint256 enableBuyWithUsdt;
    address payout;
  }

  struct Vesting {
    uint256 totalAmount;
    uint256 claimedAmount;
    uint256 claimStart;
  }

  IERC20 public USDTInterface;
  AggregatorV3Interface internal aggregatorInterface; // https://docs.chain.link/docs/ethereum-addresses/ => (ETH / USD)

  mapping(uint256 => bool) public paused;
  mapping(uint256 => Presale) public presale;
  mapping(address => mapping(uint256 => Vesting)) public userVesting;

  event PresaleCreated(
    uint256 indexed _id,
    uint256 _totalTokens,
    uint256 _startTime,
    uint256 _endTime,
    uint256 enableBuyWithEth,
    uint256 enableBuyWithUsdt,
    address _payout
  );

  event PresaleUpdated(bytes32 indexed key, uint256 prevValue, uint256 newValue, uint256 timestamp);

  event TokensBought(
    address indexed user,
    uint256 indexed id,
    address indexed purchaseToken,
    uint256 tokensBought,
    uint256 amountPaid,
    uint256 timestamp
  );

  event TokensClaimed(address indexed user, uint256 indexed id, uint256 amount, uint256 timestamp);

  event PresaleTokenAddressUpdated(address indexed prevValue, address indexed newValue, uint256 timestamp);

  event PresalePayoutAddressUpdated(address indexed prevValue, address indexed newValue, uint256 timestamp);

  event PresalePaused(uint256 indexed id, uint256 timestamp);
  event PresaleUnpaused(uint256 indexed id, uint256 timestamp);

  /**
   * @dev Initializes the contract and sets key parameters
   * @param _oracle Oracle contract to fetch ETH/USDT price
   * @param _usdt USDT token contract address
   */
  constructor(address _oracle, address _usdt) {
    require(_oracle != address(0), "Zero aggregator address");
    require(_usdt != address(0), "Zero USDT address");

    aggregatorInterface = AggregatorV3Interface(_oracle);
    USDTInterface = IERC20(_usdt);
    BASE_MULTIPLIER = (10**18);
  }

  /**
   * @dev Creates a new presale
   * @param _startTime start time of the sale
   * @param _endTime end time of the sale
   * @param _price Per token price multiplied by (10**18)
   * @param _tokensToSell No of tokens to sell without denomination. If 1 million tokens to be sold then - 1_000_000 has to be passed
   * @param _baseDecimals No of decimals for the token. (10**18), for 18 decimal token
   * @param _vestingStartTime Start time for the vesting - UNIX timestamp
   * @param _vestingCliff Cliff period for vesting in seconds
   * @param _enableBuyWithEth Enable/Disable buy of tokens with ETH
   * @param _enableBuyWithUsdt Enable/Disable buy of tokens with USDT
   * @param _payout Ethereum address where presale contributions will be moved
   */
  function createPresale(
    uint256 _startTime,
    uint256 _endTime,
    uint256 _price,
    uint256 _tokensToSell,
    uint256 _baseDecimals,
    uint256 _vestingStartTime,
    uint256 _vestingCliff,
    uint256 _enableBuyWithEth,
    uint256 _enableBuyWithUsdt,
    address _payout
  ) external onlyOwner {
    require(_startTime > block.timestamp && _endTime > _startTime, "Invalid time");
    require(_price > 0, "Zero price");
    require(_tokensToSell > 0, "Zero tokens to sell");
    require(_baseDecimals > 0, "Zero decimals for the token");
    require(_vestingStartTime >= _endTime, "Vesting starts before Presale ends");

    presaleId++;

    presale[presaleId] = Presale(
      address(0),
      _startTime,
      _endTime,
      _price,
      _tokensToSell,
      _baseDecimals,
      _tokensToSell,
      _vestingStartTime,
      _vestingCliff,
      _enableBuyWithEth,
      _enableBuyWithUsdt,
      _payout
    );

    emit PresaleCreated(presaleId, _tokensToSell, _startTime, _endTime, _enableBuyWithEth, _enableBuyWithUsdt, _payout);
  }

  /**
   * @dev To update the oracle address address
   * @param _newAddress oracle address
   */

  function changeOracleAddress(address _newAddress) external onlyOwner {
    require(_newAddress != address(0), "Zero token address");
    aggregatorInterface = AggregatorV3Interface(_newAddress);
  }


  /**
   * @dev To update the usdt token address
   * @param _newAddress Sale token address
   */
  function changeUsdtAddress(address _newAddress) external onlyOwner {
    require(_newAddress != address(0), "Zero token address");
    USDTInterface = IERC20(_newAddress);
  }

  /**
   * @dev To update the sale times before presale starts
   * @param _id Presale id to update
   * @param _startTime New start time
   * @param _endTime New end time
   */
  function changeSaleTimes(
    uint256 _id,
    uint256 _startTime,
    uint256 _endTime
  ) external checkPresaleId(_id) onlyOwner {
    require(_startTime > 0 || _endTime > 0, "Invalid parameters");
    if (_startTime > 0) {
      require(block.timestamp < presale[_id].startTime, "Sale already started");
      require(block.timestamp < _startTime, "Sale time in past");
      uint256 prevValue = presale[_id].startTime;
      presale[_id].startTime = _startTime;
      emit PresaleUpdated(bytes32("START"), prevValue, _startTime, block.timestamp);
    }

    if (_endTime > 0) {
      require(block.timestamp < _endTime, "End time in the past");
      require(_endTime > presale[_id].startTime, "Invalid endTime");
      uint256 prevValue = presale[_id].endTime;
      presale[_id].endTime = _endTime;
      emit PresaleUpdated(bytes32("END"), prevValue, _endTime, block.timestamp);
    }
  }


  /**
   * @dev To update the end time of presale after it starts
   * @param _id Presale id to update
   * @param _newEndTime New end time
   */
  function changePresaleEndtime(
    uint256 _id,
    uint256 _newEndTime
  ) external checkPresaleId(_id) onlyOwner {

    if (_newEndTime > 0) {
      require(block.timestamp < _newEndTime, "End time in the past");
      require(_newEndTime > presale[_id].startTime, "Invalid endTime");
      uint256 prevValue = presale[_id].endTime;
      presale[_id].endTime = _newEndTime;
      emit PresaleUpdated(bytes32("END"), prevValue, _newEndTime, block.timestamp);
    }
  }

  /**
   * @dev To update the vesting start time
   * @param _id Presale id to update
   * @param _vestingStartTime New vesting start time
   */
  function changeVestingStartTime(uint256 _id, uint256 _vestingStartTime) external checkPresaleId(_id) onlyOwner {
    require(_vestingStartTime >= presale[_id].endTime, "Vesting starts before Presale ends");
    uint256 prevValue = presale[_id].vestingStartTime;
    presale[_id].vestingStartTime = _vestingStartTime;
    emit PresaleUpdated(bytes32("VESTING_START_TIME"), prevValue, _vestingStartTime, block.timestamp);
  }

  /**
   * @dev To update the sale token address
   * @param _id Presale id to update
   * @param _newAddress Sale token address
   */
  function changeSaleTokenAddress(uint256 _id, address _newAddress) external checkPresaleId(_id) onlyOwner {
    require(_newAddress != address(0), "Zero token address");
    address prevValue = presale[_id].saleToken;
    presale[_id].saleToken = _newAddress;
    emit PresaleTokenAddressUpdated(prevValue, _newAddress, block.timestamp);
  }

  /**
   * @dev To update the payout address
   * @param _id Presale id to update
   * @param _newAddress payout address
   */
  function changePayoutAddress(uint256 _id, address _newAddress) external checkPresaleId(_id) onlyOwner {
    require(_newAddress != address(0), "Zero token address");
    address prevValue = presale[_id].payout;
    presale[_id].payout = _newAddress;
    emit PresalePayoutAddressUpdated(prevValue, _newAddress, block.timestamp);
  }

  /**
   * @dev To update the price
   * @param _id Presale id to update
   * @param _newPrice New sale price of the token
   */
  function changePrice(uint256 _id, uint256 _newPrice) external checkPresaleId(_id) onlyOwner {
    require(_newPrice > 0, "Zero price");
    require(presale[_id].startTime > block.timestamp, "Sale already started");
    uint256 prevValue = presale[_id].price;
    presale[_id].price = _newPrice;
    emit PresaleUpdated(bytes32("PRICE"), prevValue, _newPrice, block.timestamp);
  }

  /**
   * @dev To update possibility to buy with ETH
   * @param _id Presale id to update
   * @param _enableToBuyWithEth New value of enable to buy with ETH
   */
  function changeEnableBuyWithEth(uint256 _id, uint256 _enableToBuyWithEth) external checkPresaleId(_id) onlyOwner {
    uint256 prevValue = presale[_id].enableBuyWithEth;
    presale[_id].enableBuyWithEth = _enableToBuyWithEth;
    emit PresaleUpdated(bytes32("ENABLE_BUY_WITH_ETH"), prevValue, _enableToBuyWithEth, block.timestamp);
  }

  /**
   * @dev To update possibility to buy with Usdt
   * @param _id Presale id to update
   * @param _enableToBuyWithUsdt New value of enable to buy with Usdt
   */
  function changeEnableBuyWithUsdt(uint256 _id, uint256 _enableToBuyWithUsdt) external checkPresaleId(_id) onlyOwner {
    uint256 prevValue = presale[_id].enableBuyWithUsdt;
    presale[_id].enableBuyWithUsdt = _enableToBuyWithUsdt;
    emit PresaleUpdated(bytes32("ENABLE_BUY_WITH_USDT"), prevValue, _enableToBuyWithUsdt, block.timestamp);
  }

  /**
   * @dev To pause the presale
   * @param _id Presale id to update
   */
  function pausePresale(uint256 _id) external checkPresaleId(_id) onlyOwner {
    require(!paused[_id], "Already paused");
    paused[_id] = true;
    emit PresalePaused(_id, block.timestamp);
  }

  /**
   * @dev To unpause the presale
   * @param _id Presale id to update
   */
  function unPausePresale(uint256 _id) external checkPresaleId(_id) onlyOwner {
    require(paused[_id], "Not paused");
    paused[_id] = false;
    emit PresaleUnpaused(_id, block.timestamp);
  }

  /**
   * @dev To get latest ethereum price in 10**18 format
   */
  function getLatestPrice() public view returns (uint256) {
    (, int256 price, , , ) = aggregatorInterface.latestRoundData();
    price = (price * (10**10));
    return uint256(price);
  }

  modifier checkPresaleId(uint256 _id) {
    require(_id > 0 && _id <= presaleId, "Invalid presale id");
    _;
  }

  modifier checkSaleState(uint256 _id, uint256 amount) {
    require(block.timestamp >= presale[_id].startTime && block.timestamp <= presale[_id].endTime, "Invalid time for buying");
    require(amount > 0 && amount <= presale[_id].inSale, "Invalid sale amount");
    _;
  }

  /**
   * @dev To buy into a presale using USDT
   * @param _id Presale id
   * @param amount No of tokens to buy
   */
  function buyWithUSDT(uint256 _id, uint256 amount) external checkPresaleId(_id) checkSaleState(_id, amount) returns (bool) {
    require(!paused[_id], "Presale paused");
    require(presale[_id].enableBuyWithUsdt > 0, "Not allowed to buy with USDT");
    uint256 usdPrice = amount * presale[_id].price;
    usdPrice = usdPrice / (10**12);
    presale[_id].inSale -= amount;

    Presale memory _presale = presale[_id];

    if (userVesting[_msgSender()][_id].totalAmount > 0) {
      userVesting[_msgSender()][_id].totalAmount += (amount * _presale.baseDecimals);
    } else {
      userVesting[_msgSender()][_id] = Vesting((amount * _presale.baseDecimals), 0, _presale.vestingStartTime + _presale.vestingCliff);
    }

    uint256 ourAllowance = USDTInterface.allowance(_msgSender(), address(this));
    require(usdPrice <= ourAllowance, "Make sure to add enough allowance");
    (bool success, ) = address(USDTInterface).call(
      abi.encodeWithSignature("transferFrom(address,address,uint256)", _msgSender(), _presale.payout, usdPrice)
    );
    require(success, "Token payment failed");
    emit TokensBought(_msgSender(), _id, address(USDTInterface), amount, usdPrice, block.timestamp);
    return true;
  }

  /**
   * @dev To buy into a presale using ETH
   * @param _id Presale id
   * @param amount No of tokens to buy
   */
  function buyWithEth(uint256 _id, uint256 amount) external payable checkPresaleId(_id) checkSaleState(_id, amount) nonReentrant returns (bool) {
    require(!paused[_id], "Presale paused");
    require(presale[_id].enableBuyWithEth > 0, "Not allowed to buy with ETH");
    uint256 usdPrice = amount * presale[_id].price;
    uint256 ethAmount = (usdPrice * BASE_MULTIPLIER) / getLatestPrice();
    require(msg.value >= ethAmount, "Less payment");
    uint256 excess = msg.value - ethAmount;
    presale[_id].inSale -= amount;
    Presale memory _presale = presale[_id];

    if (userVesting[_msgSender()][_id].totalAmount > 0) {
      userVesting[_msgSender()][_id].totalAmount += (amount * _presale.baseDecimals);
    } else {
      userVesting[_msgSender()][_id] = Vesting((amount * _presale.baseDecimals), 0, _presale.vestingStartTime + _presale.vestingCliff);
    }
    sendValue(payable(_presale.payout), ethAmount);
    if (excess > 0) sendValue(payable(_msgSender()), excess);
    emit TokensBought(_msgSender(), _id, address(0), amount, ethAmount, block.timestamp);
    return true;
  }

  /**
   * @dev Helper funtion to get ETH price for given amount
   * @param _id Presale id
   * @param amount No of tokens to buy
   */
  function ethBuyHelper(uint256 _id, uint256 amount) external view checkPresaleId(_id) returns (uint256 ethAmount) {
    uint256 usdPrice = amount * presale[_id].price;
    ethAmount = (usdPrice * BASE_MULTIPLIER) / getLatestPrice();
  }

  /**
   * @dev Helper funtion to get USDT price for given amount
   * @param _id Presale id
   * @param amount No of tokens to buy
   */
  function usdtBuyHelper(uint256 _id, uint256 amount) external view checkPresaleId(_id) returns (uint256 usdPrice) {
    usdPrice = amount * presale[_id].price;
    usdPrice = usdPrice / (10**12);
  }

  function sendValue(address payable recipient, uint256 amount) internal {
    require(address(this).balance >= amount, "Low balance");
    (bool success, ) = recipient.call{value: amount}("");
    require(success, "ETH Payment failed");
  }

  /**
   * @dev To get total tokens user can claim for a given presale based on their contributions.
   * @param user User address
   * @param _id Presale id
   */
  function tokenRewards(address user, uint256 _id) public view checkPresaleId(_id) returns (uint256) {
    Vesting memory _user = userVesting[user][_id];
    uint256 amount = _user.totalAmount - _user.claimedAmount;

    return amount / presale[_id].baseDecimals;
  }

  /**
   * @dev Helper funtion to get claimable tokens for a given presale after vesting period when presale claiming for claimning has started.
   * @param user User address
   * @param _id Presale id
   */
  function claimableAmount(address user, uint256 _id) public view checkPresaleId(_id) returns (uint256) {
    Vesting memory _user = userVesting[user][_id];
    require(_user.totalAmount > 0, "Nothing to claim");
    uint256 amount = _user.totalAmount - _user.claimedAmount;
    require(amount > 0, "Already claimed");

    if (block.timestamp < _user.claimStart) return 0;

    uint256 amountToClaim = amount * (10 ** presale[_id].baseDecimals);

    return amountToClaim / presale[_id].baseDecimals;
  }

  /**
   * @dev To claim tokens after vesting cliff from a presale
   * @param user User address
   * @param _id Presale id
   */
  function claim(address user, uint256 _id) public returns (bool) {
    uint256 amount = claimableAmount(user, _id);
    require(amount > 0, "Zero claim amount");
    require(presale[_id].saleToken != address(0), "Presale token address not set");
    require(amount <= IERC20(presale[_id].saleToken).balanceOf(address(this)), "Not enough tokens in the contract");

    uint256 claimedAmount = (amount * presale[_id].baseDecimals) / (10 ** presale[_id].baseDecimals);

    userVesting[user][_id].claimedAmount += claimedAmount;
    bool status = IERC20(presale[_id].saleToken).transfer(user, amount);
    require(status, "Token transfer failed");
    emit TokensClaimed(user, _id, amount, block.timestamp);
    return true;
  }

  /**
   * @dev To claim tokens after vesting cliff from a presale
   * @param users Array of user addresses
   * @param _id Presale id
   */
  function claimMultipleAccounts(address[] calldata users, uint256 _id) external returns (bool) {
    require(users.length > 0, "Zero users length");
    for (uint256 i; i < users.length; i++) {
      require(claim(users[i], _id), "Claim failed");
    }
    return true;
  }


  /**
   * @dev To claim tokens after vesting cliff from multiple presales
   * @param _ids Array of presale ids
   * @param _user Address of user
   */
  function claimMultipleStages(uint256[] calldata _ids, address _user) external returns (bool) {
    require(_ids.length > 0, "Zero users length");
    for (uint256 i; i < _ids.length; i++) {
      require(claim(_user, _ids[i]), "Claim failed");
    }
    return true;
  }

  //Use this in case Coins are sent to the contract by mistake
  function rescueETH(uint256 weiAmount) external onlyOwner {
    require(address(this).balance >= weiAmount, "insufficient Token balance");
    payable(msg.sender).transfer(weiAmount);
  }

  function rescueAnyERC20Tokens(
    address _tokenAddr,
    address _to,
    uint256 _amount
  ) public onlyOwner {
    IERC20(_tokenAddr).transfer(_to, _amount);
  }

  receive() external payable {}

  //override ownership renounce function from ownable contract
  function renounceOwnership() public pure override(Ownable) {
    revert("Unfortunately you cannot renounce Ownership of this contract!");
  }
}

File 2 of 7 : 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 7 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 5 of 7 : 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 6 of 7 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_oracle","type":"address"},{"internalType":"address","name":"_usdt","type":"address"}],"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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_totalTokens","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_endTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"enableBuyWithEth","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"enableBuyWithUsdt","type":"uint256"},{"indexed":false,"internalType":"address","name":"_payout","type":"address"}],"name":"PresaleCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"PresalePaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"prevValue","type":"address"},{"indexed":true,"internalType":"address","name":"newValue","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"PresalePayoutAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"prevValue","type":"address"},{"indexed":true,"internalType":"address","name":"newValue","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"PresaleTokenAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"PresaleUnpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"key","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"prevValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"PresaleUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"address","name":"purchaseToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokensBought","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountPaid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensClaimed","type":"event"},{"inputs":[],"name":"BASE_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDTInterface","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyWithEth","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyWithUSDT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_enableToBuyWithEth","type":"uint256"}],"name":"changeEnableBuyWithEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_enableToBuyWithUsdt","type":"uint256"}],"name":"changeEnableBuyWithUsdt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"changeOracleAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_newAddress","type":"address"}],"name":"changePayoutAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_newEndTime","type":"uint256"}],"name":"changePresaleEndtime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"changePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"changeSaleTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_newAddress","type":"address"}],"name":"changeSaleTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"changeUsdtAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_vestingStartTime","type":"uint256"}],"name":"changeVestingStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"claim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"claimMultipleAccounts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"address","name":"_user","type":"address"}],"name":"claimMultipleStages","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"claimableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_tokensToSell","type":"uint256"},{"internalType":"uint256","name":"_baseDecimals","type":"uint256"},{"internalType":"uint256","name":"_vestingStartTime","type":"uint256"},{"internalType":"uint256","name":"_vestingCliff","type":"uint256"},{"internalType":"uint256","name":"_enableBuyWithEth","type":"uint256"},{"internalType":"uint256","name":"_enableBuyWithUsdt","type":"uint256"},{"internalType":"address","name":"_payout","type":"address"}],"name":"createPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ethBuyHelper","outputs":[{"internalType":"uint256","name":"ethAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLatestPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"pausePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"presale","outputs":[{"internalType":"address","name":"saleToken","type":"address"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"tokensToSell","type":"uint256"},{"internalType":"uint256","name":"baseDecimals","type":"uint256"},{"internalType":"uint256","name":"inSale","type":"uint256"},{"internalType":"uint256","name":"vestingStartTime","type":"uint256"},{"internalType":"uint256","name":"vestingCliff","type":"uint256"},{"internalType":"uint256","name":"enableBuyWithEth","type":"uint256"},{"internalType":"uint256","name":"enableBuyWithUsdt","type":"uint256"},{"internalType":"address","name":"payout","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddr","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"rescueAnyERC20Tokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"rescueETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"tokenRewards","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":"uint256","name":"_id","type":"uint256"}],"name":"unPausePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"usdtBuyHelper","outputs":[{"internalType":"uint256","name":"usdPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userVesting","outputs":[{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"uint256","name":"claimedAmount","type":"uint256"},{"internalType":"uint256","name":"claimStart","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x6080604052600436106101fc5760003560e01c8063b3de019c1161010d578063e292b502116100a0578063f2fde38b1161006f578063f2fde38b146106c8578063f57dda3b146106e8578063f597573f14610708578063fb349dbd14610728578063fe9f676e1461074857600080fd5b8063e292b50214610545578063e6513725146105a7578063e6ab1434146105c7578063eeb38ab4146106b557600080fd5b8063c9c8de64116100dc578063c9c8de64146104cf578063d01608c1146104ef578063d93f98c51461050f578063e18e84f91461052f57600080fd5b8063b3de019c1461044f578063b7c3c8221461046f578063bf5042ad1461048f578063c35ec180146104af57600080fd5b80636601e96b116101905780638e15f4731161015f5780638e15f473146103c45780639b3fe20f146103d95780639e252f00146103f9578063a2b4439314610419578063aad3ec961461042f57600080fd5b80636601e96b1461033d578063715018a61461035d57806379b8d938146103725780638da5cb5b1461039257600080fd5b80632127fe04116101cc5780632127fe04146102bd5780634a6413f7146102dd5780635368eaf9146102fd57806356123e681461031d57600080fd5b8062dde10e146102085780630d65df9b1461024d5780631196c4d51461026f578063136f0e7d1461029d57600080fd5b3661020357005b600080fd5b34801561021457600080fd5b50610238610223366004612d14565b60066020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561025957600080fd5b5061026d610268366004612d49565b610768565b005b34801561027b57600080fd5b5061028f61028a366004612d85565b610814565b604051908152602001610244565b3480156102a957600080fd5b5061026d6102b8366004612daf565b6108c4565b3480156102c957600080fd5b5061028f6102d8366004612dd1565b610936565b3480156102e957600080fd5b5061026d6102f8366004612d14565b6109ad565b34801561030957600080fd5b5061026d610318366004612df3565b610aaf565b34801561032957600080fd5b5061026d610338366004612dd1565b610de5565b34801561034957600080fd5b5061026d610358366004612dd1565b610f35565b34801561036957600080fd5b5061026d610fec565b34801561037e57600080fd5b5061028f61038d366004612d85565b61105a565b34801561039e57600080fd5b506001546001600160a01b03165b6040516001600160a01b039091168152602001610244565b3480156103d057600080fd5b5061028f6111d3565b3480156103e557600080fd5b506102386103f4366004612eba565b61126a565b34801561040557600080fd5b5061026d610414366004612d14565b611332565b34801561042557600080fd5b5061028f60035481565b34801561043b57600080fd5b5061023861044a366004612d85565b6113dd565b34801561045b57600080fd5b5061026d61046a366004612dd1565b611704565b34801561047b57600080fd5b5061026d61048a366004612dd1565b611841565b34801561049b57600080fd5b5061026d6104aa366004612f0e565b611928565b3480156104bb57600080fd5b506102386104ca366004612f3a565b611a1b565b3480156104db57600080fd5b5061026d6104ea366004612f86565b611ae6565b3480156104fb57600080fd5b5061026d61050a366004612d14565b611d74565b34801561051b57600080fd5b5061026d61052a366004612f0e565b611e62565b34801561053b57600080fd5b5061028f60025481565b34801561055157600080fd5b5061058c610560366004612d85565b600860209081526000928352604080842090915290825290208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610244565b3480156105b357600080fd5b506102386105c2366004612dd1565b611f44565b3480156105d357600080fd5b5061064d6105e2366004612d14565b600760208190526000918252604090912080546001820154600283015460038401546004850154600586015460068701549787015460088801546009890154600a8a0154600b909a01546001600160a01b03998a169b989a979996989597949693949293919291168c565b604080516001600160a01b039d8e168152602081019c909c528b019990995260608a0197909752608089019590955260a088019390935260c087019190915260e086015261010085015261012084015261014083015290911661016082015261018001610244565b6102386106c3366004612dd1565b61250f565b3480156106d457600080fd5b5061026d6106e3366004612daf565b6129c1565b3480156106f457600080fd5b5061026d610703366004612dd1565b612a5c565b34801561071457600080fd5b506004546103ac906001600160a01b031681565b34801561073457600080fd5b5061026d610743366004612daf565b612b14565b34801561075457600080fd5b5061028f610763366004612dd1565b612b86565b6001546001600160a01b0316331461079b5760405162461bcd60e51b815260040161079290612fb2565b60405180910390fd5b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af11580156107ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080e9190612fe7565b50505050565b60008160008111801561082957506002548111155b6108455760405162461bcd60e51b815260040161079290613009565b6001600160a01b03841660009081526008602090815260408083208684528252808320815160608101835281548082526001830154948201859052600290920154928101929092529092916108999161304b565b6000868152600760205260409020600501549091506108b8908261305e565b935050505b5092915050565b6001546001600160a01b031633146108ee5760405162461bcd60e51b815260040161079290612fb2565b6001600160a01b0381166109145760405162461bcd60e51b815260040161079290613080565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b60008260008111801561094b57506002548111155b6109675760405162461bcd60e51b815260040161079290613009565b60008481526007602052604081206003015461098390856130ac565b905061098d6111d3565b60035461099a90836130ac565b6109a4919061305e565b95945050505050565b806000811180156109c057506002548111155b6109dc5760405162461bcd60e51b815260040161079290613009565b6001546001600160a01b03163314610a065760405162461bcd60e51b815260040161079290612fb2565b60008281526006602052604090205460ff1615610a565760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481c185d5cd95960921b6044820152606401610792565b60008281526006602052604090819020805460ff191660011790555182907f927e6cd2dce24f32508868820cdc35f09d9de0f4b44e945114110125196fba9f90610aa39042815260200190565b60405180910390a25050565b6001546001600160a01b03163314610ad95760405162461bcd60e51b815260040161079290612fb2565b428a118015610ae757508989115b610b225760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b6044820152606401610792565b60008811610b5f5760405162461bcd60e51b815260206004820152600a6024820152695a65726f20707269636560b01b6044820152606401610792565b60008711610ba55760405162461bcd60e51b815260206004820152601360248201527216995c9bc81d1bdad95b9cc81d1bc81cd95b1b606a1b6044820152606401610792565b60008611610bf55760405162461bcd60e51b815260206004820152601b60248201527f5a65726f20646563696d616c7320666f722074686520746f6b656e00000000006044820152606401610792565b88851015610c155760405162461bcd60e51b8152600401610792906130c3565b60028054906000610c2583613105565b919050555060405180610180016040528060006001600160a01b031681526020018b81526020018a8152602001898152602001888152602001878152602001888152602001868152602001858152602001848152602001838152602001826001600160a01b031681525060076000600254815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e082015181600701556101008201518160080155610120820151816009015561014082015181600a015561016082015181600b0160006101000a8154816001600160a01b0302191690836001600160a01b031602179055509050506002547fd9783d13735d2a74ba97f4c1daebfe5977cc8bbb3470d49e46c638ef0f652271888c8c878787604051610dd19695949392919095865260208601949094526040850192909252606084015260808301526001600160a01b031660a082015260c00190565b60405180910390a250505050505050505050565b81600081118015610df857506002548111155b610e145760405162461bcd60e51b815260040161079290613009565b6001546001600160a01b03163314610e3e5760405162461bcd60e51b815260040161079290612fb2565b8115610f3057814210610e8a5760405162461bcd60e51b8152602060048201526014602482015273115b99081d1a5b59481a5b881d1a19481c185cdd60621b6044820152606401610792565b6000838152600760205260409020600101548211610edc5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420656e6454696d6560881b6044820152606401610792565b600083815260076020908152604091829020600201805490859055825181815291820185905242928201929092526211539160ea1b9060008051602061331a833981519152906060015b60405180910390a2505b505050565b81600081118015610f4857506002548111155b610f645760405162461bcd60e51b815260040161079290613009565b6001546001600160a01b03163314610f8e5760405162461bcd60e51b815260040161079290612fb2565b600083815260076020908152604091829020600901805490859055825181815291820185905242928201929092527208a9c8284988abe84aab2beae92a890be8aa89606b1b9060008051602061331a83398151915290606001610f26565b60405162461bcd60e51b815260206004820152603d60248201527f556e666f7274756e6174656c7920796f752063616e6e6f742072656e6f756e6360448201527f65204f776e657273686970206f66207468697320636f6e7472616374210000006064820152608401610792565b60008160008111801561106f57506002548111155b61108b5760405162461bcd60e51b815260040161079290613009565b6001600160a01b038416600090815260086020908152604080832086845282529182902082516060810184528154808252600183015493820193909352600290910154928101929092526111145760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b6044820152606401610792565b602081015181516000916111279161304b565b90506000811161116b5760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610792565b8160400151421015611182576000935050506108bd565b60008581526007602052604081206005015461119f90600a613202565b6111a990836130ac565b6000878152600760205260409020600501549091506111c8908261305e565b979650505050505050565b600080600560009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015611229573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124d9190613228565b505050915050806402540be4006112649190613278565b92915050565b6000826112ad5760405162461bcd60e51b81526020600482015260116024820152700b4cae4de40eae6cae4e640d8cadccee8d607b1b6044820152606401610792565b60005b83811015611327576112da838686848181106112ce576112ce6132a8565b905060200201356113dd565b6113155760405162461bcd60e51b815260206004820152600c60248201526b10db185a5b4819985a5b195960a21b6044820152606401610792565b8061131f81613105565b9150506112b0565b506001949350505050565b6001546001600160a01b0316331461135c5760405162461bcd60e51b815260040161079290612fb2565b804710156113ac5760405162461bcd60e51b815260206004820152601a60248201527f696e73756666696369656e7420546f6b656e2062616c616e63650000000000006044820152606401610792565b604051339082156108fc029083906000818181858888f193505050501580156113d9573d6000803e3d6000fd5b5050565b6000806113ea848461105a565b9050600081116114305760405162461bcd60e51b815260206004820152601160248201527016995c9bc818db185a5b48185b5bdd5b9d607a1b6044820152606401610792565b6000838152600760205260409020546001600160a01b03166114945760405162461bcd60e51b815260206004820152601d60248201527f50726573616c6520746f6b656e2061646472657373206e6f74207365740000006044820152606401610792565b600083815260076020526040908190205490516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156114e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061150d91906132be565b8111156115665760405162461bcd60e51b815260206004820152602160248201527f4e6f7420656e6f75676820746f6b656e7320696e2074686520636f6e747261636044820152601d60fa1b6064820152608401610792565b60008381526007602052604081206005015461158390600a613202565b60008581526007602052604090206005015461159f90846130ac565b6115a9919061305e565b6001600160a01b03861660009081526008602090815260408083208884529091528120600101805492935083929091906115e49084906132d7565b909155505060008481526007602052604080822054905163a9059cbb60e01b81526001600160a01b038881166004830152602482018690529091169063a9059cbb906044016020604051808303816000875af1158015611648573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166c9190612fe7565b9050806116b35760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610792565b6040805184815242602082015286916001600160a01b038916917fe49649ad7d04a14b0d2a43dae89f207c0822143ff6f88a6480e88907e4e5c548910160405180910390a350600195945050505050565b8160008111801561171757506002548111155b6117335760405162461bcd60e51b815260040161079290613009565b6001546001600160a01b0316331461175d5760405162461bcd60e51b815260040161079290612fb2565b6000821161179a5760405162461bcd60e51b815260206004820152600a6024820152695a65726f20707269636560b01b6044820152606401610792565b60008381526007602052604090206001015442106117f15760405162461bcd60e51b815260206004820152601460248201527314d85b1948185b1c9958591e481cdd185c9d195960621b6044820152606401610792565b6000838152600760209081526040918290206003018054908590558251818152918201859052429282019290925264505249434560d81b9060008051602061331a83398151915290606001610f26565b8160008111801561185457506002548111155b6118705760405162461bcd60e51b815260040161079290613009565b6001546001600160a01b0316331461189a5760405162461bcd60e51b815260040161079290612fb2565b6000838152600760205260409020600201548210156118cb5760405162461bcd60e51b8152600401610792906130c3565b600083815260076020818152604092839020909101805490859055825181815291820185905242928201929092527156455354494e475f53544152545f54494d4560701b9060008051602061331a83398151915290606001610f26565b8160008111801561193b57506002548111155b6119575760405162461bcd60e51b815260040161079290613009565b6001546001600160a01b031633146119815760405162461bcd60e51b815260040161079290612fb2565b6001600160a01b0382166119a75760405162461bcd60e51b815260040161079290613080565b60008381526007602052604090819020600b0180546001600160a01b038581166001600160a01b031983168117909355925192169182907fd925e6f3bb35ca4a4f2ea7d0d0738544065fe5d43b1a9d239b6213c72590865a90611a0d9042815260200190565b60405180910390a350505050565b600082611a5e5760405162461bcd60e51b81526020600482015260116024820152700b4cae4de40eae6cae4e640d8cadccee8d607b1b6044820152606401610792565b60005b8381101561132757611a99858583818110611a7e57611a7e6132a8565b9050602002016020810190611a939190612daf565b846113dd565b611ad45760405162461bcd60e51b815260206004820152600c60248201526b10db185a5b4819985a5b195960a21b6044820152606401610792565b80611ade81613105565b915050611a61565b82600081118015611af957506002548111155b611b155760405162461bcd60e51b815260040161079290613009565b6001546001600160a01b03163314611b3f5760405162461bcd60e51b815260040161079290612fb2565b6000831180611b4e5750600082115b611b8f5760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b6044820152606401610792565b8215611c81576000848152600760205260409020600101544210611bec5760405162461bcd60e51b815260206004820152601460248201527314d85b1948185b1c9958591e481cdd185c9d195960621b6044820152606401610792565b824210611c2f5760405162461bcd60e51b815260206004820152601160248201527014d85b19481d1a5b59481a5b881c185cdd607a1b6044820152606401610792565b6000848152600760209081526040918290206001018054908690558251818152918201869052428284015291516414d510549560da1b9160008051602061331a833981519152919081900360600190a2505b811561080e57814210611ccd5760405162461bcd60e51b8152602060048201526014602482015273115b99081d1a5b59481a5b881d1a19481c185cdd60621b6044820152606401610792565b6000848152600760205260409020600101548211611d1f5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420656e6454696d6560881b6044820152606401610792565b6000848152600760209081526040918290206002018054908590558251818152918201859052428284015291516211539160ea1b9160008051602061331a833981519152919081900360600190a25050505050565b80600081118015611d8757506002548111155b611da35760405162461bcd60e51b815260040161079290613009565b6001546001600160a01b03163314611dcd5760405162461bcd60e51b815260040161079290612fb2565b60008281526006602052604090205460ff16611e185760405162461bcd60e51b815260206004820152600a602482015269139bdd081c185d5cd95960b21b6044820152606401610792565b60008281526006602052604090819020805460ff191690555182907ff608654a6d8e1785594639dd55babb61d7ae157382015f904a24224e50333b1d90610aa39042815260200190565b81600081118015611e7557506002548111155b611e915760405162461bcd60e51b815260040161079290613009565b6001546001600160a01b03163314611ebb5760405162461bcd60e51b815260040161079290612fb2565b6001600160a01b038216611ee15760405162461bcd60e51b815260040161079290613080565b6000838152600760205260409081902080546001600160a01b038581166001600160a01b031983168117909355925192169182907f08bc1d537b06e3eae23dbd7475fa799c807a3eab60257650edc088d96d923d4c90611a0d9042815260200190565b600082600081118015611f5957506002548111155b611f755760405162461bcd60e51b815260040161079290613009565b600084815260076020526040902060010154849084904210801590611fab57506000828152600760205260409020600201544211155b611ff15760405162461bcd60e51b8152602060048201526017602482015276496e76616c69642074696d6520666f7220627579696e6760481b6044820152606401610792565b60008111801561201257506000828152600760205260409020600601548111155b6120545760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b6044820152606401610792565b60008681526006602052604090205460ff16156120a45760405162461bcd60e51b815260206004820152600e60248201526d141c995cd85b19481c185d5cd95960921b6044820152606401610792565b6000868152600760205260409020600a01546121025760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420616c6c6f77656420746f2062757920776974682055534454000000006044820152606401610792565b60008681526007602052604081206003015461211e90876130ac565b905061212f64e8d4a510008261305e565b905085600760008981526020019081526020016000206006016000828254612157919061304b565b9091555050600087815260076020818152604080842081516101808101835281546001600160a01b0390811682526001830154828601526002830154828501526003830154606083015260048301546080830152600583015460a0830152600683015460c08301529482015460e08201526008808301546101008301526009830154610120830152600a830154610140830152600b9092015490941661016085015233855282528084208b855290915290912054156122545760a081015161221f90886130ac565b3360009081526008602090815260408083208c8452909152812080549091906122499084906132d7565b909155506122c49050565b60405180606001604052808260a001518961226f91906130ac565b8152602001600081526020018261010001518360e0015161229091906132d7565b90523360009081526008602090815260408083208c8452825291829020835181559083015160018201559101516002909101555b6004546000906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604401602060405180830381865afa158015612323573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061234791906132be565b9050808311156123a35760405162461bcd60e51b815260206004820152602160248201527f4d616b65207375726520746f2061646420656e6f75676820616c6c6f77616e636044820152606560f81b6064820152608401610792565b6004546000906001600160a01b0316336101608501516040516001600160a01b039283166024820152911660448201526064810186905260840160408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b1790525161241291906132ea565b6000604051808303816000865af19150503d806000811461244f576040519150601f19603f3d011682016040523d82523d6000602084013e612454565b606091505b505090508061249c5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b881c185e5b595b9d0819985a5b195960621b6044820152606401610792565b6004546001600160a01b03168a336001600160a01b03167f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d368c88426040516124f7939291909283526020830191909152604082015260600190565b60405180910390a45060019998505050505050505050565b60008260008111801561252457506002548111155b6125405760405162461bcd60e51b815260040161079290613009565b60008481526007602052604090206001015484908490421080159061257657506000828152600760205260409020600201544211155b6125bc5760405162461bcd60e51b8152602060048201526017602482015276496e76616c69642074696d6520666f7220627579696e6760481b6044820152606401610792565b6000811180156125dd57506000828152600760205260409020600601548111155b61261f5760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b6044820152606401610792565b6002600054036126715760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610792565b600260009081558681526006602052604090205460ff16156126c65760405162461bcd60e51b815260206004820152600e60248201526d141c995cd85b19481c185d5cd95960921b6044820152606401610792565b6000868152600760205260409020600901546127245760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420616c6c6f77656420746f2062757920776974682045544800000000006044820152606401610792565b60008681526007602052604081206003015461274090876130ac565b9050600061274c6111d3565b60035461275990846130ac565b612763919061305e565b9050803410156127a45760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610792565b60006127b0823461304b565b905087600760008b815260200190815260200160002060060160008282546127d8919061304b565b9091555050600089815260076020818152604080842081516101808101835281546001600160a01b0390811682526001830154828601526002830154828501526003830154606083015260048301546080830152600583015460a0830152600683015460c08301529482015460e08201526008808301546101008301526009830154610120830152600a830154610140830152600b9092015490941661016085015233855282528084208d855290915290912054156128d55760a08101516128a0908a6130ac565b3360009081526008602090815260408083208e8452909152812080549091906128ca9084906132d7565b909155506129459050565b60405180606001604052808260a001518b6128f091906130ac565b8152602001600081526020018261010001518360e0015161291191906132d7565b90523360009081526008602090815260408083208e8452825291829020835181559083015160018201559101516002909101555b61295481610160015184612bec565b8115612964576129643383612bec565b604080518a815260208101859052428183015290516000918c9133917f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36919081900360600190a46001975050505050505060016000555092915050565b6001546001600160a01b031633146129eb5760405162461bcd60e51b815260040161079290612fb2565b6001600160a01b038116612a505760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610792565b612a5981612cc2565b50565b81600081118015612a6f57506002548111155b612a8b5760405162461bcd60e51b815260040161079290613009565b6001546001600160a01b03163314612ab55760405162461bcd60e51b815260040161079290612fb2565b600083815260076020908152604091829020600a01805490859055825181815291820185905242928201929092527311539050931157d0955657d5d2551217d554d11560621b9060008051602061331a83398151915290606001610f26565b6001546001600160a01b03163314612b3e5760405162461bcd60e51b815260040161079290612fb2565b6001600160a01b038116612b645760405162461bcd60e51b815260040161079290613080565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b600082600081118015612b9b57506002548111155b612bb75760405162461bcd60e51b815260040161079290613009565b600084815260076020526040902060030154612bd390846130ac565b9150612be464e8d4a510008361305e565b949350505050565b80471015612c2a5760405162461bcd60e51b815260206004820152600b60248201526a4c6f772062616c616e636560a81b6044820152606401610792565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612c77576040519150601f19603f3d011682016040523d82523d6000602084013e612c7c565b606091505b5050905080610f305760405162461bcd60e51b81526020600482015260126024820152711155120814185e5b595b9d0819985a5b195960721b6044820152606401610792565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060208284031215612d2657600080fd5b5035919050565b80356001600160a01b0381168114612d4457600080fd5b919050565b600080600060608486031215612d5e57600080fd5b612d6784612d2d565b9250612d7560208501612d2d565b9150604084013590509250925092565b60008060408385031215612d9857600080fd5b612da183612d2d565b946020939093013593505050565b600060208284031215612dc157600080fd5b612dca82612d2d565b9392505050565b60008060408385031215612de457600080fd5b50508035926020909101359150565b6000806000806000806000806000806101408b8d031215612e1357600080fd5b8a35995060208b0135985060408b0135975060608b0135965060808b0135955060a08b0135945060c08b0135935060e08b013592506101008b01359150612e5d6101208c01612d2d565b90509295989b9194979a5092959850565b60008083601f840112612e8057600080fd5b50813567ffffffffffffffff811115612e9857600080fd5b6020830191508360208260051b8501011115612eb357600080fd5b9250929050565b600080600060408486031215612ecf57600080fd5b833567ffffffffffffffff811115612ee657600080fd5b612ef286828701612e6e565b9094509250612f05905060208501612d2d565b90509250925092565b60008060408385031215612f2157600080fd5b82359150612f3160208401612d2d565b90509250929050565b600080600060408486031215612f4f57600080fd5b833567ffffffffffffffff811115612f6657600080fd5b612f7286828701612e6e565b909790965060209590950135949350505050565b600080600060608486031215612f9b57600080fd5b505081359360208301359350604090920135919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215612ff957600080fd5b81518015158114612dca57600080fd5b602080825260129082015271125b9d985b1a59081c1c995cd85b19481a5960721b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8181038181111561126457611264613035565b60008261307b57634e487b7160e01b600052601260045260246000fd5b500490565b6020808252601290820152715a65726f20746f6b656e206164647265737360701b604082015260600190565b808202811582820484141761126457611264613035565b60208082526022908201527f56657374696e6720737461727473206265666f72652050726573616c6520656e604082015261647360f01b606082015260800190565b60006001820161311757613117613035565b5060010190565b600181815b8085111561315957816000190482111561313f5761313f613035565b8085161561314c57918102915b93841c9390800290613123565b509250929050565b60008261317057506001611264565b8161317d57506000611264565b8160018114613193576002811461319d576131b9565b6001915050611264565b60ff8411156131ae576131ae613035565b50506001821b611264565b5060208310610133831016604e8410600b84101617156131dc575081810a611264565b6131e6838361311e565b80600019048211156131fa576131fa613035565b029392505050565b6000612dca8383613161565b805169ffffffffffffffffffff81168114612d4457600080fd5b600080600080600060a0868803121561324057600080fd5b6132498661320e565b945060208601519350604086015192506060860151915061326c6080870161320e565b90509295509295909350565b80820260008212600160ff1b8414161561329457613294613035565b818105831482151761126457611264613035565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156132d057600080fd5b5051919050565b8082018082111561126457611264613035565b6000825160005b8181101561330b57602081860181015185830152016132f1565b50600092019182525091905056fe1b2f8f894211ac7f12917463adb7fc11bb80dec57f46ff148b23b4521968ed74a26469706673582212207c5f510729ac99cb08c61c67bf0a0b2ae7fab966c07c97b3bee157a6177a2f6664736f6c63430008130033

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.