More Info
Private Name Tags
ContractCreator
Latest 7 from a total of 7 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Update Oat Fee | 14813130 | 994 days ago | IN | 0 ETH | 0.00078205 | ||||
Update Eth Fee | 14813130 | 994 days ago | IN | 0 ETH | 0.00078038 | ||||
Make Nifty Moves | 14772893 | 1001 days ago | IN | 0.0095 ETH | 0.05803215 | ||||
Make Nifty Moves | 14672142 | 1017 days ago | IN | 0.0003 ETH | 0.00776502 | ||||
Update Oat Fee | 14672116 | 1017 days ago | IN | 0 ETH | 0.00097455 | ||||
Update Eth Fee | 14672110 | 1017 days ago | IN | 0 ETH | 0.00184412 | ||||
Update Oat Fee | 14672101 | 1017 days ago | IN | 0 ETH | 0.00156525 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
NiftyMoves
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // Omnus Contracts (contracts/NFT-utilities/NiftyMoves.sol) // https://omnuslab.com/nifty-moves // NiftyMoves (Gas efficient batch ERC721 transfer) pragma solidity ^0.8.13; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@omnus/contracts/token/ERC20Spendable/ERC20SpendableReceiver.sol"; contract NiftyMoves is Ownable, ERC20SpendableReceiver { using SafeERC20 for IERC20; uint256 public ethFee; uint256 public oatFee; address public treasury; /** * * @dev TreasurySet: Emit that the treasury has been set. * */ event TreasurySet(address treasury); /** * * @dev EthFeeUpdated: Emit that the Eth fee has been set. * */ event EthFeeUpdated(uint256 oldFee, uint256 newFee); /** * * @dev EthFeeUpdated: Emit that the oat fee has been set. * */ event OatFeeUpdated(uint256 oldFee, uint256 newFee); /** * * @dev TokenWithdrawal: Emit that tokens or ETH have been withdrawn: * */ event EthWithdrawal(uint256 indexed withdrawal); event TokenWithdrawal(uint256 indexed withdrawal, address indexed tokenAddress); /** * * @dev NiftyMovesMade: Emit that the service has been used. * */ event NiftyMovesMade( address sender, address tokenContract, address to, uint256 totalTransfers, uint256 totalFeeEth, uint256 totalFeeOat ); /** * * @dev constructor: must recieve the address of the ERC20Spendable. * */ constructor(address _ERC20Spendable) ERC20SpendableReceiver(_ERC20Spendable) { } function totalFee(uint256 itemCount) external view returns(uint256 totalEthFee, uint256 totalOatFee) { return(ethFee * itemCount, oatFee * itemCount); } /** * * @dev makeNiftyMoves: function call for transfers with fee payment in Eth: * */ function makeNiftyMoves(address _contract, address _to, uint256[] memory _tokenIds) payable external { uint256 expectedFeeEth = _tokenIds.length * ethFee; require(msg.value == expectedFeeEth, "Incorrect fee paid"); for (uint256 i = 0; i < _tokenIds.length; i++) { IERC721(_contract).safeTransferFrom(msg.sender, _to, _tokenIds[i]); } emit NiftyMovesMade(msg.sender, _contract, _to, _tokenIds.length, expectedFeeEth, 0); } /** * * @dev receiveSpendableERC20: standard entry point for all calls relayed via the payable ERC20. * */ function receiveSpendableERC20(address _caller, uint256 _tokenPaid, uint256[] memory _arguments) override external onlyERC20Spendable(msg.sender) returns(bool, uint256[] memory) { /** * * @dev Array is in the following format: * Position 0 = contract that items are being transfered from. * Position 1 = address that the items are being transfered to. * Position 2 to n = tokenIds to be transfered. * */ address nftContract = address(uint160(_arguments[0])); address toAddress = address(uint160(_arguments[1])); uint256 expectedFeeOat = (_arguments.length - 2) * oatFee; require(_tokenPaid == expectedFeeOat, "Incorrect fee paid"); for (uint256 i = 2; i < _arguments.length; i++) { IERC721(nftContract).safeTransferFrom(_caller, toAddress, _arguments[i]); } emit NiftyMovesMade(_caller, nftContract, toAddress, _arguments.length - 2, 0, expectedFeeOat); uint256[] memory returnResults = new uint256[](1); return(true, returnResults); } /** * * @dev setTreasury: Owner can update treasury address. * */ function setTreasury(address _treasury) external onlyOwner { treasury = _treasury; emit TreasurySet(_treasury); } /** * * @dev updateEthFee: Owner can updte the Eth fee. * */ function updateEthFee(uint256 _ethFee) external onlyOwner { uint256 oldFee = ethFee; ethFee = _ethFee; emit EthFeeUpdated(oldFee, ethFee); } /** * * @dev updateOatFee: Owner can updte the oat fee. * */ function updateOatFee(uint256 _oatFee) external onlyOwner { uint256 oldFee = oatFee; oatFee = _oatFee; emit EthFeeUpdated(oldFee, oatFee); } /** * @dev owner can withdraw eth to treasury: */ function withdrawEth(uint256 _amount) external onlyOwner returns (bool) { (bool success, ) = treasury.call{value: _amount}(""); require(success, "Transfer failed."); emit EthWithdrawal(_amount); return true; } /** * * @dev Allow any token payments to be withdrawn: * */ function withdrawERC20(IERC20 _token, uint256 _amountToWithdraw) external onlyOwner { _token.safeTransfer(treasury, _amountToWithdraw); emit TokenWithdrawal(_amountToWithdraw, address(_token)); } /** * * @dev Do not receive unidentified Eth or function calls: * */ receive() external payable { require(msg.sender == owner(), "Only owner can fund contract"); } fallback() external payable { revert(); } }
// SPDX-License-Identifier: MIT // Omnus Contracts (contracts/token/ERC20Spendable/SpendableERC20Receiver.sol) // https://omnuslab.com/spendable // ERC20SpendableReceiver (Lightweight library for allowing contract interaction on token transfer). pragma solidity ^0.8.13; /** * * @dev ERC20SpendableReceiver - library contract for an ERC20 extension to allow ERC20s to * operate as 'spendable' items, i.e. a token that can trigger an action on another contract * at the same time as being transfered. Similar to ERC677 and the hooks in ERC777, but with more * of an empasis on interoperability (returned values) than ERC677 and specifically scoped interaction * rather than the general hooks of ERC777. * * This library contract allows a smart contract to operate as a receiver of ERC20Spendable tokens. * */ import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@omnus/contracts/token/ERC20Spendable/IERC20SpendableReceiver.sol"; /** * * @dev ERC20SpendableReceiver. * */ abstract contract ERC20SpendableReceiver is Context, Ownable, IERC20SpendableReceiver { address public immutable ERC20Spendable; event ERC20Received(address _caller, uint256 _tokenPaid, uint256[] _arguments); /** * * @dev must be passed the token contract for the payable ERC20: * */ constructor(address _ERC20Spendable) { ERC20Spendable = _ERC20Spendable; } /** * * @dev Only allow authorised token: * */ modifier onlyERC20Spendable(address _caller) { require (_caller == ERC20Spendable, "Call from unauthorised caller"); _; } /** * * @dev function to be called on receive. Must be overriden, including the addition of a fee check, if required: * */ function receiveSpendableERC20(address _caller, uint256 _tokenPaid, uint256[] memory _arguments) external virtual onlyERC20Spendable(msg.sender) returns(bool, uint256[] memory) { // Must be overriden } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../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; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @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, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../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`, 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 be 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: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @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); /** * @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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @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 v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @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); }
// 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; } }
// SPDX-License-Identifier: MIT // Omnus Contracts (contracts/token/ERC20Spendable/ISpendableERC20.sol) // https://omnuslab.com/spendable // IERC20SpendableReceiver - Interface definition for contracts to implement spendable ERC20 functionality pragma solidity ^0.8.13; /** * * @dev IERC20SpendableReceiver - library contract for an ERC20 extension to allow ERC20s to * operate as 'spendable' items, i.e. a token that can trigger an action on another contract * at the same time as being transfered. Similar to ERC677 and the hooks in ERC777, but with more * of an empasis on interoperability (returned values) than ERC677 and specifically scoped interaction * rather than the general hooks of ERC777. * * This library contract allows a smart contract to operate as a receiver of ERC20Spendable tokens. * * Interface Definition IERC20SpendableReceiver * */ interface IERC20SpendableReceiver{ /** * * @dev function to be called on receive. * */ function receiveSpendableERC20(address _caller, uint256 _tokenPaid, uint256[] memory arguments) external returns(bool, uint256[] memory); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_ERC20Spendable","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenPaid","type":"uint256"},{"indexed":false,"internalType":"uint256[]","name":"_arguments","type":"uint256[]"}],"name":"ERC20Received","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"EthFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"withdrawal","type":"uint256"}],"name":"EthWithdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"tokenContract","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"totalTransfers","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalFeeEth","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalFeeOat","type":"uint256"}],"name":"NiftyMovesMade","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"OatFeeUpdated","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":true,"internalType":"uint256","name":"withdrawal","type":"uint256"},{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"}],"name":"TokenWithdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"treasury","type":"address"}],"name":"TreasurySet","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"ERC20Spendable","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"makeNiftyMoves","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"oatFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_caller","type":"address"},{"internalType":"uint256","name":"_tokenPaid","type":"uint256"},{"internalType":"uint256[]","name":"_arguments","type":"uint256[]"}],"name":"receiveSpendableERC20","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"itemCount","type":"uint256"}],"name":"totalFee","outputs":[{"internalType":"uint256","name":"totalEthFee","type":"uint256"},{"internalType":"uint256","name":"totalOatFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ethFee","type":"uint256"}],"name":"updateEthFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_oatFee","type":"uint256"}],"name":"updateOatFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amountToWithdraw","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawEth","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a060405234801561001057600080fd5b506040516112a13803806112a183398101604081905261002f9161009b565b806100393361004b565b6001600160a01b0316608052506100cb565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100ad57600080fd5b81516001600160a01b03811681146100c457600080fd5b9392505050565b6080516111b46100ed60003960008181610359015261051601526111b46000f3fe6080604052600436106100ec5760003560e01c8063a1db97821161008a578063cea74edf11610059578063cea74edf146102d2578063f0f4426014610307578063f2fde38b14610327578063fb591d5a1461034757600080fd5b8063a1db978214610241578063a56c59c514610261578063c311d0491461028f578063c8b526cc146102bf57600080fd5b806361d027b3116100c657806361d027b3146101b6578063715018a6146101ee5780638a9f5292146102035780638da5cb5b1461022357600080fd5b80632b0aa1ed146101575780633251175b146101775780634cf1115d146101a057600080fd5b36610152576000546001600160a01b031633146101505760405162461bcd60e51b815260206004820152601c60248201527f4f6e6c79206f776e65722063616e2066756e6420636f6e74726163740000000060448201526064015b60405180910390fd5b005b600080fd5b34801561016357600080fd5b50610150610172366004610de2565b61037b565b34801561018357600080fd5b5061018d60025481565b6040519081526020015b60405180910390f35b3480156101ac57600080fd5b5061018d60015481565b3480156101c257600080fd5b506003546101d6906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b3480156101fa57600080fd5b506101506103eb565b34801561020f57600080fd5b5061015061021e366004610de2565b610421565b34801561022f57600080fd5b506000546001600160a01b03166101d6565b34801561024d57600080fd5b5061015061025c366004610e10565b610489565b34801561026d57600080fd5b5061028161027c366004610ee2565b610507565b604051610197929190610f3b565b34801561029b57600080fd5b506102af6102aa366004610de2565b61075b565b6040519015158152602001610197565b6101506102cd366004610f8b565b610850565b3480156102de57600080fd5b506102f26102ed366004610de2565b6109a5565b60408051928352602083019190915201610197565b34801561031357600080fd5b50610150610322366004610fd7565b6109cd565b34801561033357600080fd5b50610150610342366004610fd7565b610a4b565b34801561035357600080fd5b506101d67f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b031633146103a55760405162461bcd60e51b815260040161014790610ff4565b600180549082905560408051828152602081018490527ff50a4fc85b91d812b755154c42bc576ca633269c84e872f7f449026ffc747fef91015b60405180910390a15050565b6000546001600160a01b031633146104155760405162461bcd60e51b815260040161014790610ff4565b61041f6000610ae6565b565b6000546001600160a01b0316331461044b5760405162461bcd60e51b815260040161014790610ff4565b600280549082905560408051828152602081018490527ff50a4fc85b91d812b755154c42bc576ca633269c84e872f7f449026ffc747fef91016103df565b6000546001600160a01b031633146104b35760405162461bcd60e51b815260040161014790610ff4565b6003546104cd906001600160a01b03848116911683610b36565b6040516001600160a01b0383169082907f774aa8285c89978cc158f84424514be58e8f4cf6541a12163e2c55362bdb06c690600090a35050565b60006060336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001681146105845760405162461bcd60e51b815260206004820152601d60248201527f43616c6c2066726f6d20756e617574686f72697365642063616c6c65720000006044820152606401610147565b60008460008151811061059957610599611029565b602002602001015190506000856001815181106105b8576105b8611029565b602002602001015190506000600254600288516105d59190611055565b6105df919061106c565b90508088146106255760405162461bcd60e51b8152602060048201526012602482015271125b98dbdc9c9958dd08199959481c185a5960721b6044820152606401610147565b60025b87518110156106d957836001600160a01b03166342842e0e8b858b858151811061065457610654611029565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156106ae57600080fd5b505af11580156106c2573d6000803e3d6000fd5b5050505080806106d19061108b565b915050610628565b507f8b12f79050859eabbfdfc32544828eebdba8c4c88f829c11bc3300a27e941f9e89848460028b5161070c9190611055565b600086604051610721969594939291906110a4565b60405180910390a1604080516001808252818301909252600091602080830190803683370190505060019b909a5098505050505050505050565b600080546001600160a01b031633146107865760405162461bcd60e51b815260040161014790610ff4565b6003546040516000916001600160a01b03169084908381818185875af1925050503d80600081146107d3576040519150601f19603f3d011682016040523d82523d6000602084013e6107d8565b606091505b505090508061081c5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610147565b60405183907fa4e4b7031216965b449ed4f72176cb8d9fefc3ef42984463c7f4682481996dbf90600090a250600192915050565b60006001548251610861919061106c565b90508034146108a75760405162461bcd60e51b8152602060048201526012602482015271125b98dbdc9c9958dd08199959481c185a5960721b6044820152606401610147565b60005b825181101561095b57846001600160a01b03166342842e0e33868685815181106108d6576108d6611029565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561093057600080fd5b505af1158015610944573d6000803e3d6000fd5b5050505080806109539061108b565b9150506108aa565b507f8b12f79050859eabbfdfc32544828eebdba8c4c88f829c11bc3300a27e941f9e3385858551856000604051610997969594939291906110a4565b60405180910390a150505050565b600080826001546109b6919061106c565b836002546109c4919061106c565b91509150915091565b6000546001600160a01b031633146109f75760405162461bcd60e51b815260040161014790610ff4565b600380546001600160a01b0319166001600160a01b0383169081179091556040519081527f3c864541ef71378c6229510ed90f376565ee42d9c5e0904a984a9e863e6db44f9060200160405180910390a150565b6000546001600160a01b03163314610a755760405162461bcd60e51b815260040161014790610ff4565b6001600160a01b038116610ada5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610147565b610ae381610ae6565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610b88908490610b8d565b505050565b6000610be2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610c5f9092919063ffffffff16565b805190915015610b885780806020019051810190610c0091906110dd565b610b885760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610147565b6060610c6e8484600085610c78565b90505b9392505050565b606082471015610cd95760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610147565b6001600160a01b0385163b610d305760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610147565b600080866001600160a01b03168587604051610d4c919061112f565b60006040518083038185875af1925050503d8060008114610d89576040519150601f19603f3d011682016040523d82523d6000602084013e610d8e565b606091505b5091509150610d9e828286610da9565b979650505050505050565b60608315610db8575081610c71565b825115610dc85782518084602001fd5b8160405162461bcd60e51b8152600401610147919061114b565b600060208284031215610df457600080fd5b5035919050565b6001600160a01b0381168114610ae357600080fd5b60008060408385031215610e2357600080fd5b8235610e2e81610dfb565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112610e6357600080fd5b8135602067ffffffffffffffff80831115610e8057610e80610e3c565b8260051b604051601f19603f83011681018181108482111715610ea557610ea5610e3c565b604052938452858101830193838101925087851115610ec357600080fd5b83870191505b84821015610d9e57813583529183019190830190610ec9565b600080600060608486031215610ef757600080fd5b8335610f0281610dfb565b925060208401359150604084013567ffffffffffffffff811115610f2557600080fd5b610f3186828701610e52565b9150509250925092565b60006040820184151583526020604081850152818551808452606086019150828701935060005b81811015610f7e57845183529383019391830191600101610f62565b5090979650505050505050565b600080600060608486031215610fa057600080fd5b8335610fab81610dfb565b92506020840135610fbb81610dfb565b9150604084013567ffffffffffffffff811115610f2557600080fd5b600060208284031215610fe957600080fd5b8135610c7181610dfb565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000828210156110675761106761103f565b500390565b60008160001904831182151516156110865761108661103f565b500290565b60006001820161109d5761109d61103f565b5060010190565b6001600160a01b03968716815294861660208601529290941660408401526060830152608082019290925260a081019190915260c00190565b6000602082840312156110ef57600080fd5b81518015158114610c7157600080fd5b60005b8381101561111a578181015183820152602001611102565b83811115611129576000848401525b50505050565b600082516111418184602087016110ff565b9190910192915050565b602081526000825180602084015261116a8160408501602087016110ff565b601f01601f1916919091016040019291505056fea2646970667358221220de091da5ed75907cf248f7b27bff815c203b2da735732de01eb8f9c49932786864736f6c634300080d0033000000000000000000000000400a524420c464b9a8eba65614f297b5478ad6f3
Deployed Bytecode
0x6080604052600436106100ec5760003560e01c8063a1db97821161008a578063cea74edf11610059578063cea74edf146102d2578063f0f4426014610307578063f2fde38b14610327578063fb591d5a1461034757600080fd5b8063a1db978214610241578063a56c59c514610261578063c311d0491461028f578063c8b526cc146102bf57600080fd5b806361d027b3116100c657806361d027b3146101b6578063715018a6146101ee5780638a9f5292146102035780638da5cb5b1461022357600080fd5b80632b0aa1ed146101575780633251175b146101775780634cf1115d146101a057600080fd5b36610152576000546001600160a01b031633146101505760405162461bcd60e51b815260206004820152601c60248201527f4f6e6c79206f776e65722063616e2066756e6420636f6e74726163740000000060448201526064015b60405180910390fd5b005b600080fd5b34801561016357600080fd5b50610150610172366004610de2565b61037b565b34801561018357600080fd5b5061018d60025481565b6040519081526020015b60405180910390f35b3480156101ac57600080fd5b5061018d60015481565b3480156101c257600080fd5b506003546101d6906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b3480156101fa57600080fd5b506101506103eb565b34801561020f57600080fd5b5061015061021e366004610de2565b610421565b34801561022f57600080fd5b506000546001600160a01b03166101d6565b34801561024d57600080fd5b5061015061025c366004610e10565b610489565b34801561026d57600080fd5b5061028161027c366004610ee2565b610507565b604051610197929190610f3b565b34801561029b57600080fd5b506102af6102aa366004610de2565b61075b565b6040519015158152602001610197565b6101506102cd366004610f8b565b610850565b3480156102de57600080fd5b506102f26102ed366004610de2565b6109a5565b60408051928352602083019190915201610197565b34801561031357600080fd5b50610150610322366004610fd7565b6109cd565b34801561033357600080fd5b50610150610342366004610fd7565b610a4b565b34801561035357600080fd5b506101d67f000000000000000000000000400a524420c464b9a8eba65614f297b5478ad6f381565b6000546001600160a01b031633146103a55760405162461bcd60e51b815260040161014790610ff4565b600180549082905560408051828152602081018490527ff50a4fc85b91d812b755154c42bc576ca633269c84e872f7f449026ffc747fef91015b60405180910390a15050565b6000546001600160a01b031633146104155760405162461bcd60e51b815260040161014790610ff4565b61041f6000610ae6565b565b6000546001600160a01b0316331461044b5760405162461bcd60e51b815260040161014790610ff4565b600280549082905560408051828152602081018490527ff50a4fc85b91d812b755154c42bc576ca633269c84e872f7f449026ffc747fef91016103df565b6000546001600160a01b031633146104b35760405162461bcd60e51b815260040161014790610ff4565b6003546104cd906001600160a01b03848116911683610b36565b6040516001600160a01b0383169082907f774aa8285c89978cc158f84424514be58e8f4cf6541a12163e2c55362bdb06c690600090a35050565b60006060336001600160a01b037f000000000000000000000000400a524420c464b9a8eba65614f297b5478ad6f31681146105845760405162461bcd60e51b815260206004820152601d60248201527f43616c6c2066726f6d20756e617574686f72697365642063616c6c65720000006044820152606401610147565b60008460008151811061059957610599611029565b602002602001015190506000856001815181106105b8576105b8611029565b602002602001015190506000600254600288516105d59190611055565b6105df919061106c565b90508088146106255760405162461bcd60e51b8152602060048201526012602482015271125b98dbdc9c9958dd08199959481c185a5960721b6044820152606401610147565b60025b87518110156106d957836001600160a01b03166342842e0e8b858b858151811061065457610654611029565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156106ae57600080fd5b505af11580156106c2573d6000803e3d6000fd5b5050505080806106d19061108b565b915050610628565b507f8b12f79050859eabbfdfc32544828eebdba8c4c88f829c11bc3300a27e941f9e89848460028b5161070c9190611055565b600086604051610721969594939291906110a4565b60405180910390a1604080516001808252818301909252600091602080830190803683370190505060019b909a5098505050505050505050565b600080546001600160a01b031633146107865760405162461bcd60e51b815260040161014790610ff4565b6003546040516000916001600160a01b03169084908381818185875af1925050503d80600081146107d3576040519150601f19603f3d011682016040523d82523d6000602084013e6107d8565b606091505b505090508061081c5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610147565b60405183907fa4e4b7031216965b449ed4f72176cb8d9fefc3ef42984463c7f4682481996dbf90600090a250600192915050565b60006001548251610861919061106c565b90508034146108a75760405162461bcd60e51b8152602060048201526012602482015271125b98dbdc9c9958dd08199959481c185a5960721b6044820152606401610147565b60005b825181101561095b57846001600160a01b03166342842e0e33868685815181106108d6576108d6611029565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561093057600080fd5b505af1158015610944573d6000803e3d6000fd5b5050505080806109539061108b565b9150506108aa565b507f8b12f79050859eabbfdfc32544828eebdba8c4c88f829c11bc3300a27e941f9e3385858551856000604051610997969594939291906110a4565b60405180910390a150505050565b600080826001546109b6919061106c565b836002546109c4919061106c565b91509150915091565b6000546001600160a01b031633146109f75760405162461bcd60e51b815260040161014790610ff4565b600380546001600160a01b0319166001600160a01b0383169081179091556040519081527f3c864541ef71378c6229510ed90f376565ee42d9c5e0904a984a9e863e6db44f9060200160405180910390a150565b6000546001600160a01b03163314610a755760405162461bcd60e51b815260040161014790610ff4565b6001600160a01b038116610ada5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610147565b610ae381610ae6565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610b88908490610b8d565b505050565b6000610be2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610c5f9092919063ffffffff16565b805190915015610b885780806020019051810190610c0091906110dd565b610b885760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610147565b6060610c6e8484600085610c78565b90505b9392505050565b606082471015610cd95760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610147565b6001600160a01b0385163b610d305760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610147565b600080866001600160a01b03168587604051610d4c919061112f565b60006040518083038185875af1925050503d8060008114610d89576040519150601f19603f3d011682016040523d82523d6000602084013e610d8e565b606091505b5091509150610d9e828286610da9565b979650505050505050565b60608315610db8575081610c71565b825115610dc85782518084602001fd5b8160405162461bcd60e51b8152600401610147919061114b565b600060208284031215610df457600080fd5b5035919050565b6001600160a01b0381168114610ae357600080fd5b60008060408385031215610e2357600080fd5b8235610e2e81610dfb565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112610e6357600080fd5b8135602067ffffffffffffffff80831115610e8057610e80610e3c565b8260051b604051601f19603f83011681018181108482111715610ea557610ea5610e3c565b604052938452858101830193838101925087851115610ec357600080fd5b83870191505b84821015610d9e57813583529183019190830190610ec9565b600080600060608486031215610ef757600080fd5b8335610f0281610dfb565b925060208401359150604084013567ffffffffffffffff811115610f2557600080fd5b610f3186828701610e52565b9150509250925092565b60006040820184151583526020604081850152818551808452606086019150828701935060005b81811015610f7e57845183529383019391830191600101610f62565b5090979650505050505050565b600080600060608486031215610fa057600080fd5b8335610fab81610dfb565b92506020840135610fbb81610dfb565b9150604084013567ffffffffffffffff811115610f2557600080fd5b600060208284031215610fe957600080fd5b8135610c7181610dfb565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000828210156110675761106761103f565b500390565b60008160001904831182151516156110865761108661103f565b500290565b60006001820161109d5761109d61103f565b5060010190565b6001600160a01b03968716815294861660208601529290941660408401526060830152608082019290925260a081019190915260c00190565b6000602082840312156110ef57600080fd5b81518015158114610c7157600080fd5b60005b8381101561111a578181015183820152602001611102565b83811115611129576000848401525b50505050565b600082516111418184602087016110ff565b9190910192915050565b602081526000825180602084015261116a8160408501602087016110ff565b601f01601f1916919091016040019291505056fea2646970667358221220de091da5ed75907cf248f7b27bff815c203b2da735732de01eb8f9c49932786864736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000400a524420c464b9a8eba65614f297b5478ad6f3
-----Decoded View---------------
Arg [0] : _ERC20Spendable (address): 0x400A524420c464b9A8EBa65614F297B5478aD6F3
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000400a524420c464b9a8eba65614f297b5478ad6f3
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $2,614.84 | 0.0098 | $25.63 |
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.