Source Code
Multichain Info
Latest 25 from a total of 55 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw | 17515742 | 984 days ago | IN | 0 ETH | 0.00110326 | ||||
| Presale | 17514545 | 984 days ago | IN | 0.15 ETH | 0.00112864 | ||||
| Presale | 17514541 | 984 days ago | IN | 0.1 ETH | 0.00096727 | ||||
| Presale | 17514540 | 984 days ago | IN | 0.6 ETH | 0.00101277 | ||||
| Presale | 17514525 | 984 days ago | IN | 0.5 ETH | 0.00101015 | ||||
| Presale | 17514519 | 984 days ago | IN | 0.165 ETH | 0.00101609 | ||||
| Presale | 17514513 | 984 days ago | IN | 0.5 ETH | 0.00103781 | ||||
| Presale | 17514472 | 984 days ago | IN | 0.5 ETH | 0.00133923 | ||||
| Presale | 17514459 | 984 days ago | IN | 0.1 ETH | 0.00120813 | ||||
| Presale | 17514446 | 984 days ago | IN | 0.1 ETH | 0.00121821 | ||||
| Presale | 17514412 | 984 days ago | IN | 0.1 ETH | 0.00140341 | ||||
| Presale | 17514349 | 984 days ago | IN | 0.1 ETH | 0.00139314 | ||||
| Presale | 17514122 | 984 days ago | IN | 0.25 ETH | 0.00095716 | ||||
| Presale | 17514095 | 984 days ago | IN | 0.1 ETH | 0.0009588 | ||||
| Presale | 17513525 | 984 days ago | IN | 0.25 ETH | 0.00088909 | ||||
| Presale | 17511645 | 985 days ago | IN | 0.1 ETH | 0.00109713 | ||||
| Presale | 17511618 | 985 days ago | IN | 0.1 ETH | 0.00071856 | ||||
| Presale | 17511365 | 985 days ago | IN | 0.35 ETH | 0.00074046 | ||||
| Presale | 17509219 | 985 days ago | IN | 0.2 ETH | 0.00095168 | ||||
| Presale | 17509059 | 985 days ago | IN | 0.27 ETH | 0.00072137 | ||||
| Presale | 17508571 | 985 days ago | IN | 0.1 ETH | 0.00071287 | ||||
| Presale | 17507262 | 985 days ago | IN | 0.2 ETH | 0.00092193 | ||||
| Presale | 17507053 | 985 days ago | IN | 0.1 ETH | 0.00080998 | ||||
| Presale | 17502958 | 986 days ago | IN | 0.11560693 ETH | 0.00076598 | ||||
| Presale | 17502246 | 986 days ago | IN | 0.12 ETH | 0.00072741 |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
PresaleClaimer
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 1 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// 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;
}
}{
"optimizer": {
"enabled": true,
"runs": 1
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
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"}]Contract Creation Code
60806040526000805460ff60a01b1916600160a01b17905567016345785d8a0000600155670de0b6b3a764000060025534801561003b57600080fd5b506100453361004a565b61009a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6104ed806100a96000396000f3fe6080604052600436106100855760003560e01c806306f4cf3d146100915780631a7626e7146100d15780632e1a7d4d146100e7578063353907141461010957806353135ca01461011f578063715018a61461015057806377311049146101655780638da5cb5b1461017a578063f2fde38b146101a7578063fdea8e0b146101c757600080fd5b3661008c57005b600080fd5b34801561009d57600080fd5b506100be6100ac366004610471565b60036020526000908152604090205481565b6040519081526020015b60405180910390f35b3480156100dd57600080fd5b506100be60015481565b3480156100f357600080fd5b5061010761010236600461049f565b6101cf565b005b34801561011557600080fd5b506100be60025481565b34801561012b57600080fd5b5060005461014090600160a01b900460ff1681565b60405190151581526020016100c8565b34801561015c57600080fd5b50610107610208565b34801561017157600080fd5b5061010761021c565b34801561018657600080fd5b5061018f610245565b6040516001600160a01b0390911681526020016100c8565b3480156101b357600080fd5b506101076101c2366004610471565b610254565b6100be6102d2565b6101d76103c2565b604051339082156108fc029083906000818181858888f19350505050158015610204573d6000803e3d6000fd5b5050565b6102106103c2565b61021a6000610421565b565b6102246103c2565b6000805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6000546001600160a01b031690565b61025c6103c2565b6001600160a01b0381166102c65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6102cf81610421565b50565b60008054600160a01b900460ff166102fd57604051633844da5760e21b815260040160405180910390fd5b60015434101561032057604051632b25ddc560e21b815260040160405180910390fd5b60025434111561034357604051634f6e20db60e11b815260040160405180910390fd5b3360009081526003602052604090205415610371576040516378480cf960e01b815260040160405180910390fd5b3360008181526003602090815260409182902034908190558251938452908301527f80927d0f794f0620f5ac1a33d2a5e40a52e2a2355c668649fc1e2da8d284eab8910160405180910390a1503490565b336103cb610245565b6001600160a01b03161461021a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102bd565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215610482578081fd5b81356001600160a01b0381168114610498578182fd5b9392505050565b6000602082840312156104b0578081fd5b503591905056fea2646970667358221220e9ed068065e318b6cdcc1bf70634583d52d45940be3dad0d183d6c29a654a59664736f6c63430008040033
Deployed Bytecode
0x6080604052600436106100855760003560e01c806306f4cf3d146100915780631a7626e7146100d15780632e1a7d4d146100e7578063353907141461010957806353135ca01461011f578063715018a61461015057806377311049146101655780638da5cb5b1461017a578063f2fde38b146101a7578063fdea8e0b146101c757600080fd5b3661008c57005b600080fd5b34801561009d57600080fd5b506100be6100ac366004610471565b60036020526000908152604090205481565b6040519081526020015b60405180910390f35b3480156100dd57600080fd5b506100be60015481565b3480156100f357600080fd5b5061010761010236600461049f565b6101cf565b005b34801561011557600080fd5b506100be60025481565b34801561012b57600080fd5b5060005461014090600160a01b900460ff1681565b60405190151581526020016100c8565b34801561015c57600080fd5b50610107610208565b34801561017157600080fd5b5061010761021c565b34801561018657600080fd5b5061018f610245565b6040516001600160a01b0390911681526020016100c8565b3480156101b357600080fd5b506101076101c2366004610471565b610254565b6100be6102d2565b6101d76103c2565b604051339082156108fc029083906000818181858888f19350505050158015610204573d6000803e3d6000fd5b5050565b6102106103c2565b61021a6000610421565b565b6102246103c2565b6000805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6000546001600160a01b031690565b61025c6103c2565b6001600160a01b0381166102c65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6102cf81610421565b50565b60008054600160a01b900460ff166102fd57604051633844da5760e21b815260040160405180910390fd5b60015434101561032057604051632b25ddc560e21b815260040160405180910390fd5b60025434111561034357604051634f6e20db60e11b815260040160405180910390fd5b3360009081526003602052604090205415610371576040516378480cf960e01b815260040160405180910390fd5b3360008181526003602090815260409182902034908190558251938452908301527f80927d0f794f0620f5ac1a33d2a5e40a52e2a2355c668649fc1e2da8d284eab8910160405180910390a1503490565b336103cb610245565b6001600160a01b03161461021a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102bd565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215610482578081fd5b81356001600160a01b0381168114610498578182fd5b9392505050565b6000602082840312156104b0578081fd5b503591905056fea2646970667358221220e9ed068065e318b6cdcc1bf70634583d52d45940be3dad0d183d6c29a654a59664736f6c63430008040033
Loading...
Loading
Loading...
Loading
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.