Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
100,000 FANG
Holders
28
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 0 Decimals)
Balance
6,272 FANGValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
FangsToken
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; /// @title Fangs Token /// @author @MilkyTasteEth MilkyTaste:8662 https://milkytaste.xyz /// https://www.hawaiianlions.world/ import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "./IHawaiianLionsToken.sol"; contract FangsToken is ERC20, Ownable { IHawaiianLionsToken public immutable lionsToken; uint256 public constant DAY_15_RATE = 5 * 15; uint256 public constant MAX_SUPPLY = 100000; uint8[5] public rateMultipliers = [0, 100, 112, 125, 150]; bool public stakingActive = false; struct StakedInfo { address owner; uint256 lockedAt; } mapping(uint256 => StakedInfo) public tokenStakedInfo; constructor(address _lionsAddress) ERC20("Fangs", "FANG") { lionsToken = IHawaiianLionsToken(_lionsAddress); _mint(0x6716D41029631116c5245096c46b04aca47D0Bd0, MAX_SUPPLY / 10); } /** * Cannot fractionalise a $FANG. */ function decimals() public view virtual override returns (uint8) { return 0; } /** * Stake lions. * @param tokenIds The lion tokens to be staked. * @notice The staking reward is proportional to the staking duration. */ function stakeLions(uint256[] memory tokenIds) external { require(stakingActive, "FangsToken: Staking not active"); for (uint256 i = 0; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; lionsToken.transferFrom(msg.sender, address(this), tokenId); tokenStakedInfo[tokenId] = StakedInfo(msg.sender, block.timestamp); } } function calculateReward(uint256 lockedAt) public view returns (uint256) { uint256 period = (block.timestamp - lockedAt) / 15 days; uint8 multiplier = rateMultipliers[period > 4 ? 4 : period]; return DAY_15_RATE * period * multiplier / 100; } /** * Unstake a lion and claim the fangs reward. */ function unstakeAndClaim(uint256[] memory tokenIds) external { uint256 reward = 0; for (uint256 i = 0; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; StakedInfo memory info = tokenStakedInfo[tokenId]; require(info.owner == msg.sender, "FangsToken: Only owner can unstake"); delete tokenStakedInfo[tokenId]; reward += calculateReward(info.lockedAt); // Send lion back lionsToken.transferFrom(address(this), msg.sender, tokenId); } // Claim tokens if (reward + totalSupply() > MAX_SUPPLY) { reward = MAX_SUPPLY - totalSupply(); } _mint(msg.sender, reward); } /** * Enable/disable staking */ function setStakingActive(bool _stakingActive) external onlyOwner { stakingActive = _stakingActive; } // Helper functions /** * List all the unstaked lions owned by the given address. * @notice This is here because I didn't add enumerable in the original contract... :shrug: * @dev This is NOT gas efficient as so I highly recommend NOT integrating to this * @dev interface in other contracts, except when read only. */ function listUnstakedLionsOfOwner(address owner) external view returns (uint256[] memory) { uint256 lionsSupply = lionsToken.totalSupply(); uint256[] memory tokenIds = new uint256[](lionsSupply); uint256 count = 0; for (uint256 tokenId = 1; tokenId <= lionsSupply; tokenId++) { if (lionsToken.ownerOf(tokenId) == owner){ tokenIds[count] = tokenId; count++; } } return resizeArray(tokenIds, count); } /** * List all the staked lions owned by the given address. * @dev This is NOT gas efficient as so I highly recommend NOT integrating to this * @dev interface in other contracts, except when read only. */ function listStakedLionsOfOwner(address owner) public view returns (uint256[] memory){ uint256 lionsSupply = lionsToken.totalSupply(); uint256[] memory tokenIds = new uint256[](lionsSupply); uint256 count = 0; for (uint256 tokenId = 1; tokenId <= lionsSupply; tokenId++) { StakedInfo memory info = tokenStakedInfo[tokenId]; if (info.owner == owner){ tokenIds[count] = tokenId; count++; } } return resizeArray(tokenIds, count); } /** * List all the rewards for staked lions owned by the given address. * @dev This is NOT gas efficient as so I highly recommend NOT integrating to this * @dev interface in other contracts, except when read only. */ function listClaimableRewardsOfOwner(address owner) external view returns (uint256[] memory) { uint256[] memory tokenIds = listStakedLionsOfOwner(owner); uint256[] memory claimable = new uint256[](tokenIds.length); for (uint256 i = 0; i < tokenIds.length; i++) { StakedInfo memory info = tokenStakedInfo[tokenIds[i]]; claimable[i] = calculateReward(info.lockedAt); } return claimable; } /** * Helper function to resize an array. */ function resizeArray(uint256[] memory input, uint256 length) public pure returns (uint256[] memory) { uint256[] memory output = new uint256[](length); for (uint256 i = 0; i < length; i++) { output[i] = input[i]; } return output; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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: * * - `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.4; /// @title HawaiianLions Token Interface /// @author @MilkyTasteEth MilkyTaste:8662 https://milkytaste.xyz /// https://www.hawaiianlions.world/ import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; interface IHawaiianLionsToken is IERC721 { /** * Mint by utility contract. * @dev This function is reserved for future utility. */ function mintUtility(uint256 numTokens, address mintTo) external; function totalSupply() external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 `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 // 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 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 (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); }
{ "metadata": { "bytecodeHash": "none" }, "optimizer": { "enabled": true, "runs": 800 }, "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":"_lionsAddress","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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":"DAY_15_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_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":[{"internalType":"uint256","name":"lockedAt","type":"uint256"}],"name":"calculateReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lionsToken","outputs":[{"internalType":"contract IHawaiianLionsToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"listClaimableRewardsOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"listStakedLionsOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"listUnstakedLionsOfOwner","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rateMultipliers","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"input","type":"uint256[]"},{"internalType":"uint256","name":"length","type":"uint256"}],"name":"resizeArray","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bool","name":"_stakingActive","type":"bool"}],"name":"setStakingActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stakeLions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenStakedInfo","outputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"lockedAt","type":"uint256"}],"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":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unstakeAndClaim","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
610140604052600060a0908152606460c052607060e052607d61010052609661012052620000329060069060056200026a565b506007805460ff191690553480156200004a57600080fd5b5060405162001e9638038062001e968339810160408190526200006d9162000398565b604080518082018252600581526446616e677360d81b60208083019182528351808501909452600484526346414e4760e01b908401528151919291620000b69160039162000304565b508051620000cc90600490602084019062000304565b505050620000e9620000e36200012c60201b60201c565b62000130565b6001600160a01b03811660805262000125736716d41029631116c5245096c46b04aca47d0bd06200011f600a620186a0620003ca565b62000182565b5062000451565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620001dd5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620001f19190620003ed565b90915550506001600160a01b0382166000908152602081905260408120805483929062000220908490620003ed565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600183019183908215620002f25791602002820160005b83821115620002c157835183826101000a81548160ff021916908360ff160217905550926020019260010160208160000104928301926001030262000281565b8015620002f05782816101000a81549060ff0219169055600101602081600001049283019260010302620002c1565b505b506200030092915062000381565b5090565b828054620003129062000414565b90600052602060002090601f016020900481019282620003365760008555620002f2565b82601f106200035157805160ff1916838001178555620002f2565b82800160010185558215620002f2579182015b82811115620002f257825182559160200191906001019062000364565b5b8082111562000300576000815560010162000382565b600060208284031215620003ab57600080fd5b81516001600160a01b0381168114620003c357600080fd5b9392505050565b600082620003e857634e487b7160e01b600052601260045260246000fd5b500490565b600082198211156200040f57634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200042957607f821691505b602082108114156200044b57634e487b7160e01b600052602260045260246000fd5b50919050565b608051611a0662000490600039600081816103320152818161085c015281816109be01528181610aee01528181610bde0152610f4e0152611a066000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80637f5cb39b116100f9578063a6ac4b3511610097578063d6c094b311610071578063d6c094b314610407578063dd62ed3e1461041a578063ea0dca6414610453578063f2fde38b1461046657600080fd5b8063a6ac4b35146103d4578063a9059cbb146103e1578063d2d7231f146103f457600080fd5b806391edf9ff116100d357806391edf9ff1461035457806395d89b411461036757806395e197a71461036f578063a457c2d7146103c157600080fd5b80637f5cb39b146102f55780638da5cb5b146103085780638e230f831461032d57600080fd5b8063313ce567116101665780635ad873ff116101405780635ad873ff1461029e5780636d5f8ce2146102b157806370a08231146102c4578063715018a6146102ed57600080fd5b8063313ce5671461026c57806332cb6b0c14610281578063395093511461028b57600080fd5b806318160ddd116101a257806318160ddd1461022a57806323b872dd1461023c578063281105e31461024f578063298c2f061461026457600080fd5b806306fdde03146101c9578063095ea7b3146101e75780630b82a36d1461020a575b600080fd5b6101d1610479565b6040516101de91906115f3565b60405180910390f35b6101fa6101f536600461165d565b61050b565b60405190151581526020016101de565b61021d61021836600461173a565b610521565b6040516101de919061177f565b6002545b6040519081526020016101de565b6101fa61024a3660046117c3565b6105c6565b61026261025d366004611804565b61068a565b005b61022e604b81565b60005b60405160ff90911681526020016101de565b61022e620186a081565b6101fa61029936600461165d565b6106f7565b6102626102ac36600461182d565b610733565b6102626102bf36600461182d565b610914565b61022e6102d2366004611862565b6001600160a01b031660009081526020819052604090205490565b610262610a82565b61021d610303366004611862565b610ae8565b6005546001600160a01b03165b6040516001600160a01b0390911681526020016101de565b6103157f000000000000000000000000000000000000000000000000000000000000000081565b61021d610362366004611862565b610cdb565b6101d1610dcd565b6103a261037d36600461187f565b600860205260009081526040902080546001909101546001600160a01b039091169082565b604080516001600160a01b0390931683526020830191909152016101de565b6101fa6103cf36600461165d565b610ddc565b6007546101fa9060ff1681565b6101fa6103ef36600461165d565b610e8d565b61022e61040236600461187f565b610e9a565b61026f61041536600461187f565b610f1e565b61022e610428366004611898565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61021d610461366004611862565b610f48565b610262610474366004611862565b6110b1565b606060038054610488906118d1565b80601f01602080910402602001604051908101604052809291908181526020018280546104b4906118d1565b80156105015780601f106104d657610100808354040283529160200191610501565b820191906000526020600020905b8154815290600101906020018083116104e457829003601f168201915b5050505050905090565b6000610518338484611193565b50600192915050565b606060008267ffffffffffffffff81111561053e5761053e611689565b604051908082528060200260200182016040528015610567578160200160208202803683370190505b50905060005b838110156105be578481815181106105875761058761190c565b60200260200101518282815181106105a1576105a161190c565b6020908102919091010152806105b681611938565b91505061056d565b509392505050565b60006105d38484846112b7565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156106725760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61067f8533858403611193565b506001949350505050565b6005546001600160a01b031633146106e45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610669565b6007805460ff1916911515919091179055565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161051891859061072e908690611953565b611193565b6000805b82518110156108d55760008382815181106107545761075461190c565b602090810291909101810151600081815260088352604090819020815180830190925280546001600160a01b0316808352600190910154938201939093529092509033146107ef5760405162461bcd60e51b815260206004820152602260248201527f46616e6773546f6b656e3a204f6e6c79206f776e65722063616e20756e7374616044820152616b6560f01b6064820152608401610669565b60008281526008602090815260408220805473ffffffffffffffffffffffffffffffffffffffff191681556001019190915581015161082d90610e9a565b6108379085611953565b6040516323b872dd60e01b8152306004820152336024820152604481018490529094507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd90606401600060405180830381600087803b1580156108a857600080fd5b505af11580156108bc573d6000803e3d6000fd5b50505050505080806108cd90611938565b915050610737565b50620186a06108e360025490565b6108ed9083611953565b11156109065760025461090390620186a061196b565b90505b61091033826114b5565b5050565b60075460ff166109665760405162461bcd60e51b815260206004820152601e60248201527f46616e6773546f6b656e3a205374616b696e67206e6f742061637469766500006044820152606401610669565b60005b81518110156109105760008282815181106109865761098661190c565b60209081029190910101516040516323b872dd60e01b8152336004820152306024820152604481018290529091506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90606401600060405180830381600087803b158015610a0257600080fd5b505af1158015610a16573d6000803e3d6000fd5b5050604080518082018252338152426020808301918252600096875260089052919094209351845473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039091161784555160019093019290925550819050610a7a81611938565b915050610969565b6005546001600160a01b03163314610adc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610669565b610ae66000611594565b565b606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b4557600080fd5b505afa158015610b59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7d9190611982565b905060008167ffffffffffffffff811115610b9a57610b9a611689565b604051908082528060200260200182016040528015610bc3578160200160208202803683370190505b509050600060015b838111610cc757856001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e836040518263ffffffff1660e01b8152600401610c2a91815260200190565b60206040518083038186803b158015610c4257600080fd5b505afa158015610c56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7a919061199b565b6001600160a01b03161415610cb55780838381518110610c9c57610c9c61190c565b602090810291909101015281610cb181611938565b9250505b80610cbf81611938565b915050610bcb565b50610cd28282610521565b95945050505050565b60606000610ce883610f48565b90506000815167ffffffffffffffff811115610d0657610d06611689565b604051908082528060200260200182016040528015610d2f578160200160208202803683370190505b50905060005b82518110156105be57600060086000858481518110610d5657610d5661190c565b6020908102919091018101518252818101929092526040908101600020815180830190925280546001600160a01b03168252600101549181018290529150610d9d90610e9a565b838381518110610daf57610daf61190c565b60209081029190910101525080610dc581611938565b915050610d35565b606060048054610488906118d1565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610e765760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610669565b610e833385858403611193565b5060019392505050565b60006105183384846112b7565b6000806213c680610eab844261196b565b610eb591906119b8565b90506000600660048311610ec95782610ecc565b60045b60058110610edc57610edc61190c565b602081049091015460ff601f9092166101000a9004169050606481610f0284604b6119da565b610f0c91906119da565b610f1691906119b8565b949350505050565b60068160058110610f2e57600080fd5b60209182820401919006915054906101000a900460ff1681565b606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610fa557600080fd5b505afa158015610fb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fdd9190611982565b905060008167ffffffffffffffff811115610ffa57610ffa611689565b604051908082528060200260200182016040528015611023578160200160208202803683370190505b509050600060015b838111610cc757600081815260086020908152604091829020825180840190935280546001600160a01b0390811680855260019092015492840192909252908816141561109e57818484815181106110855761108561190c565b60209081029190910101528261109a81611938565b9350505b50806110a981611938565b91505061102b565b6005546001600160a01b0316331461110b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610669565b6001600160a01b0381166111875760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610669565b61119081611594565b50565b6001600160a01b0383166111f55760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610669565b6001600160a01b0382166112565760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610669565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166113335760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610669565b6001600160a01b0382166113955760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610669565b6001600160a01b038316600090815260208190526040902054818110156114245760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610669565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061145b908490611953565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516114a791815260200190565b60405180910390a350505050565b6001600160a01b03821661150b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610669565b806002600082825461151d9190611953565b90915550506001600160a01b0382166000908152602081905260408120805483929061154a908490611953565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060208083528351808285015260005b8181101561162057858101830151858201604001528201611604565b81811115611632576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b038116811461119057600080fd5b6000806040838503121561167057600080fd5b823561167b81611648565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126116b057600080fd5b8135602067ffffffffffffffff808311156116cd576116cd611689565b8260051b604051601f19603f830116810181811084821117156116f2576116f2611689565b60405293845285810183019383810192508785111561171057600080fd5b83870191505b8482101561172f57813583529183019190830190611716565b979650505050505050565b6000806040838503121561174d57600080fd5b823567ffffffffffffffff81111561176457600080fd5b6117708582860161169f565b95602094909401359450505050565b6020808252825182820181905260009190848201906040850190845b818110156117b75783518352928401929184019160010161179b565b50909695505050505050565b6000806000606084860312156117d857600080fd5b83356117e381611648565b925060208401356117f381611648565b929592945050506040919091013590565b60006020828403121561181657600080fd5b8135801515811461182657600080fd5b9392505050565b60006020828403121561183f57600080fd5b813567ffffffffffffffff81111561185657600080fd5b610f168482850161169f565b60006020828403121561187457600080fd5b813561182681611648565b60006020828403121561189157600080fd5b5035919050565b600080604083850312156118ab57600080fd5b82356118b681611648565b915060208301356118c681611648565b809150509250929050565b600181811c908216806118e557607f821691505b6020821081141561190657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561194c5761194c611922565b5060010190565b6000821982111561196657611966611922565b500190565b60008282101561197d5761197d611922565b500390565b60006020828403121561199457600080fd5b5051919050565b6000602082840312156119ad57600080fd5b815161182681611648565b6000826119d557634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156119f4576119f4611922565b50029056fea164736f6c6343000809000a000000000000000000000000fd2043f00450ed34589dffedc85875b9ee9855d9
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c80637f5cb39b116100f9578063a6ac4b3511610097578063d6c094b311610071578063d6c094b314610407578063dd62ed3e1461041a578063ea0dca6414610453578063f2fde38b1461046657600080fd5b8063a6ac4b35146103d4578063a9059cbb146103e1578063d2d7231f146103f457600080fd5b806391edf9ff116100d357806391edf9ff1461035457806395d89b411461036757806395e197a71461036f578063a457c2d7146103c157600080fd5b80637f5cb39b146102f55780638da5cb5b146103085780638e230f831461032d57600080fd5b8063313ce567116101665780635ad873ff116101405780635ad873ff1461029e5780636d5f8ce2146102b157806370a08231146102c4578063715018a6146102ed57600080fd5b8063313ce5671461026c57806332cb6b0c14610281578063395093511461028b57600080fd5b806318160ddd116101a257806318160ddd1461022a57806323b872dd1461023c578063281105e31461024f578063298c2f061461026457600080fd5b806306fdde03146101c9578063095ea7b3146101e75780630b82a36d1461020a575b600080fd5b6101d1610479565b6040516101de91906115f3565b60405180910390f35b6101fa6101f536600461165d565b61050b565b60405190151581526020016101de565b61021d61021836600461173a565b610521565b6040516101de919061177f565b6002545b6040519081526020016101de565b6101fa61024a3660046117c3565b6105c6565b61026261025d366004611804565b61068a565b005b61022e604b81565b60005b60405160ff90911681526020016101de565b61022e620186a081565b6101fa61029936600461165d565b6106f7565b6102626102ac36600461182d565b610733565b6102626102bf36600461182d565b610914565b61022e6102d2366004611862565b6001600160a01b031660009081526020819052604090205490565b610262610a82565b61021d610303366004611862565b610ae8565b6005546001600160a01b03165b6040516001600160a01b0390911681526020016101de565b6103157f000000000000000000000000fd2043f00450ed34589dffedc85875b9ee9855d981565b61021d610362366004611862565b610cdb565b6101d1610dcd565b6103a261037d36600461187f565b600860205260009081526040902080546001909101546001600160a01b039091169082565b604080516001600160a01b0390931683526020830191909152016101de565b6101fa6103cf36600461165d565b610ddc565b6007546101fa9060ff1681565b6101fa6103ef36600461165d565b610e8d565b61022e61040236600461187f565b610e9a565b61026f61041536600461187f565b610f1e565b61022e610428366004611898565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61021d610461366004611862565b610f48565b610262610474366004611862565b6110b1565b606060038054610488906118d1565b80601f01602080910402602001604051908101604052809291908181526020018280546104b4906118d1565b80156105015780601f106104d657610100808354040283529160200191610501565b820191906000526020600020905b8154815290600101906020018083116104e457829003601f168201915b5050505050905090565b6000610518338484611193565b50600192915050565b606060008267ffffffffffffffff81111561053e5761053e611689565b604051908082528060200260200182016040528015610567578160200160208202803683370190505b50905060005b838110156105be578481815181106105875761058761190c565b60200260200101518282815181106105a1576105a161190c565b6020908102919091010152806105b681611938565b91505061056d565b509392505050565b60006105d38484846112b7565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156106725760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61067f8533858403611193565b506001949350505050565b6005546001600160a01b031633146106e45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610669565b6007805460ff1916911515919091179055565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161051891859061072e908690611953565b611193565b6000805b82518110156108d55760008382815181106107545761075461190c565b602090810291909101810151600081815260088352604090819020815180830190925280546001600160a01b0316808352600190910154938201939093529092509033146107ef5760405162461bcd60e51b815260206004820152602260248201527f46616e6773546f6b656e3a204f6e6c79206f776e65722063616e20756e7374616044820152616b6560f01b6064820152608401610669565b60008281526008602090815260408220805473ffffffffffffffffffffffffffffffffffffffff191681556001019190915581015161082d90610e9a565b6108379085611953565b6040516323b872dd60e01b8152306004820152336024820152604481018490529094507f000000000000000000000000fd2043f00450ed34589dffedc85875b9ee9855d96001600160a01b0316906323b872dd90606401600060405180830381600087803b1580156108a857600080fd5b505af11580156108bc573d6000803e3d6000fd5b50505050505080806108cd90611938565b915050610737565b50620186a06108e360025490565b6108ed9083611953565b11156109065760025461090390620186a061196b565b90505b61091033826114b5565b5050565b60075460ff166109665760405162461bcd60e51b815260206004820152601e60248201527f46616e6773546f6b656e3a205374616b696e67206e6f742061637469766500006044820152606401610669565b60005b81518110156109105760008282815181106109865761098661190c565b60209081029190910101516040516323b872dd60e01b8152336004820152306024820152604481018290529091506001600160a01b037f000000000000000000000000fd2043f00450ed34589dffedc85875b9ee9855d916906323b872dd90606401600060405180830381600087803b158015610a0257600080fd5b505af1158015610a16573d6000803e3d6000fd5b5050604080518082018252338152426020808301918252600096875260089052919094209351845473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039091161784555160019093019290925550819050610a7a81611938565b915050610969565b6005546001600160a01b03163314610adc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610669565b610ae66000611594565b565b606060007f000000000000000000000000fd2043f00450ed34589dffedc85875b9ee9855d96001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b4557600080fd5b505afa158015610b59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7d9190611982565b905060008167ffffffffffffffff811115610b9a57610b9a611689565b604051908082528060200260200182016040528015610bc3578160200160208202803683370190505b509050600060015b838111610cc757856001600160a01b03167f000000000000000000000000fd2043f00450ed34589dffedc85875b9ee9855d96001600160a01b0316636352211e836040518263ffffffff1660e01b8152600401610c2a91815260200190565b60206040518083038186803b158015610c4257600080fd5b505afa158015610c56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7a919061199b565b6001600160a01b03161415610cb55780838381518110610c9c57610c9c61190c565b602090810291909101015281610cb181611938565b9250505b80610cbf81611938565b915050610bcb565b50610cd28282610521565b95945050505050565b60606000610ce883610f48565b90506000815167ffffffffffffffff811115610d0657610d06611689565b604051908082528060200260200182016040528015610d2f578160200160208202803683370190505b50905060005b82518110156105be57600060086000858481518110610d5657610d5661190c565b6020908102919091018101518252818101929092526040908101600020815180830190925280546001600160a01b03168252600101549181018290529150610d9d90610e9a565b838381518110610daf57610daf61190c565b60209081029190910101525080610dc581611938565b915050610d35565b606060048054610488906118d1565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610e765760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610669565b610e833385858403611193565b5060019392505050565b60006105183384846112b7565b6000806213c680610eab844261196b565b610eb591906119b8565b90506000600660048311610ec95782610ecc565b60045b60058110610edc57610edc61190c565b602081049091015460ff601f9092166101000a9004169050606481610f0284604b6119da565b610f0c91906119da565b610f1691906119b8565b949350505050565b60068160058110610f2e57600080fd5b60209182820401919006915054906101000a900460ff1681565b606060007f000000000000000000000000fd2043f00450ed34589dffedc85875b9ee9855d96001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610fa557600080fd5b505afa158015610fb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fdd9190611982565b905060008167ffffffffffffffff811115610ffa57610ffa611689565b604051908082528060200260200182016040528015611023578160200160208202803683370190505b509050600060015b838111610cc757600081815260086020908152604091829020825180840190935280546001600160a01b0390811680855260019092015492840192909252908816141561109e57818484815181106110855761108561190c565b60209081029190910101528261109a81611938565b9350505b50806110a981611938565b91505061102b565b6005546001600160a01b0316331461110b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610669565b6001600160a01b0381166111875760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610669565b61119081611594565b50565b6001600160a01b0383166111f55760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610669565b6001600160a01b0382166112565760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610669565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166113335760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610669565b6001600160a01b0382166113955760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610669565b6001600160a01b038316600090815260208190526040902054818110156114245760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610669565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061145b908490611953565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516114a791815260200190565b60405180910390a350505050565b6001600160a01b03821661150b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610669565b806002600082825461151d9190611953565b90915550506001600160a01b0382166000908152602081905260408120805483929061154a908490611953565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060208083528351808285015260005b8181101561162057858101830151858201604001528201611604565b81811115611632576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b038116811461119057600080fd5b6000806040838503121561167057600080fd5b823561167b81611648565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126116b057600080fd5b8135602067ffffffffffffffff808311156116cd576116cd611689565b8260051b604051601f19603f830116810181811084821117156116f2576116f2611689565b60405293845285810183019383810192508785111561171057600080fd5b83870191505b8482101561172f57813583529183019190830190611716565b979650505050505050565b6000806040838503121561174d57600080fd5b823567ffffffffffffffff81111561176457600080fd5b6117708582860161169f565b95602094909401359450505050565b6020808252825182820181905260009190848201906040850190845b818110156117b75783518352928401929184019160010161179b565b50909695505050505050565b6000806000606084860312156117d857600080fd5b83356117e381611648565b925060208401356117f381611648565b929592945050506040919091013590565b60006020828403121561181657600080fd5b8135801515811461182657600080fd5b9392505050565b60006020828403121561183f57600080fd5b813567ffffffffffffffff81111561185657600080fd5b610f168482850161169f565b60006020828403121561187457600080fd5b813561182681611648565b60006020828403121561189157600080fd5b5035919050565b600080604083850312156118ab57600080fd5b82356118b681611648565b915060208301356118c681611648565b809150509250929050565b600181811c908216806118e557607f821691505b6020821081141561190657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561194c5761194c611922565b5060010190565b6000821982111561196657611966611922565b500190565b60008282101561197d5761197d611922565b500390565b60006020828403121561199457600080fd5b5051919050565b6000602082840312156119ad57600080fd5b815161182681611648565b6000826119d557634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156119f4576119f4611922565b50029056fea164736f6c6343000809000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000fd2043f00450ed34589dffedc85875b9ee9855d9
-----Decoded View---------------
Arg [0] : _lionsAddress (address): 0xFD2043f00450ed34589DffEDC85875B9eE9855D9
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000fd2043f00450ed34589dffedc85875b9ee9855d9
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.