Source Code
Overview
ETH Balance
ETH Value
$0.01 (@ $2,930.12/ETH)Latest 25 from a total of 3,658,899 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Crack And Stack ... | 2446183 | 131 days ago | IN | 0 ETH | 0.00000081 | ||||
| Crack And Stack ... | 2445404 | 131 days ago | IN | 0 ETH | 0.00000081 | ||||
| Crack And Stack ... | 2445250 | 131 days ago | IN | 0 ETH | 0.00000081 | ||||
| Crack And Stack ... | 2444976 | 131 days ago | IN | 0 ETH | 0.00000081 | ||||
| Crack And Stack ... | 2444331 | 131 days ago | IN | 0 ETH | 0.00000081 | ||||
| Crack And Stack ... | 2443370 | 131 days ago | IN | 0 ETH | 0.00000081 | ||||
| Crack And Stack ... | 2442949 | 131 days ago | IN | 0 ETH | 0.00000081 | ||||
| Crack And Stack ... | 2442934 | 131 days ago | IN | 0 ETH | 0.00000081 | ||||
| Crack And Stack ... | 2442551 | 131 days ago | IN | 0 ETH | 0.00000081 | ||||
| Crack And Stack ... | 2442410 | 131 days ago | IN | 0 ETH | 0.0000008 | ||||
| Crack And Stack ... | 2442221 | 131 days ago | IN | 0 ETH | 0.00000081 | ||||
| Crack And Stack ... | 2441937 | 131 days ago | IN | 0 ETH | 0.00000119 | ||||
| Crack And Stack ... | 2441841 | 131 days ago | IN | 0 ETH | 0.0000008 | ||||
| Crack And Stack ... | 2441715 | 131 days ago | IN | 0 ETH | 0.00000081 | ||||
| Crack And Stack ... | 2441452 | 131 days ago | IN | 0 ETH | 0.00000081 | ||||
| Crack And Stack ... | 2441294 | 131 days ago | IN | 0 ETH | 0.00000081 | ||||
| Crack And Stack ... | 2441226 | 131 days ago | IN | 0 ETH | 0.00000354 | ||||
| Crack And Stack ... | 2441226 | 131 days ago | IN | 0 ETH | 0.00000354 | ||||
| Crack And Stack ... | 2441226 | 131 days ago | IN | 0 ETH | 0.00000354 | ||||
| Crack And Stack ... | 2441226 | 131 days ago | IN | 0 ETH | 0.00000388 | ||||
| Crack And Stack ... | 2441166 | 131 days ago | IN | 0 ETH | 0.00000081 | ||||
| Crack And Stack ... | 2441131 | 131 days ago | IN | 0 ETH | 0.00000081 | ||||
| Crack And Stack ... | 2441117 | 131 days ago | IN | 0 ETH | 0.00000081 | ||||
| Crack And Stack ... | 2441101 | 131 days ago | IN | 0 ETH | 0.00000081 | ||||
| Crack And Stack ... | 2440755 | 131 days ago | IN | 0 ETH | 0.0000008 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
CrackAndStackFreeGamesRequester
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "./AllowableV2.sol";
contract CrackAndStackFreeGamesRequester is AllowableV2, ReentrancyGuard {
mapping(address => uint32) private lastRequests;
uint256 private requestPrice;
event FreeGameRequested(address indexed account, uint32 indexed timestamp);
error InsufficientFunds();
constructor() {
requestPrice = 0 ether;
}
function setRequestPrice(uint256 _price) external onlyOwner {
requestPrice = _price;
}
function CrackAndStackFreeGames() payable external nonReentrant {
if (msg.value != requestPrice) {
revert InsufficientFunds();
}
uint32 timestamp = uint32(block.timestamp);
lastRequests[msg.sender] = timestamp;
emit FreeGameRequested(msg.sender, timestamp);
}
function getLastRequestedTimestamp(address _account) external view returns (uint32) {
return lastRequests[_account];
}
}// 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) (token/ERC1155/IERC1155.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
*/
interface IERC1155 is IERC165 {
/**
* @dev Emitted when `value` amount of tokens of type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
* transfers.
*/
event TransferBatch(
address indexed operator,
address indexed from,
address indexed to,
uint256[] ids,
uint256[] values
);
/**
* @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
* `approved`.
*/
event ApprovalForAll(address indexed account, address indexed operator, bool approved);
/**
* @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
*
* If an {URI} event was emitted for `id`, the standard
* https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
* returned by {IERC1155MetadataURI-uri}.
*/
event URI(string value, uint256 indexed id);
/**
* @dev Returns the value of tokens of token type `id` owned by `account`.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function balanceOf(address account, uint256 id) external view returns (uint256);
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
*
* Requirements:
*
* - `accounts` and `ids` must have the same length.
*/
function balanceOfBatch(
address[] calldata accounts,
uint256[] calldata ids
) external view returns (uint256[] memory);
/**
* @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
*
* Emits an {ApprovalForAll} event.
*
* Requirements:
*
* - `operator` cannot be the caller.
*/
function setApprovalForAll(address operator, bool approved) external;
/**
* @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
*
* See {setApprovalForAll}.
*/
function isApprovedForAll(address account, address operator) external view returns (bool);
/**
* @dev Transfers a `value` amount of tokens of type `id` from `from` to `to`.
*
* WARNING: This function can potentially allow a reentrancy attack when transferring tokens
* to an untrusted contract, when invoking {onERC1155Received} on the receiver.
* Ensure to follow the checks-effects-interactions pattern and consider employing
* reentrancy guards when interacting with untrusted contracts.
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
* - `from` must have a balance of tokens of type `id` of at least `value` amount.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
* acceptance magic value.
*/
function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes calldata data) external;
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
*
* WARNING: This function can potentially allow a reentrancy attack when transferring tokens
* to an untrusted contract, when invoking {onERC1155BatchReceived} on the receiver.
* Ensure to follow the checks-effects-interactions pattern and consider employing
* reentrancy guards when interacting with untrusted contracts.
*
* Emits either a {TransferSingle} or a {TransferBatch} event, depending on the length of the array arguments.
*
* Requirements:
*
* - `ids` and `values` must have the same length.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
* acceptance magic value.
*/
function safeBatchTransferFrom(
address from,
address to,
uint256[] calldata ids,
uint256[] calldata values,
bytes calldata data
) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/IERC1155Receiver.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../../utils/introspection/IERC165.sol";
/**
* @dev Interface that must be implemented by smart contracts in order to receive
* ERC-1155 token transfers.
*/
interface IERC1155Receiver is IERC165 {
/**
* @dev Handles the receipt of a single ERC1155 token type. This function is
* called at the end of a `safeTransferFrom` after the balance has been updated.
*
* NOTE: To accept the transfer, this must return
* `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
* (i.e. 0xf23a6e61, or its own function selector).
*
* @param operator The address which initiated the transfer (i.e. msg.sender)
* @param from The address which previously owned the token
* @param id The ID of the token being transferred
* @param value The amount of tokens being transferred
* @param data Additional data with no specified format
* @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
*/
function onERC1155Received(
address operator,
address from,
uint256 id,
uint256 value,
bytes calldata data
) external returns (bytes4);
/**
* @dev Handles the receipt of a multiple ERC1155 token types. This function
* is called at the end of a `safeBatchTransferFrom` after the balances have
* been updated.
*
* NOTE: To accept the transfer(s), this must return
* `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
* (i.e. 0xbc197c81, or its own function selector).
*
* @param operator The address which initiated the batch transfer (i.e. msg.sender)
* @param from The address which previously owned the token
* @param ids An array containing ids of each token being transferred (order and length must match values array)
* @param values An array containing amounts of each token being transferred (order and length must match ids array)
* @param data Additional data with no specified format
* @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
*/
function onERC1155BatchReceived(
address operator,
address from,
uint256[] calldata ids,
uint256[] calldata values,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/utils/ERC1155Holder.sol)
pragma solidity ^0.8.20;
import {IERC165, ERC165} from "../../../utils/introspection/ERC165.sol";
import {IERC1155Receiver} from "../IERC1155Receiver.sol";
/**
* @dev Simple implementation of `IERC1155Receiver` that will allow a contract to hold ERC1155 tokens.
*
* IMPORTANT: When inheriting this contract, you must include a way to use the received tokens, otherwise they will be
* stuck.
*/
abstract contract ERC1155Holder is ERC165, IERC1155Receiver {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId);
}
function onERC1155Received(
address,
address,
uint256,
uint256,
bytes memory
) public virtual override returns (bytes4) {
return this.onERC1155Received.selector;
}
function onERC1155BatchReceived(
address,
address,
uint256[] memory,
uint256[] memory,
bytes memory
) public virtual override returns (bytes4) {
return this.onERC1155BatchReceived.selector;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*
* CAUTION: See Security Considerations above.
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
/**
* @dev An operation with an ERC20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data);
if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
* a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must have been allowed to move this token by either {approve} or
* {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
* a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
* or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
* understand this adds an external call which potentially creates a reentrancy vulnerability.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the address zero.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.20;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be
* reverted.
*
* The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/utils/ERC721Holder.sol)
pragma solidity ^0.8.20;
import {IERC721Receiver} from "../IERC721Receiver.sol";
/**
* @dev Implementation of the {IERC721Receiver} interface.
*
* Accepts all token transfers.
* Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or
* {IERC721-setApprovalForAll}.
*/
abstract contract ERC721Holder is IERC721Receiver {
/**
* @dev See {IERC721Receiver-onERC721Received}.
*
* Always returns `IERC721Receiver.onERC721Received.selector`.
*/
function onERC721Received(address, address, uint256, bytes memory) public virtual returns (bytes4) {
return this.onERC721Received.selector;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error AddressInsufficientBalance(address account);
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedInnerCall();
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert AddressInsufficientBalance(address(this));
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert FailedInnerCall();
}
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {FailedInnerCall} error.
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert AddressInsufficientBalance(address(this));
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
* unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {FailedInnerCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
*/
function _revert(bytes memory returndata) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert FailedInnerCall();
}
}
}// 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;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)
pragma solidity ^0.8.20;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant NOT_ENTERED = 1;
uint256 private constant ENTERED = 2;
uint256 private _status;
/**
* @dev Unauthorized reentrant call.
*/
error ReentrancyGuardReentrantCall();
constructor() {
_status = NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be NOT_ENTERED
if (_status == ENTERED) {
revert ReentrancyGuardReentrantCall();
}
// Any calls to nonReentrant after this point will fail
_status = ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == ENTERED;
}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";
import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
contract AllowableV2 is Ownable, ERC721Holder, ERC1155Holder {
mapping(address => bool) public allowedAccounts;
event EtherWithdrawn(address indexed to, uint256 amount);
event ERC20Withdrawn(address indexed token, address indexed to, uint256 amount);
event ERC721Withdrawn(address indexed token, address indexed to, uint256 tokenId);
event ERC1155Withdrawn(address indexed token, address indexed to, uint256 id, uint256 amount);
constructor() Ownable(msg.sender) payable {
allowedAccounts[msg.sender] = true;
}
modifier onlyAllowed() {
require(allowedAccounts[msg.sender], "Not authorized to call this function.");
_;
}
function allowAndDisallowAccount(address _account, bool allow) external onlyOwner {
allowedAccounts[_account] = allow;
}
function bulkAllowAndDisallowAccount(address[] calldata _accounts, bool _allows) external onlyOwner {
for (uint256 i = 0; i < _accounts.length; i++) {
allowedAccounts[_accounts[i]] = _allows;
}
}
function withdrawEther(address payable to, uint256 amount) external onlyOwner {
Address.sendValue(to, amount);
emit EtherWithdrawn(to, amount);
}
function withdrawERC20(address to, IERC20 token, uint256 amount) external onlyOwner {
SafeERC20.safeTransfer(token, to, amount);
emit ERC20Withdrawn(address(token), to, amount);
}
function withdrawERC721(address to, IERC721 nft, uint256 tokenId) external onlyOwner {
nft.safeTransferFrom(address(this), to, tokenId);
emit ERC721Withdrawn(address(nft), to, tokenId);
}
function withdrawERC1155(address to, IERC1155 token, uint256 id, uint256 amount) external onlyOwner {
token.safeTransferFrom(address(this), to, id, amount, "");
emit ERC1155Withdrawn(address(token), to, id, amount);
}
receive() external payable {}
fallback() external payable {}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"InsufficientFunds","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC1155Withdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20Withdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721Withdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EtherWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint32","name":"timestamp","type":"uint32"}],"name":"FreeGameRequested","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"CrackAndStackFreeGames","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"allow","type":"bool"}],"name":"allowAndDisallowAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowedAccounts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_accounts","type":"address[]"},{"internalType":"bool","name":"_allows","type":"bool"}],"name":"bulkAllowAndDisallowAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getLastRequestedTimestamp","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setRequestPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"contract IERC1155","name":"token","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"contract IERC721","name":"nft","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdrawERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
608060405234801561001057600080fd5b50338061003757604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61004081610067565b503360009081526001602081905260408220805460ff1916821790556002556004556100b7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611018806100c66000396000f3fe6080604052600436106100f65760003560e01c80638da5cb5b1161008f578063bc197c8111610061578063bc197c811461029d578063dc848aa5146102c9578063e04610ed1461031a578063f23a6e611461034a578063f2fde38b1461037657005b80638da5cb5b1461022d57806397e01a4614610255578063a0edb48b1461025d578063a6369d601461027d57005b806344004cc1116100c857806344004cc1146101b8578063522f6815146101d857806367f47aac146101f8578063715018a61461021857005b806301ffc9a7146100ff578063150b7a02146101345780633fcf7ca1146101785780634025feb21461019857005b366100fd57005b005b34801561010b57600080fd5b5061011f61011a366004610ad1565b610396565b60405190151581526020015b60405180910390f35b34801561014057600080fd5b5061015f61014f366004610bc7565b630a85bd0160e11b949350505050565b6040516001600160e01b0319909116815260200161012b565b34801561018457600080fd5b506100fd610193366004610c33565b6103cd565b3480156101a457600080fd5b506100fd6101b3366004610c4c565b6103da565b3480156101c457600080fd5b506100fd6101d3366004610c4c565b61049c565b3480156101e457600080fd5b506100fd6101f3366004610c8d565b6104f4565b34801561020457600080fd5b506100fd610213366004610cc7565b61054d565b34801561022457600080fd5b506100fd6105c2565b34801561023957600080fd5b506000546040516001600160a01b03909116815260200161012b565b6100fd6105d6565b34801561026957600080fd5b506100fd610278366004610d4d565b61065b565b34801561028957600080fd5b506100fd610298366004610d93565b61072e565b3480156102a957600080fd5b5061015f6102b8366004610e4c565b63bc197c8160e01b95945050505050565b3480156102d557600080fd5b506103056102e4366004610efa565b6001600160a01b031660009081526003602052604090205463ffffffff1690565b60405163ffffffff909116815260200161012b565b34801561032657600080fd5b5061011f610335366004610efa565b60016020526000908152604090205460ff1681565b34801561035657600080fd5b5061015f610365366004610f17565b63f23a6e6160e01b95945050505050565b34801561038257600080fd5b506100fd610391366004610efa565b610761565b60006001600160e01b03198216630271189760e51b14806103c757506301ffc9a760e01b6001600160e01b03198316145b92915050565b6103d56107a4565b600455565b6103e26107a4565b604051632142170760e11b81523060048201526001600160a01b038481166024830152604482018390528316906342842e0e90606401600060405180830381600087803b15801561043257600080fd5b505af1158015610446573d6000803e3d6000fd5b50505050826001600160a01b0316826001600160a01b03167feea167c0d54572a80626f5fd092a7c1f7b5d8e309533747e7e7d77b0558d6cf18360405161048f91815260200190565b60405180910390a3505050565b6104a46107a4565b6104af8284836107d1565b826001600160a01b0316826001600160a01b03167fbfed55bdcd242e3dd0f60ddd7d1e87c67f61c34cd9527b3e6455d841b10253628360405161048f91815260200190565b6104fc6107a4565b6105068282610828565b816001600160a01b03167f06097061aeda806b5e9cb4133d9899f332ff0913956567fc0f7ea15e3d19947c8260405161054191815260200190565b60405180910390a25050565b6105556107a4565b60005b828110156105bc57816001600086868581811061057757610577610f80565b905060200201602081019061058c9190610efa565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055600101610558565b50505050565b6105ca6107a4565b6105d460006108bf565b565b6105de61090f565b60045434146106005760405163356680b760e01b815260040160405180910390fd5b33600081815260036020526040808220805463ffffffff19164263ffffffff81169182179092559151909391927f047f494aa8bc83f7b906b5d21b74c1cc2d14b09c6cadba79944c38bc9dbf549191a3506105d46001600255565b6106636107a4565b604051637921219560e11b81523060048201526001600160a01b038581166024830152604482018490526064820183905260a06084830152600060a483015284169063f242432a9060c401600060405180830381600087803b1580156106c857600080fd5b505af11580156106dc573d6000803e3d6000fd5b505060408051858152602081018590526001600160a01b038089169450871692507fd4591c66399adca9b87b95d00144abee6c7dfe740c088c94106e50bb7e9d77dc910160405180910390a350505050565b6107366107a4565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b6107696107a4565b6001600160a01b03811661079857604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6107a1816108bf565b50565b6000546001600160a01b031633146105d45760405163118cdaa760e01b815233600482015260240161078f565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610823908490610937565b505050565b8047101561084b5760405163cd78605960e01b815230600482015260240161078f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610898576040519150601f19603f3d011682016040523d82523d6000602084013e61089d565b606091505b505090508061082357604051630a12f52160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600280540361093157604051633ee5aeb560e01b815260040160405180910390fd5b60028055565b600061094c6001600160a01b0384168361099a565b9050805160001415801561097157508080602001905181019061096f9190610f96565b155b1561082357604051635274afe760e01b81526001600160a01b038416600482015260240161078f565b60606109a8838360006109af565b9392505050565b6060814710156109d45760405163cd78605960e01b815230600482015260240161078f565b600080856001600160a01b031684866040516109f09190610fb3565b60006040518083038185875af1925050503d8060008114610a2d576040519150601f19603f3d011682016040523d82523d6000602084013e610a32565b606091505b5091509150610a42868383610a4c565b9695505050505050565b606082610a6157610a5c82610aa8565b6109a8565b8151158015610a7857506001600160a01b0384163b155b15610aa157604051639996b31560e01b81526001600160a01b038516600482015260240161078f565b50806109a8565b805115610ab85780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b600060208284031215610ae357600080fd5b81356001600160e01b0319811681146109a857600080fd5b6001600160a01b03811681146107a157600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610b4f57610b4f610b10565b604052919050565b600082601f830112610b6857600080fd5b813567ffffffffffffffff811115610b8257610b82610b10565b610b95601f8201601f1916602001610b26565b818152846020838601011115610baa57600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060808587031215610bdd57600080fd5b8435610be881610afb565b93506020850135610bf881610afb565b925060408501359150606085013567ffffffffffffffff811115610c1b57600080fd5b610c2787828801610b57565b91505092959194509250565b600060208284031215610c4557600080fd5b5035919050565b600080600060608486031215610c6157600080fd5b8335610c6c81610afb565b92506020840135610c7c81610afb565b929592945050506040919091013590565b60008060408385031215610ca057600080fd5b8235610cab81610afb565b946020939093013593505050565b80151581146107a157600080fd5b600080600060408486031215610cdc57600080fd5b833567ffffffffffffffff80821115610cf457600080fd5b818601915086601f830112610d0857600080fd5b813581811115610d1757600080fd5b8760208260051b8501011115610d2c57600080fd5b60209283019550935050840135610d4281610cb9565b809150509250925092565b60008060008060808587031215610d6357600080fd5b8435610d6e81610afb565b93506020850135610d7e81610afb565b93969395505050506040820135916060013590565b60008060408385031215610da657600080fd5b8235610db181610afb565b91506020830135610dc181610cb9565b809150509250929050565b600082601f830112610ddd57600080fd5b8135602067ffffffffffffffff821115610df957610df9610b10565b8160051b610e08828201610b26565b9283528481018201928281019087851115610e2257600080fd5b83870192505b84831015610e4157823582529183019190830190610e28565b979650505050505050565b600080600080600060a08688031215610e6457600080fd5b8535610e6f81610afb565b94506020860135610e7f81610afb565b9350604086013567ffffffffffffffff80821115610e9c57600080fd5b610ea889838a01610dcc565b94506060880135915080821115610ebe57600080fd5b610eca89838a01610dcc565b93506080880135915080821115610ee057600080fd5b50610eed88828901610b57565b9150509295509295909350565b600060208284031215610f0c57600080fd5b81356109a881610afb565b600080600080600060a08688031215610f2f57600080fd5b8535610f3a81610afb565b94506020860135610f4a81610afb565b93506040860135925060608601359150608086013567ffffffffffffffff811115610f7457600080fd5b610eed88828901610b57565b634e487b7160e01b600052603260045260246000fd5b600060208284031215610fa857600080fd5b81516109a881610cb9565b6000825160005b81811015610fd45760208186018101518583015201610fba565b50600092019182525091905056fea26469706673582212202bc0dd286b7b3f56835ad509e13436332cd8803f009a00bdda9366dbaf37e9eb64736f6c63430008180033
Deployed Bytecode
0x6080604052600436106100f65760003560e01c80638da5cb5b1161008f578063bc197c8111610061578063bc197c811461029d578063dc848aa5146102c9578063e04610ed1461031a578063f23a6e611461034a578063f2fde38b1461037657005b80638da5cb5b1461022d57806397e01a4614610255578063a0edb48b1461025d578063a6369d601461027d57005b806344004cc1116100c857806344004cc1146101b8578063522f6815146101d857806367f47aac146101f8578063715018a61461021857005b806301ffc9a7146100ff578063150b7a02146101345780633fcf7ca1146101785780634025feb21461019857005b366100fd57005b005b34801561010b57600080fd5b5061011f61011a366004610ad1565b610396565b60405190151581526020015b60405180910390f35b34801561014057600080fd5b5061015f61014f366004610bc7565b630a85bd0160e11b949350505050565b6040516001600160e01b0319909116815260200161012b565b34801561018457600080fd5b506100fd610193366004610c33565b6103cd565b3480156101a457600080fd5b506100fd6101b3366004610c4c565b6103da565b3480156101c457600080fd5b506100fd6101d3366004610c4c565b61049c565b3480156101e457600080fd5b506100fd6101f3366004610c8d565b6104f4565b34801561020457600080fd5b506100fd610213366004610cc7565b61054d565b34801561022457600080fd5b506100fd6105c2565b34801561023957600080fd5b506000546040516001600160a01b03909116815260200161012b565b6100fd6105d6565b34801561026957600080fd5b506100fd610278366004610d4d565b61065b565b34801561028957600080fd5b506100fd610298366004610d93565b61072e565b3480156102a957600080fd5b5061015f6102b8366004610e4c565b63bc197c8160e01b95945050505050565b3480156102d557600080fd5b506103056102e4366004610efa565b6001600160a01b031660009081526003602052604090205463ffffffff1690565b60405163ffffffff909116815260200161012b565b34801561032657600080fd5b5061011f610335366004610efa565b60016020526000908152604090205460ff1681565b34801561035657600080fd5b5061015f610365366004610f17565b63f23a6e6160e01b95945050505050565b34801561038257600080fd5b506100fd610391366004610efa565b610761565b60006001600160e01b03198216630271189760e51b14806103c757506301ffc9a760e01b6001600160e01b03198316145b92915050565b6103d56107a4565b600455565b6103e26107a4565b604051632142170760e11b81523060048201526001600160a01b038481166024830152604482018390528316906342842e0e90606401600060405180830381600087803b15801561043257600080fd5b505af1158015610446573d6000803e3d6000fd5b50505050826001600160a01b0316826001600160a01b03167feea167c0d54572a80626f5fd092a7c1f7b5d8e309533747e7e7d77b0558d6cf18360405161048f91815260200190565b60405180910390a3505050565b6104a46107a4565b6104af8284836107d1565b826001600160a01b0316826001600160a01b03167fbfed55bdcd242e3dd0f60ddd7d1e87c67f61c34cd9527b3e6455d841b10253628360405161048f91815260200190565b6104fc6107a4565b6105068282610828565b816001600160a01b03167f06097061aeda806b5e9cb4133d9899f332ff0913956567fc0f7ea15e3d19947c8260405161054191815260200190565b60405180910390a25050565b6105556107a4565b60005b828110156105bc57816001600086868581811061057757610577610f80565b905060200201602081019061058c9190610efa565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055600101610558565b50505050565b6105ca6107a4565b6105d460006108bf565b565b6105de61090f565b60045434146106005760405163356680b760e01b815260040160405180910390fd5b33600081815260036020526040808220805463ffffffff19164263ffffffff81169182179092559151909391927f047f494aa8bc83f7b906b5d21b74c1cc2d14b09c6cadba79944c38bc9dbf549191a3506105d46001600255565b6106636107a4565b604051637921219560e11b81523060048201526001600160a01b038581166024830152604482018490526064820183905260a06084830152600060a483015284169063f242432a9060c401600060405180830381600087803b1580156106c857600080fd5b505af11580156106dc573d6000803e3d6000fd5b505060408051858152602081018590526001600160a01b038089169450871692507fd4591c66399adca9b87b95d00144abee6c7dfe740c088c94106e50bb7e9d77dc910160405180910390a350505050565b6107366107a4565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b6107696107a4565b6001600160a01b03811661079857604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6107a1816108bf565b50565b6000546001600160a01b031633146105d45760405163118cdaa760e01b815233600482015260240161078f565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610823908490610937565b505050565b8047101561084b5760405163cd78605960e01b815230600482015260240161078f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610898576040519150601f19603f3d011682016040523d82523d6000602084013e61089d565b606091505b505090508061082357604051630a12f52160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600280540361093157604051633ee5aeb560e01b815260040160405180910390fd5b60028055565b600061094c6001600160a01b0384168361099a565b9050805160001415801561097157508080602001905181019061096f9190610f96565b155b1561082357604051635274afe760e01b81526001600160a01b038416600482015260240161078f565b60606109a8838360006109af565b9392505050565b6060814710156109d45760405163cd78605960e01b815230600482015260240161078f565b600080856001600160a01b031684866040516109f09190610fb3565b60006040518083038185875af1925050503d8060008114610a2d576040519150601f19603f3d011682016040523d82523d6000602084013e610a32565b606091505b5091509150610a42868383610a4c565b9695505050505050565b606082610a6157610a5c82610aa8565b6109a8565b8151158015610a7857506001600160a01b0384163b155b15610aa157604051639996b31560e01b81526001600160a01b038516600482015260240161078f565b50806109a8565b805115610ab85780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b600060208284031215610ae357600080fd5b81356001600160e01b0319811681146109a857600080fd5b6001600160a01b03811681146107a157600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610b4f57610b4f610b10565b604052919050565b600082601f830112610b6857600080fd5b813567ffffffffffffffff811115610b8257610b82610b10565b610b95601f8201601f1916602001610b26565b818152846020838601011115610baa57600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060808587031215610bdd57600080fd5b8435610be881610afb565b93506020850135610bf881610afb565b925060408501359150606085013567ffffffffffffffff811115610c1b57600080fd5b610c2787828801610b57565b91505092959194509250565b600060208284031215610c4557600080fd5b5035919050565b600080600060608486031215610c6157600080fd5b8335610c6c81610afb565b92506020840135610c7c81610afb565b929592945050506040919091013590565b60008060408385031215610ca057600080fd5b8235610cab81610afb565b946020939093013593505050565b80151581146107a157600080fd5b600080600060408486031215610cdc57600080fd5b833567ffffffffffffffff80821115610cf457600080fd5b818601915086601f830112610d0857600080fd5b813581811115610d1757600080fd5b8760208260051b8501011115610d2c57600080fd5b60209283019550935050840135610d4281610cb9565b809150509250925092565b60008060008060808587031215610d6357600080fd5b8435610d6e81610afb565b93506020850135610d7e81610afb565b93969395505050506040820135916060013590565b60008060408385031215610da657600080fd5b8235610db181610afb565b91506020830135610dc181610cb9565b809150509250929050565b600082601f830112610ddd57600080fd5b8135602067ffffffffffffffff821115610df957610df9610b10565b8160051b610e08828201610b26565b9283528481018201928281019087851115610e2257600080fd5b83870192505b84831015610e4157823582529183019190830190610e28565b979650505050505050565b600080600080600060a08688031215610e6457600080fd5b8535610e6f81610afb565b94506020860135610e7f81610afb565b9350604086013567ffffffffffffffff80821115610e9c57600080fd5b610ea889838a01610dcc565b94506060880135915080821115610ebe57600080fd5b610eca89838a01610dcc565b93506080880135915080821115610ee057600080fd5b50610eed88828901610b57565b9150509295509295909350565b600060208284031215610f0c57600080fd5b81356109a881610afb565b600080600080600060a08688031215610f2f57600080fd5b8535610f3a81610afb565b94506020860135610f4a81610afb565b93506040860135925060608601359150608086013567ffffffffffffffff811115610f7457600080fd5b610eed88828901610b57565b634e487b7160e01b600052603260045260246000fd5b600060208284031215610fa857600080fd5b81516109a881610cb9565b6000825160005b81811015610fd45760208186018101518583015201610fba565b50600092019182525091905056fea26469706673582212202bc0dd286b7b3f56835ad509e13436332cd8803f009a00bdda9366dbaf37e9eb64736f6c63430008180033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.01
Net Worth in ETH
Token Allocations
ETH
100.00%
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| TAIKO | 100.00% | $2,930.6 | 0.00000363 | $0.010636 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.