ETH Price: $1,925.07 (-5.71%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

Transaction Hash
Method
Block
From
To
Withdraw175157422023-06-19 19:03:23984 days ago1687201403IN
0x2201D178...84c459e66
0 ETH0.0011032636.01570129
Presale175145452023-06-19 15:00:23984 days ago1687186823IN
0x2201D178...84c459e66
0.15 ETH0.0011286421.95503701
Presale175145412023-06-19 14:59:35984 days ago1687186775IN
0x2201D178...84c459e66
0.1 ETH0.0009672718.8161044
Presale175145402023-06-19 14:59:23984 days ago1687186763IN
0x2201D178...84c459e66
0.6 ETH0.0010127719.70118666
Presale175145252023-06-19 14:56:23984 days ago1687186583IN
0x2201D178...84c459e66
0.5 ETH0.0010101519.65022781
Presale175145192023-06-19 14:55:11984 days ago1687186511IN
0x2201D178...84c459e66
0.165 ETH0.0010160919.76565264
Presale175145132023-06-19 14:53:59984 days ago1687186439IN
0x2201D178...84c459e66
0.5 ETH0.0010378120.18814732
Presale175144722023-06-19 14:45:47984 days ago1687185947IN
0x2201D178...84c459e66
0.5 ETH0.0013392326.05153748
Presale175144592023-06-19 14:43:11984 days ago1687185791IN
0x2201D178...84c459e66
0.1 ETH0.0012081323.50136433
Presale175144462023-06-19 14:40:35984 days ago1687185635IN
0x2201D178...84c459e66
0.1 ETH0.0012182123.69746243
Presale175144122023-06-19 14:33:23984 days ago1687185203IN
0x2201D178...84c459e66
0.1 ETH0.0014034127.3
Presale175143492023-06-19 14:20:47984 days ago1687184447IN
0x2201D178...84c459e66
0.1 ETH0.0013931427.10027941
Presale175141222023-06-19 13:34:59984 days ago1687181699IN
0x2201D178...84c459e66
0.25 ETH0.0009571618.61931685
Presale175140952023-06-19 13:29:23984 days ago1687181363IN
0x2201D178...84c459e66
0.1 ETH0.000958818.65128941
Presale175135252023-06-19 11:33:35984 days ago1687174415IN
0x2201D178...84c459e66
0.25 ETH0.0008890917.29523444
Presale175116452023-06-19 5:14:23985 days ago1687151663IN
0x2201D178...84c459e66
0.1 ETH0.0010971321.34216247
Presale175116182023-06-19 5:08:59985 days ago1687151339IN
0x2201D178...84c459e66
0.1 ETH0.0007185613.97802427
Presale175113652023-06-19 4:17:35985 days ago1687148255IN
0x2201D178...84c459e66
0.35 ETH0.0007404614.40398977
Presale175092192023-06-18 21:05:11985 days ago1687122311IN
0x2201D178...84c459e66
0.2 ETH0.0009516818.51281667
Presale175090592023-06-18 20:32:23985 days ago1687120343IN
0x2201D178...84c459e66
0.27 ETH0.0007213714.03268397
Presale175085712023-06-18 18:53:47985 days ago1687114427IN
0x2201D178...84c459e66
0.1 ETH0.0007128713.86722113
Presale175072622023-06-18 14:28:59985 days ago1687098539IN
0x2201D178...84c459e66
0.2 ETH0.0009219317.93401925
Presale175070532023-06-18 13:47:11985 days ago1687096031IN
0x2201D178...84c459e66
0.1 ETH0.0008099815.75639037
Presale175029582023-06-17 23:59:23986 days ago1687046363IN
0x2201D178...84c459e66
0.11560693 ETH0.0007659814.90035974
Presale175022462023-06-17 21:35:59986 days ago1687037759IN
0x2201D178...84c459e66
0.12 ETH0.0007274114.1500816
View all transactions

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer175157422023-06-19 19:03:23984 days ago1687201403
0x2201D178...84c459e66
11.73584593 ETH
Transfer174856062023-06-15 13:34:23988 days ago1686836063
0x2201D178...84c459e66
0.1 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

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

Contract Source Code Verified (Exact Match)

Contract Name:
PresaleClaimer

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";

error PresaleNotActive();
error NotEnoughPaid();
error TooMuchPaid();
error AddressAlreadyBought();

contract PresaleClaimer is Ownable {
    bool public presaleActive = true;

    uint256 public minimumFee = 1_00000000000000000; // 0.1 ETH
    uint256 public maximumFee = 1_000000000000000000; // 1 ETH

    mapping(address => uint256) public addressPresale;

    event PresaleBuy(address account, uint256 value);

    constructor() {}

    function presale() external payable returns (uint256 payment) {
        // Check active
        if (!presaleActive) revert PresaleNotActive();

        // Collect payment
        if (msg.value < minimumFee) revert NotEnoughPaid();
        if (msg.value > maximumFee) revert TooMuchPaid();

        // Check if adddress bought before
        if (addressPresale[msg.sender] != 0) revert AddressAlreadyBought();

        // Store payment
        addressPresale[msg.sender] = msg.value;

        // Fire event
        emit PresaleBuy(msg.sender, msg.value);

        // Return for app displaying
        return msg.value;
    }

    function flipPresaleActive() external onlyOwner {
        presaleActive = !presaleActive;
    }

    function withdraw(uint256 amount) external onlyOwner {
        payable(msg.sender).transfer(amount);
    }

    // solhint-disable-next-line no-empty-blocks
    receive() external payable {}
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. 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 {
        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);
    }
}

// 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": 1
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AddressAlreadyBought","type":"error"},{"inputs":[],"name":"NotEnoughPaid","type":"error"},{"inputs":[],"name":"PresaleNotActive","type":"error"},{"inputs":[],"name":"TooMuchPaid","type":"error"},{"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"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"PresaleBuy","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipPresaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maximumFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presale","outputs":[{"internalType":"uint256","name":"payment","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526000805460ff60a01b1916600160a01b17905567016345785d8a0000600155670de0b6b3a764000060025534801561003b57600080fd5b506100453361004a565b61009a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6104ed806100a96000396000f3fe6080604052600436106100855760003560e01c806306f4cf3d146100915780631a7626e7146100d15780632e1a7d4d146100e7578063353907141461010957806353135ca01461011f578063715018a61461015057806377311049146101655780638da5cb5b1461017a578063f2fde38b146101a7578063fdea8e0b146101c757600080fd5b3661008c57005b600080fd5b34801561009d57600080fd5b506100be6100ac366004610471565b60036020526000908152604090205481565b6040519081526020015b60405180910390f35b3480156100dd57600080fd5b506100be60015481565b3480156100f357600080fd5b5061010761010236600461049f565b6101cf565b005b34801561011557600080fd5b506100be60025481565b34801561012b57600080fd5b5060005461014090600160a01b900460ff1681565b60405190151581526020016100c8565b34801561015c57600080fd5b50610107610208565b34801561017157600080fd5b5061010761021c565b34801561018657600080fd5b5061018f610245565b6040516001600160a01b0390911681526020016100c8565b3480156101b357600080fd5b506101076101c2366004610471565b610254565b6100be6102d2565b6101d76103c2565b604051339082156108fc029083906000818181858888f19350505050158015610204573d6000803e3d6000fd5b5050565b6102106103c2565b61021a6000610421565b565b6102246103c2565b6000805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6000546001600160a01b031690565b61025c6103c2565b6001600160a01b0381166102c65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6102cf81610421565b50565b60008054600160a01b900460ff166102fd57604051633844da5760e21b815260040160405180910390fd5b60015434101561032057604051632b25ddc560e21b815260040160405180910390fd5b60025434111561034357604051634f6e20db60e11b815260040160405180910390fd5b3360009081526003602052604090205415610371576040516378480cf960e01b815260040160405180910390fd5b3360008181526003602090815260409182902034908190558251938452908301527f80927d0f794f0620f5ac1a33d2a5e40a52e2a2355c668649fc1e2da8d284eab8910160405180910390a1503490565b336103cb610245565b6001600160a01b03161461021a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102bd565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215610482578081fd5b81356001600160a01b0381168114610498578182fd5b9392505050565b6000602082840312156104b0578081fd5b503591905056fea2646970667358221220e9ed068065e318b6cdcc1bf70634583d52d45940be3dad0d183d6c29a654a59664736f6c63430008040033

Deployed Bytecode

0x6080604052600436106100855760003560e01c806306f4cf3d146100915780631a7626e7146100d15780632e1a7d4d146100e7578063353907141461010957806353135ca01461011f578063715018a61461015057806377311049146101655780638da5cb5b1461017a578063f2fde38b146101a7578063fdea8e0b146101c757600080fd5b3661008c57005b600080fd5b34801561009d57600080fd5b506100be6100ac366004610471565b60036020526000908152604090205481565b6040519081526020015b60405180910390f35b3480156100dd57600080fd5b506100be60015481565b3480156100f357600080fd5b5061010761010236600461049f565b6101cf565b005b34801561011557600080fd5b506100be60025481565b34801561012b57600080fd5b5060005461014090600160a01b900460ff1681565b60405190151581526020016100c8565b34801561015c57600080fd5b50610107610208565b34801561017157600080fd5b5061010761021c565b34801561018657600080fd5b5061018f610245565b6040516001600160a01b0390911681526020016100c8565b3480156101b357600080fd5b506101076101c2366004610471565b610254565b6100be6102d2565b6101d76103c2565b604051339082156108fc029083906000818181858888f19350505050158015610204573d6000803e3d6000fd5b5050565b6102106103c2565b61021a6000610421565b565b6102246103c2565b6000805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6000546001600160a01b031690565b61025c6103c2565b6001600160a01b0381166102c65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6102cf81610421565b50565b60008054600160a01b900460ff166102fd57604051633844da5760e21b815260040160405180910390fd5b60015434101561032057604051632b25ddc560e21b815260040160405180910390fd5b60025434111561034357604051634f6e20db60e11b815260040160405180910390fd5b3360009081526003602052604090205415610371576040516378480cf960e01b815260040160405180910390fd5b3360008181526003602090815260409182902034908190558251938452908301527f80927d0f794f0620f5ac1a33d2a5e40a52e2a2355c668649fc1e2da8d284eab8910160405180910390a1503490565b336103cb610245565b6001600160a01b03161461021a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102bd565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215610482578081fd5b81356001600160a01b0381168114610498578182fd5b9392505050565b6000602082840312156104b0578081fd5b503591905056fea2646970667358221220e9ed068065e318b6cdcc1bf70634583d52d45940be3dad0d183d6c29a654a59664736f6c63430008040033

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
0x2201D17849CBB3EaE2C0f7DEFfCdD9184c459e66
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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