CRO Price: $0.08 (+2.34%)

Contract

0xA6ef5f3b2F7DdF8794f73F1eE52bd277462631d7

Overview

CRO Balance

Cronos Chain LogoCronos Chain LogoCronos Chain Logo0 CRO

CRO Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim All Royalt...120519172024-01-12 19:22:17243 days ago1705087337IN
0xA6ef5f3b...7462631d7
0 CRO0.310837610,100
Claim All Royalt...115419582023-12-10 14:51:14276 days ago1702219874IN
0xA6ef5f3b...7462631d7
0 CRO0.141677134,603.49417122
Claim All Royalt...114310462023-12-03 9:48:32284 days ago1701596912IN
0xA6ef5f3b...7462631d7
0 CRO0.141827414,608.377273
Claim All Royalt...113107962023-11-25 14:25:49291 days ago1700922349IN
0xA6ef5f3b...7462631d7
0 CRO0.141992094,613.72822227
Withdraw All105932602023-10-09 20:28:54338 days ago1696883334IN
0xA6ef5f3b...7462631d7
0 CRO0.14619844,800
Claim All Royalt...105805362023-10-09 0:26:35339 days ago1696811195IN
0xA6ef5f3b...7462631d7
0 CRO0.887113584,646.30088356
Claim All Royalt...105767082023-10-08 18:27:12339 days ago1696789632IN
0xA6ef5f3b...7462631d7
0 CRO1.332604214,646.47440973
Claim All Royalt...105711452023-10-08 9:44:21340 days ago1696758261IN
0xA6ef5f3b...7462631d7
0 CRO0.420867994,646.726845
Claim All Royalt...105670882023-10-08 3:23:22340 days ago1696735402IN
0xA6ef5f3b...7462631d7
0 CRO0.76601764,800
Claim All Royalt...105670872023-10-08 3:23:16340 days ago1696735396IN
0xA6ef5f3b...7462631d7
0 CRO1.01742244,800
Claim All Royalt...105669992023-10-08 3:15:01340 days ago1696734901IN
0xA6ef5f3b...7462631d7
0 CRO0.922398794,646.91552143
Claim All Royalt...105652332023-10-08 0:29:07340 days ago1696724947IN
0xA6ef5f3b...7462631d7
0 CRO6.267691724,646.9960767
Claim All Royalt...105632242023-10-07 21:20:42340 days ago1696713642IN
0xA6ef5f3b...7462631d7
0 CRO1.515648714,648.58751949
Claim All Royalt...105618772023-10-07 19:14:15340 days ago1696706055IN
0xA6ef5f3b...7462631d7
0 CRO1.834942464,648.64858741
Claim All Royalt...105616812023-10-07 18:55:55340 days ago1696704955IN
0xA6ef5f3b...7462631d7
0 CRO0.318000354,647.15767905
Claim All Royalt...105610212023-10-07 17:54:00340 days ago1696701240IN
0xA6ef5f3b...7462631d7
0 CRO1.879963924,647.18746296
Claim All Royalt...105606522023-10-07 17:19:22340 days ago1696699162IN
0xA6ef5f3b...7462631d7
0 CRO0.4756464,647.20429234
Claim All Royalt...105606312023-10-07 17:17:23340 days ago1696699043IN
0xA6ef5f3b...7462631d7
0 CRO0.83126424,647.20529923
Claim All Royalt...105598352023-10-07 16:02:41340 days ago1696694561IN
0xA6ef5f3b...7462631d7
0 CRO0.922463454,647.241271
Claim All Royalt...105597902023-10-07 15:58:26340 days ago1696694306IN
0xA6ef5f3b...7462631d7
0 CRO0.42105064,648.74308828
Claim All Royalt...105597822023-10-07 15:57:42340 days ago1696694262IN
0xA6ef5f3b...7462631d7
0 CRO0.318006234,647.24367546
Claim All Royalt...105596862023-10-07 15:48:41340 days ago1696693721IN
0xA6ef5f3b...7462631d7
0 CRO0.375321034,647.24792012
Claim All Royalt...105596692023-10-07 15:47:08340 days ago1696693628IN
0xA6ef5f3b...7462631d7
0 CRO0.414460234,647.24873707
Claim All Royalt...105596602023-10-07 15:46:17340 days ago1696693577IN
0xA6ef5f3b...7462631d7
0 CRO0.318109244,648.74895177
Claim All Royalt...105459562023-10-06 18:20:10341 days ago1696616410IN
0xA6ef5f3b...7462631d7
0 CRO0.648977594,647.87114353
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
105932602023-10-09 20:28:54338 days ago1696883334
0xA6ef5f3b...7462631d7
10,928.03497492 CRO
105805362023-10-09 0:26:35339 days ago1696811195
0xA6ef5f3b...7462631d7
12.99537096 CRO
105767082023-10-08 18:27:12339 days ago1696789632
0xA6ef5f3b...7462631d7
67.95358107 CRO
105711452023-10-08 9:44:21340 days ago1696758261
0xA6ef5f3b...7462631d7
1.90561913 CRO
105670872023-10-08 3:23:16340 days ago1696735396
0xA6ef5f3b...7462631d7
11.18683296 CRO
105669992023-10-08 3:15:01340 days ago1696734901
0xA6ef5f3b...7462631d7
6.09798122 CRO
105652332023-10-08 0:29:07340 days ago1696724947
0xA6ef5f3b...7462631d7
32.31400282 CRO
105632242023-10-07 21:20:42340 days ago1696713642
0xA6ef5f3b...7462631d7
18.13758518 CRO
105618772023-10-07 19:14:15340 days ago1696706055
0xA6ef5f3b...7462631d7
17.7708628 CRO
105616812023-10-07 18:55:55340 days ago1696704955
0xA6ef5f3b...7462631d7
3.07817924 CRO
105610212023-10-07 17:54:00340 days ago1696701240
0xA6ef5f3b...7462631d7
6.80339462 CRO
105606522023-10-07 17:19:22340 days ago1696699162
0xA6ef5f3b...7462631d7
6.15635849 CRO
105606312023-10-07 17:17:23340 days ago1696699043
0xA6ef5f3b...7462631d7
3.90459045 CRO
105598352023-10-07 16:02:41340 days ago1696694561
0xA6ef5f3b...7462631d7
20.31425999 CRO
105597902023-10-07 15:58:26340 days ago1696694306
0xA6ef5f3b...7462631d7
0.91937765 CRO
105597822023-10-07 15:57:42340 days ago1696694262
0xA6ef5f3b...7462631d7
3.07817924 CRO
105596862023-10-07 15:48:41340 days ago1696693721
0xA6ef5f3b...7462631d7
0.73550212 CRO
105596692023-10-07 15:47:08340 days ago1696693628
0xA6ef5f3b...7462631d7
2.72701555 CRO
105596602023-10-07 15:46:17340 days ago1696693577
0xA6ef5f3b...7462631d7
3.07817924 CRO
105459562023-10-06 18:20:10341 days ago1696616410
0xA6ef5f3b...7462631d7
3.81123826 CRO
105441622023-10-06 15:31:36341 days ago1696606296
0xA6ef5f3b...7462631d7
1.8387553 CRO
105323362023-10-05 21:01:16342 days ago1696539676
0xA6ef5f3b...7462631d7
15.39089623 CRO
105253262023-10-05 10:03:03343 days ago1696500183
0xA6ef5f3b...7462631d7
135.74476019 CRO
105094182023-10-04 9:10:04344 days ago1696410604
0xA6ef5f3b...7462631d7
9.76147614 CRO
105036812023-10-04 0:11:24344 days ago1696378284
0xA6ef5f3b...7462631d7
33.85997171 CRO
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TeenDaccRoyalties

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : TeenDaccRoyalties.sol
// 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.");
    }
}

File 2 of 6 : Ownable.sol
// 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);
    }
}

File 3 of 6 : IERC721Enumerable.sol
// 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);
}

File 4 of 6 : IERC721.sol
// 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);
}

File 5 of 6 : Context.sol
// 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;
    }
}

File 6 of 6 : IERC165.sol
// 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);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"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"}]

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


Block Transaction Gas Used Reward
view all blocks validated

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.