More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 145 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unstake | 19786921 | 138 days ago | IN | 0 ETH | 0.00042751 | ||||
Unstake | 19602612 | 164 days ago | IN | 0 ETH | 0.00080201 | ||||
Unstake | 19106333 | 233 days ago | IN | 0 ETH | 0.00071301 | ||||
Unstake | 19055901 | 240 days ago | IN | 0 ETH | 0.00105521 | ||||
Unstake | 19024531 | 245 days ago | IN | 0 ETH | 0.00216455 | ||||
Unstake | 19009586 | 247 days ago | IN | 0 ETH | 0.0011798 | ||||
Unstake | 18968025 | 253 days ago | IN | 0 ETH | 0.00099192 | ||||
Unstake | 17582633 | 447 days ago | IN | 0 ETH | 0.00099133 | ||||
Unstake | 17208950 | 500 days ago | IN | 0 ETH | 0.00676971 | ||||
Unstake | 17115182 | 513 days ago | IN | 0 ETH | 0.00297808 | ||||
Unstake | 17080051 | 518 days ago | IN | 0 ETH | 0.00464162 | ||||
Stake | 17073613 | 519 days ago | IN | 0 ETH | 0.005426 | ||||
Stake | 17065784 | 520 days ago | IN | 0 ETH | 0.00367216 | ||||
Unstake | 17009467 | 528 days ago | IN | 0 ETH | 0.00155928 | ||||
Stake | 16923437 | 540 days ago | IN | 0 ETH | 0.00264529 | ||||
Unstake | 16889248 | 545 days ago | IN | 0 ETH | 0.00077379 | ||||
Unstake | 16810782 | 556 days ago | IN | 0 ETH | 0.001633 | ||||
Unstake | 16809781 | 556 days ago | IN | 0 ETH | 0.00142297 | ||||
Stake | 16797366 | 558 days ago | IN | 0 ETH | 0.0039098 | ||||
Unstake | 16727088 | 567 days ago | IN | 0 ETH | 0.00184968 | ||||
Stake | 16663878 | 576 days ago | IN | 0 ETH | 0.00475827 | ||||
Stake | 16663599 | 576 days ago | IN | 0 ETH | 0.00366347 | ||||
Stake | 16658644 | 577 days ago | IN | 0 ETH | 0.00241476 | ||||
Unstake | 16656046 | 577 days ago | IN | 0 ETH | 0.00315201 | ||||
Stake | 16653533 | 578 days ago | IN | 0 ETH | 0.00263019 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
AYORStaking
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/security/Pausable.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; contract AYORStaking is Ownable, Pausable, ReentrancyGuard, IERC721Receiver { IERC721 public immutable ayor; uint256 public totalStaked; struct Stake { uint256 tokenId; uint256 timestamp; } event AYORStaked(address owner, uint256 tokenId); event AYORUnstaked(address owner, uint256 tokenId); mapping(address => Stake) public staked; mapping(uint256 => address) public staker; constructor(IERC721 _ayor) { ayor = _ayor; } function stake(uint256 tokenId) external whenNotPaused nonReentrant { require(ayor.ownerOf(tokenId) == msg.sender, 'Not your token'); require(staked[msg.sender].timestamp == 0, 'Already staked'); staked[msg.sender] = Stake({tokenId: tokenId, timestamp: block.timestamp}); staker[tokenId] = msg.sender; totalStaked += 1; ayor.safeTransferFrom(msg.sender, address(this), tokenId); emit AYORStaked(msg.sender, tokenId); } function unstake() external nonReentrant { require(staked[msg.sender].timestamp > 0, 'No token staked'); _unstake(msg.sender); } function ayorStuck(uint256[] memory tokens) external onlyOwner nonReentrant { for (uint256 i = 0; i < tokens.length; i++) { uint256 tokenId = tokens[i]; if (staker[tokenId] != address(0)) { _unstake(staker[tokenId]); } } } function _unstake(address user) internal { Stake memory s = staked[user]; if (s.timestamp > 0) { emit AYORUnstaked(user, s.tokenId); ayor.safeTransferFrom(address(this), user, s.tokenId); totalStaked -= 1; delete staker[s.tokenId]; delete staked[user]; } } function isStaking(address user) external view returns (bool) { return staked[user].timestamp > 0; } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function onERC721Received( address, address, uint256, bytes calldata ) external pure override returns (bytes4) { return IERC721Receiver.onERC721Received.selector; } }
// 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 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @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; 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() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// 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 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @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 `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// 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 // 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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC721","name":"_ayor","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"AYORStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"AYORUnstaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ayor","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokens","type":"uint256[]"}],"name":"ayorStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"isStaking","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"staked","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"staker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a060405234801561001057600080fd5b50604051610edf380380610edf83398101604081905261002f916100aa565b6100383361005a565b6000805460ff60a01b19169055600180556001600160a01b03166080526100da565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100bc57600080fd5b81516001600160a01b03811681146100d357600080fd5b9392505050565b608051610dd561010a600039600081816101a201528181610468015281816105f001526108b50152610dd56000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c8063817b1cd211610097578063a694fc3a11610066578063a694fc3a14610248578063ea38fab01461025b578063f2fde38b14610284578063f99b5fef1461029757600080fd5b8063817b1cd2146101dc5780638456cb59146101f35780638da5cb5b146101fb57806398807d841461020c57600080fd5b80635c975abb116100d35780635c975abb146101495780636f49712b14610167578063715018a61461019557806376188fb51461019d57600080fd5b8063150b7a02146100fa5780632def6620146101375780633f4ba83a14610141575b600080fd5b610119610108366004610af5565b630a85bd0160e11b95945050505050565b6040516001600160e01b031990911681526020015b60405180910390f35b61013f6102aa565b005b61013f61033a565b600054600160a01b900460ff165b604051901515815260200161012e565b610157610175366004610b94565b6001600160a01b0316600090815260036020526040902060010154151590565b61013f61036e565b6101c47f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161012e565b6101e560025481565b60405190815260200161012e565b61013f6103a2565b6000546001600160a01b03166101c4565b61023361021a366004610b94565b6003602052600090815260409020805460019091015482565b6040805192835260208301919091520161012e565b61013f610256366004610bb8565b6103d4565b6101c4610269366004610bb8565b6004602052600090815260409020546001600160a01b031681565b61013f610292366004610b94565b610695565b61013f6102a5366004610be7565b610730565b6002600154036102d55760405162461bcd60e51b81526004016102cc90610ca5565b60405180910390fd5b60026001908155336000908152600360205260409020015461032b5760405162461bcd60e51b815260206004820152600f60248201526e139bc81d1bdad95b881cdd185ad959608a1b60448201526064016102cc565b6103343361080a565b60018055565b6000546001600160a01b031633146103645760405162461bcd60e51b81526004016102cc90610cdc565b61036c61096b565b565b6000546001600160a01b031633146103985760405162461bcd60e51b81526004016102cc90610cdc565b61036c6000610a08565b6000546001600160a01b031633146103cc5760405162461bcd60e51b81526004016102cc90610cdc565b61036c610a58565b600054600160a01b900460ff16156104215760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016102cc565b6002600154036104435760405162461bcd60e51b81526004016102cc90610ca5565b60026001556040516331a9108f60e11b81526004810182905233906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e90602401602060405180830381865afa1580156104af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d39190610d11565b6001600160a01b03161461051a5760405162461bcd60e51b815260206004820152600e60248201526d2737ba103cb7bab9103a37b5b2b760911b60448201526064016102cc565b336000908152600360205260409020600101541561056b5760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481cdd185ad95960921b60448201526064016102cc565b60408051808201825282815242602080830191825233600081815260038352858120945185559251600194850155858352600490915292812080546001600160a01b03191690931790925560028054919290916105c9908490610d44565b9091555050604051632142170760e11b8152336004820152306024820152604481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906342842e0e90606401600060405180830381600087803b15801561063c57600080fd5b505af1158015610650573d6000803e3d6000fd5b505060408051338152602081018590527fd820409be78272534893ca30820adb28ca7ba6709bf6ab5b90faa4ce996af6c5935001905060405180910390a15060018055565b6000546001600160a01b031633146106bf5760405162461bcd60e51b81526004016102cc90610cdc565b6001600160a01b0381166107245760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102cc565b61072d81610a08565b50565b6000546001600160a01b0316331461075a5760405162461bcd60e51b81526004016102cc90610cdc565b60026001540361077c5760405162461bcd60e51b81526004016102cc90610ca5565b600260015560005b81518110156108025760008282815181106107a1576107a1610d5d565b602090810291909101810151600081815260049092526040909120549091506001600160a01b0316156107ef576000818152600460205260409020546107ef906001600160a01b031661080a565b50806107fa81610d73565b915050610784565b505060018055565b6001600160a01b0381166000908152600360209081526040918290208251808401909352805483526001015490820181905215610967578051604080516001600160a01b038516815260208101929092527ff735965d1e55d90d07923ae99ddc4a56f713452a9c88bc6fdce1d9717b077716910160405180910390a18051604051632142170760e11b81523060048201526001600160a01b03848116602483015260448201929092527f0000000000000000000000000000000000000000000000000000000000000000909116906342842e0e90606401600060405180830381600087803b1580156108fb57600080fd5b505af115801561090f573d6000803e3d6000fd5b505050506001600260008282546109269190610d8c565b90915550508051600090815260046020908152604080832080546001600160a01b03191690556001600160a01b038516835260039091528120818155600101555b5050565b600054600160a01b900460ff166109bb5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016102cc565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600054600160a01b900460ff1615610aa55760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016102cc565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586109eb3390565b6001600160a01b038116811461072d57600080fd5b600080600080600060808688031215610b0d57600080fd5b8535610b1881610ae0565b94506020860135610b2881610ae0565b935060408601359250606086013567ffffffffffffffff80821115610b4c57600080fd5b818801915088601f830112610b6057600080fd5b813581811115610b6f57600080fd5b896020828501011115610b8157600080fd5b9699959850939650602001949392505050565b600060208284031215610ba657600080fd5b8135610bb181610ae0565b9392505050565b600060208284031215610bca57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215610bfa57600080fd5b823567ffffffffffffffff80821115610c1257600080fd5b818501915085601f830112610c2657600080fd5b813581811115610c3857610c38610bd1565b8060051b604051601f19603f83011681018181108582111715610c5d57610c5d610bd1565b604052918252848201925083810185019188831115610c7b57600080fd5b938501935b82851015610c9957843584529385019392850192610c80565b98975050505050505050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215610d2357600080fd5b8151610bb181610ae0565b634e487b7160e01b600052601160045260246000fd5b80820180821115610d5757610d57610d2e565b92915050565b634e487b7160e01b600052603260045260246000fd5b600060018201610d8557610d85610d2e565b5060010190565b81810381811115610d5757610d57610d2e56fea2646970667358221220554dbb4fc8ef17131ebb820665010d5d60a1f7ac74d3501cef29eb7b9cc257d064736f6c63430008120033000000000000000000000000198e6462d93940c856114c6b475de4c3da51d6da
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100f55760003560e01c8063817b1cd211610097578063a694fc3a11610066578063a694fc3a14610248578063ea38fab01461025b578063f2fde38b14610284578063f99b5fef1461029757600080fd5b8063817b1cd2146101dc5780638456cb59146101f35780638da5cb5b146101fb57806398807d841461020c57600080fd5b80635c975abb116100d35780635c975abb146101495780636f49712b14610167578063715018a61461019557806376188fb51461019d57600080fd5b8063150b7a02146100fa5780632def6620146101375780633f4ba83a14610141575b600080fd5b610119610108366004610af5565b630a85bd0160e11b95945050505050565b6040516001600160e01b031990911681526020015b60405180910390f35b61013f6102aa565b005b61013f61033a565b600054600160a01b900460ff165b604051901515815260200161012e565b610157610175366004610b94565b6001600160a01b0316600090815260036020526040902060010154151590565b61013f61036e565b6101c47f000000000000000000000000198e6462d93940c856114c6b475de4c3da51d6da81565b6040516001600160a01b03909116815260200161012e565b6101e560025481565b60405190815260200161012e565b61013f6103a2565b6000546001600160a01b03166101c4565b61023361021a366004610b94565b6003602052600090815260409020805460019091015482565b6040805192835260208301919091520161012e565b61013f610256366004610bb8565b6103d4565b6101c4610269366004610bb8565b6004602052600090815260409020546001600160a01b031681565b61013f610292366004610b94565b610695565b61013f6102a5366004610be7565b610730565b6002600154036102d55760405162461bcd60e51b81526004016102cc90610ca5565b60405180910390fd5b60026001908155336000908152600360205260409020015461032b5760405162461bcd60e51b815260206004820152600f60248201526e139bc81d1bdad95b881cdd185ad959608a1b60448201526064016102cc565b6103343361080a565b60018055565b6000546001600160a01b031633146103645760405162461bcd60e51b81526004016102cc90610cdc565b61036c61096b565b565b6000546001600160a01b031633146103985760405162461bcd60e51b81526004016102cc90610cdc565b61036c6000610a08565b6000546001600160a01b031633146103cc5760405162461bcd60e51b81526004016102cc90610cdc565b61036c610a58565b600054600160a01b900460ff16156104215760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016102cc565b6002600154036104435760405162461bcd60e51b81526004016102cc90610ca5565b60026001556040516331a9108f60e11b81526004810182905233906001600160a01b037f000000000000000000000000198e6462d93940c856114c6b475de4c3da51d6da1690636352211e90602401602060405180830381865afa1580156104af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d39190610d11565b6001600160a01b03161461051a5760405162461bcd60e51b815260206004820152600e60248201526d2737ba103cb7bab9103a37b5b2b760911b60448201526064016102cc565b336000908152600360205260409020600101541561056b5760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481cdd185ad95960921b60448201526064016102cc565b60408051808201825282815242602080830191825233600081815260038352858120945185559251600194850155858352600490915292812080546001600160a01b03191690931790925560028054919290916105c9908490610d44565b9091555050604051632142170760e11b8152336004820152306024820152604481018290527f000000000000000000000000198e6462d93940c856114c6b475de4c3da51d6da6001600160a01b0316906342842e0e90606401600060405180830381600087803b15801561063c57600080fd5b505af1158015610650573d6000803e3d6000fd5b505060408051338152602081018590527fd820409be78272534893ca30820adb28ca7ba6709bf6ab5b90faa4ce996af6c5935001905060405180910390a15060018055565b6000546001600160a01b031633146106bf5760405162461bcd60e51b81526004016102cc90610cdc565b6001600160a01b0381166107245760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102cc565b61072d81610a08565b50565b6000546001600160a01b0316331461075a5760405162461bcd60e51b81526004016102cc90610cdc565b60026001540361077c5760405162461bcd60e51b81526004016102cc90610ca5565b600260015560005b81518110156108025760008282815181106107a1576107a1610d5d565b602090810291909101810151600081815260049092526040909120549091506001600160a01b0316156107ef576000818152600460205260409020546107ef906001600160a01b031661080a565b50806107fa81610d73565b915050610784565b505060018055565b6001600160a01b0381166000908152600360209081526040918290208251808401909352805483526001015490820181905215610967578051604080516001600160a01b038516815260208101929092527ff735965d1e55d90d07923ae99ddc4a56f713452a9c88bc6fdce1d9717b077716910160405180910390a18051604051632142170760e11b81523060048201526001600160a01b03848116602483015260448201929092527f000000000000000000000000198e6462d93940c856114c6b475de4c3da51d6da909116906342842e0e90606401600060405180830381600087803b1580156108fb57600080fd5b505af115801561090f573d6000803e3d6000fd5b505050506001600260008282546109269190610d8c565b90915550508051600090815260046020908152604080832080546001600160a01b03191690556001600160a01b038516835260039091528120818155600101555b5050565b600054600160a01b900460ff166109bb5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016102cc565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600054600160a01b900460ff1615610aa55760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016102cc565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586109eb3390565b6001600160a01b038116811461072d57600080fd5b600080600080600060808688031215610b0d57600080fd5b8535610b1881610ae0565b94506020860135610b2881610ae0565b935060408601359250606086013567ffffffffffffffff80821115610b4c57600080fd5b818801915088601f830112610b6057600080fd5b813581811115610b6f57600080fd5b896020828501011115610b8157600080fd5b9699959850939650602001949392505050565b600060208284031215610ba657600080fd5b8135610bb181610ae0565b9392505050565b600060208284031215610bca57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215610bfa57600080fd5b823567ffffffffffffffff80821115610c1257600080fd5b818501915085601f830112610c2657600080fd5b813581811115610c3857610c38610bd1565b8060051b604051601f19603f83011681018181108582111715610c5d57610c5d610bd1565b604052918252848201925083810185019188831115610c7b57600080fd5b938501935b82851015610c9957843584529385019392850192610c80565b98975050505050505050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215610d2357600080fd5b8151610bb181610ae0565b634e487b7160e01b600052601160045260246000fd5b80820180821115610d5757610d57610d2e565b92915050565b634e487b7160e01b600052603260045260246000fd5b600060018201610d8557610d85610d2e565b5060010190565b81810381811115610d5757610d57610d2e56fea2646970667358221220554dbb4fc8ef17131ebb820665010d5d60a1f7ac74d3501cef29eb7b9cc257d064736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000198e6462d93940c856114c6b475de4c3da51d6da
-----Decoded View---------------
Arg [0] : _ayor (address): 0x198e6462d93940c856114C6b475De4c3Da51D6dA
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000198e6462d93940c856114c6b475de4c3da51d6da
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.