ERC-20
Overview
Max Total Supply
32,595.06724722 SQUARMS
Holders
69
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
186.04402524 SQUARMSValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
SQUARMS
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 20000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&,......................................... @@@@@@@@@@@@@@@@@@@@@@@@@@@@.................................................... @@@@@@@@@@@@@@@@@@@@@@@@@@@@.................................................... @@@@@@@@@@@@@@@@@@@@@@@@@@@@,................................................... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@................................................... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@.................@,................@@.........@@... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@......@.........@@..................@@......*@..... @@@@@@@@@@@@@@@@@@@@@#..%@@@@........@@@@@@@@........................@@@........ @@@@@@@@@@@@@@@@................................................................ @@@@@@@@@@@@@@.................................................................. @@@@@@@@@@@@@................................................................... @@@@@@@@@@@@@................................................................... @@@@@@@@@@@@@@................................@@..............@&................ @@@@@@@@@@@@@@@@.................................@@@@@...@@@@................... @@@@@@@@@@@@@@@@@@@@@@@@@@@..................................................... @@@@@@@@@@@@@@@@@@@@@@@@@@@@.................................................... @@@@@@@@@@@@@@@@@@@@@@@@@@@@.................................................... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@................................................... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@................................................... / ____| | (___ __ _ _ _ __ _ _ __ _ __ ___ ___ \___ \ / _` | | | | | / _` | | '__| | '_ ` _ \ / __| ____) | | (_| | | |_| | | (_| | | | | | | | | | \__ \ |_____/ \__, | \__,_| \__,_| |_| |_| |_| |_| |___/ |_| */ pragma solidity >=0.8.9 <0.9.10; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; contract SQUARMS is ERC20Burnable, Ownable { uint256 public MAX_WALLET_STAKED = 5; uint256 public EMISSIONS_RATE =11580000000000; uint256 public CLAIM_END_TIME; uint256 public STAKE_DURATION = 0; address nullAddress = address(0); address public squarmiesAddress; bool public paused = false; bool public isLate = false; mapping(uint256 => uint256) internal tokenIdToTimeStamp; mapping(uint256 => address) internal tokenIdToStaker; mapping(address => uint256) internal addressToTimeStamp; mapping(address => uint256[]) internal stakerToTokenIds; constructor() ERC20("Squarms", "SQUARMS") { _mint( msg.sender, 15000 ether); } //getters function getTokensStaked(address staker) public view returns (uint256[] memory) { return stakerToTokenIds[staker]; } function getTokenTime (uint256 tokenId) public view returns (uint256) { return tokenIdToTimeStamp[tokenId]; } function getTimeStaked (address squarfam) public view returns (uint256) { return addressToTimeStamp[squarfam]; } function getTimeLeft (address squarfam) public view returns (uint256) { return addressToTimeStamp[squarfam] + STAKE_DURATION; } function getStaker(uint256 tokenId) public view returns (address) { return tokenIdToStaker[tokenId]; } function getAllRewards(address squarfam) public view returns (uint256) { uint256[] memory tokenIds = stakerToTokenIds[squarfam]; uint256 totalRewards = 0; for (uint256 i = 0; i < tokenIds.length; i++) { totalRewards = totalRewards + ((block.timestamp - tokenIdToTimeStamp[tokenIds[i]]) * EMISSIONS_RATE); } return totalRewards; } function getRewardsByTokenId(uint256 tokenId) public view returns (uint256) { require( tokenIdToStaker[tokenId] != nullAddress, "Squarmies is not staked!" ); uint256 secondsStaked = block.timestamp - tokenIdToTimeStamp[tokenId]; return secondsStaked * EMISSIONS_RATE; } //stake now!! function stakeSquarmies(uint256[] memory tokenIds) public { require( stakerToTokenIds[msg.sender].length + tokenIds.length <= MAX_WALLET_STAKED, "You've reached max staked" ); require(!paused); for (uint256 i = 0; i < tokenIds.length; i++) { require( IERC721(squarmiesAddress).ownerOf(tokenIds[i]) == msg.sender && tokenIdToStaker[tokenIds[i]] == nullAddress, "You dont own this token"); IERC721(squarmiesAddress).transferFrom( msg.sender, address(this), tokenIds[i] ); stakerToTokenIds[msg.sender].push(tokenIds[i]); tokenIdToTimeStamp[tokenIds[i]] = block.timestamp; addressToTimeStamp[msg.sender] = block.timestamp; tokenIdToStaker[tokenIds[i]] = msg.sender; } } function unstakeAllSquarmies() public { require(stakerToTokenIds[msg.sender].length > 0, "Must have at least > 1 staked"); require(addressToTimeStamp[msg.sender] >= addressToTimeStamp[msg.sender]+ STAKE_DURATION); require(!paused); uint256 totalRewards = 0; for (uint256 i = stakerToTokenIds[msg.sender].length; i > 0; i--) { uint256 tokenId = stakerToTokenIds[msg.sender][i - 1]; IERC721(squarmiesAddress).transferFrom( address(this), msg.sender, tokenId ); totalRewards = totalRewards + ((block.timestamp - tokenIdToTimeStamp[tokenId]) * EMISSIONS_RATE); removeTokenIdFromStaker(msg.sender, tokenId); addressToTimeStamp[msg.sender] = block.timestamp; tokenIdToStaker[tokenId] = nullAddress; _mint(msg.sender, totalRewards); } } function unstakeLateSquarmies() public { require(stakerToTokenIds[msg.sender].length > 0, "Must have at least > 1 staked"); require(isLate); uint256 totalRewards = 0; for (uint256 i = stakerToTokenIds[msg.sender].length; i > 0; i--) { uint256 tokenId = stakerToTokenIds[msg.sender][i - 1]; IERC721(squarmiesAddress).transferFrom( address(this), msg.sender, tokenId ); totalRewards = totalRewards + ((CLAIM_END_TIME - tokenIdToTimeStamp[tokenId]) * EMISSIONS_RATE); removeTokenIdFromStaker(msg.sender, tokenId); addressToTimeStamp[msg.sender] = block.timestamp; tokenIdToStaker[tokenId] = nullAddress; _mint(msg.sender, totalRewards); } } function claimAll() public { require(block.timestamp < CLAIM_END_TIME, "Claim cycle has ended"); require(addressToTimeStamp[msg.sender] >= addressToTimeStamp[msg.sender]+ STAKE_DURATION); require(!paused); uint256[] memory tokenIds = stakerToTokenIds[msg.sender]; uint256 totalRewards = 0; for (uint256 i = 0; i < tokenIds.length; i++) { require( tokenIdToStaker[tokenIds[i]] == msg.sender, "Squarmies is not yours to claim" ); totalRewards = totalRewards + ((block.timestamp - tokenIdToTimeStamp[tokenIds[i]]) * EMISSIONS_RATE); tokenIdToTimeStamp[tokenIds[i]] = block.timestamp; addressToTimeStamp[msg.sender] = block.timestamp; } _mint(msg.sender, totalRewards); } function claimAllLate() public { require(isLate); uint256[] memory tokenIds = stakerToTokenIds[msg.sender]; uint256 totalRewards = 0; for (uint256 i = 0; i < tokenIds.length; i++) { require( tokenIdToStaker[tokenIds[i]] == msg.sender,"Squarmies is not yours to claim"); totalRewards = totalRewards + ((CLAIM_END_TIME - tokenIdToTimeStamp[tokenIds[i]]) * EMISSIONS_RATE); tokenIdToTimeStamp[tokenIds[i]] = block.timestamp; addressToTimeStamp[msg.sender] = block.timestamp; } _mint(msg.sender, totalRewards); } // owner only function setMaxStaked (uint _stakeMax) public onlyOwner { MAX_WALLET_STAKED = _stakeMax; } function setStakeDuration (uint _stakeDuration) public onlyOwner { STAKE_DURATION = _stakeDuration * 1 days; } function setLateBool(bool _state) public onlyOwner { isLate = _state; } function setPaused(bool _state) public onlyOwner { paused = _state; } function setClaimCycle (uint256 _claimTime) public onlyOwner { CLAIM_END_TIME = _claimTime; } function setEmission (uint256 _rate) public onlyOwner { EMISSIONS_RATE = _rate; } function setAddress(address _squarmiesAddress) public onlyOwner { squarmiesAddress = _squarmiesAddress; } // squarmergency only, no rewards function emergencyWithdraw() public { require(stakerToTokenIds[msg.sender].length > 0, "Must have at least > 1 staked"); for (uint256 i = stakerToTokenIds[msg.sender].length; i > 0; i--) { uint256 tokenId = stakerToTokenIds[msg.sender][i - 1]; IERC721(squarmiesAddress).transferFrom( address(this), msg.sender, tokenId ); removeTokenIdFromStaker(msg.sender, tokenId); addressToTimeStamp[msg.sender] = block.timestamp; tokenIdToStaker[tokenId] = nullAddress; } } function removeSquarmies(address staker, uint256 index) internal { if (index >= stakerToTokenIds[staker].length) return; for (uint256 i = index; i < stakerToTokenIds[staker].length - 1; i++) { stakerToTokenIds[staker][i] = stakerToTokenIds[staker][i + 1]; } stakerToTokenIds[staker].pop(); } function removeTokenIdFromStaker(address staker, uint256 tokenId) internal { for (uint256 i = 0; i < stakerToTokenIds[staker].length; i++) { if (stakerToTokenIds[staker][i] == tokenId) { //This is the tokenId to remove; removeSquarmies(staker, i); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } }
// 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 (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, _allowances[owner][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = _allowances[owner][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Spend `amount` form the allowance of `owner` toward `spender`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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); }
{ "optimizer": { "enabled": true, "runs": 20000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":"CLAIM_END_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EMISSIONS_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WALLET_STAKED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STAKE_DURATION","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":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimAllLate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"squarfam","type":"address"}],"name":"getAllRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getRewardsByTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getStaker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"squarfam","type":"address"}],"name":"getTimeLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"squarfam","type":"address"}],"name":"getTimeStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getTokensStaked","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":[],"name":"isLate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_squarmiesAddress","type":"address"}],"name":"setAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimTime","type":"uint256"}],"name":"setClaimCycle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rate","type":"uint256"}],"name":"setEmission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setLateBool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakeMax","type":"uint256"}],"name":"setMaxStaked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakeDuration","type":"uint256"}],"name":"setStakeDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"squarmiesAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stakeSquarmies","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstakeAllSquarmies","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstakeLateSquarmies","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526005600655650a882dc958006007556000600955600a80546001600160a01b0319169055600b805461ffff60a01b191690553480156200004357600080fd5b506040518060400160405280600781526020016653717561726d7360c81b8152506040518060400160405280600781526020016653515541524d5360c81b81525081600390805190602001906200009c92919062000229565b508051620000b290600490602084019062000229565b505050620000cf620000c9620000eb60201b60201c565b620000ef565b620000e53369032d26d12e980b60000062000141565b62000332565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166200019c5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620001b09190620002cf565b90915550506001600160a01b03821660009081526020819052604081208054839290620001df908490620002cf565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b8280546200023790620002f6565b90600052602060002090601f0160209004810192826200025b5760008555620002a6565b82601f106200027657805160ff1916838001178555620002a6565b82800160010185558215620002a6579182015b82811115620002a657825182559160200191906001019062000289565b50620002b4929150620002b8565b5090565b5b80821115620002b45760008155600101620002b9565b60008219821115620002f157634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200030b57607f821691505b6020821081036200032c57634e487b7160e01b600052602260045260246000fd5b50919050565b612e0680620003426000396000f3fe608060405234801561001057600080fd5b50600436106102e95760003560e01c8063702cee2c11610191578063a9059cbb116100e3578063ddce102f11610097578063f2fde38b11610071578063f2fde38b14610694578063f63cfe80146106a7578063f978be1a146106c757600080fd5b8063ddce102f14610638578063e30081a01461064b578063e3c998fe1461065e57600080fd5b8063d1058e59116100c8578063d1058e59146105e2578063db2e21bc146105ea578063dd62ed3e146105f257600080fd5b8063a9059cbb146105c6578063ba7e7662146105d957600080fd5b80638ab8fab311610145578063972041e41161011f578063972041e41461055d578063a457c2d71461057d578063a4b726791461059057600080fd5b80638ab8fab31461050d5780638da5cb5b1461051657806395d89b411461055557600080fd5b8063715018a611610176578063715018a6146104cc57806379cc6790146104d457806381c17a15146104e757600080fd5b8063702cee2c1461048e57806370a082311461049657600080fd5b8063245fc1831161024a57806339509351116101fe57806352eb7796116101d857806352eb7796146104405780635c975abb146104605780636afb630a1461048557600080fd5b8063395093511461040757806342966c681461041a578063515ec1051461042d57600080fd5b8063300893351161022f57806330089335146103dd578063313ce567146103e5578063362a3fad146103f457600080fd5b8063245fc183146103b7578063252e77da146103ca57600080fd5b806318160ddd116102a15780632209d38c116102865780632209d38c1461039357806323b872dd1461039c5780632416ffca146103af57600080fd5b806318160ddd146103785780631a6c3e4c1461038057600080fd5b8063095feb80116102d2578063095feb801461032f578063111eb8b11461034457806316c38b3c1461036557600080fd5b806306fdde03146102ee578063095ea7b31461030c575b600080fd5b6102f66106da565b6040516103039190612918565b60405180910390f35b61031f61031a3660046129ad565b61076c565b6040519015158152602001610303565b61034261033d3660046129d9565b610784565b005b6103576103523660046129f2565b6107f5565b604051908152602001610303565b610342610373366004612a0f565b61082f565b600254610357565b61034261038e366004612a0f565b6108e0565b61035760085481565b61031f6103aa366004612a31565b610992565b6103426109b6565b6103426103c53660046129d9565b610c15565b6103426103d8366004612aa1565b610c81565b61034261109d565b60405160128152602001610303565b6103576104023660046129f2565b6112c3565b61031f6104153660046129ad565b6113ac565b6103426104283660046129d9565b6113f8565b61035761043b3660046129d9565b611405565b61045361044e3660046129f2565b6114b0565b6040516103039190612b7d565b600b5461031f9074010000000000000000000000000000000000000000900460ff1681565b61035760095481565b610342611529565b6103576104a43660046129f2565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b61034261171e565b6103426104e23660046129ad565b611791565b600b5461031f907501000000000000000000000000000000000000000000900460ff1681565b61035760065481565b60055473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610303565b6102f66117a6565b61035761056b3660046129d9565b6000908152600c602052604090205490565b61031f61058b3660046129ad565b6117b5565b61035761059e3660046129f2565b73ffffffffffffffffffffffffffffffffffffffff166000908152600e602052604090205490565b61031f6105d43660046129ad565b61186c565b61035760075481565b61034261187a565b610342611aeb565b610357610600366004612bc1565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b6103426106463660046129d9565b611ca6565b6103426106593660046129f2565b611d12565b61053061066c3660046129d9565b6000908152600d602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6103426106a23660046129f2565b611dc0565b600b546105309073ffffffffffffffffffffffffffffffffffffffff1681565b6103426106d53660046129d9565b611eb9565b6060600380546106e990612bfa565b80601f016020809104026020016040519081016040528092919081815260200182805461071590612bfa565b80156107625780601f1061073757610100808354040283529160200191610762565b820191906000526020600020905b81548152906001019060200180831161074557829003601f168201915b5050505050905090565b60003361077a818585611f33565b5060019392505050565b60055473ffffffffffffffffffffffffffffffffffffffff1633146107f05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600655565b60095473ffffffffffffffffffffffffffffffffffffffff82166000908152600e6020526040812054909161082991612c7c565b92915050565b60055473ffffffffffffffffffffffffffffffffffffffff1633146108965760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107e7565b600b805491151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b60055473ffffffffffffffffffffffffffffffffffffffff1633146109475760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107e7565b600b80549115157501000000000000000000000000000000000000000000027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000336109a08582856120b2565b6109ab85858561216f565b506001949350505050565b336000908152600f6020526040902054610a125760405162461bcd60e51b815260206004820152601d60248201527f4d7573742068617665206174206c65617374203e2031207374616b656400000060448201526064016107e7565b600954336000908152600e6020526040902054610a2f9190612c7c565b336000908152600e60205260409020541015610a4a57600080fd5b600b5474010000000000000000000000000000000000000000900460ff1615610a7257600080fd5b336000908152600f60205260408120545b8015610c1157336000908152600f60205260408120610aa3600184612c94565b81548110610ab357610ab3612cab565b600091825260209091200154600b546040517f23b872dd0000000000000000000000000000000000000000000000000000000081523060048201523360248201526044810183905291925073ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401600060405180830381600087803b158015610b3857600080fd5b505af1158015610b4c573d6000803e3d6000fd5b50506007546000848152600c6020526040902054909250610b6e915042612c94565b610b789190612cda565b610b829084612c7c565b9250610b8e33826123d4565b336000818152600e60209081526040808320429055600a54858452600d90925290912080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055610bfe908461246f565b5080610c0981612d17565b915050610a83565b5050565b60055473ffffffffffffffffffffffffffffffffffffffff163314610c7c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107e7565b600855565b6006548151336000908152600f6020526040902054610ca09190612c7c565b1115610cee5760405162461bcd60e51b815260206004820152601960248201527f596f752776652072656163686564206d6178207374616b65640000000000000060448201526064016107e7565b600b5474010000000000000000000000000000000000000000900460ff1615610d1657600080fd5b60005b8151811015610c1157600b548251339173ffffffffffffffffffffffffffffffffffffffff1690636352211e90859085908110610d5857610d58612cab565b60200260200101516040518263ffffffff1660e01b8152600401610d7e91815260200190565b602060405180830381865afa158015610d9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dbf9190612d4c565b73ffffffffffffffffffffffffffffffffffffffff16148015610e465750600a54825173ffffffffffffffffffffffffffffffffffffffff90911690600d90600090859085908110610e1357610e13612cab565b60209081029190910181015182528101919091526040016000205473ffffffffffffffffffffffffffffffffffffffff16145b610e925760405162461bcd60e51b815260206004820152601760248201527f596f7520646f6e74206f776e207468697320746f6b656e00000000000000000060448201526064016107e7565b600b54825173ffffffffffffffffffffffffffffffffffffffff909116906323b872dd9033903090869086908110610ecc57610ecc612cab565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815273ffffffffffffffffffffffffffffffffffffffff93841660048201529290911660248301526044820152606401600060405180830381600087803b158015610f4b57600080fd5b505af1158015610f5f573d6000803e3d6000fd5b5050336000908152600f60205260409020845190925084915083908110610f8857610f88612cab565b602090810291909101810151825460018101845560009384529183209091015582514291600c91859085908110610fc157610fc1612cab565b602002602001015181526020019081526020016000208190555042600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555033600d600084848151811061103657611036612cab565b6020026020010151815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808061109590612d69565b915050610d19565b336000908152600f60205260409020546110f95760405162461bcd60e51b815260206004820152601d60248201527f4d7573742068617665206174206c65617374203e2031207374616b656400000060448201526064016107e7565b600b547501000000000000000000000000000000000000000000900460ff1661112157600080fd5b336000908152600f60205260408120545b8015610c1157336000908152600f60205260408120611152600184612c94565b8154811061116257611162612cab565b600091825260209091200154600b546040517f23b872dd0000000000000000000000000000000000000000000000000000000081523060048201523360248201526044810183905291925073ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401600060405180830381600087803b1580156111e757600080fd5b505af11580156111fb573d6000803e3d6000fd5b50506007546000848152600c6020526040902054600854919350611220925090612c94565b61122a9190612cda565b6112349084612c7c565b925061124033826123d4565b336000818152600e60209081526040808320429055600a54858452600d90925290912080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff929092169190911790556112b0908461246f565b50806112bb81612d17565b915050611132565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600f602090815260408083208054825181850281018501909352808352849383018282801561132d57602002820191906000526020600020905b815481526020019060010190808311611319575b505050505090506000805b82518110156113a457600754600c600085848151811061135a5761135a612cab565b60200260200101518152602001908152602001600020544261137c9190612c94565b6113869190612cda565b6113909083612c7c565b91508061139c81612d69565b915050611338565b509392505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919061077a90829086906113f3908790612c7c565b611f33565b6114023382612575565b50565b600a546000828152600d6020526040812054909173ffffffffffffffffffffffffffffffffffffffff9081169116036114805760405162461bcd60e51b815260206004820152601860248201527f53717561726d696573206973206e6f74207374616b656421000000000000000060448201526064016107e7565b6000828152600c60205260408120546114999042612c94565b9050600754816114a99190612cda565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600f602090815260409182902080548351818402810184019094528084526060939283018282801561151d57602002820191906000526020600020905b815481526020019060010190808311611509575b50505050509050919050565b600b547501000000000000000000000000000000000000000000900460ff1661155157600080fd5b336000908152600f60209081526040808320805482518185028101850190935280835291929091908301828280156115a857602002820191906000526020600020905b815481526020019060010190808311611594575b505050505090506000805b8251811015611713573373ffffffffffffffffffffffffffffffffffffffff16600d60008584815181106115e9576115e9612cab565b60209081029190910181015182528101919091526040016000205473ffffffffffffffffffffffffffffffffffffffff16146116675760405162461bcd60e51b815260206004820152601f60248201527f53717561726d696573206973206e6f7420796f75727320746f20636c61696d0060448201526064016107e7565b600754600c600085848151811061168057611680612cab565b60200260200101518152602001908152602001600020546008546116a49190612c94565b6116ae9190612cda565b6116b89083612c7c565b915042600c60008584815181106116d1576116d1612cab565b6020908102919091018101518252818101929092526040908101600090812093909355338352600e90915290204290558061170b81612d69565b9150506115b3565b50610c11338261246f565b60055473ffffffffffffffffffffffffffffffffffffffff1633146117855760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107e7565b61178f600061272e565b565b61179c8233836120b2565b610c118282612575565b6060600480546106e990612bfa565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091908381101561185f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016107e7565b6109ab8286868403611f33565b60003361077a81858561216f565b60085442106118cb5760405162461bcd60e51b815260206004820152601560248201527f436c61696d206379636c652068617320656e646564000000000000000000000060448201526064016107e7565b600954336000908152600e60205260409020546118e89190612c7c565b336000908152600e6020526040902054101561190357600080fd5b600b5474010000000000000000000000000000000000000000900460ff161561192b57600080fd5b336000908152600f602090815260408083208054825181850281018501909352808352919290919083018282801561198257602002820191906000526020600020905b81548152602001906001019080831161196e575b505050505090506000805b8251811015611713573373ffffffffffffffffffffffffffffffffffffffff16600d60008584815181106119c3576119c3612cab565b60209081029190910181015182528101919091526040016000205473ffffffffffffffffffffffffffffffffffffffff1614611a415760405162461bcd60e51b815260206004820152601f60248201527f53717561726d696573206973206e6f7420796f75727320746f20636c61696d0060448201526064016107e7565b600754600c6000858481518110611a5a57611a5a612cab565b602002602001015181526020019081526020016000205442611a7c9190612c94565b611a869190612cda565b611a909083612c7c565b915042600c6000858481518110611aa957611aa9612cab565b6020908102919091018101518252818101929092526040908101600090812093909355338352600e909152902042905580611ae381612d69565b91505061198d565b336000908152600f6020526040902054611b475760405162461bcd60e51b815260206004820152601d60248201527f4d7573742068617665206174206c65617374203e2031207374616b656400000060448201526064016107e7565b336000908152600f60205260409020545b801561140257336000908152600f60205260408120611b78600184612c94565b81548110611b8857611b88612cab565b600091825260209091200154600b546040517f23b872dd0000000000000000000000000000000000000000000000000000000081523060048201523360248201526044810183905291925073ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401600060405180830381600087803b158015611c0d57600080fd5b505af1158015611c21573d6000803e3d6000fd5b50505050611c2f33826123d4565b336000908152600e60209081526040808320429055600a54938352600d909152902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905580611c9e81612d17565b915050611b58565b60055473ffffffffffffffffffffffffffffffffffffffff163314611d0d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107e7565b600755565b60055473ffffffffffffffffffffffffffffffffffffffff163314611d795760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107e7565b600b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60055473ffffffffffffffffffffffffffffffffffffffff163314611e275760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107e7565b73ffffffffffffffffffffffffffffffffffffffff8116611eb05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107e7565b6114028161272e565b60055473ffffffffffffffffffffffffffffffffffffffff163314611f205760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107e7565b611f2d8162015180612cda565b60095550565b73ffffffffffffffffffffffffffffffffffffffff8316611fbb5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016107e7565b73ffffffffffffffffffffffffffffffffffffffff82166120445760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016107e7565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114612169578181101561215c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016107e7565b6121698484848403611f33565b50505050565b73ffffffffffffffffffffffffffffffffffffffff83166121f85760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016107e7565b73ffffffffffffffffffffffffffffffffffffffff82166122815760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016107e7565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260409020548181101561231d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016107e7565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260208190526040808220858503905591851681529081208054849290612361908490612c7c565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516123c791815260200190565b60405180910390a3612169565b60005b73ffffffffffffffffffffffffffffffffffffffff83166000908152600f602052604090205481101561246a5773ffffffffffffffffffffffffffffffffffffffff83166000908152600f6020526040902080548391908390811061243e5761243e612cab565b9060005260206000200154036124585761245883826127a5565b8061246281612d69565b9150506123d7565b505050565b73ffffffffffffffffffffffffffffffffffffffff82166124d25760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016107e7565b80600260008282546124e49190612c7c565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152602081905260408120805483929061251e908490612c7c565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff82166125fe5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016107e7565b73ffffffffffffffffffffffffffffffffffffffff82166000908152602081905260409020548181101561269a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016107e7565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604081208383039055600280548492906126d6908490612c94565b909155505060405182815260009073ffffffffffffffffffffffffffffffffffffffff8516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6005805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600f602052604090205481106127d5575050565b805b73ffffffffffffffffffffffffffffffffffffffff83166000908152600f602052604090205461280990600190612c94565b8110156128c95773ffffffffffffffffffffffffffffffffffffffff83166000908152600f60205260409020612840826001612c7c565b8154811061285057612850612cab565b9060005260206000200154600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106128ab576128ab612cab565b600091825260209091200155806128c181612d69565b9150506127d7565b5073ffffffffffffffffffffffffffffffffffffffff82166000908152600f602052604090208054806128fe576128fe612da1565b600190038181906000526020600020016000905590555050565b600060208083528351808285015260005b8181101561294557858101830151858201604001528201612929565b81811115612957576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461140257600080fd5b600080604083850312156129c057600080fd5b82356129cb8161298b565b946020939093013593505050565b6000602082840312156129eb57600080fd5b5035919050565b600060208284031215612a0457600080fd5b81356114a98161298b565b600060208284031215612a2157600080fd5b813580151581146114a957600080fd5b600080600060608486031215612a4657600080fd5b8335612a518161298b565b92506020840135612a618161298b565b929592945050506040919091013590565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60006020808385031215612ab457600080fd5b823567ffffffffffffffff80821115612acc57600080fd5b818501915085601f830112612ae057600080fd5b813581811115612af257612af2612a72565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f83011681018181108582111715612b3557612b35612a72565b604052918252848201925083810185019188831115612b5357600080fd5b938501935b82851015612b7157843584529385019392850192612b58565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612bb557835183529284019291840191600101612b99565b50909695505050505050565b60008060408385031215612bd457600080fd5b8235612bdf8161298b565b91506020830135612bef8161298b565b809150509250929050565b600181811c90821680612c0e57607f821691505b602082108103612c47577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008219821115612c8f57612c8f612c4d565b500190565b600082821015612ca657612ca6612c4d565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612d1257612d12612c4d565b500290565b600081612d2657612d26612c4d565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600060208284031215612d5e57600080fd5b81516114a98161298b565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612d9a57612d9a612c4d565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212203f05bbd17449d468c76780a695c43587c62987cd7bb5bfd11b5595e908563d8064736f6c634300080d0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102e95760003560e01c8063702cee2c11610191578063a9059cbb116100e3578063ddce102f11610097578063f2fde38b11610071578063f2fde38b14610694578063f63cfe80146106a7578063f978be1a146106c757600080fd5b8063ddce102f14610638578063e30081a01461064b578063e3c998fe1461065e57600080fd5b8063d1058e59116100c8578063d1058e59146105e2578063db2e21bc146105ea578063dd62ed3e146105f257600080fd5b8063a9059cbb146105c6578063ba7e7662146105d957600080fd5b80638ab8fab311610145578063972041e41161011f578063972041e41461055d578063a457c2d71461057d578063a4b726791461059057600080fd5b80638ab8fab31461050d5780638da5cb5b1461051657806395d89b411461055557600080fd5b8063715018a611610176578063715018a6146104cc57806379cc6790146104d457806381c17a15146104e757600080fd5b8063702cee2c1461048e57806370a082311461049657600080fd5b8063245fc1831161024a57806339509351116101fe57806352eb7796116101d857806352eb7796146104405780635c975abb146104605780636afb630a1461048557600080fd5b8063395093511461040757806342966c681461041a578063515ec1051461042d57600080fd5b8063300893351161022f57806330089335146103dd578063313ce567146103e5578063362a3fad146103f457600080fd5b8063245fc183146103b7578063252e77da146103ca57600080fd5b806318160ddd116102a15780632209d38c116102865780632209d38c1461039357806323b872dd1461039c5780632416ffca146103af57600080fd5b806318160ddd146103785780631a6c3e4c1461038057600080fd5b8063095feb80116102d2578063095feb801461032f578063111eb8b11461034457806316c38b3c1461036557600080fd5b806306fdde03146102ee578063095ea7b31461030c575b600080fd5b6102f66106da565b6040516103039190612918565b60405180910390f35b61031f61031a3660046129ad565b61076c565b6040519015158152602001610303565b61034261033d3660046129d9565b610784565b005b6103576103523660046129f2565b6107f5565b604051908152602001610303565b610342610373366004612a0f565b61082f565b600254610357565b61034261038e366004612a0f565b6108e0565b61035760085481565b61031f6103aa366004612a31565b610992565b6103426109b6565b6103426103c53660046129d9565b610c15565b6103426103d8366004612aa1565b610c81565b61034261109d565b60405160128152602001610303565b6103576104023660046129f2565b6112c3565b61031f6104153660046129ad565b6113ac565b6103426104283660046129d9565b6113f8565b61035761043b3660046129d9565b611405565b61045361044e3660046129f2565b6114b0565b6040516103039190612b7d565b600b5461031f9074010000000000000000000000000000000000000000900460ff1681565b61035760095481565b610342611529565b6103576104a43660046129f2565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b61034261171e565b6103426104e23660046129ad565b611791565b600b5461031f907501000000000000000000000000000000000000000000900460ff1681565b61035760065481565b60055473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610303565b6102f66117a6565b61035761056b3660046129d9565b6000908152600c602052604090205490565b61031f61058b3660046129ad565b6117b5565b61035761059e3660046129f2565b73ffffffffffffffffffffffffffffffffffffffff166000908152600e602052604090205490565b61031f6105d43660046129ad565b61186c565b61035760075481565b61034261187a565b610342611aeb565b610357610600366004612bc1565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b6103426106463660046129d9565b611ca6565b6103426106593660046129f2565b611d12565b61053061066c3660046129d9565b6000908152600d602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6103426106a23660046129f2565b611dc0565b600b546105309073ffffffffffffffffffffffffffffffffffffffff1681565b6103426106d53660046129d9565b611eb9565b6060600380546106e990612bfa565b80601f016020809104026020016040519081016040528092919081815260200182805461071590612bfa565b80156107625780601f1061073757610100808354040283529160200191610762565b820191906000526020600020905b81548152906001019060200180831161074557829003601f168201915b5050505050905090565b60003361077a818585611f33565b5060019392505050565b60055473ffffffffffffffffffffffffffffffffffffffff1633146107f05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600655565b60095473ffffffffffffffffffffffffffffffffffffffff82166000908152600e6020526040812054909161082991612c7c565b92915050565b60055473ffffffffffffffffffffffffffffffffffffffff1633146108965760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107e7565b600b805491151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b60055473ffffffffffffffffffffffffffffffffffffffff1633146109475760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107e7565b600b80549115157501000000000000000000000000000000000000000000027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000336109a08582856120b2565b6109ab85858561216f565b506001949350505050565b336000908152600f6020526040902054610a125760405162461bcd60e51b815260206004820152601d60248201527f4d7573742068617665206174206c65617374203e2031207374616b656400000060448201526064016107e7565b600954336000908152600e6020526040902054610a2f9190612c7c565b336000908152600e60205260409020541015610a4a57600080fd5b600b5474010000000000000000000000000000000000000000900460ff1615610a7257600080fd5b336000908152600f60205260408120545b8015610c1157336000908152600f60205260408120610aa3600184612c94565b81548110610ab357610ab3612cab565b600091825260209091200154600b546040517f23b872dd0000000000000000000000000000000000000000000000000000000081523060048201523360248201526044810183905291925073ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401600060405180830381600087803b158015610b3857600080fd5b505af1158015610b4c573d6000803e3d6000fd5b50506007546000848152600c6020526040902054909250610b6e915042612c94565b610b789190612cda565b610b829084612c7c565b9250610b8e33826123d4565b336000818152600e60209081526040808320429055600a54858452600d90925290912080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055610bfe908461246f565b5080610c0981612d17565b915050610a83565b5050565b60055473ffffffffffffffffffffffffffffffffffffffff163314610c7c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107e7565b600855565b6006548151336000908152600f6020526040902054610ca09190612c7c565b1115610cee5760405162461bcd60e51b815260206004820152601960248201527f596f752776652072656163686564206d6178207374616b65640000000000000060448201526064016107e7565b600b5474010000000000000000000000000000000000000000900460ff1615610d1657600080fd5b60005b8151811015610c1157600b548251339173ffffffffffffffffffffffffffffffffffffffff1690636352211e90859085908110610d5857610d58612cab565b60200260200101516040518263ffffffff1660e01b8152600401610d7e91815260200190565b602060405180830381865afa158015610d9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dbf9190612d4c565b73ffffffffffffffffffffffffffffffffffffffff16148015610e465750600a54825173ffffffffffffffffffffffffffffffffffffffff90911690600d90600090859085908110610e1357610e13612cab565b60209081029190910181015182528101919091526040016000205473ffffffffffffffffffffffffffffffffffffffff16145b610e925760405162461bcd60e51b815260206004820152601760248201527f596f7520646f6e74206f776e207468697320746f6b656e00000000000000000060448201526064016107e7565b600b54825173ffffffffffffffffffffffffffffffffffffffff909116906323b872dd9033903090869086908110610ecc57610ecc612cab565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815273ffffffffffffffffffffffffffffffffffffffff93841660048201529290911660248301526044820152606401600060405180830381600087803b158015610f4b57600080fd5b505af1158015610f5f573d6000803e3d6000fd5b5050336000908152600f60205260409020845190925084915083908110610f8857610f88612cab565b602090810291909101810151825460018101845560009384529183209091015582514291600c91859085908110610fc157610fc1612cab565b602002602001015181526020019081526020016000208190555042600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555033600d600084848151811061103657611036612cab565b6020026020010151815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808061109590612d69565b915050610d19565b336000908152600f60205260409020546110f95760405162461bcd60e51b815260206004820152601d60248201527f4d7573742068617665206174206c65617374203e2031207374616b656400000060448201526064016107e7565b600b547501000000000000000000000000000000000000000000900460ff1661112157600080fd5b336000908152600f60205260408120545b8015610c1157336000908152600f60205260408120611152600184612c94565b8154811061116257611162612cab565b600091825260209091200154600b546040517f23b872dd0000000000000000000000000000000000000000000000000000000081523060048201523360248201526044810183905291925073ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401600060405180830381600087803b1580156111e757600080fd5b505af11580156111fb573d6000803e3d6000fd5b50506007546000848152600c6020526040902054600854919350611220925090612c94565b61122a9190612cda565b6112349084612c7c565b925061124033826123d4565b336000818152600e60209081526040808320429055600a54858452600d90925290912080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff929092169190911790556112b0908461246f565b50806112bb81612d17565b915050611132565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600f602090815260408083208054825181850281018501909352808352849383018282801561132d57602002820191906000526020600020905b815481526020019060010190808311611319575b505050505090506000805b82518110156113a457600754600c600085848151811061135a5761135a612cab565b60200260200101518152602001908152602001600020544261137c9190612c94565b6113869190612cda565b6113909083612c7c565b91508061139c81612d69565b915050611338565b509392505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919061077a90829086906113f3908790612c7c565b611f33565b6114023382612575565b50565b600a546000828152600d6020526040812054909173ffffffffffffffffffffffffffffffffffffffff9081169116036114805760405162461bcd60e51b815260206004820152601860248201527f53717561726d696573206973206e6f74207374616b656421000000000000000060448201526064016107e7565b6000828152600c60205260408120546114999042612c94565b9050600754816114a99190612cda565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600f602090815260409182902080548351818402810184019094528084526060939283018282801561151d57602002820191906000526020600020905b815481526020019060010190808311611509575b50505050509050919050565b600b547501000000000000000000000000000000000000000000900460ff1661155157600080fd5b336000908152600f60209081526040808320805482518185028101850190935280835291929091908301828280156115a857602002820191906000526020600020905b815481526020019060010190808311611594575b505050505090506000805b8251811015611713573373ffffffffffffffffffffffffffffffffffffffff16600d60008584815181106115e9576115e9612cab565b60209081029190910181015182528101919091526040016000205473ffffffffffffffffffffffffffffffffffffffff16146116675760405162461bcd60e51b815260206004820152601f60248201527f53717561726d696573206973206e6f7420796f75727320746f20636c61696d0060448201526064016107e7565b600754600c600085848151811061168057611680612cab565b60200260200101518152602001908152602001600020546008546116a49190612c94565b6116ae9190612cda565b6116b89083612c7c565b915042600c60008584815181106116d1576116d1612cab565b6020908102919091018101518252818101929092526040908101600090812093909355338352600e90915290204290558061170b81612d69565b9150506115b3565b50610c11338261246f565b60055473ffffffffffffffffffffffffffffffffffffffff1633146117855760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107e7565b61178f600061272e565b565b61179c8233836120b2565b610c118282612575565b6060600480546106e990612bfa565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091908381101561185f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016107e7565b6109ab8286868403611f33565b60003361077a81858561216f565b60085442106118cb5760405162461bcd60e51b815260206004820152601560248201527f436c61696d206379636c652068617320656e646564000000000000000000000060448201526064016107e7565b600954336000908152600e60205260409020546118e89190612c7c565b336000908152600e6020526040902054101561190357600080fd5b600b5474010000000000000000000000000000000000000000900460ff161561192b57600080fd5b336000908152600f602090815260408083208054825181850281018501909352808352919290919083018282801561198257602002820191906000526020600020905b81548152602001906001019080831161196e575b505050505090506000805b8251811015611713573373ffffffffffffffffffffffffffffffffffffffff16600d60008584815181106119c3576119c3612cab565b60209081029190910181015182528101919091526040016000205473ffffffffffffffffffffffffffffffffffffffff1614611a415760405162461bcd60e51b815260206004820152601f60248201527f53717561726d696573206973206e6f7420796f75727320746f20636c61696d0060448201526064016107e7565b600754600c6000858481518110611a5a57611a5a612cab565b602002602001015181526020019081526020016000205442611a7c9190612c94565b611a869190612cda565b611a909083612c7c565b915042600c6000858481518110611aa957611aa9612cab565b6020908102919091018101518252818101929092526040908101600090812093909355338352600e909152902042905580611ae381612d69565b91505061198d565b336000908152600f6020526040902054611b475760405162461bcd60e51b815260206004820152601d60248201527f4d7573742068617665206174206c65617374203e2031207374616b656400000060448201526064016107e7565b336000908152600f60205260409020545b801561140257336000908152600f60205260408120611b78600184612c94565b81548110611b8857611b88612cab565b600091825260209091200154600b546040517f23b872dd0000000000000000000000000000000000000000000000000000000081523060048201523360248201526044810183905291925073ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401600060405180830381600087803b158015611c0d57600080fd5b505af1158015611c21573d6000803e3d6000fd5b50505050611c2f33826123d4565b336000908152600e60209081526040808320429055600a54938352600d909152902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905580611c9e81612d17565b915050611b58565b60055473ffffffffffffffffffffffffffffffffffffffff163314611d0d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107e7565b600755565b60055473ffffffffffffffffffffffffffffffffffffffff163314611d795760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107e7565b600b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60055473ffffffffffffffffffffffffffffffffffffffff163314611e275760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107e7565b73ffffffffffffffffffffffffffffffffffffffff8116611eb05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107e7565b6114028161272e565b60055473ffffffffffffffffffffffffffffffffffffffff163314611f205760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107e7565b611f2d8162015180612cda565b60095550565b73ffffffffffffffffffffffffffffffffffffffff8316611fbb5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016107e7565b73ffffffffffffffffffffffffffffffffffffffff82166120445760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016107e7565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114612169578181101561215c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016107e7565b6121698484848403611f33565b50505050565b73ffffffffffffffffffffffffffffffffffffffff83166121f85760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016107e7565b73ffffffffffffffffffffffffffffffffffffffff82166122815760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016107e7565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260409020548181101561231d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016107e7565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260208190526040808220858503905591851681529081208054849290612361908490612c7c565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516123c791815260200190565b60405180910390a3612169565b60005b73ffffffffffffffffffffffffffffffffffffffff83166000908152600f602052604090205481101561246a5773ffffffffffffffffffffffffffffffffffffffff83166000908152600f6020526040902080548391908390811061243e5761243e612cab565b9060005260206000200154036124585761245883826127a5565b8061246281612d69565b9150506123d7565b505050565b73ffffffffffffffffffffffffffffffffffffffff82166124d25760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016107e7565b80600260008282546124e49190612c7c565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152602081905260408120805483929061251e908490612c7c565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff82166125fe5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016107e7565b73ffffffffffffffffffffffffffffffffffffffff82166000908152602081905260409020548181101561269a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016107e7565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604081208383039055600280548492906126d6908490612c94565b909155505060405182815260009073ffffffffffffffffffffffffffffffffffffffff8516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6005805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600f602052604090205481106127d5575050565b805b73ffffffffffffffffffffffffffffffffffffffff83166000908152600f602052604090205461280990600190612c94565b8110156128c95773ffffffffffffffffffffffffffffffffffffffff83166000908152600f60205260409020612840826001612c7c565b8154811061285057612850612cab565b9060005260206000200154600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106128ab576128ab612cab565b600091825260209091200155806128c181612d69565b9150506127d7565b5073ffffffffffffffffffffffffffffffffffffffff82166000908152600f602052604090208054806128fe576128fe612da1565b600190038181906000526020600020016000905590555050565b600060208083528351808285015260005b8181101561294557858101830151858201604001528201612929565b81811115612957576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461140257600080fd5b600080604083850312156129c057600080fd5b82356129cb8161298b565b946020939093013593505050565b6000602082840312156129eb57600080fd5b5035919050565b600060208284031215612a0457600080fd5b81356114a98161298b565b600060208284031215612a2157600080fd5b813580151581146114a957600080fd5b600080600060608486031215612a4657600080fd5b8335612a518161298b565b92506020840135612a618161298b565b929592945050506040919091013590565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60006020808385031215612ab457600080fd5b823567ffffffffffffffff80821115612acc57600080fd5b818501915085601f830112612ae057600080fd5b813581811115612af257612af2612a72565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f83011681018181108582111715612b3557612b35612a72565b604052918252848201925083810185019188831115612b5357600080fd5b938501935b82851015612b7157843584529385019392850192612b58565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612bb557835183529284019291840191600101612b99565b50909695505050505050565b60008060408385031215612bd457600080fd5b8235612bdf8161298b565b91506020830135612bef8161298b565b809150509250929050565b600181811c90821680612c0e57607f821691505b602082108103612c47577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008219821115612c8f57612c8f612c4d565b500190565b600082821015612ca657612ca6612c4d565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612d1257612d12612c4d565b500290565b600081612d2657612d26612c4d565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600060208284031215612d5e57600080fd5b81516114a98161298b565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612d9a57612d9a612c4d565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212203f05bbd17449d468c76780a695c43587c62987cd7bb5bfd11b5595e908563d8064736f6c634300080d0033
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.