Overview
CRO Balance
0 CRO
CRO Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 386 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim All Royalt... | 12051917 | 243 days ago | IN | 0 CRO | 0.3108376 | ||||
Claim All Royalt... | 11541958 | 276 days ago | IN | 0 CRO | 0.14167713 | ||||
Claim All Royalt... | 11431046 | 284 days ago | IN | 0 CRO | 0.14182741 | ||||
Claim All Royalt... | 11310796 | 291 days ago | IN | 0 CRO | 0.14199209 | ||||
Withdraw All | 10593260 | 338 days ago | IN | 0 CRO | 0.1461984 | ||||
Claim All Royalt... | 10580536 | 339 days ago | IN | 0 CRO | 0.88711358 | ||||
Claim All Royalt... | 10576708 | 339 days ago | IN | 0 CRO | 1.33260421 | ||||
Claim All Royalt... | 10571145 | 340 days ago | IN | 0 CRO | 0.42086799 | ||||
Claim All Royalt... | 10567088 | 340 days ago | IN | 0 CRO | 0.7660176 | ||||
Claim All Royalt... | 10567087 | 340 days ago | IN | 0 CRO | 1.0174224 | ||||
Claim All Royalt... | 10566999 | 340 days ago | IN | 0 CRO | 0.92239879 | ||||
Claim All Royalt... | 10565233 | 340 days ago | IN | 0 CRO | 6.26769172 | ||||
Claim All Royalt... | 10563224 | 340 days ago | IN | 0 CRO | 1.51564871 | ||||
Claim All Royalt... | 10561877 | 340 days ago | IN | 0 CRO | 1.83494246 | ||||
Claim All Royalt... | 10561681 | 340 days ago | IN | 0 CRO | 0.31800035 | ||||
Claim All Royalt... | 10561021 | 340 days ago | IN | 0 CRO | 1.87996392 | ||||
Claim All Royalt... | 10560652 | 340 days ago | IN | 0 CRO | 0.475646 | ||||
Claim All Royalt... | 10560631 | 340 days ago | IN | 0 CRO | 0.8312642 | ||||
Claim All Royalt... | 10559835 | 340 days ago | IN | 0 CRO | 0.92246345 | ||||
Claim All Royalt... | 10559790 | 340 days ago | IN | 0 CRO | 0.4210506 | ||||
Claim All Royalt... | 10559782 | 340 days ago | IN | 0 CRO | 0.31800623 | ||||
Claim All Royalt... | 10559686 | 340 days ago | IN | 0 CRO | 0.37532103 | ||||
Claim All Royalt... | 10559669 | 340 days ago | IN | 0 CRO | 0.41446023 | ||||
Claim All Royalt... | 10559660 | 340 days ago | IN | 0 CRO | 0.31810924 | ||||
Claim All Royalt... | 10545956 | 341 days ago | IN | 0 CRO | 0.64897759 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
10593260 | 338 days ago | 10,928.03497492 CRO | ||||
10580536 | 339 days ago | 12.99537096 CRO | ||||
10576708 | 339 days ago | 67.95358107 CRO | ||||
10571145 | 340 days ago | 1.90561913 CRO | ||||
10567087 | 340 days ago | 11.18683296 CRO | ||||
10566999 | 340 days ago | 6.09798122 CRO | ||||
10565233 | 340 days ago | 32.31400282 CRO | ||||
10563224 | 340 days ago | 18.13758518 CRO | ||||
10561877 | 340 days ago | 17.7708628 CRO | ||||
10561681 | 340 days ago | 3.07817924 CRO | ||||
10561021 | 340 days ago | 6.80339462 CRO | ||||
10560652 | 340 days ago | 6.15635849 CRO | ||||
10560631 | 340 days ago | 3.90459045 CRO | ||||
10559835 | 340 days ago | 20.31425999 CRO | ||||
10559790 | 340 days ago | 0.91937765 CRO | ||||
10559782 | 340 days ago | 3.07817924 CRO | ||||
10559686 | 340 days ago | 0.73550212 CRO | ||||
10559669 | 340 days ago | 2.72701555 CRO | ||||
10559660 | 340 days ago | 3.07817924 CRO | ||||
10545956 | 341 days ago | 3.81123826 CRO | ||||
10544162 | 341 days ago | 1.8387553 CRO | ||||
10532336 | 342 days ago | 15.39089623 CRO | ||||
10525326 | 343 days ago | 135.74476019 CRO | ||||
10509418 | 344 days ago | 9.76147614 CRO | ||||
10503681 | 344 days ago | 33.85997171 CRO |
Loading...
Loading
Contract Name:
TeenDaccRoyalties
Compiler Version
v0.8.15+commit.e14f2714
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.15; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; contract TeenDaccRoyalties is Ownable { IERC721Enumerable public teenDaccAddress; uint256 public currentSupply = 7777; mapping(uint256 => uint256) private currentRoyalties; uint256 public currentRound = 0; uint256 public totalRoyalties; mapping(uint256 => mapping(uint256 => uint256)) public claimedRoyalties; struct TokenInfo { uint256 id; uint256 royalties; } // Events event RoyaltiesAdded(uint256 amount); event RoyaltiesClaimed(address indexed sender, uint256 amount); // Errors error AddingNoRewards(); // Init constructor(address _teenDaccAddress) { teenDaccAddress = IERC721Enumerable(_teenDaccAddress); } // Royalties function addRoyalties() external payable { if (msg.value == 0) revert AddingNoRewards(); totalRoyalties = totalRoyalties + msg.value; currentRoyalties[currentRound] += msg.value / currentSupply; emit RoyaltiesAdded(msg.value); } function nextSeason(uint256 newSupply) external onlyOwner { currentSupply = newSupply; currentRoyalties[currentRound] = 0; currentRound++; currentRoyalties[currentRound] += (address(this).balance) / currentSupply; } // Getters function tokensOfWallet( address _address ) public view returns (uint256[] memory) { uint256 ownerTokenCount = teenDaccAddress.balanceOf(_address); uint256[] memory tokenIds = new uint256[](ownerTokenCount); for (uint256 i; i < ownerTokenCount; i++) { tokenIds[i] = teenDaccAddress.tokenOfOwnerByIndex(_address, i); } return tokenIds; } function getRewardsToken(uint256 id) public view returns (uint256 rewards) { rewards += currentRoyalties[currentRound] - claimedRoyalties[currentRound][id]; } function getRoyalties(address sender) external view returns (uint256) { uint256 balance = 0; uint count = teenDaccAddress.balanceOf(sender); for (uint i = 0; i < count; i++) { uint256 tokenId = teenDaccAddress.tokenOfOwnerByIndex(sender, i); balance += getRewardsToken(tokenId); } return balance; } function getRoyaltiesDetails( address sender ) external view returns (TokenInfo[] memory) { uint256[] memory ids = tokensOfWallet(sender); TokenInfo[] memory tokens = new TokenInfo[](ids.length); for (uint i = 0; i < ids.length; i++) { uint256 tokenId = ids[i]; uint256 royalties = getRewardsToken(tokenId); tokens[i].id = tokenId; tokens[i].royalties = royalties; } return tokens; } function getRoundCurrentRoyalties( uint256 round ) external view returns (uint256) { return currentRoyalties[round]; } // Claim function claimAllRoyalties() external { uint256 rewards = 0; uint256[] memory ids = tokensOfWallet(_msgSender()); for (uint i = 0; i < ids.length; ) { uint256 tokenId = ids[i]; unchecked { rewards += getRewardsToken(tokenId); claimedRoyalties[currentRound][tokenId] = currentRoyalties[ currentRound ]; ++i; } } payable(_msgSender()).transfer(rewards); emit RoyaltiesClaimed(_msgSender(), rewards); } function claimRoyalties(uint256[] calldata tokensToClaim) external { uint256 rewards = 0; for (uint256 i = 0; i < tokensToClaim.length; ) { unchecked { uint256 tokenId = tokensToClaim[i]; if (teenDaccAddress.ownerOf(tokenId) == _msgSender()) { rewards += (getRewardsToken(tokenId)); claimedRoyalties[currentRound][tokenId] = currentRoyalties[ currentRound ]; } ++i; } } payable(_msgSender()).transfer(rewards); emit RoyaltiesClaimed(_msgSender(), rewards); } function withdrawAll() external onlyOwner { (bool success, ) = owner().call{value: address(this).balance}(""); require(success, "Transfer failed."); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (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`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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":"address","name":"_teenDaccAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AddingNoRewards","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RoyaltiesAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RoyaltiesClaimed","type":"event"},{"inputs":[],"name":"addRoyalties","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"claimAllRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokensToClaim","type":"uint256[]"}],"name":"claimRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimedRoyalties","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getRewardsToken","outputs":[{"internalType":"uint256","name":"rewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"round","type":"uint256"}],"name":"getRoundCurrentRoyalties","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"getRoyalties","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"getRoyaltiesDetails","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"royalties","type":"uint256"}],"internalType":"struct TeenDaccRoyalties.TokenInfo[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newSupply","type":"uint256"}],"name":"nextSeason","outputs":[],"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":[],"name":"teenDaccAddress","outputs":[{"internalType":"contract IERC721Enumerable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"tokensOfWallet","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRoyalties","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":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052611e61600255600060045534801561001b57600080fd5b50604051610fe4380380610fe483398101604081905261003a916100b8565b61004333610068565b600180546001600160a01b0319166001600160a01b03929092169190911790556100e8565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100ca57600080fd5b81516001600160a01b03811681146100e157600080fd5b9392505050565b610eed806100f76000396000f3fe6080604052600436106101095760003560e01c8063771282f6116100955780638a19c8bc116100645780638a19c8bc146102cd5780638da5cb5b146102e3578063db4f6d3114610301578063e96b305514610309578063f2fde38b1461034157600080fd5b8063771282f61461025f578063853828b61461027557806386d026081461028a57806386fd9694146102a057600080fd5b8063491bc39f116100dc578063491bc39f146101a3578063547eafd0146101db578063655e7c36146101f0578063715018a61461021d57806375935d111461023257600080fd5b806313ece8161461010e57806314556a561461013057806334f677a5146101635780633cd972ac14610183575b600080fd5b34801561011a57600080fd5b5061012e610129366004610c59565b610361565b005b34801561013c57600080fd5b5061015061014b366004610ce3565b6104b6565b6040519081526020015b60405180910390f35b34801561016f57600080fd5b5061012e61017e366004610d07565b6105e2565b34801561018f57600080fd5b5061015061019e366004610d07565b61064c565b3480156101af57600080fd5b506001546101c3906001600160a01b031681565b6040516001600160a01b03909116815260200161015a565b3480156101e757600080fd5b5061012e61068f565b3480156101fc57600080fd5b5061015061020b366004610d07565b60009081526003602052604090205490565b34801561022957600080fd5b5061012e61076d565b34801561023e57600080fd5b5061025261024d366004610ce3565b610781565b60405161015a9190610d20565b34801561026b57600080fd5b5061015060025481565b34801561028157600080fd5b5061012e6108f4565b34801561029657600080fd5b5061015060055481565b3480156102ac57600080fd5b506102c06102bb366004610ce3565b61099a565b60405161015a9190610d64565b3480156102d957600080fd5b5061015060045481565b3480156102ef57600080fd5b506000546001600160a01b03166101c3565b61012e610a9f565b34801561031557600080fd5b50610150610324366004610db3565b600660209081526000928352604080842090915290825290205481565b34801561034d57600080fd5b5061012e61035c366004610ce3565b610b39565b6000805b8281101561044d57600084848381811061038157610381610dd5565b9050602002013590506103913390565b6001546040516331a9108f60e11b8152600481018490526001600160a01b039283169290911690636352211e90602401602060405180830381865afa1580156103de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104029190610deb565b6001600160a01b031603610444576104198161064c565b6004546000908152600360209081526040808320546006835281842086855290925290912055909201915b50600101610365565b50604051339082156108fc029083906000818181858888f1935050505015801561047b573d6000803e3d6000fd5b5060405181815233907f8fbbda19f4a70036f6f585dc4160142a8fa2a20ffb9393d23274f78de4e398889060200160405180910390a2505050565b6001546040516370a0823160e01b81526001600160a01b03838116600483015260009283928392909116906370a0823190602401602060405180830381865afa158015610507573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052b9190610e08565b905060005b818110156105d957600154604051632f745c5960e01b81526001600160a01b038781166004830152602482018490526000921690632f745c5990604401602060405180830381865afa15801561058a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ae9190610e08565b90506105b98161064c565b6105c39085610e37565b93505080806105d190610e4f565b915050610530565b50909392505050565b6105ea610baf565b60028190556004805460009081526003602052604081208190558154919061061183610e4f565b90915550506002546106239047610e68565b60045460009081526003602052604081208054909190610644908490610e37565b909155505050565b60045460008181526006602090815260408083208584528252808320549383526003909152812054909161067f91610e8a565b6106899082610e37565b92915050565b60008061069b33610781565b905060005b81518110156107055760008282815181106106bd576106bd610dd5565b602002602001015190506106d08161064c565b6004546000908152600360209081526040808320546006835281842095845294909152902091909155909201916001016106a0565b50604051339083156108fc029084906000818181858888f19350505050158015610733573d6000803e3d6000fd5b5060405182815233907f8fbbda19f4a70036f6f585dc4160142a8fa2a20ffb9393d23274f78de4e398889060200160405180910390a25050565b610775610baf565b61077f6000610c09565b565b6001546040516370a0823160e01b81526001600160a01b0383811660048301526060926000929116906370a0823190602401602060405180830381865afa1580156107d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f49190610e08565b905060008167ffffffffffffffff81111561081157610811610ea1565b60405190808252806020026020018201604052801561083a578160200160208202803683370190505b50905060005b828110156108ec57600154604051632f745c5960e01b81526001600160a01b0387811660048301526024820184905290911690632f745c5990604401602060405180830381865afa158015610899573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108bd9190610e08565b8282815181106108cf576108cf610dd5565b6020908102919091010152806108e481610e4f565b915050610840565b509392505050565b6108fc610baf565b600080546040516001600160a01b039091169047908381818185875af1925050503d8060008114610949576040519150601f19603f3d011682016040523d82523d6000602084013e61094e565b606091505b50509050806109975760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064015b60405180910390fd5b50565b606060006109a783610781565b90506000815167ffffffffffffffff8111156109c5576109c5610ea1565b604051908082528060200260200182016040528015610a0a57816020015b60408051808201909152600080825260208201528152602001906001900390816109e35790505b50905060005b82518110156108ec576000838281518110610a2d57610a2d610dd5565b602002602001015190506000610a428261064c565b905081848481518110610a5757610a57610dd5565b6020026020010151600001818152505080848481518110610a7a57610a7a610dd5565b6020026020010151602001818152505050508080610a9790610e4f565b915050610a10565b34600003610ac05760405163e3a12f6760e01b815260040160405180910390fd5b34600554610ace9190610e37565b600555600254610ade9034610e68565b60045460009081526003602052604081208054909190610aff908490610e37565b90915550506040513481527f5a02b40077e797196e633f9dd9c358d21e6c6fce881c924fac5d583fc4359f979060200160405180910390a1565b610b41610baf565b6001600160a01b038116610ba65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161098e565b61099781610c09565b6000546001600160a01b0316331461077f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161098e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060208385031215610c6c57600080fd5b823567ffffffffffffffff80821115610c8457600080fd5b818501915085601f830112610c9857600080fd5b813581811115610ca757600080fd5b8660208260051b8501011115610cbc57600080fd5b60209290920196919550909350505050565b6001600160a01b038116811461099757600080fd5b600060208284031215610cf557600080fd5b8135610d0081610cce565b9392505050565b600060208284031215610d1957600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b81811015610d5857835183529284019291840191600101610d3c565b50909695505050505050565b602080825282518282018190526000919060409081850190868401855b82811015610da657815180518552860151868501529284019290850190600101610d81565b5091979650505050505050565b60008060408385031215610dc657600080fd5b50508035926020909101359150565b634e487b7160e01b600052603260045260246000fd5b600060208284031215610dfd57600080fd5b8151610d0081610cce565b600060208284031215610e1a57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610e4a57610e4a610e21565b500190565b600060018201610e6157610e61610e21565b5060010190565b600082610e8557634e487b7160e01b600052601260045260246000fd5b500490565b600082821015610e9c57610e9c610e21565b500390565b634e487b7160e01b600052604160045260246000fdfea2646970667358221220ff6954aacc84a40dd69a605ebe8ec1a1aff1a3c3481377b01a2acefcec2e9ce164736f6c634300080f003300000000000000000000000025ea0f16e3a52db95e31f8514917a0610270e7cd
Deployed Bytecode
0x6080604052600436106101095760003560e01c8063771282f6116100955780638a19c8bc116100645780638a19c8bc146102cd5780638da5cb5b146102e3578063db4f6d3114610301578063e96b305514610309578063f2fde38b1461034157600080fd5b8063771282f61461025f578063853828b61461027557806386d026081461028a57806386fd9694146102a057600080fd5b8063491bc39f116100dc578063491bc39f146101a3578063547eafd0146101db578063655e7c36146101f0578063715018a61461021d57806375935d111461023257600080fd5b806313ece8161461010e57806314556a561461013057806334f677a5146101635780633cd972ac14610183575b600080fd5b34801561011a57600080fd5b5061012e610129366004610c59565b610361565b005b34801561013c57600080fd5b5061015061014b366004610ce3565b6104b6565b6040519081526020015b60405180910390f35b34801561016f57600080fd5b5061012e61017e366004610d07565b6105e2565b34801561018f57600080fd5b5061015061019e366004610d07565b61064c565b3480156101af57600080fd5b506001546101c3906001600160a01b031681565b6040516001600160a01b03909116815260200161015a565b3480156101e757600080fd5b5061012e61068f565b3480156101fc57600080fd5b5061015061020b366004610d07565b60009081526003602052604090205490565b34801561022957600080fd5b5061012e61076d565b34801561023e57600080fd5b5061025261024d366004610ce3565b610781565b60405161015a9190610d20565b34801561026b57600080fd5b5061015060025481565b34801561028157600080fd5b5061012e6108f4565b34801561029657600080fd5b5061015060055481565b3480156102ac57600080fd5b506102c06102bb366004610ce3565b61099a565b60405161015a9190610d64565b3480156102d957600080fd5b5061015060045481565b3480156102ef57600080fd5b506000546001600160a01b03166101c3565b61012e610a9f565b34801561031557600080fd5b50610150610324366004610db3565b600660209081526000928352604080842090915290825290205481565b34801561034d57600080fd5b5061012e61035c366004610ce3565b610b39565b6000805b8281101561044d57600084848381811061038157610381610dd5565b9050602002013590506103913390565b6001546040516331a9108f60e11b8152600481018490526001600160a01b039283169290911690636352211e90602401602060405180830381865afa1580156103de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104029190610deb565b6001600160a01b031603610444576104198161064c565b6004546000908152600360209081526040808320546006835281842086855290925290912055909201915b50600101610365565b50604051339082156108fc029083906000818181858888f1935050505015801561047b573d6000803e3d6000fd5b5060405181815233907f8fbbda19f4a70036f6f585dc4160142a8fa2a20ffb9393d23274f78de4e398889060200160405180910390a2505050565b6001546040516370a0823160e01b81526001600160a01b03838116600483015260009283928392909116906370a0823190602401602060405180830381865afa158015610507573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052b9190610e08565b905060005b818110156105d957600154604051632f745c5960e01b81526001600160a01b038781166004830152602482018490526000921690632f745c5990604401602060405180830381865afa15801561058a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ae9190610e08565b90506105b98161064c565b6105c39085610e37565b93505080806105d190610e4f565b915050610530565b50909392505050565b6105ea610baf565b60028190556004805460009081526003602052604081208190558154919061061183610e4f565b90915550506002546106239047610e68565b60045460009081526003602052604081208054909190610644908490610e37565b909155505050565b60045460008181526006602090815260408083208584528252808320549383526003909152812054909161067f91610e8a565b6106899082610e37565b92915050565b60008061069b33610781565b905060005b81518110156107055760008282815181106106bd576106bd610dd5565b602002602001015190506106d08161064c565b6004546000908152600360209081526040808320546006835281842095845294909152902091909155909201916001016106a0565b50604051339083156108fc029084906000818181858888f19350505050158015610733573d6000803e3d6000fd5b5060405182815233907f8fbbda19f4a70036f6f585dc4160142a8fa2a20ffb9393d23274f78de4e398889060200160405180910390a25050565b610775610baf565b61077f6000610c09565b565b6001546040516370a0823160e01b81526001600160a01b0383811660048301526060926000929116906370a0823190602401602060405180830381865afa1580156107d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f49190610e08565b905060008167ffffffffffffffff81111561081157610811610ea1565b60405190808252806020026020018201604052801561083a578160200160208202803683370190505b50905060005b828110156108ec57600154604051632f745c5960e01b81526001600160a01b0387811660048301526024820184905290911690632f745c5990604401602060405180830381865afa158015610899573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108bd9190610e08565b8282815181106108cf576108cf610dd5565b6020908102919091010152806108e481610e4f565b915050610840565b509392505050565b6108fc610baf565b600080546040516001600160a01b039091169047908381818185875af1925050503d8060008114610949576040519150601f19603f3d011682016040523d82523d6000602084013e61094e565b606091505b50509050806109975760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064015b60405180910390fd5b50565b606060006109a783610781565b90506000815167ffffffffffffffff8111156109c5576109c5610ea1565b604051908082528060200260200182016040528015610a0a57816020015b60408051808201909152600080825260208201528152602001906001900390816109e35790505b50905060005b82518110156108ec576000838281518110610a2d57610a2d610dd5565b602002602001015190506000610a428261064c565b905081848481518110610a5757610a57610dd5565b6020026020010151600001818152505080848481518110610a7a57610a7a610dd5565b6020026020010151602001818152505050508080610a9790610e4f565b915050610a10565b34600003610ac05760405163e3a12f6760e01b815260040160405180910390fd5b34600554610ace9190610e37565b600555600254610ade9034610e68565b60045460009081526003602052604081208054909190610aff908490610e37565b90915550506040513481527f5a02b40077e797196e633f9dd9c358d21e6c6fce881c924fac5d583fc4359f979060200160405180910390a1565b610b41610baf565b6001600160a01b038116610ba65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161098e565b61099781610c09565b6000546001600160a01b0316331461077f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161098e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060208385031215610c6c57600080fd5b823567ffffffffffffffff80821115610c8457600080fd5b818501915085601f830112610c9857600080fd5b813581811115610ca757600080fd5b8660208260051b8501011115610cbc57600080fd5b60209290920196919550909350505050565b6001600160a01b038116811461099757600080fd5b600060208284031215610cf557600080fd5b8135610d0081610cce565b9392505050565b600060208284031215610d1957600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b81811015610d5857835183529284019291840191600101610d3c565b50909695505050505050565b602080825282518282018190526000919060409081850190868401855b82811015610da657815180518552860151868501529284019290850190600101610d81565b5091979650505050505050565b60008060408385031215610dc657600080fd5b50508035926020909101359150565b634e487b7160e01b600052603260045260246000fd5b600060208284031215610dfd57600080fd5b8151610d0081610cce565b600060208284031215610e1a57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610e4a57610e4a610e21565b500190565b600060018201610e6157610e61610e21565b5060010190565b600082610e8557634e487b7160e01b600052601260045260246000fd5b500490565b600082821015610e9c57610e9c610e21565b500390565b634e487b7160e01b600052604160045260246000fdfea2646970667358221220ff6954aacc84a40dd69a605ebe8ec1a1aff1a3c3481377b01a2acefcec2e9ce164736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000025ea0f16e3a52db95e31f8514917a0610270e7cd
-----Decoded View---------------
Arg [0] : _teenDaccAddress (address): 0x25EA0f16E3a52db95E31F8514917a0610270e7CD
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000025ea0f16e3a52db95e31f8514917a0610270e7cd
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
[ 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.