More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 988 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim Allocation | 4393936 | 8 mins ago | IN | 0 S | 0.0026857 | ||||
Claim Allocation | 4393838 | 8 mins ago | IN | 0 S | 0.00394251 | ||||
Claim Allocation | 4389673 | 47 mins ago | IN | 0 S | 0.00404643 | ||||
Claim Allocation | 4389467 | 49 mins ago | IN | 0 S | 0.00374154 | ||||
Claim Allocation | 4389350 | 50 mins ago | IN | 0 S | 0.00394251 | ||||
Claim Allocation | 4388906 | 55 mins ago | IN | 0 S | 0.00394251 | ||||
Claim Allocation | 4388719 | 57 mins ago | IN | 0 S | 0.00394251 | ||||
Claim Allocation | 4388402 | 1 hr ago | IN | 0 S | 0.00394251 | ||||
Claim Allocation | 4388243 | 1 hr ago | IN | 0 S | 0.00394251 | ||||
Claim Allocation | 4388020 | 1 hr ago | IN | 0 S | 0.00374154 | ||||
Claim Allocation | 4386585 | 1 hr ago | IN | 0 S | 0.00350344 | ||||
Claim Allocation | 4385920 | 1 hr ago | IN | 0 S | 0.00394322 | ||||
Claim Allocation | 4385524 | 1 hr ago | IN | 0 S | 0.00394251 | ||||
Claim Allocation | 4383457 | 1 hr ago | IN | 0 S | 0.0046721 | ||||
Claim Allocation | 4383079 | 1 hr ago | IN | 0 S | 0.00394251 | ||||
Claim Allocation | 4381856 | 1 hr ago | IN | 0 S | 0.00394179 | ||||
Claim Allocation | 4381442 | 2 hrs ago | IN | 0 S | 0.00374154 | ||||
Claim Allocation | 4381385 | 2 hrs ago | IN | 0 S | 0.00394251 | ||||
Claim Allocation | 4381385 | 2 hrs ago | IN | 0 S | 0.00394251 | ||||
Claim Allocation | 4381385 | 2 hrs ago | IN | 0 S | 0.00394251 | ||||
Claim Allocation | 4381385 | 2 hrs ago | IN | 0 S | 0.00394251 | ||||
Claim Allocation | 4380893 | 2 hrs ago | IN | 0 S | 0.00412965 | ||||
Claim Allocation | 4379668 | 2 hrs ago | IN | 0 S | 0.00374154 | ||||
Claim Allocation | 4378992 | 2 hrs ago | IN | 0 S | 0.00394251 | ||||
Claim Allocation | 4378961 | 2 hrs ago | IN | 0 S | 0.00374154 |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x1D8c9FcF...73a084347 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Shadrop
Compiler Version
v0.8.28+commit.7893614a
Optimization Enabled:
Yes with 1633 runs
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.26; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; interface IERC20Burnable is IERC20 { function burn(uint256) external; } contract Shadrop is Ownable { uint256 public selfDestructTime; uint256 public totalCounter; uint256 public totalClaimed; bool public closed; IERC20Burnable public xShadow; event Claimed(address indexed user, uint256 amount); event TimerStarted(uint256, uint256); mapping(address => uint256) public userClaimable; modifier checkSelfDestruct() { require(address(xShadow) != address(0), "xShadow not initialized"); if (block.timestamp > selfDestructTime) { closed = true; xShadow.burn(xShadow.balanceOf(address(this))); } _; } constructor(address _owner) Ownable(_owner) {} function claimAllocation() external checkSelfDestruct { require(!closed, "airdrop closed"); uint256 claimable = userClaimable[msg.sender]; require(claimable > 0, "no allocation"); xShadow.transfer(msg.sender, claimable); userClaimable[msg.sender] = 0; totalClaimed += claimable; emit Claimed(msg.sender, claimable); } function setXShadow(address _xShadow) external onlyOwner { xShadow = IERC20Burnable(_xShadow); selfDestructTime = block.timestamp + 30 days; emit TimerStarted(block.timestamp, selfDestructTime); } function rescue(address _token, address _to, uint256 _amount) external onlyOwner { IERC20(_token).transfer(_to, _amount); } function populate(address[] calldata _users, uint256[] calldata _xshadowAllocation) external onlyOwner { require(_users.length == _xshadowAllocation.length, "length mismatch"); for (uint256 i; i < _users.length; ++i) { userClaimable[_users[i]] += _xshadowAllocation[i]; totalCounter += _xshadowAllocation[i]; } } function safetyNet(address x, bytes calldata _x) external onlyOwner { (bool success,) = x.call(_x); require(success); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 standard as defined in the ERC. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
{ "remappings": [ "@openzeppelin-contracts-5.1.0/=dependencies/@openzeppelin-contracts-5.1.0/", "@openzeppelin-contracts-upgradeable-5.1.0/=dependencies/@openzeppelin-contracts-upgradeable-5.1.0/", "@forge-std-1.9.4/=dependencies/forge-std-1.9.4/", "@layerzerolabs/=node_modules/@layerzerolabs/", "@layerzerolabs/lz-evm-protocol-v2/=node_modules/@layerzerolabs/lz-evm-protocol-v2/", "@openzeppelin-contracts-upgradeable/=dependencies/@openzeppelin-contracts-upgradeable-5.1.0/", "@openzeppelin-contracts/contracts/=dependencies/@openzeppelin-contracts-5.1.0/", "@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.1.0/", "erc4626-tests/=dependencies/erc4626-property-tests-1.0/", "forge-std/=dependencies/forge-std-1.9.4/src/", "permit2/=lib/permit2/", "@openzeppelin-3.4.2/=node_modules/@openzeppelin-3.4.2/", "@openzeppelin-contracts-5.1.0/=dependencies/@openzeppelin-contracts-5.1.0/", "@openzeppelin-contracts-upgradeable-5.1.0/=dependencies/@openzeppelin-contracts-upgradeable-5.1.0/", "@uniswap/=node_modules/@uniswap/", "base64-sol/=node_modules/base64-sol/", "ds-test/=node_modules/ds-test/", "erc4626-property-tests-1.0/=dependencies/erc4626-property-tests-1.0/", "eth-gas-reporter/=node_modules/eth-gas-reporter/", "forge-std-1.9.4/=dependencies/forge-std-1.9.4/src/", "hardhat/=node_modules/hardhat/", "solidity-bytes-utils/=node_modules/solidity-bytes-utils/", "solmate/=node_modules/solmate/" ], "optimizer": { "enabled": true, "runs": 1633 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "cancun", "viaIR": true, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"TimerStarted","type":"event"},{"inputs":[],"name":"claimAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"closed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"},{"internalType":"uint256[]","name":"_xshadowAllocation","type":"uint256[]"}],"name":"populate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"rescue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"x","type":"address"},{"internalType":"bytes","name":"_x","type":"bytes"}],"name":"safetyNet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"selfDestructTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_xShadow","type":"address"}],"name":"setXShadow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userClaimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"xShadow","outputs":[{"internalType":"contract IERC20Burnable","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Deployed Bytecode
0x60806040526004361015610011575f80fd5b5f5f3560e01c806320ff430b1461085b5780634256f5e714610832578063597e1fb514610810578063712f7bcb146107d8578063715018a6146107695780638da5cb5b14610744578063908b600b1461072757806397feba9d1461070a5780639e26110014610638578063adaa638f14610522578063ce88355014610465578063d2d1fb251461018a578063d54ad2a11461016c5763f2fde38b146100b4575f80fd5b34610169576020366003190112610169576001600160a01b036100d5610901565b6100dd6109b3565b16801561013d576001600160a01b038254827fffffffffffffffffffffffff00000000000000000000000000000000000000008216178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b6024827f1e4fbdf700000000000000000000000000000000000000000000000000000000815280600452fd5b80fd5b50346101695780600319360112610169576020600354604051908152f35b50346103eb575f3660031901126103eb576004546001600160a01b038160081c1615610421576001544211610327575b5060045460ff81166102e3573382526005602052604082205490811561029f5760405163a9059cbb60e01b8152336004820152602481018390529060209082906044908290879060081c6001600160a01b03165af1801561029457610267575b503382526005602052816040812055610235816003546109a6565b6003556040519081527fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a60203392a280f35b6102889060203d60201161028d575b6102808183610948565b81019061096a565b61021a565b503d610276565b6040513d85823e3d90fd5b606460405162461bcd60e51b815260206004820152600d60248201527f6e6f20616c6c6f636174696f6e000000000000000000000000000000000000006044820152fd5b606460405162461bcd60e51b815260206004820152600e60248201527f61697264726f7020636c6f7365640000000000000000000000000000000000006044820152fd5b60016001600160a01b039160ff1916178060045560081c166040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152602081602481855afa9081156103e0575f916103ef575b50813b156103eb575f916024839260405194859384927f42966c6800000000000000000000000000000000000000000000000000000000845260048401525af180156103e057156101ba576103d991505f90610948565b5f5f6101ba565b6040513d5f823e3d90fd5b5f80fd5b90506020813d602011610419575b8161040a60209383610948565b810103126103eb57515f610382565b3d91506103fd565b606460405162461bcd60e51b815260206004820152601760248201527f78536861646f77206e6f7420696e697469616c697a65640000000000000000006044820152fd5b346103eb5760203660031901126103eb5761047e610901565b6104866109b3565b7fffffffffffffffffffffff0000000000000000000000000000000000000000ff74ffffffffffffffffffffffffffffffffffffffff006004549260081b1691161760045562278d00420180421161050e576040817ff51f7437278a388702c00ddb04f3e0a5df923ea1e998d3ae4bdf278947d2e216926001558151904282526020820152a1005b634e487b7160e01b5f52601160045260245ffd5b346103eb5760403660031901126103eb5760043567ffffffffffffffff81116103eb57610553903690600401610917565b60243567ffffffffffffffff81116103eb57610573903690600401610917565b9261057c6109b3565b8383036105f4575f5b83811061058e57005b610599818685610982565b35906105a6818685610982565b35916001600160a01b0383168093036103eb576001925f5260056020526105d260405f209182546109a6565b90556105eb6105e2828887610982565b356002546109a6565b60025501610585565b606460405162461bcd60e51b815260206004820152600f60248201527f6c656e677468206d69736d6174636800000000000000000000000000000000006044820152fd5b346103eb5760403660031901126103eb57610651610901565b6024359067ffffffffffffffff82116103eb57366023830112156103eb5781600401359067ffffffffffffffff82116103eb5736602483850101116103eb5760245f8094819461069f6109b3565b80604051948593018337810182815203925af13d15610705573d67ffffffffffffffff81116106f157604051906106e0601f8201601f191660200183610948565b81525f60203d92013e5b156103eb57005b634e487b7160e01b5f52604160045260245ffd5b6106ea565b346103eb575f3660031901126103eb576020600254604051908152f35b346103eb575f3660031901126103eb576020600154604051908152f35b346103eb575f3660031901126103eb5760206001600160a01b035f5416604051908152f35b346103eb575f3660031901126103eb576107816109b3565b5f6001600160a01b0381547fffffffffffffffffffffffff000000000000000000000000000000000000000081168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b346103eb5760203660031901126103eb576001600160a01b036107f9610901565b165f526005602052602060405f2054604051908152f35b346103eb575f3660031901126103eb57602060ff600454166040519015158152f35b346103eb575f3660031901126103eb5760206001600160a01b0360045460081c16604051908152f35b346103eb5760603660031901126103eb57610874610901565b602435906001600160a01b03821682036103eb576108d66020916001600160a01b039361089f6109b3565b5f60405195868095819463a9059cbb60e01b83526044359060048401602090939291936001600160a01b0360408201951681520152565b0393165af180156103e0576108e757005b6108ff9060203d60201161028d576102808183610948565b005b600435906001600160a01b03821682036103eb57565b9181601f840112156103eb5782359167ffffffffffffffff83116103eb576020808501948460051b0101116103eb57565b90601f8019910116810190811067ffffffffffffffff8211176106f157604052565b908160209103126103eb575180151581036103eb5790565b91908110156109925760051b0190565b634e487b7160e01b5f52603260045260245ffd5b9190820180921161050e57565b6001600160a01b035f541633036109c657565b7f118cdaa7000000000000000000000000000000000000000000000000000000005f523360045260245ffdfea2646970667358221220645e872ee584f2e208a5f21dad27f2b5e43401cf1cd48d33822b60f3480158c064736f6c634300081c0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.