Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
15,796.412592592592592573 RLX
Holders
9
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
167.152627314814814814 RLXValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AtevadaToken
Compiler Version
v0.8.1+commit.df193b15
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/token/ERC20/ERC20.sol'; import '@openzeppelin/contracts/utils/math/SafeMath.sol'; import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; import './ERC721A.sol'; import './AtevadaTokenAccessControl.sol'; // // .#? // BBBB // GGGGGG ~ // # GGGGGGG! ~ // BB~ & PPPPPP! ~ // &GG :GGGGGG PPPP! ~ // P&PPPPPPPPPPPP &5555 // P&PPPPP&& PPP G555555 // 5&&&&&5~ 555 P &5555! // 555 5 &YYYY!! // Y&YYYYYYYY P YYYYY~ Y // YYYYYYY YY &YYY Y // YYYY ~ Y YYYY!Y // Y YYYY Y Y YYYYYYY ~ // YYYYYY Y YYYY! ~ // Y&YYYYY ~ Y!Y // ^ ~ // Atevada Team interface IATVD { function balanceOR(address _user) external view returns(uint256); } contract AtevadaToken is ERC20, AtevadaTokenAccessControl{ using SafeMath for uint256; uint256 constant public BASE_RATE = 1 ether; uint256 constant public INITIAL_ISSUANCE = 10 ether; // Saturday March 13 2032 6:00:00 GMT+0000 uint256 constant public END = 1962770400; mapping(address => uint256) public rewards; mapping(address => uint256) public lastUpdate; IATVD public atevadaContract; event RewardPaid(address indexed user, uint256 reward); constructor(address _atevada ) ERC20('Relics', 'RLX'){ atevadaContract = IATVD(_atevada); _mint(msg.sender, 100 ether); } // For events function devMint(address _to, uint256 amount) requireContractOwner external { _mint(_to, amount); } function authMint(address _to, uint256 amount) requireIsCallerAuthorized external { _mint(_to, amount); } function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } // called when minting many NFTs function updateRewardOnMint(address _user, uint256 _amount) requireIsOperational requireIsCallerAuthorized external { // require(msg.sender == address(atevadaContract), "Can't call this"); uint256 time = min(block.timestamp, END); uint256 timerUser = lastUpdate[_user]; if (timerUser > 0) rewards[_user] = rewards[_user].add(atevadaContract.balanceOR(_user).mul(BASE_RATE.mul((time.sub(timerUser)))).div(86400) .add(_amount.mul(INITIAL_ISSUANCE))); else rewards[_user] = rewards[_user].add(_amount.mul(INITIAL_ISSUANCE)); lastUpdate[_user] = time; } // called on transfers function updateReward(address _from, address _to) requireIsOperational requireIsCallerAuthorized external { uint256 time = min(block.timestamp, END); uint256 timerFrom = lastUpdate[_from]; if (timerFrom > 0) rewards[_from] += atevadaContract.balanceOR(_from).mul(BASE_RATE.mul((time.sub(timerFrom)))).div(86400); if (timerFrom != END) lastUpdate[_from] = time; if (_to != address(0)) { uint256 timerTo = lastUpdate[_to]; if (timerTo > 0) rewards[_to] += atevadaContract.balanceOR(_to).mul(BASE_RATE.mul((time.sub(timerTo)))).div(86400); if (timerTo != END) lastUpdate[_to] = time; } } function getReward(address _to) requireIsOperational requireIsCallerAuthorized external { uint256 reward = rewards[_to]; if (reward > 0) { rewards[_to] = 0; _mint(_to, reward); emit RewardPaid(_to, reward); } } function burn(address _from, uint256 _amount) requireIsOperational requireIsCallerAuthorized external { _burn(_from, _amount); } function getTotalClaimable(address _user) external view returns(uint256) { uint256 time = min(block.timestamp, END); uint256 pending = atevadaContract.balanceOR(_user).mul(BASE_RATE.mul((time.sub(lastUpdate[_user])))).div(86400); return rewards[_user] + pending; } function setAtevadaContract(address _atevada) requireContractOwner external { atevadaContract = IATVD(_atevada); } } contract Atevada is ERC721A, ReentrancyGuard, Ownable { mapping(address => uint256) public balanceOR; AtevadaToken public atevadaToken; string public ATEVADA_PROVENANCE = ""; uint256 public startingIndexBlock; uint256 public startingIndex; uint256 public immutable maxPerAddressDuringMint; uint256 public constant AMOUNT_FOR_DEVS = 15; // 5 for the team and 10 for events and marketing uint256 public constant FREE_MINT_SUPPLY = 56; // For DawnBreakers uint256 public constant TOTAL_RESERVED = AMOUNT_FOR_DEVS + FREE_MINT_SUPPLY; uint256 public freeMintCount; mapping(address => uint256) public whitelistedClaim; mapping(address => bool ) public freeMintClaimed; bytes32 public WhiteListRoot = 0x71885696576cd9a50c7835cfff10873ee62b2ab8421795dde31ce0a9efe525b7; bytes32 public FreeMintRoot = 0x905372df4a5ca5ee678ab422a5873ca3049f484e040d7b34fa1c2d2af0bdac07; bytes32 public DiscountRoot = 0x076bf24fc8f002f11bc0cfe61c07c6c4e3c985b2da8b665214816caeb7d25174; bool public isPause = false; bool public isPublicSale = false; bool public isWhiteListSale = true; bool public isDevMint = false; constructor( uint256 maxBatchSize_, uint256 collectionSize_ ) ERC721A("AtevadaRelicOfLoka", "ATVDRoL", maxBatchSize_, collectionSize_) { maxPerAddressDuringMint = maxBatchSize_; } modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract"); _; } modifier requireIsOperational() { require(!isPause, "Contract is currently not operational"); _; } modifier requireIsPublicSale() { require(isPublicSale, "Public Sale is not operational"); _; } modifier requireIsWhiteListSale() { require(isWhiteListSale, "WhiteList Sale is not operational"); _; } function setPauseStatus(bool _status) external onlyOwner { isPause = _status; } function setPublicSale(bool _status) external onlyOwner { isPublicSale = _status; } function setWhiteListSale(bool _status) external onlyOwner { isWhiteListSale = _status; } // MerkleProof Fail-safe function setWhiteListRoot(bytes32 _newRoot) external onlyOwner { WhiteListRoot = _newRoot; } function setFreeMintRoot(bytes32 _newRoot) external onlyOwner { FreeMintRoot = _newRoot; } function setDiscountRoot(bytes32 _newRoot) external onlyOwner { DiscountRoot = _newRoot; } function whitelistSaleMint(uint256 _quantity, bytes32[] calldata _merkleProof, bytes32[] calldata _discountMerkleProof) callerIsUser requireIsWhiteListSale requireIsOperational external payable { require(whitelistedClaim[msg.sender] == 0, "Error: user has minted"); require(_quantity > 0, "Minimum mint amount is 1"); require(_quantity == 1 || _quantity == 3 || _quantity == 5, "Can only mint using the provided options"); require(totalSupply() + _quantity <= collectionSize - TOTAL_RESERVED, "Purchase would reached max supply"); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_merkleProof, WhiteListRoot, leaf), "Invalid proof."); uint256 price; if(MerkleProof.verify(_discountMerkleProof, DiscountRoot, leaf)){ if(_quantity == 1){ price = 0.027 ether; }else if(_quantity == 3){ price = 0.065 ether; }else if(_quantity == 5){ price = 0.1 ether; } require(msg.value >= price, "insufficient funds"); _safeMint(msg.sender, _quantity); refundIfOver(price); }else { if(_quantity == 1){ price = 0.03 ether; }else if(_quantity == 3){ price = 0.08 ether; }else if(_quantity == 5){ price = 0.12 ether; } require(msg.value >= price, "insufficient funds"); _safeMint(msg.sender, _quantity); refundIfOver(price); } whitelistedClaim[msg.sender] = 1; balanceOR[msg.sender] = balanceOR[msg.sender] + _quantity; atevadaToken.updateRewardOnMint(msg.sender, _quantity); // If we haven't set the starting index and this is either 1) the last saleable token or 2) the first token to be sold after // the end of pre-sale, set the starting index block if (startingIndexBlock == 0 && (totalSupply() == collectionSize)) { startingIndexBlock = block.number; } } function publicSaleMint(uint256 _quantity, bytes32[] calldata _discountMerkleProof) callerIsUser requireIsPublicSale requireIsOperational external payable { require(_quantity > 0, "Minimum mint amount is 1"); require(_quantity == 1 || _quantity == 3 || _quantity == 5, "Can only mint using the provided options"); require(totalSupply() + _quantity <= collectionSize - TOTAL_RESERVED, "Purchase would reached max supply"); uint256 price; bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); if(MerkleProof.verify(_discountMerkleProof, DiscountRoot, leaf)){ if(_quantity == 1){ price = 0.037 ether; }else if(_quantity == 3){ price = 0.075 ether; }else if(_quantity == 5){ price = 0.11 ether; } require(msg.value >= price, "insufficient funds"); _safeMint(msg.sender, _quantity); refundIfOver(price); }else { if(_quantity == 1){ price = 0.04 ether; }else if(_quantity == 3){ price = 0.09 ether; }else if(_quantity == 5){ price = 0.13 ether; } require(msg.value >= price, "insufficient funds"); _safeMint(msg.sender, _quantity); refundIfOver(price); } balanceOR[msg.sender] = balanceOR[msg.sender] + _quantity; atevadaToken.updateRewardOnMint(msg.sender, _quantity); // If we haven't set the starting index and this is either 1) the last saleable token or 2) the first token to be sold after // the end of pre-sale, set the starting index block if (startingIndexBlock == 0 && (totalSupply() == collectionSize)) { startingIndexBlock = block.number; } } // For Dawn Breakers function freeMint(bytes32[] calldata _merkleProof) callerIsUser requireIsOperational external { require(!freeMintClaimed[msg.sender], "Address has already claimed."); require(totalSupply() + 1 <= collectionSize, "Purchase would reached max supply"); require(freeMintCount + 1 <= FREE_MINT_SUPPLY, "Purchase exceed allocated Free mint supply"); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_merkleProof, FreeMintRoot, leaf), "Invalid proof."); freeMintClaimed[msg.sender] = true; freeMintCount++; _safeMint(msg.sender, 1); balanceOR[msg.sender] = balanceOR[msg.sender] + 1; atevadaToken.updateRewardOnMint(msg.sender, 1); // If we haven't set the starting index and this is either 1) the last saleable token or 2) the first token to be sold after // the end of pre-sale, set the starting index block if (startingIndexBlock == 0 && (totalSupply() == collectionSize)) { startingIndexBlock = block.number; } } // For Devs, Events & Marketing function devMint() external onlyOwner { require(isDevMint == false, "Dev Has already minted!"); require(totalSupply() + AMOUNT_FOR_DEVS <= collectionSize, "Dev Mint would reached max supply"); isDevMint = true; _safeMint(msg.sender, AMOUNT_FOR_DEVS); balanceOR[msg.sender] = balanceOR[msg.sender] + AMOUNT_FOR_DEVS; atevadaToken.updateRewardOnMint(msg.sender, AMOUNT_FOR_DEVS); // If we haven't set the starting index and this is either 1) the last saleable token or 2) the first token to be sold after // the end of pre-sale, set the starting index block if (startingIndexBlock == 0 && (totalSupply() == collectionSize)) { startingIndexBlock = block.number; } } function refundIfOver(uint256 price) private { require(msg.value >= price, "Need to send more ETH."); if (msg.value > price) { payable(msg.sender).transfer(msg.value - price); } } function setYieldToken(address _atevadaYield) external onlyOwner { atevadaToken = AtevadaToken(_atevadaYield); } function getReward() external { atevadaToken.updateReward(msg.sender, address(0)); atevadaToken.getReward(msg.sender); } function transferFrom(address from, address to, uint256 tokenId) public override { atevadaToken.updateReward(from, to); balanceOR[from]--; balanceOR[to]++; ERC721A.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public override { atevadaToken.updateReward(from, to); balanceOR[from]--; balanceOR[to]++; ERC721A.safeTransferFrom(from, to, tokenId, _data); } // ProvenanceHash functions and startingIndex function setProvenanceHash(string memory provenanceHash) external onlyOwner { ATEVADA_PROVENANCE = provenanceHash; } function setStartingIndex() public { require(startingIndex == 0, "Starting index is already set"); require(startingIndexBlock != 0, "Starting index block must be set"); startingIndex = uint(blockhash(startingIndexBlock)) % collectionSize; // Just a sanity case in the worst case if this function is called late (EVM only stores last 256 block hashes) if (block.number - startingIndexBlock > 255) { startingIndex = uint(blockhash(block.number - 1)) % collectionSize; } // Prevent default sequence if (startingIndex == 0) { startingIndex += 1; } } function emergencySetStartingIndexBlock() public onlyOwner { require(startingIndex == 0, "Starting index is already set"); startingIndexBlock = block.number; } // metadata URI string private _baseTokenURI; function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function setBaseURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } function withdraw() external onlyOwner nonReentrant { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Transfer failed."); } function setOwnersExplicit(uint256 quantity) external onlyOwner nonReentrant { _setOwnersExplicit(quantity); } function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } function getOwnershipData(uint256 tokenId) external view returns (TokenOwnership memory) { return ownershipOf(tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128. * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable collectionSize; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. * `collectionSize_` refers to how many tokens are in the collection. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_, uint256 collectionSize_ ) { require( collectionSize_ > 0, "ERC721A: collection must have a nonzero supply" ); require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; collectionSize = collectionSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - there must be `quantity` tokens remaining unminted in the total collection. * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > collectionSize - 1) { endIndex = collectionSize - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract AtevadaTokenAccessControl { mapping(address => uint256) private authorizedContracts; bool private operational = true; address public contractOwner; constructor(){ contractOwner = msg.sender; } modifier requireIsOperational() { require(operational, "Contract is currently not operational"); _; } modifier requireContractOwner() { require(msg.sender == contractOwner, "Caller is not contract owner"); _; } modifier requireIsCallerAuthorized() { require(authorizedContracts[msg.sender] == 1, "Caller is not an authorized contract"); _; } function setContractOwner(address _newContractOwner) public requireContractOwner { require(_newContractOwner != address(0)); contractOwner = _newContractOwner; } function isOperational() public view returns(bool) { return operational; } function setOperatingStatus (bool mode) external requireContractOwner { operational = mode; } function authorizeCaller( address contractAddress) external requireContractOwner { authorizedContracts[contractAddress] = 1; } function isAuthorized(address contractAddress) external view returns(bool) { return(authorizedContracts[contractAddress] == 1); } function deauthorizeCaller( address contractAddress) external requireContractOwner { delete authorizedContracts[contractAddress]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// 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/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// 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 (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// 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 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 (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/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, _allowances[owner][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = _allowances[owner][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Spend `amount` form the allowance of `owner` toward `spender`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// 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 (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); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_atevada","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BASE_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"END","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIAL_ISSUANCE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"atevadaContract","outputs":[{"internalType":"contract IATVD","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"authMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"authorizeCaller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"deauthorizeCaller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getTotalClaimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"isAuthorized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOperational","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastUpdate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_atevada","type":"address"}],"name":"setAtevadaContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newContractOwner","type":"address"}],"name":"setContractOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"mode","type":"bool"}],"name":"setOperatingStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"updateReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"updateRewardOnMint","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526006805460ff191660011790553480156200001e57600080fd5b5060405162001b7638038062001b7683398101604081905262000041916200028d565b6040518060400160405280600681526020016552656c69637360d01b815250604051806040016040528060038152602001620a498b60eb1b815250816003908051906020019062000094929190620001e7565b508051620000aa906004906020840190620001e7565b505060068054610100600160a81b03191633610100810291909117909155600980546001600160a01b0319166001600160a01b038516179055620000f9915068056bc75e2d6310000062000100565b506200035f565b6001600160a01b038216620001325760405162461bcd60e51b81526004016200012990620002bd565b60405180910390fd5b6200014060008383620001e2565b8060026000828254620001549190620002fd565b90915550506001600160a01b0382166000908152602081905260408120805483929062000183908490620002fd565b90915550506040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90620001c8908590620002f4565b60405180910390a3620001de60008383620001e2565b5050565b505050565b828054620001f59062000322565b90600052602060002090601f01602090048101928262000219576000855562000264565b82601f106200023457805160ff191683800117855562000264565b8280016001018555821562000264579182015b828111156200026457825182559160200191906001019062000247565b506200027292915062000276565b5090565b5b8082111562000272576000815560010162000277565b6000602082840312156200029f578081fd5b81516001600160a01b0381168114620002b6578182fd5b9392505050565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b600082198211156200031d57634e487b7160e01b81526011600452602481fd5b500190565b6002810460018216806200033757607f821691505b602082108114156200035957634e487b7160e01b600052602260045260246000fd5b50919050565b611807806200036f6000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c806370a082311161010f578063cb03fb1e116100a2578063d230af3a11610071578063d230af3a146103f2578063dd62ed3e14610405578063efe7a50414610418578063fe9fbb8014610420576101f0565b8063cb03fb1e146103bc578063cc240c01146103cf578063cd905dff146103e2578063ce606ee0146103ea576101f0565b8063a457c2d7116100de578063a457c2d714610370578063a9059cbb14610383578063c00007b014610396578063c6c5e467146103a9576101f0565b806370a082311461032f57806395d89b41146103425780639dc29fac1461034a578063a34d42b81461035d576101f0565b80632c388d5d1161018757806341910f901161015657806341910f90146102f957806344a6b86c14610301578063627804af146103095780636873c21d1461031c576101f0565b80632c388d5d146102a9578063313ce567146102bc57806339509351146102d15780633c859ba1146102e4576101f0565b8063110466ed116101c3578063110466ed1461026857806318160ddd1461027b57806323b872dd14610283578063267e8ab614610296576101f0565b806306fdde03146101f55780630700037d14610213578063095ea7b3146102335780630fa9d3b114610253575b600080fd5b6101fd610433565b60405161020a919061135e565b60405180910390f35b610226610221366004611257565b6104c5565b60405161020a91906116fb565b6102466102413660046112de565b6104d7565b60405161020a9190611353565b6102666102613660046112de565b6104f9565b005b610266610276366004611307565b61053f565b610226610581565b6102466102913660046112a3565b610587565b6102266102a4366004611257565b6105b5565b6102666102b7366004611257565b6106cb565b6102c4610717565b60405161020a9190611704565b6102466102df3660046112de565b61071c565b6102ec610768565b60405161020a919061133f565b610226610777565b610226610783565b6102666103173660046112de565b61078f565b61026661032a366004611257565b6107be565b61022661033d366004611257565b610807565b6101fd610822565b6102666103583660046112de565b610831565b61026661036b366004611257565b61088c565b61024661037e3660046112de565b6108f6565b6102466103913660046112de565b610957565b6102666103a4366004611257565b61096f565b6102666103b7366004611257565b610a47565b6102266103ca366004611257565b610a98565b6102666103dd3660046112de565b610aaa565b610246610c1f565b6102ec610c28565b610266610400366004611271565b610c3c565b610226610413366004611271565b610dcd565b610226610df8565b61024661042e366004611257565b610e00565b60606003805461044290611780565b80601f016020809104026020016040519081016040528092919081815260200182805461046e90611780565b80156104bb5780601f10610490576101008083540402835291602001916104bb565b820191906000526020600020905b81548152906001019060200180831161049e57829003601f168201915b5050505050905090565b60076020526000908152604090205481565b6000806104e2610e1e565b90506104ef818585610e22565b5060019392505050565b336000908152600560205260409020546001146105315760405162461bcd60e51b815260040161052890611478565b60405180910390fd5b61053b8282610ed6565b5050565b60065461010090046001600160a01b0316331461056e5760405162461bcd60e51b81526004016105289061157e565b6006805460ff1916911515919091179055565b60025490565b600080610592610e1e565b905061059f858285610f9e565b6105aa858585610fe2565b506001949350505050565b6000806105c6426374fd7fe0611106565b6001600160a01b0384166000908152600860205260408120549192509061069a9062015180906106949061060e906105ff90879061111e565b670de0b6b3a76400009061112a565b60095460405163f338a4a160e01b81526001600160a01b039091169063f338a4a19061063e908b9060040161133f565b60206040518083038186803b15801561065657600080fd5b505afa15801561066a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068e9190611327565b9061112a565b90611136565b6001600160a01b0385166000908152600760205260409020549091506106c1908290611712565b925050505b919050565b60065461010090046001600160a01b031633146106fa5760405162461bcd60e51b81526004016105289061157e565b6001600160a01b0316600090815260056020526040902060019055565b601290565b600080610727610e1e565b6001600160a01b038082166000908152600160209081526040808320938916835292905220549091506104ef9082908690610763908790611712565b610e22565b6009546001600160a01b031681565b670de0b6b3a764000081565b678ac7230489e8000081565b60065461010090046001600160a01b031633146105315760405162461bcd60e51b81526004016105289061157e565b60065461010090046001600160a01b031633146107ed5760405162461bcd60e51b81526004016105289061157e565b6001600160a01b0316600090815260056020526040812055565b6001600160a01b031660009081526020819052604090205490565b60606004805461044290611780565b60065460ff166108535760405162461bcd60e51b815260040161052890611539565b336000908152600560205260409020546001146108825760405162461bcd60e51b815260040161052890611478565b61053b8282611142565b60065461010090046001600160a01b031633146108bb5760405162461bcd60e51b81526004016105289061157e565b6001600160a01b0381166108ce57600080fd5b600680546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600080610901610e1e565b6001600160a01b038082166000908152600160209081526040808320938916835292905220549091508381101561094a5760405162461bcd60e51b81526004016105289061167f565b6105aa8286868403610e22565b600080610962610e1e565b90506104ef818585610fe2565b60065460ff166109915760405162461bcd60e51b815260040161052890611539565b336000908152600560205260409020546001146109c05760405162461bcd60e51b815260040161052890611478565b6001600160a01b038116600090815260076020526040902054801561053b576001600160a01b038216600090815260076020526040812055610a028282610ed6565b816001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610a3b91906116fb565b60405180910390a25050565b60065461010090046001600160a01b03163314610a765760405162461bcd60e51b81526004016105289061157e565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60086020526000908152604090205481565b60065460ff16610acc5760405162461bcd60e51b815260040161052890611539565b33600090815260056020526040902054600114610afb5760405162461bcd60e51b815260040161052890611478565b6000610b0b426374fd7fe0611106565b6001600160a01b0384166000908152600860205260409020549091508015610bcf57610bb1610b92610b4585678ac7230489e8000061112a565b610b8c62015180610694610b5c6105ff898961111e565b60095460405163f338a4a160e01b81526001600160a01b039091169063f338a4a19061063e908e9060040161133f565b90611234565b6001600160a01b03861660009081526007602052604090205490611234565b6001600160a01b038516600090815260076020526040902055610bfe565b610be4610b9284678ac7230489e8000061112a565b6001600160a01b0385166000908152600760205260409020555b506001600160a01b0390921660009081526008602052604090209190915550565b60065460ff1690565b60065461010090046001600160a01b031681565b60065460ff16610c5e5760405162461bcd60e51b815260040161052890611539565b33600090815260056020526040902054600114610c8d5760405162461bcd60e51b815260040161052890611478565b6000610c9d426374fd7fe0611106565b6001600160a01b0384166000908152600860205260409020549091508015610d0457610cd66201518061069461060e6105ff868661111e565b6001600160a01b03851660009081526007602052604081208054909190610cfe908490611712565b90915550505b6374fd7fe08114610d2b576001600160a01b03841660009081526008602052604090208290555b6001600160a01b03831615610dc7576001600160a01b0383166000908152600860205260409020548015610d9e57610d706201518061069461060e6105ff878661111e565b6001600160a01b03851660009081526007602052604081208054909190610d98908490611712565b90915550505b6374fd7fe08114610dc5576001600160a01b03841660009081526008602052604090208390555b505b50505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6374fd7fe081565b6001600160a01b031660009081526005602052604090205460011490565b3390565b6001600160a01b038316610e485760405162461bcd60e51b81526004016105289061163b565b6001600160a01b038216610e6e5760405162461bcd60e51b815260040161052890611436565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610ec99085906116fb565b60405180910390a3505050565b6001600160a01b038216610efc5760405162461bcd60e51b8152600401610528906116c4565b610f086000838361122f565b8060026000828254610f1a9190611712565b90915550506001600160a01b03821660009081526020819052604081208054839290610f47908490611712565b90915550506040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610f8a9085906116fb565b60405180910390a361053b6000838361122f565b6000610faa8484610dcd565b90506000198114610dc75781811015610fd55760405162461bcd60e51b8152600401610528906114bc565b610dc78484848403610e22565b6001600160a01b0383166110085760405162461bcd60e51b8152600401610528906115f6565b6001600160a01b03821661102e5760405162461bcd60e51b8152600401610528906113b1565b61103983838361122f565b6001600160a01b038316600090815260208190526040902054818110156110725760405162461bcd60e51b8152600401610528906114f3565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906110a9908490611712565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516110f391906116fb565b60405180910390a3610dc784848461122f565b60008183106111155781611117565b825b9392505050565b60006111178284611769565b6000611117828461174a565b6000611117828461172a565b6001600160a01b0382166111685760405162461bcd60e51b8152600401610528906115b5565b6111748260008361122f565b6001600160a01b038216600090815260208190526040902054818110156111ad5760405162461bcd60e51b8152600401610528906113f4565b6001600160a01b03831660009081526020819052604081208383039055600280548492906111dc908490611769565b90915550506040516000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061121f9086906116fb565b60405180910390a361122f836000845b505050565b60006111178284611712565b80356001600160a01b03811681146106c657600080fd5b600060208284031215611268578081fd5b61111782611240565b60008060408385031215611283578081fd5b61128c83611240565b915061129a60208401611240565b90509250929050565b6000806000606084860312156112b7578081fd5b6112c084611240565b92506112ce60208501611240565b9150604084013590509250925092565b600080604083850312156112f0578182fd5b6112f983611240565b946020939093013593505050565b600060208284031215611318578081fd5b81358015158114611117578182fd5b600060208284031215611338578081fd5b5051919050565b6001600160a01b0391909116815260200190565b901515815260200190565b6000602080835283518082850152825b8181101561138a5785810183015185820160400152820161136e565b8181111561139b5783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526022908201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604082015261636560f01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b60208082526024908201527f43616c6c6572206973206e6f7420616e20617574686f72697a656420636f6e746040820152631c9858dd60e21b606082015260800190565b6020808252601d908201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604082015260600190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b60208082526025908201527f436f6e74726163742069732063757272656e746c79206e6f74206f70657261746040820152641a5bdb985b60da1b606082015260800190565b6020808252601c908201527f43616c6c6572206973206e6f7420636f6e7472616374206f776e657200000000604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604082015264207a65726f60d81b606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b60ff91909116815260200190565b60008219821115611725576117256117bb565b500190565b60008261174557634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611764576117646117bb565b500290565b60008282101561177b5761177b6117bb565b500390565b60028104600182168061179457607f821691505b602082108114156117b557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220a92705140b0affe6f764d1ce38da578ecd3bfcf949a805d7f903dc06ed5ea76464736f6c634300080100330000000000000000000000002e81cc88626f74a0474651edba4243541e4435de
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101f05760003560e01c806370a082311161010f578063cb03fb1e116100a2578063d230af3a11610071578063d230af3a146103f2578063dd62ed3e14610405578063efe7a50414610418578063fe9fbb8014610420576101f0565b8063cb03fb1e146103bc578063cc240c01146103cf578063cd905dff146103e2578063ce606ee0146103ea576101f0565b8063a457c2d7116100de578063a457c2d714610370578063a9059cbb14610383578063c00007b014610396578063c6c5e467146103a9576101f0565b806370a082311461032f57806395d89b41146103425780639dc29fac1461034a578063a34d42b81461035d576101f0565b80632c388d5d1161018757806341910f901161015657806341910f90146102f957806344a6b86c14610301578063627804af146103095780636873c21d1461031c576101f0565b80632c388d5d146102a9578063313ce567146102bc57806339509351146102d15780633c859ba1146102e4576101f0565b8063110466ed116101c3578063110466ed1461026857806318160ddd1461027b57806323b872dd14610283578063267e8ab614610296576101f0565b806306fdde03146101f55780630700037d14610213578063095ea7b3146102335780630fa9d3b114610253575b600080fd5b6101fd610433565b60405161020a919061135e565b60405180910390f35b610226610221366004611257565b6104c5565b60405161020a91906116fb565b6102466102413660046112de565b6104d7565b60405161020a9190611353565b6102666102613660046112de565b6104f9565b005b610266610276366004611307565b61053f565b610226610581565b6102466102913660046112a3565b610587565b6102266102a4366004611257565b6105b5565b6102666102b7366004611257565b6106cb565b6102c4610717565b60405161020a9190611704565b6102466102df3660046112de565b61071c565b6102ec610768565b60405161020a919061133f565b610226610777565b610226610783565b6102666103173660046112de565b61078f565b61026661032a366004611257565b6107be565b61022661033d366004611257565b610807565b6101fd610822565b6102666103583660046112de565b610831565b61026661036b366004611257565b61088c565b61024661037e3660046112de565b6108f6565b6102466103913660046112de565b610957565b6102666103a4366004611257565b61096f565b6102666103b7366004611257565b610a47565b6102266103ca366004611257565b610a98565b6102666103dd3660046112de565b610aaa565b610246610c1f565b6102ec610c28565b610266610400366004611271565b610c3c565b610226610413366004611271565b610dcd565b610226610df8565b61024661042e366004611257565b610e00565b60606003805461044290611780565b80601f016020809104026020016040519081016040528092919081815260200182805461046e90611780565b80156104bb5780601f10610490576101008083540402835291602001916104bb565b820191906000526020600020905b81548152906001019060200180831161049e57829003601f168201915b5050505050905090565b60076020526000908152604090205481565b6000806104e2610e1e565b90506104ef818585610e22565b5060019392505050565b336000908152600560205260409020546001146105315760405162461bcd60e51b815260040161052890611478565b60405180910390fd5b61053b8282610ed6565b5050565b60065461010090046001600160a01b0316331461056e5760405162461bcd60e51b81526004016105289061157e565b6006805460ff1916911515919091179055565b60025490565b600080610592610e1e565b905061059f858285610f9e565b6105aa858585610fe2565b506001949350505050565b6000806105c6426374fd7fe0611106565b6001600160a01b0384166000908152600860205260408120549192509061069a9062015180906106949061060e906105ff90879061111e565b670de0b6b3a76400009061112a565b60095460405163f338a4a160e01b81526001600160a01b039091169063f338a4a19061063e908b9060040161133f565b60206040518083038186803b15801561065657600080fd5b505afa15801561066a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068e9190611327565b9061112a565b90611136565b6001600160a01b0385166000908152600760205260409020549091506106c1908290611712565b925050505b919050565b60065461010090046001600160a01b031633146106fa5760405162461bcd60e51b81526004016105289061157e565b6001600160a01b0316600090815260056020526040902060019055565b601290565b600080610727610e1e565b6001600160a01b038082166000908152600160209081526040808320938916835292905220549091506104ef9082908690610763908790611712565b610e22565b6009546001600160a01b031681565b670de0b6b3a764000081565b678ac7230489e8000081565b60065461010090046001600160a01b031633146105315760405162461bcd60e51b81526004016105289061157e565b60065461010090046001600160a01b031633146107ed5760405162461bcd60e51b81526004016105289061157e565b6001600160a01b0316600090815260056020526040812055565b6001600160a01b031660009081526020819052604090205490565b60606004805461044290611780565b60065460ff166108535760405162461bcd60e51b815260040161052890611539565b336000908152600560205260409020546001146108825760405162461bcd60e51b815260040161052890611478565b61053b8282611142565b60065461010090046001600160a01b031633146108bb5760405162461bcd60e51b81526004016105289061157e565b6001600160a01b0381166108ce57600080fd5b600680546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600080610901610e1e565b6001600160a01b038082166000908152600160209081526040808320938916835292905220549091508381101561094a5760405162461bcd60e51b81526004016105289061167f565b6105aa8286868403610e22565b600080610962610e1e565b90506104ef818585610fe2565b60065460ff166109915760405162461bcd60e51b815260040161052890611539565b336000908152600560205260409020546001146109c05760405162461bcd60e51b815260040161052890611478565b6001600160a01b038116600090815260076020526040902054801561053b576001600160a01b038216600090815260076020526040812055610a028282610ed6565b816001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610a3b91906116fb565b60405180910390a25050565b60065461010090046001600160a01b03163314610a765760405162461bcd60e51b81526004016105289061157e565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60086020526000908152604090205481565b60065460ff16610acc5760405162461bcd60e51b815260040161052890611539565b33600090815260056020526040902054600114610afb5760405162461bcd60e51b815260040161052890611478565b6000610b0b426374fd7fe0611106565b6001600160a01b0384166000908152600860205260409020549091508015610bcf57610bb1610b92610b4585678ac7230489e8000061112a565b610b8c62015180610694610b5c6105ff898961111e565b60095460405163f338a4a160e01b81526001600160a01b039091169063f338a4a19061063e908e9060040161133f565b90611234565b6001600160a01b03861660009081526007602052604090205490611234565b6001600160a01b038516600090815260076020526040902055610bfe565b610be4610b9284678ac7230489e8000061112a565b6001600160a01b0385166000908152600760205260409020555b506001600160a01b0390921660009081526008602052604090209190915550565b60065460ff1690565b60065461010090046001600160a01b031681565b60065460ff16610c5e5760405162461bcd60e51b815260040161052890611539565b33600090815260056020526040902054600114610c8d5760405162461bcd60e51b815260040161052890611478565b6000610c9d426374fd7fe0611106565b6001600160a01b0384166000908152600860205260409020549091508015610d0457610cd66201518061069461060e6105ff868661111e565b6001600160a01b03851660009081526007602052604081208054909190610cfe908490611712565b90915550505b6374fd7fe08114610d2b576001600160a01b03841660009081526008602052604090208290555b6001600160a01b03831615610dc7576001600160a01b0383166000908152600860205260409020548015610d9e57610d706201518061069461060e6105ff878661111e565b6001600160a01b03851660009081526007602052604081208054909190610d98908490611712565b90915550505b6374fd7fe08114610dc5576001600160a01b03841660009081526008602052604090208390555b505b50505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6374fd7fe081565b6001600160a01b031660009081526005602052604090205460011490565b3390565b6001600160a01b038316610e485760405162461bcd60e51b81526004016105289061163b565b6001600160a01b038216610e6e5760405162461bcd60e51b815260040161052890611436565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610ec99085906116fb565b60405180910390a3505050565b6001600160a01b038216610efc5760405162461bcd60e51b8152600401610528906116c4565b610f086000838361122f565b8060026000828254610f1a9190611712565b90915550506001600160a01b03821660009081526020819052604081208054839290610f47908490611712565b90915550506040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610f8a9085906116fb565b60405180910390a361053b6000838361122f565b6000610faa8484610dcd565b90506000198114610dc75781811015610fd55760405162461bcd60e51b8152600401610528906114bc565b610dc78484848403610e22565b6001600160a01b0383166110085760405162461bcd60e51b8152600401610528906115f6565b6001600160a01b03821661102e5760405162461bcd60e51b8152600401610528906113b1565b61103983838361122f565b6001600160a01b038316600090815260208190526040902054818110156110725760405162461bcd60e51b8152600401610528906114f3565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906110a9908490611712565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516110f391906116fb565b60405180910390a3610dc784848461122f565b60008183106111155781611117565b825b9392505050565b60006111178284611769565b6000611117828461174a565b6000611117828461172a565b6001600160a01b0382166111685760405162461bcd60e51b8152600401610528906115b5565b6111748260008361122f565b6001600160a01b038216600090815260208190526040902054818110156111ad5760405162461bcd60e51b8152600401610528906113f4565b6001600160a01b03831660009081526020819052604081208383039055600280548492906111dc908490611769565b90915550506040516000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061121f9086906116fb565b60405180910390a361122f836000845b505050565b60006111178284611712565b80356001600160a01b03811681146106c657600080fd5b600060208284031215611268578081fd5b61111782611240565b60008060408385031215611283578081fd5b61128c83611240565b915061129a60208401611240565b90509250929050565b6000806000606084860312156112b7578081fd5b6112c084611240565b92506112ce60208501611240565b9150604084013590509250925092565b600080604083850312156112f0578182fd5b6112f983611240565b946020939093013593505050565b600060208284031215611318578081fd5b81358015158114611117578182fd5b600060208284031215611338578081fd5b5051919050565b6001600160a01b0391909116815260200190565b901515815260200190565b6000602080835283518082850152825b8181101561138a5785810183015185820160400152820161136e565b8181111561139b5783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526022908201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604082015261636560f01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b60208082526024908201527f43616c6c6572206973206e6f7420616e20617574686f72697a656420636f6e746040820152631c9858dd60e21b606082015260800190565b6020808252601d908201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604082015260600190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b60208082526025908201527f436f6e74726163742069732063757272656e746c79206e6f74206f70657261746040820152641a5bdb985b60da1b606082015260800190565b6020808252601c908201527f43616c6c6572206973206e6f7420636f6e7472616374206f776e657200000000604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604082015264207a65726f60d81b606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b60ff91909116815260200190565b60008219821115611725576117256117bb565b500190565b60008261174557634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611764576117646117bb565b500290565b60008282101561177b5761177b6117bb565b500390565b60028104600182168061179457607f821691505b602082108114156117b557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220a92705140b0affe6f764d1ce38da578ecd3bfcf949a805d7f903dc06ed5ea76464736f6c63430008010033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002e81cc88626f74a0474651edba4243541e4435de
-----Decoded View---------------
Arg [0] : _atevada (address): 0x2E81cC88626f74a0474651Edba4243541E4435De
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000002e81cc88626f74a0474651edba4243541e4435de
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.