ERC-20
Overview
Max Total Supply
51,557,868.591550925925891791 SCRAP
Holders
1,214
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
298.727923366603307293 SCRAPValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ScrapToken
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /* _____ _____ _____ ___ _ ___ ___ ____ | \ \ / / __|_ _/ _ \ /_\ | _ \ __|_ / | |) \ V /\__ \ | || (_) / _ \| _/ _| / / |___/ |_| |___/ |_| \___/_/ \_\_| |___/___| */ pragma solidity ^0.8.7; import "@openzeppelin/contracts/utils/math/Math.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./IScrapToken.sol"; contract ScrapToken is ERC20("Scrap", "SCRAP"), Ownable, IScrapToken, Pausable { event ClaimedScrap(address indexed _account, uint256 _reward); uint256 constant public DAILY_RATE = 100 ether; uint256 constant public DAILY_LEGENDARY_BONUS = 300 ether; // December 31, 2030 3:59:59 PM GMT-08:00 uint256 constant public LAST_EPOCH = 1924991999; uint256 constant public LEGENDARY_SUPPLY = 10; IERC721 public dystoApez; mapping(address => uint256) public rewards; mapping(address => uint256) public lastUpdate; mapping(address => uint256) public legendaryOwned; constructor(address _dystoApez) { require(_dystoApez != address(0), "ADDRESS_ZERO"); dystoApez = IERC721(_dystoApez); } function updateReward(address _from, address _to, uint256 _tokenId) external override { require(_from == address(0) || dystoApez.ownerOf(_tokenId) == _from, "NOT_OWNER_OF_APE"); require(msg.sender == address(dystoApez), "ONLY_DYSTOAPEZ"); if (_from != address(0)) { if (lastUpdate[_from] > 0 && lastUpdate[_from] < LAST_EPOCH) rewards[_from] += _calculateRewards(_from); lastUpdate[_from] = block.timestamp; } if (_to != address(0)) { if (lastUpdate[_to] > 0 && lastUpdate[_to] < LAST_EPOCH) rewards[_to] += _calculateRewards(_to); lastUpdate[_to] = block.timestamp; } if (_tokenId <= LEGENDARY_SUPPLY && block.timestamp < LAST_EPOCH) { if (_from != address(0)) legendaryOwned[_from] -= 1; legendaryOwned[_to] += 1; } } function getClaimableReward(address _account) external view override returns(uint256) { return rewards[_account] + _calculateRewards(_account); } function claimReward() external override { require(lastUpdate[msg.sender] < LAST_EPOCH, "PAST_LAST_EPOCH"); uint256 claimableReward = rewards[msg.sender] + _calculateRewards(msg.sender); require(claimableReward > 0, "NOTHING_TO_CLAIM"); rewards[msg.sender] = 0; lastUpdate[msg.sender] = block.timestamp; _mint(msg.sender, claimableReward); emit ClaimedScrap(msg.sender, claimableReward); } function _calculateRewards(address _account) internal view returns(uint256) { uint256 claimableEpoch = Math.min(block.timestamp, LAST_EPOCH); uint256 delta = claimableEpoch - lastUpdate[_account]; if (delta > 0) { uint256 pendingBasic = dystoApez.balanceOf(_account) * (DAILY_RATE * delta / 86400); uint256 pendingLegendary = legendaryOwned[_account] * (DAILY_LEGENDARY_BONUS * delta / 86400); uint256 bonus = _calculateBonus(_account) * delta / 86400; return pendingBasic + pendingLegendary + bonus; } return 0; } function _calculateBonus(address _account) internal view returns(uint256) { uint256 curBalance = dystoApez.balanceOf(_account); if (curBalance >= 20) return 400 ether; if (curBalance >= 10) return 150 ether; if (curBalance >= 5) return 50 ether; if (curBalance >= 2) return 10 ether; return 0; } function setDystoApez(address _dystoApez) external onlyOwner { require(_dystoApez != address(0), "ADDRESS_ZERO"); dystoApez = IERC721(_dystoApez); } function pause() external onlyOwner { require(!paused(), "ALREADY_PAUSED"); _pause(); } function unpause() external onlyOwner { require(paused(), "ALREADY_UNPAUSED"); _unpause(); } function _beforeTokenTransfer( address from, address to, uint256 amount ) override internal virtual { require(!paused(), "TRANSFER_PAUSED"); super._beforeTokenTransfer(from, to, amount); } function decimals() public pure override returns(uint8) { return 18; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT 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: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, 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}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), 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}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - 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) { _approve(_msgSender(), spender, _allowances[_msgSender()][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) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), 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: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, 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 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 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 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT /* _____ _____ _____ ___ _ ___ ___ ____ | \ \ / / __|_ _/ _ \ /_\ | _ \ __|_ / | |) \ V /\__ \ | || (_) / _ \| _/ _| / / |___/ |_| |___/ |_| \___/_/ \_\_| |___/___| */ pragma solidity ^0.8.7; interface IScrapToken { function updateReward(address _from, address _to, uint256 _tokenId) external; function getClaimableReward(address _account) external view returns(uint256); function claimReward() external; }
// SPDX-License-Identifier: MIT 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 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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, 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 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 pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 10000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_dystoApez","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":"_account","type":"address"},{"indexed":false,"internalType":"uint256","name":"_reward","type":"uint256"}],"name":"ClaimedScrap","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DAILY_LEGENDARY_BONUS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DAILY_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LAST_EPOCH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LEGENDARY_SUPPLY","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":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","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":[],"name":"dystoApez","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getClaimableReward","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":"","type":"address"}],"name":"lastUpdate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"legendaryOwned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_dystoApez","type":"address"}],"name":"setDystoApez","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"updateReward","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162001e6038038062001e60833981016040819052620000349162000234565b60405180604001604052806005815260200164053637261760dc1b81525060405180604001604052806005815260200164053435241560dc1b8152508160039080519060200190620000889291906200018e565b5080516200009e9060049060208401906200018e565b505050620000bb620000b56200013860201b60201c565b6200013c565b6005805460ff60a01b191690556001600160a01b038116620001125760405162461bcd60e51b815260206004820152600c60248201526b414444524553535f5a45524f60a01b604482015260640160405180910390fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055620002a3565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200019c9062000266565b90600052602060002090601f016020900481019282620001c057600085556200020b565b82601f10620001db57805160ff19168380011785556200020b565b828001600101855582156200020b579182015b828111156200020b578251825591602001919060010190620001ee565b50620002199291506200021d565b5090565b5b808211156200021957600081556001016200021e565b6000602082840312156200024757600080fd5b81516001600160a01b03811681146200025f57600080fd5b9392505050565b600181811c908216806200027b57607f821691505b602082108114156200029d57634e487b7160e01b600052602260045260246000fd5b50919050565b611bad80620002b36000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c806370a0823111610104578063a457c2d7116100a2578063cb03fb1e11610071578063cb03fb1e146103c0578063dd62ed3e146103e0578063f2fde38b14610419578063f3430d761461042c57600080fd5b8063a457c2d714610382578063a9059cbb14610395578063b88a802f146103a8578063c6a02ada146103b057600080fd5b80638456cb59116100de5780638456cb5914610356578063870ff7b31461035e5780638da5cb5b1461036957806395d89b411461037a57600080fd5b806370a0823114610315578063715018a61461033e578063736848561461034657600080fd5b80632c8e8dfa116101715780633f4ba83a1161014b5780633f4ba83a146102cf5780635c975abb146102d75780635ff329af146102fa5780636ab659151461030d57600080fd5b80632c8e8dfa1461029a578063313ce567146102ad57806339509351146102bc57600080fd5b8063095ea7b3116101ad578063095ea7b31461024757806316da65a71461026a57806318160ddd1461027f57806323b872dd1461028757600080fd5b8063016bf227146101d457806306fdde03146102045780630700037d14610219575b600080fd5b6006546101e7906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61020c61044c565b6040516101fb91906119c5565b6102396102273660046118cc565b60076020526000908152604090205481565b6040519081526020016101fb565b61025a610255366004611980565b6104de565b60405190151581526020016101fb565b61027d6102783660046118cc565b6104f4565b005b600254610239565b61025a61029536600461193f565b6105e3565b61027d6102a836600461193f565b6106a2565b604051601281526020016101fb565b61025a6102ca366004611980565b6109d8565b61027d610a14565b60055474010000000000000000000000000000000000000000900460ff1661025a565b6102396103083660046118cc565b610ae2565b610239600a81565b6102396103233660046118cc565b6001600160a01b031660009081526020819052604090205490565b61027d610b16565b61023968056bc75e2d6310000081565b61027d610b7a565b6102396372bd0bff81565b6005546001600160a01b03166101e7565b61020c610c47565b61025a610390366004611980565b610c56565b61025a6103a3366004611980565b610d07565b61027d610d14565b610239681043561a882930000081565b6102396103ce3660046118cc565b60086020526000908152604090205481565b6102396103ee366004611906565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61027d6104273660046118cc565b610e4e565b61023961043a3660046118cc565b60096020526000908152604090205481565b60606003805461045b90611adf565b80601f016020809104026020016040519081016040528092919081815260200182805461048790611adf565b80156104d45780601f106104a9576101008083540402835291602001916104d4565b820191906000526020600020905b8154815290600101906020018083116104b757829003601f168201915b5050505050905090565b60006104eb338484610f30565b50600192915050565b6005546001600160a01b031633146105535760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b0381166105a95760405162461bcd60e51b815260206004820152600c60248201527f414444524553535f5a45524f0000000000000000000000000000000000000000604482015260640161054a565b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60006105f0848484611088565b6001600160a01b03841660009081526001602090815260408083203384529091529020548281101561068a5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000606482015260840161054a565b6106978533858403610f30565b506001949350505050565b6001600160a01b038316158061075557506006546040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b03858116921690636352211e9060240160206040518083038186803b15801561071257600080fd5b505afa158015610726573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074a91906118e9565b6001600160a01b0316145b6107a15760405162461bcd60e51b815260206004820152601060248201527f4e4f545f4f574e45525f4f465f41504500000000000000000000000000000000604482015260640161054a565b6006546001600160a01b031633146107fb5760405162461bcd60e51b815260206004820152600e60248201527f4f4e4c595f445953544f4150455a000000000000000000000000000000000000604482015260640161054a565b6001600160a01b038316156108a4576001600160a01b0383166000908152600860205260409020541580159061084c57506001600160a01b0383166000908152600860205260409020546372bd0bff115b156108885761085a836112ab565b6001600160a01b03841660009081526007602052604081208054909190610882908490611a38565b90915550505b6001600160a01b03831660009081526008602052604090204290555b6001600160a01b0382161561094d576001600160a01b038216600090815260086020526040902054158015906108f557506001600160a01b0382166000908152600860205260409020546372bd0bff115b1561093157610903826112ab565b6001600160a01b0383166000908152600760205260408120805490919061092b908490611a38565b90915550505b6001600160a01b03821660009081526008602052604090204290555b600a811115801561096157506372bd0bff42105b156109d3576001600160a01b038316156109a4576001600160a01b038316600090815260096020526040812080546001929061099e908490611ac8565b90915550505b6001600160a01b03821660009081526009602052604081208054600192906109cd908490611a38565b90915550505b505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916104eb918590610a0f908690611a38565b610f30565b6005546001600160a01b03163314610a6e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161054a565b60055474010000000000000000000000000000000000000000900460ff16610ad85760405162461bcd60e51b815260206004820152601060248201527f414c52454144595f554e50415553454400000000000000000000000000000000604482015260640161054a565b610ae0611448565b565b6000610aed826112ab565b6001600160a01b038316600090815260076020526040902054610b109190611a38565b92915050565b6005546001600160a01b03163314610b705760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161054a565b610ae0600061151a565b6005546001600160a01b03163314610bd45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161054a565b60055474010000000000000000000000000000000000000000900460ff1615610c3f5760405162461bcd60e51b815260206004820152600e60248201527f414c52454144595f504155534544000000000000000000000000000000000000604482015260640161054a565b610ae0611584565b60606004805461045b90611adf565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610cf05760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161054a565b610cfd3385858403610f30565b5060019392505050565b60006104eb338484611088565b336000908152600860205260409020546372bd0bff11610d765760405162461bcd60e51b815260206004820152600f60248201527f504153545f4c4153545f45504f43480000000000000000000000000000000000604482015260640161054a565b6000610d81336112ab565b33600090815260076020526040902054610d9b9190611a38565b905060008111610ded5760405162461bcd60e51b815260206004820152601060248201527f4e4f5448494e475f544f5f434c41494d00000000000000000000000000000000604482015260640161054a565b33600081815260076020908152604080832083905560089091529020429055610e169082611656565b60405181815233907f696e43ef6eaf24798c1d654d4747d4e84f8a38f8113411e541169eb0c8e186dc9060200160405180910390a250565b6005546001600160a01b03163314610ea85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161054a565b6001600160a01b038116610f245760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161054a565b610f2d8161151a565b50565b6001600160a01b038316610fab5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161054a565b6001600160a01b0382166110275760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161054a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166111045760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161054a565b6001600160a01b0382166111805760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161054a565b61118b838383611741565b6001600160a01b0383166000908152602081905260409020548181101561121a5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161054a565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611251908490611a38565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161129d91815260200190565b60405180910390a350505050565b6000806112bc426372bd0bff6117ac565b6001600160a01b038416600090815260086020526040812054919250906112e39083611ac8565b9050801561143e576000620151806113048368056bc75e2d63100000611a8b565b61130e9190611a50565b6006546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038881166004830152909116906370a082319060240160206040518083038186803b15801561136c57600080fd5b505afa158015611380573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a491906119ac565b6113ae9190611a8b565b90506000620151806113c984681043561a8829300000611a8b565b6113d39190611a50565b6001600160a01b0387166000908152600960205260409020546113f69190611a8b565b905060006201518084611408896117c4565b6114129190611a8b565b61141c9190611a50565b9050806114298385611a38565b6114339190611a38565b979650505050505050565b5060009392505050565b60055474010000000000000000000000000000000000000000900460ff166114b25760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161054a565b600580547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60055474010000000000000000000000000000000000000000900460ff16156115ef5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161054a565b600580547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114fd3390565b6001600160a01b0382166116ac5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161054a565b6116b860008383611741565b80600260008282546116ca9190611a38565b90915550506001600160a01b038216600090815260208190526040812080548392906116f7908490611a38565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60055474010000000000000000000000000000000000000000900460ff16156109d35760405162461bcd60e51b815260206004820152600f60248201527f5452414e534645525f5041555345440000000000000000000000000000000000604482015260640161054a565b60008183106117bb57816117bd565b825b9392505050565b6006546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b03838116600483015260009283929116906370a082319060240160206040518083038186803b15801561182657600080fd5b505afa15801561183a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061185e91906119ac565b90506014811061187957506815af1d78b58c40000092915050565b600a81106118925750680821ab0d441498000092915050565b600581106118ab57506802b5e3af16b188000092915050565b600281106118c35750678ac7230489e8000092915050565b50600092915050565b6000602082840312156118de57600080fd5b81356117bd81611b62565b6000602082840312156118fb57600080fd5b81516117bd81611b62565b6000806040838503121561191957600080fd5b823561192481611b62565b9150602083013561193481611b62565b809150509250929050565b60008060006060848603121561195457600080fd5b833561195f81611b62565b9250602084013561196f81611b62565b929592945050506040919091013590565b6000806040838503121561199357600080fd5b823561199e81611b62565b946020939093013593505050565b6000602082840312156119be57600080fd5b5051919050565b600060208083528351808285015260005b818110156119f2578581018301518582016040015282016119d6565b81811115611a04576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b60008219821115611a4b57611a4b611b33565b500190565b600082611a86577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611ac357611ac3611b33565b500290565b600082821015611ada57611ada611b33565b500390565b600181811c90821680611af357607f821691505b60208210811415611b2d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6001600160a01b0381168114610f2d57600080fdfea264697066735822122071126d536e54039dd84008403d72fb6dcbb1fa3b48115c024a2e6d6953e84d9264736f6c63430008070033000000000000000000000000648e8428e0104ec7d08667866a3568a72fe3898f
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c806370a0823111610104578063a457c2d7116100a2578063cb03fb1e11610071578063cb03fb1e146103c0578063dd62ed3e146103e0578063f2fde38b14610419578063f3430d761461042c57600080fd5b8063a457c2d714610382578063a9059cbb14610395578063b88a802f146103a8578063c6a02ada146103b057600080fd5b80638456cb59116100de5780638456cb5914610356578063870ff7b31461035e5780638da5cb5b1461036957806395d89b411461037a57600080fd5b806370a0823114610315578063715018a61461033e578063736848561461034657600080fd5b80632c8e8dfa116101715780633f4ba83a1161014b5780633f4ba83a146102cf5780635c975abb146102d75780635ff329af146102fa5780636ab659151461030d57600080fd5b80632c8e8dfa1461029a578063313ce567146102ad57806339509351146102bc57600080fd5b8063095ea7b3116101ad578063095ea7b31461024757806316da65a71461026a57806318160ddd1461027f57806323b872dd1461028757600080fd5b8063016bf227146101d457806306fdde03146102045780630700037d14610219575b600080fd5b6006546101e7906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61020c61044c565b6040516101fb91906119c5565b6102396102273660046118cc565b60076020526000908152604090205481565b6040519081526020016101fb565b61025a610255366004611980565b6104de565b60405190151581526020016101fb565b61027d6102783660046118cc565b6104f4565b005b600254610239565b61025a61029536600461193f565b6105e3565b61027d6102a836600461193f565b6106a2565b604051601281526020016101fb565b61025a6102ca366004611980565b6109d8565b61027d610a14565b60055474010000000000000000000000000000000000000000900460ff1661025a565b6102396103083660046118cc565b610ae2565b610239600a81565b6102396103233660046118cc565b6001600160a01b031660009081526020819052604090205490565b61027d610b16565b61023968056bc75e2d6310000081565b61027d610b7a565b6102396372bd0bff81565b6005546001600160a01b03166101e7565b61020c610c47565b61025a610390366004611980565b610c56565b61025a6103a3366004611980565b610d07565b61027d610d14565b610239681043561a882930000081565b6102396103ce3660046118cc565b60086020526000908152604090205481565b6102396103ee366004611906565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61027d6104273660046118cc565b610e4e565b61023961043a3660046118cc565b60096020526000908152604090205481565b60606003805461045b90611adf565b80601f016020809104026020016040519081016040528092919081815260200182805461048790611adf565b80156104d45780601f106104a9576101008083540402835291602001916104d4565b820191906000526020600020905b8154815290600101906020018083116104b757829003601f168201915b5050505050905090565b60006104eb338484610f30565b50600192915050565b6005546001600160a01b031633146105535760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b0381166105a95760405162461bcd60e51b815260206004820152600c60248201527f414444524553535f5a45524f0000000000000000000000000000000000000000604482015260640161054a565b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60006105f0848484611088565b6001600160a01b03841660009081526001602090815260408083203384529091529020548281101561068a5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000606482015260840161054a565b6106978533858403610f30565b506001949350505050565b6001600160a01b038316158061075557506006546040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b03858116921690636352211e9060240160206040518083038186803b15801561071257600080fd5b505afa158015610726573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074a91906118e9565b6001600160a01b0316145b6107a15760405162461bcd60e51b815260206004820152601060248201527f4e4f545f4f574e45525f4f465f41504500000000000000000000000000000000604482015260640161054a565b6006546001600160a01b031633146107fb5760405162461bcd60e51b815260206004820152600e60248201527f4f4e4c595f445953544f4150455a000000000000000000000000000000000000604482015260640161054a565b6001600160a01b038316156108a4576001600160a01b0383166000908152600860205260409020541580159061084c57506001600160a01b0383166000908152600860205260409020546372bd0bff115b156108885761085a836112ab565b6001600160a01b03841660009081526007602052604081208054909190610882908490611a38565b90915550505b6001600160a01b03831660009081526008602052604090204290555b6001600160a01b0382161561094d576001600160a01b038216600090815260086020526040902054158015906108f557506001600160a01b0382166000908152600860205260409020546372bd0bff115b1561093157610903826112ab565b6001600160a01b0383166000908152600760205260408120805490919061092b908490611a38565b90915550505b6001600160a01b03821660009081526008602052604090204290555b600a811115801561096157506372bd0bff42105b156109d3576001600160a01b038316156109a4576001600160a01b038316600090815260096020526040812080546001929061099e908490611ac8565b90915550505b6001600160a01b03821660009081526009602052604081208054600192906109cd908490611a38565b90915550505b505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916104eb918590610a0f908690611a38565b610f30565b6005546001600160a01b03163314610a6e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161054a565b60055474010000000000000000000000000000000000000000900460ff16610ad85760405162461bcd60e51b815260206004820152601060248201527f414c52454144595f554e50415553454400000000000000000000000000000000604482015260640161054a565b610ae0611448565b565b6000610aed826112ab565b6001600160a01b038316600090815260076020526040902054610b109190611a38565b92915050565b6005546001600160a01b03163314610b705760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161054a565b610ae0600061151a565b6005546001600160a01b03163314610bd45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161054a565b60055474010000000000000000000000000000000000000000900460ff1615610c3f5760405162461bcd60e51b815260206004820152600e60248201527f414c52454144595f504155534544000000000000000000000000000000000000604482015260640161054a565b610ae0611584565b60606004805461045b90611adf565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610cf05760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161054a565b610cfd3385858403610f30565b5060019392505050565b60006104eb338484611088565b336000908152600860205260409020546372bd0bff11610d765760405162461bcd60e51b815260206004820152600f60248201527f504153545f4c4153545f45504f43480000000000000000000000000000000000604482015260640161054a565b6000610d81336112ab565b33600090815260076020526040902054610d9b9190611a38565b905060008111610ded5760405162461bcd60e51b815260206004820152601060248201527f4e4f5448494e475f544f5f434c41494d00000000000000000000000000000000604482015260640161054a565b33600081815260076020908152604080832083905560089091529020429055610e169082611656565b60405181815233907f696e43ef6eaf24798c1d654d4747d4e84f8a38f8113411e541169eb0c8e186dc9060200160405180910390a250565b6005546001600160a01b03163314610ea85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161054a565b6001600160a01b038116610f245760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161054a565b610f2d8161151a565b50565b6001600160a01b038316610fab5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161054a565b6001600160a01b0382166110275760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161054a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166111045760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161054a565b6001600160a01b0382166111805760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161054a565b61118b838383611741565b6001600160a01b0383166000908152602081905260409020548181101561121a5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161054a565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611251908490611a38565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161129d91815260200190565b60405180910390a350505050565b6000806112bc426372bd0bff6117ac565b6001600160a01b038416600090815260086020526040812054919250906112e39083611ac8565b9050801561143e576000620151806113048368056bc75e2d63100000611a8b565b61130e9190611a50565b6006546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038881166004830152909116906370a082319060240160206040518083038186803b15801561136c57600080fd5b505afa158015611380573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a491906119ac565b6113ae9190611a8b565b90506000620151806113c984681043561a8829300000611a8b565b6113d39190611a50565b6001600160a01b0387166000908152600960205260409020546113f69190611a8b565b905060006201518084611408896117c4565b6114129190611a8b565b61141c9190611a50565b9050806114298385611a38565b6114339190611a38565b979650505050505050565b5060009392505050565b60055474010000000000000000000000000000000000000000900460ff166114b25760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161054a565b600580547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60055474010000000000000000000000000000000000000000900460ff16156115ef5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161054a565b600580547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114fd3390565b6001600160a01b0382166116ac5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161054a565b6116b860008383611741565b80600260008282546116ca9190611a38565b90915550506001600160a01b038216600090815260208190526040812080548392906116f7908490611a38565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60055474010000000000000000000000000000000000000000900460ff16156109d35760405162461bcd60e51b815260206004820152600f60248201527f5452414e534645525f5041555345440000000000000000000000000000000000604482015260640161054a565b60008183106117bb57816117bd565b825b9392505050565b6006546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b03838116600483015260009283929116906370a082319060240160206040518083038186803b15801561182657600080fd5b505afa15801561183a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061185e91906119ac565b90506014811061187957506815af1d78b58c40000092915050565b600a81106118925750680821ab0d441498000092915050565b600581106118ab57506802b5e3af16b188000092915050565b600281106118c35750678ac7230489e8000092915050565b50600092915050565b6000602082840312156118de57600080fd5b81356117bd81611b62565b6000602082840312156118fb57600080fd5b81516117bd81611b62565b6000806040838503121561191957600080fd5b823561192481611b62565b9150602083013561193481611b62565b809150509250929050565b60008060006060848603121561195457600080fd5b833561195f81611b62565b9250602084013561196f81611b62565b929592945050506040919091013590565b6000806040838503121561199357600080fd5b823561199e81611b62565b946020939093013593505050565b6000602082840312156119be57600080fd5b5051919050565b600060208083528351808285015260005b818110156119f2578581018301518582016040015282016119d6565b81811115611a04576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b60008219821115611a4b57611a4b611b33565b500190565b600082611a86577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611ac357611ac3611b33565b500290565b600082821015611ada57611ada611b33565b500390565b600181811c90821680611af357607f821691505b60208210811415611b2d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6001600160a01b0381168114610f2d57600080fdfea264697066735822122071126d536e54039dd84008403d72fb6dcbb1fa3b48115c024a2e6d6953e84d9264736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000648e8428e0104ec7d08667866a3568a72fe3898f
-----Decoded View---------------
Arg [0] : _dystoApez (address): 0x648E8428e0104Ec7D08667866a3568a72Fe3898F
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000648e8428e0104ec7d08667866a3568a72fe3898f
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.