More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 201 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unstake All | 20939528 | 12 hrs ago | IN | 0 ETH | 0.00075322 | ||||
Batch Stake | 20737072 | 28 days ago | IN | 0 ETH | 0.00021655 | ||||
Unstake All | 20367340 | 80 days ago | IN | 0 ETH | 0.00063998 | ||||
Batch Stake | 20289289 | 91 days ago | IN | 0 ETH | 0.00305903 | ||||
Unstake All | 20266217 | 94 days ago | IN | 0 ETH | 0.01770773 | ||||
Batch Stake | 20138815 | 112 days ago | IN | 0 ETH | 0.0020131 | ||||
Batch Stake | 20126777 | 114 days ago | IN | 0 ETH | 0.00093699 | ||||
Batch Stake | 19988805 | 133 days ago | IN | 0 ETH | 0.00069802 | ||||
Batch Stake | 19229478 | 239 days ago | IN | 0 ETH | 0.00159091 | ||||
Batch Unstake In... | 18957810 | 277 days ago | IN | 0 ETH | 0.00248586 | ||||
Batch Stake | 18871851 | 289 days ago | IN | 0 ETH | 0.00187954 | ||||
Batch Stake | 18861136 | 291 days ago | IN | 0 ETH | 0.00521206 | ||||
Batch Stake | 18595744 | 328 days ago | IN | 0 ETH | 0.00216935 | ||||
Batch Stake | 18267137 | 374 days ago | IN | 0 ETH | 0.00065517 | ||||
Batch Stake | 18236063 | 378 days ago | IN | 0 ETH | 0.00247743 | ||||
Batch Unstake In... | 18208299 | 382 days ago | IN | 0 ETH | 0.00172946 | ||||
Batch Stake | 18202715 | 383 days ago | IN | 0 ETH | 0.00183516 | ||||
Batch Stake | 18161315 | 389 days ago | IN | 0 ETH | 0.00079191 | ||||
Batch Stake | 18160459 | 389 days ago | IN | 0 ETH | 0.00161971 | ||||
Batch Stake | 18159243 | 389 days ago | IN | 0 ETH | 0.00136504 | ||||
Unstake All | 18140315 | 392 days ago | IN | 0 ETH | 0.00322557 | ||||
Batch Unstake In... | 18133384 | 393 days ago | IN | 0 ETH | 0.00333272 | ||||
Batch Stake | 18132475 | 393 days ago | IN | 0 ETH | 0.00172831 | ||||
Batch Stake | 18132434 | 393 days ago | IN | 0 ETH | 0.00083702 | ||||
Batch Unstake In... | 18125533 | 394 days ago | IN | 0 ETH | 0.00312432 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
CompanionStakingPool
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import './HookableStakingPool.sol'; contract NoundleStakingPool is HookableStakingPool { constructor(address tokenAddress) HookableStakingPool(tokenAddress) {} } contract CompanionStakingPool is HookableStakingPool { constructor(address tokenAddress) HookableStakingPool(tokenAddress) {} } contract EvilNoundleStakingPool is HookableStakingPool { constructor(address tokenAddress) HookableStakingPool(tokenAddress) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import './StakingPool.sol'; contract HookableStakingPool is StakingPool { address public hookAddress; constructor(address tokenAddress) StakingPool(tokenAddress) {} function setHookAddress(address hookAddress_) external onlyOwner { hookAddress = hookAddress_; } function _beforeStake(uint256 tokenId, address owner) internal virtual override { if (hookAddress != address(0)) { StakingHook(hookAddress).onStake(tokenId, owner); } } function _beforeUnstake(uint256 tokenId, address owner) internal virtual override { if (hookAddress != address(0)) { StakingHook(hookAddress).onUnstake(tokenId, owner); } } } interface StakingHook { function onStake(uint256 tokenId, address owner) external; function onUnstake(uint256 tokenId, address owner) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; contract StakingPool is Ownable, IERC721Receiver, ReentrancyGuard { event Stake(address indexed owner, uint256 indexed tokenId); event Unstake(address indexed owner, uint256 indexed tokenId); IERC721 public tokenContract; mapping(address => uint16[]) private _staked; constructor(address tokenAddress) { tokenContract = IERC721(tokenAddress); } function stakedTokens(address owner) external view returns (uint256[] memory) { uint16[] memory staked = _staked[owner]; uint256 numTokens = staked.length; uint256[] memory tokenIds = new uint256[](numTokens); for (uint256 i; i < numTokens; ++i) { tokenIds[i] = staked[i]; } return tokenIds; } function stake(uint256 tokenId) external nonReentrant { tokenContract.safeTransferFrom(_msgSender(), address(this), tokenId); } function batchStake(uint256[] calldata tokenIds) external nonReentrant { uint256 numTokens = tokenIds.length; for (uint256 i; i < numTokens; ++i) { tokenContract.safeTransferFrom(_msgSender(), address(this), tokenIds[i]); } } function _stake(uint256 tokenId, address owner) internal { _beforeStake(tokenId, owner); _staked[owner].push(uint16(tokenId)); emit Stake(owner, tokenId); } function _beforeStake(uint256 tokenId, address owner) internal virtual {} function unstake(uint256 tokenId) external nonReentrant { _unstake(tokenId, _msgSender()); } function batchUnstake(uint256[] calldata tokenIds) external nonReentrant { uint256 numTokens = tokenIds.length; for (uint256 i; i < numTokens; ++i) { _unstake(tokenIds[i], _msgSender()); } } function unstakeAll() external nonReentrant { _unstakeAll(_msgSender()); } function _unstakeAll(address owner) internal { uint256 stakedCount = _staked[owner].length; for (uint256 i = stakedCount; i > 0; --i) { _unstakeIndex(i - 1, owner); } } function _unstake(uint256 tokenId, address owner) internal { uint256 stakedCount = _staked[owner].length; for (uint256 i; i < stakedCount; ++i) { if (_staked[owner][i] == tokenId) { _unstakeIndex(i, owner); break; } } } function unstakeIndex(uint256 index) external nonReentrant { _unstakeIndex(index, _msgSender()); } function batchUnstakeIndex(uint256[] memory indices) external nonReentrant { _sort(indices, _staked[_msgSender()].length); // iterate in reverse order for (uint256 i = indices.length; i > 0; --i) { _unstakeIndex(indices[i - 1], _msgSender()); } } function batchUnstakeIndexSorted(uint256[] memory indices) external nonReentrant { // iterate in reverse order uint256 lastIndex = type(uint256).max; for (uint256 i = indices.length; i > 0; --i) { uint256 index = indices[i - 1]; if (index < lastIndex) { lastIndex = index; _unstakeIndex(index, _msgSender()); } } } function _unstakeIndex(uint256 index, address owner) internal { uint16 tokenId = _staked[owner][index]; _beforeUnstake(tokenId, owner); uint256 lastIndex = _staked[owner].length - 1; if (index != lastIndex) { _staked[owner][index] = _staked[owner][lastIndex]; // swap with last item } _staked[owner].pop(); tokenContract.safeTransferFrom(address(this), owner, tokenId); emit Unstake(owner, tokenId); } function _beforeUnstake(uint256 tokenId, address owner) internal virtual {} function forceUnstake(address owner) external onlyOwner { _unstakeAll(owner); } // unique counting sort function _sort(uint256[] memory data, uint256 setSize) internal pure { uint256 length = data.length; bool[] memory set = new bool[](setSize); for (uint256 i = 0; i < length; ++i) { set[data[i]] = true; } uint256 n = 0; for (uint256 i = 0; i < setSize; ++i) { if (set[i]) { data[n] = i; if (++n >= length) break; } } } function balanceOf(address owner) public view returns (uint256) { return _staked[owner].length; } function onERC721Received( address, address from, uint256 tokenId, bytes memory data ) public virtual override returns (bytes4) { require(_msgSender() == address(tokenContract), 'Unknown token contract'); address owner = data.length > 0 ? abi.decode(data, (address)) : from; _stake(tokenId, owner); return this.onERC721Received.selector; } }
// 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 (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 v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 800 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Unstake","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"batchStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"batchUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"indices","type":"uint256[]"}],"name":"batchUnstakeIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"indices","type":"uint256[]"}],"name":"batchUnstakeIndexSorted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"forceUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"hookAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","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":"address","name":"hookAddress_","type":"address"}],"name":"setHookAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"stakedTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenContract","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstakeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"unstakeIndex","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5060405161169a38038061169a83398101604081905261002f916100b6565b808061003a33610066565b60018055600280546001600160a01b0319166001600160a01b0392909216919091179055506100e69050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100c857600080fd5b81516001600160a01b03811681146100df57600080fd5b9392505050565b6115a5806100f56000396000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c806370a08231116100b2578063a5b39cfb11610081578063c212779311610066578063c2127793146102a9578063d2acd13d146102bc578063f2fde38b146102cf57600080fd5b8063a5b39cfb14610276578063a694fc3a1461029657600080fd5b806370a0823114610213578063715018a61461024a5780638da5cb5b1461025257806392e6779b1461026357600080fd5b806332a3cf961161010957806344f26d89116100ee57806344f26d89146101da57806345863322146101ed57806355a373d61461020057600080fd5b806332a3cf96146101a757806335322f37146101d257600080fd5b806313834a8c1461013b578063150b7a021461015057806323859410146101815780632e17de7814610194575b600080fd5b61014e610149366004611254565b6102e2565b005b61016361015e36600461130f565b6103a7565b6040516001600160e01b031990911681526020015b60405180910390f35b61014e61018f3660046113d3565b61044f565b61014e6101a23660046113d3565b6104b7565b6004546101ba906001600160a01b031681565b6040516001600160a01b039091168152602001610178565b61014e61051d565b61014e6101e83660046113ec565b610583565b61014e6101fb3660046113ec565b6105e9565b6002546101ba906001600160a01b031681565b61023c6102213660046113ec565b6001600160a01b031660009081526003602052604090205490565b604051908152602001610178565b61014e610672565b6000546001600160a01b03166101ba565b61014e610271366004611254565b6106d8565b6102896102843660046113ec565b610799565b6040516101789190611410565b61014e6102a43660046113d3565b6108d3565b61014e6102b7366004611454565b6109a9565b61014e6102ca366004611454565b610abb565b61014e6102dd3660046113ec565b610b51565b6002600154036103395760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026001558051600019905b801561039e576000836103596001846114df565b81518110610369576103696114f6565b602002602001015190508281101561038d5791508161038d8133610c30565b610c30565b506103978161150c565b9050610345565b50506001805550565b6002546000906001600160a01b0316336001600160a01b03161461040d5760405162461bcd60e51b815260206004820152601660248201527f556e6b6e6f776e20746f6b656e20636f6e7472616374000000000000000000006044820152606401610330565b60008083511161041d5784610431565b828060200190518101906104319190611523565b905061043d8482610e6f565b50630a85bd0160e11b95945050505050565b6002600154036104a15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610330565b60026001556104b08133610c30565b5060018055565b6002600154036105095760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610330565b60026001556104b08133610ef5565b610ef5565b60026001540361056f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610330565b600260015561057d33610f91565b60018055565b6000546001600160a01b031633146105dd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610330565b6105e681610f91565b50565b6000546001600160a01b031633146106435760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610330565b6004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b031633146106cc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610330565b6106d66000610fdb565b565b60026001540361072a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610330565b60026001553360009081526003602052604090205461074a908290611038565b80515b801561079157610781826107626001846114df565b81518110610772576107726114f6565b60200260200101516103883390565b61078a8161150c565b905061074d565b505060018055565b6001600160a01b038116600090815260036020908152604080832080548251818502810185019093528083526060949383018282801561082057602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116107e75790505b5050505050905060008151905060008167ffffffffffffffff8111156108485761084861120d565b604051908082528060200260200182016040528015610871578160200160208202803683370190505b50905060005b828110156108ca57838181518110610891576108916114f6565b602002602001015161ffff168282815181106108af576108af6114f6565b60209081029190910101526108c381611540565b9050610877565b50949350505050565b6002600154036109255760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610330565b60026001819055546001600160a01b03166342842e0e336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101849052606401600060405180830381600087803b15801561098a57600080fd5b505af115801561099e573d6000803e3d6000fd5b505060018055505050565b6002600154036109fb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610330565b60026001558060005b81811015610ab1576002546001600160a01b03166342842e0e3330878786818110610a3157610a316114f6565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b158015610a8857600080fd5b505af1158015610a9c573d6000803e3d6000fd5b5050505080610aaa90611540565b9050610a04565b5050600180555050565b600260015403610b0d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610330565b60026001558060005b81811015610ab157610b41848483818110610b3357610b336114f6565b905060200201356105183390565b610b4a81611540565b9050610b16565b6000546001600160a01b03163314610bab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610330565b6001600160a01b038116610c275760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610330565b6105e681610fdb565b6001600160a01b0381166000908152600360205260408120805484908110610c5a57610c5a6114f6565b60009182526020909120601082040154600f9091166002026101000a900461ffff169050610c88818361114f565b6001600160a01b038216600090815260036020526040812054610cad906001906114df565b9050808414610d6a576001600160a01b0383166000908152600360205260409020805482908110610ce057610ce06114f6565b90600052602060002090601091828204019190066002029054906101000a900461ffff1660036000856001600160a01b03166001600160a01b031681526020019081526020016000208581548110610d3a57610d3a6114f6565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055505b6001600160a01b0383166000908152600360205260409020805480610d9157610d91611559565b60008281526020902060106000199290920191820401805461ffff6002600f851681026101000a8202199092169092559190925554604051632142170760e11b81523060048201526001600160a01b03868116602483015292851660448201529116906342842e0e90606401600060405180830381600087803b158015610e1757600080fd5b505af1158015610e2b573d6000803e3d6000fd5b505060405161ffff851692506001600160a01b03861691507f85082129d87b2fe11527cb1b3b7a520aeb5aa6913f88a3d8757fe40d1db02fdd90600090a350505050565b610e7982826111c5565b6001600160a01b0381166000818152600360209081526040808320805460018101825590845291832060108304018054600f9093166002026101000a61ffff818102199094169388160292909217909155518492917febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a91a35050565b6001600160a01b038116600090815260036020526040812054905b81811015610f8b576001600160a01b0383166000908152600360205260409020805485919083908110610f4557610f456114f6565b60009182526020909120601082040154600f9091166002026101000a900461ffff1603610f7b57610f768184610c30565b610f8b565b610f8481611540565b9050610f10565b50505050565b6001600160a01b038116600090815260036020526040902054805b8015610fd657610fc6610fc06001836114df565b84610c30565b610fcf8161150c565b9050610fac565b505050565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b815160008267ffffffffffffffff8111156110555761105561120d565b60405190808252806020026020018201604052801561107e578160200160208202803683370190505b50905060005b828110156110d9576001828683815181106110a1576110a16114f6565b6020026020010151815181106110b9576110b96114f6565b911515602092830291909101909101526110d281611540565b9050611084565b506000805b84811015611147578281815181106110f8576110f86114f6565b6020026020010151156111375780868381518110611118576111186114f6565b60209081029190910101528361112d83611540565b9250821015611147575b61114081611540565b90506110de565b505050505050565b6004546001600160a01b0316156111c157600480546040516307e4a08b60e21b81529182018490526001600160a01b0383811660248401521690631f92822c906044015b600060405180830381600087803b1580156111ad57600080fd5b505af1158015611147573d6000803e3d6000fd5b5050565b6004546001600160a01b0316156111c157600480546040516398c3d2a160e01b81529182018490526001600160a01b03838116602484015216906398c3d2a190604401611193565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561124c5761124c61120d565b604052919050565b6000602080838503121561126757600080fd5b823567ffffffffffffffff8082111561127f57600080fd5b818501915085601f83011261129357600080fd5b8135818111156112a5576112a561120d565b8060051b91506112b6848301611223565b81815291830184019184810190888411156112d057600080fd5b938501935b838510156112ee578435825293850193908501906112d5565b98975050505050505050565b6001600160a01b03811681146105e657600080fd5b6000806000806080858703121561132557600080fd5b8435611330816112fa565b9350602085810135611341816112fa565b935060408601359250606086013567ffffffffffffffff8082111561136557600080fd5b818801915088601f83011261137957600080fd5b81358181111561138b5761138b61120d565b61139d601f8201601f19168501611223565b915080825289848285010111156113b357600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000602082840312156113e557600080fd5b5035919050565b6000602082840312156113fe57600080fd5b8135611409816112fa565b9392505050565b6020808252825182820181905260009190848201906040850190845b818110156114485783518352928401929184019160010161142c565b50909695505050505050565b6000806020838503121561146757600080fd5b823567ffffffffffffffff8082111561147f57600080fd5b818501915085601f83011261149357600080fd5b8135818111156114a257600080fd5b8660208260051b85010111156114b757600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052601160045260246000fd5b6000828210156114f1576114f16114c9565b500390565b634e487b7160e01b600052603260045260246000fd5b60008161151b5761151b6114c9565b506000190190565b60006020828403121561153557600080fd5b8151611409816112fa565b600060018201611552576115526114c9565b5060010190565b634e487b7160e01b600052603160045260246000fdfea26469706673582212203f483e24b502a9c567f6fb4b9f317e5c44deb63ee149322b4a48192afba1a9e264736f6c634300080f0033000000000000000000000000c9edb73a88b7542d5a427354d1ba0f3d561d2a6e
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101365760003560e01c806370a08231116100b2578063a5b39cfb11610081578063c212779311610066578063c2127793146102a9578063d2acd13d146102bc578063f2fde38b146102cf57600080fd5b8063a5b39cfb14610276578063a694fc3a1461029657600080fd5b806370a0823114610213578063715018a61461024a5780638da5cb5b1461025257806392e6779b1461026357600080fd5b806332a3cf961161010957806344f26d89116100ee57806344f26d89146101da57806345863322146101ed57806355a373d61461020057600080fd5b806332a3cf96146101a757806335322f37146101d257600080fd5b806313834a8c1461013b578063150b7a021461015057806323859410146101815780632e17de7814610194575b600080fd5b61014e610149366004611254565b6102e2565b005b61016361015e36600461130f565b6103a7565b6040516001600160e01b031990911681526020015b60405180910390f35b61014e61018f3660046113d3565b61044f565b61014e6101a23660046113d3565b6104b7565b6004546101ba906001600160a01b031681565b6040516001600160a01b039091168152602001610178565b61014e61051d565b61014e6101e83660046113ec565b610583565b61014e6101fb3660046113ec565b6105e9565b6002546101ba906001600160a01b031681565b61023c6102213660046113ec565b6001600160a01b031660009081526003602052604090205490565b604051908152602001610178565b61014e610672565b6000546001600160a01b03166101ba565b61014e610271366004611254565b6106d8565b6102896102843660046113ec565b610799565b6040516101789190611410565b61014e6102a43660046113d3565b6108d3565b61014e6102b7366004611454565b6109a9565b61014e6102ca366004611454565b610abb565b61014e6102dd3660046113ec565b610b51565b6002600154036103395760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026001558051600019905b801561039e576000836103596001846114df565b81518110610369576103696114f6565b602002602001015190508281101561038d5791508161038d8133610c30565b610c30565b506103978161150c565b9050610345565b50506001805550565b6002546000906001600160a01b0316336001600160a01b03161461040d5760405162461bcd60e51b815260206004820152601660248201527f556e6b6e6f776e20746f6b656e20636f6e7472616374000000000000000000006044820152606401610330565b60008083511161041d5784610431565b828060200190518101906104319190611523565b905061043d8482610e6f565b50630a85bd0160e11b95945050505050565b6002600154036104a15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610330565b60026001556104b08133610c30565b5060018055565b6002600154036105095760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610330565b60026001556104b08133610ef5565b610ef5565b60026001540361056f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610330565b600260015561057d33610f91565b60018055565b6000546001600160a01b031633146105dd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610330565b6105e681610f91565b50565b6000546001600160a01b031633146106435760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610330565b6004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b031633146106cc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610330565b6106d66000610fdb565b565b60026001540361072a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610330565b60026001553360009081526003602052604090205461074a908290611038565b80515b801561079157610781826107626001846114df565b81518110610772576107726114f6565b60200260200101516103883390565b61078a8161150c565b905061074d565b505060018055565b6001600160a01b038116600090815260036020908152604080832080548251818502810185019093528083526060949383018282801561082057602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116107e75790505b5050505050905060008151905060008167ffffffffffffffff8111156108485761084861120d565b604051908082528060200260200182016040528015610871578160200160208202803683370190505b50905060005b828110156108ca57838181518110610891576108916114f6565b602002602001015161ffff168282815181106108af576108af6114f6565b60209081029190910101526108c381611540565b9050610877565b50949350505050565b6002600154036109255760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610330565b60026001819055546001600160a01b03166342842e0e336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101849052606401600060405180830381600087803b15801561098a57600080fd5b505af115801561099e573d6000803e3d6000fd5b505060018055505050565b6002600154036109fb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610330565b60026001558060005b81811015610ab1576002546001600160a01b03166342842e0e3330878786818110610a3157610a316114f6565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b158015610a8857600080fd5b505af1158015610a9c573d6000803e3d6000fd5b5050505080610aaa90611540565b9050610a04565b5050600180555050565b600260015403610b0d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610330565b60026001558060005b81811015610ab157610b41848483818110610b3357610b336114f6565b905060200201356105183390565b610b4a81611540565b9050610b16565b6000546001600160a01b03163314610bab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610330565b6001600160a01b038116610c275760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610330565b6105e681610fdb565b6001600160a01b0381166000908152600360205260408120805484908110610c5a57610c5a6114f6565b60009182526020909120601082040154600f9091166002026101000a900461ffff169050610c88818361114f565b6001600160a01b038216600090815260036020526040812054610cad906001906114df565b9050808414610d6a576001600160a01b0383166000908152600360205260409020805482908110610ce057610ce06114f6565b90600052602060002090601091828204019190066002029054906101000a900461ffff1660036000856001600160a01b03166001600160a01b031681526020019081526020016000208581548110610d3a57610d3a6114f6565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055505b6001600160a01b0383166000908152600360205260409020805480610d9157610d91611559565b60008281526020902060106000199290920191820401805461ffff6002600f851681026101000a8202199092169092559190925554604051632142170760e11b81523060048201526001600160a01b03868116602483015292851660448201529116906342842e0e90606401600060405180830381600087803b158015610e1757600080fd5b505af1158015610e2b573d6000803e3d6000fd5b505060405161ffff851692506001600160a01b03861691507f85082129d87b2fe11527cb1b3b7a520aeb5aa6913f88a3d8757fe40d1db02fdd90600090a350505050565b610e7982826111c5565b6001600160a01b0381166000818152600360209081526040808320805460018101825590845291832060108304018054600f9093166002026101000a61ffff818102199094169388160292909217909155518492917febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a91a35050565b6001600160a01b038116600090815260036020526040812054905b81811015610f8b576001600160a01b0383166000908152600360205260409020805485919083908110610f4557610f456114f6565b60009182526020909120601082040154600f9091166002026101000a900461ffff1603610f7b57610f768184610c30565b610f8b565b610f8481611540565b9050610f10565b50505050565b6001600160a01b038116600090815260036020526040902054805b8015610fd657610fc6610fc06001836114df565b84610c30565b610fcf8161150c565b9050610fac565b505050565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b815160008267ffffffffffffffff8111156110555761105561120d565b60405190808252806020026020018201604052801561107e578160200160208202803683370190505b50905060005b828110156110d9576001828683815181106110a1576110a16114f6565b6020026020010151815181106110b9576110b96114f6565b911515602092830291909101909101526110d281611540565b9050611084565b506000805b84811015611147578281815181106110f8576110f86114f6565b6020026020010151156111375780868381518110611118576111186114f6565b60209081029190910101528361112d83611540565b9250821015611147575b61114081611540565b90506110de565b505050505050565b6004546001600160a01b0316156111c157600480546040516307e4a08b60e21b81529182018490526001600160a01b0383811660248401521690631f92822c906044015b600060405180830381600087803b1580156111ad57600080fd5b505af1158015611147573d6000803e3d6000fd5b5050565b6004546001600160a01b0316156111c157600480546040516398c3d2a160e01b81529182018490526001600160a01b03838116602484015216906398c3d2a190604401611193565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561124c5761124c61120d565b604052919050565b6000602080838503121561126757600080fd5b823567ffffffffffffffff8082111561127f57600080fd5b818501915085601f83011261129357600080fd5b8135818111156112a5576112a561120d565b8060051b91506112b6848301611223565b81815291830184019184810190888411156112d057600080fd5b938501935b838510156112ee578435825293850193908501906112d5565b98975050505050505050565b6001600160a01b03811681146105e657600080fd5b6000806000806080858703121561132557600080fd5b8435611330816112fa565b9350602085810135611341816112fa565b935060408601359250606086013567ffffffffffffffff8082111561136557600080fd5b818801915088601f83011261137957600080fd5b81358181111561138b5761138b61120d565b61139d601f8201601f19168501611223565b915080825289848285010111156113b357600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000602082840312156113e557600080fd5b5035919050565b6000602082840312156113fe57600080fd5b8135611409816112fa565b9392505050565b6020808252825182820181905260009190848201906040850190845b818110156114485783518352928401929184019160010161142c565b50909695505050505050565b6000806020838503121561146757600080fd5b823567ffffffffffffffff8082111561147f57600080fd5b818501915085601f83011261149357600080fd5b8135818111156114a257600080fd5b8660208260051b85010111156114b757600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052601160045260246000fd5b6000828210156114f1576114f16114c9565b500390565b634e487b7160e01b600052603260045260246000fd5b60008161151b5761151b6114c9565b506000190190565b60006020828403121561153557600080fd5b8151611409816112fa565b600060018201611552576115526114c9565b5060010190565b634e487b7160e01b600052603160045260246000fdfea26469706673582212203f483e24b502a9c567f6fb4b9f317e5c44deb63ee149322b4a48192afba1a9e264736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c9edb73a88b7542d5a427354d1ba0f3d561d2a6e
-----Decoded View---------------
Arg [0] : tokenAddress (address): 0xc9Edb73A88b7542d5A427354D1BA0F3D561D2A6e
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c9edb73a88b7542d5a427354d1ba0f3d561d2a6e
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 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.