Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
1,264,927.304893522341823101 CELL
Holders
622
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
19.110648148148190956 CELLValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CellToken
Compiler Version
v0.8.0+commit.c7dfd78e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-02-17 */ // SPDX-License-Identifier: MIT pragma solidity 0.8.0; // Part: OpenZeppelin/[email protected]/Context /* * @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; } } // Part: OpenZeppelin/[email protected]/IERC165 /** * @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); } // Part: OpenZeppelin/[email protected]/IERC20 /** * @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); } // Part: OpenZeppelin/[email protected]/IERC20Metadata /** * @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); } // Part: OpenZeppelin/[email protected]/IERC721 /** * @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; } // Part: OpenZeppelin/[email protected]/Ownable /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // Part: OpenZeppelin/[email protected]/ERC20 /** * @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 guidelines: functions revert instead * of 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 {} } // Part: OpenZeppelin/[email protected]/IERC721Enumerable /** * @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 tokenId); /** * @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); } // Part: ISheetFighterToken interface ISheetFighterToken is IERC721Enumerable { /// @notice Update the address of the CellToken contract /// @param _contractAddress Address of the CellToken contract function setCellTokenAddress(address _contractAddress) external; /// @notice Update the address which signs the mint transactions /// @dev Used for ensuring GPT-3 values have not been altered /// @param _mintSigner New address for the mintSigner function setMintSigner(address _mintSigner) external; /// @notice Update the address of the bridge /// @dev Used for authorization /// @param _bridge New address for the bridge function setBridge(address _bridge) external; /// @dev Withdraw funds as owner function withdraw() external; /// @notice Set the sale state: options are 0 (closed), 1 (presale), 2 (public sale) -- only owner can call /// @dev Implicitly converts int argument to TokenSaleState type -- only owner can call /// @param saleStateId The id for the sale state: 0 (closed), 1 (presale), 2 (public sale) function setSaleState(uint256 saleStateId) external; /// @notice Mint up to 20 Sheet Fighters /// @param numTokens Number of Sheet Fighter tokens to mint (1 to 20) function mint(uint256 numTokens) external payable; /// @notice "Print" a Sheet. Adds GPT-3 flavor text and attributes /// @dev This function requires signature verification /// @param _tokenIds Array of tokenIds to print /// @param _flavorTexts Array of strings with flavor texts concatonated with a pipe character /// @param _signature Signature verifying _flavorTexts are unmodified function print( uint256[] memory _tokenIds, string[] memory _flavorTexts, bytes memory _signature ) external; /// @notice Bridge the Sheets /// @dev Transfers Sheets to bridge /// @param tokenOwner Address of the tokenOwner who is bridging their tokens /// @param tokenIds Array of tokenIds that tokenOwner is bridging function bridgeSheets(address tokenOwner, uint256[] calldata tokenIds) external; /// @notice Update the sheet to sync with actions that occured on otherside of bridge /// @param tokenId Id of the SheetFighter /// @param HP New HP value /// @param luck New luck value /// @param heal New heal value /// @param defense New defense value /// @param attack New attack value function syncBridgedSheet( uint256 tokenId, uint8 HP, uint8 luck, uint8 heal, uint8 defense, uint8 attack ) external; /// @notice Return true if token is printed, false otherwise /// @param _tokenId Id of the SheetFighter NFT /// @return bool indicating whether or not sheet is printed function isPrinted(uint256 _tokenId) external view returns(bool); /// @notice Returns the token metadata and SVG artwork /// @dev This generates a data URI, which contains the metadata json, encoded in base64 /// @param _tokenId The tokenId of the token whos metadata and SVG we want function tokenURI(uint256 _tokenId) external view returns (string memory); } // Part: OpenZeppelin/[email protected]/ERC20Burnable /** * @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 { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - amount); } _burn(account, amount); } } // File: CellToken.sol /// @title Contract creating fungible in-game utility tokens for the Sheet Fighter game /// @author Overlord Paper Co /// @notice This defines in-game utility tokens that are used for the Sheet Fighter game /// @notice This contract is HIGHLY adapted from the Anonymice $CHEETH contract /// @notice Thank you MouseDev for writing the original $CHEETH contract! contract CellToken is ERC20Burnable, Ownable { uint256 public constant MAX_WALLET_STAKED = 10; uint256 public constant EMISSIONS_RATE = 115_740_740_740_741; // 10 $CELL per day = (10*1e18)/(60*60*24) uint256 public constant MAX_CELL = 1e26; /// @notice Address of SheetFighterToken contract address public sheetFighterTokenAddress; /// @notice Map SheetFighter id to timestamp staked mapping(uint256 => uint256) public tokenIdToTimeStamp; /// @notice Map SheetFighter id to staker's address mapping(uint256 => address) public tokenIdToStaker; /// @notice Map staker's address to array the ids of all the SheetFighters they're staking mapping(address => uint256[]) public stakerToTokenIds; /// @notice Address of the Polygon bridge address public bridge; /// @notice Construct CellToken contract for the in-game utility token for the Sheet Fighter game /// @dev Set sheetFighterTokenAddress, ERC20 name and symbol, and implicitly execute Ownable contructor constructor(address _sheetFighterTokenAddress) ERC20('Cell', 'CELL') Ownable() { sheetFighterTokenAddress = _sheetFighterTokenAddress; } /// @notice Update the address of the SheetFighterToken contract /// @param _contractAddress Address of the SheetFighterToken contract function setSheetFighterTokenAddress(address _contractAddress) external onlyOwner { sheetFighterTokenAddress = _contractAddress; } /// @notice Update the address of the bridge /// @dev Used for authorization /// @param _bridge New address for the bridge function setBridge(address _bridge) external onlyOwner { bridge = _bridge; } /// @notice Stake multiple Sheets by providing their Ids /// @param tokenIds Array of SheetFighterToken ids to stake function stakeByIds(uint256[] calldata tokenIds) external { require( stakerToTokenIds[msg.sender].length + tokenIds.length <= MAX_WALLET_STAKED, "Must have less than 10 Sheets staked!" ); for (uint256 i = 0; i < tokenIds.length; i++) { require( ISheetFighterToken(sheetFighterTokenAddress).ownerOf(tokenIds[i]) == msg.sender, "You don't own this Sheet!" ); require(tokenIdToStaker[tokenIds[i]] == address(0), "Token is already being staked!"); // Transfer SheetFighterToken to this (CellToken) contract ISheetFighterToken(sheetFighterTokenAddress).transferFrom( msg.sender, address(this), tokenIds[i] ); // Update staking variables in storage stakerToTokenIds[msg.sender].push(tokenIds[i]); tokenIdToTimeStamp[tokenIds[i]] = block.timestamp; tokenIdToStaker[tokenIds[i]] = msg.sender; } } /// @notice Unstake all of your SheetFighterTokens and get your rewards /// @notice This function is more gas efficient than calling unstakeByIds(...) for all ids /// @dev Tokens are iterated over in REVERSE order, due to the implementation of _remove(...) function unstakeAll() external { require( stakerToTokenIds[msg.sender].length > 0, "You have no tokens staked!" ); uint256 totalRewards = 0; // Iterate over staked tokens from the BACK of the array, because // the _remove() function, which is called by _removeTokenIdFromStaker(), // is far more gas efficient when called on elements further back for (uint256 i = stakerToTokenIds[msg.sender].length; i > 0; i--) { uint256 tokenId = stakerToTokenIds[msg.sender][i - 1]; // Transfer SheetFighterToken back to staker ISheetFighterToken(sheetFighterTokenAddress).transferFrom( address(this), msg.sender, tokenId ); // Add rewards for the current token totalRewards = totalRewards + ( (block.timestamp - tokenIdToTimeStamp[tokenId]) * EMISSIONS_RATE ); // Remove the token from the staker in storage variables _removeTokenIdFromStaker(msg.sender, tokenId); delete tokenIdToStaker[tokenId]; } // Mint CellTokens to reward staker _mint(msg.sender, _getMaximumRewards(totalRewards)); } /// @notice Unstake SheetFighterTokens, given by ids, and get your rewards /// @notice Use unstakeAll(...) instead if unstaking all tokens for gas efficiency /// @param tokenIds Array of SheetFighterToken ids to unstake function unstakeByIds(uint256[] memory tokenIds) external { uint256 totalRewards = 0; for (uint256 i = 0; i < tokenIds.length; i++) { require( tokenIdToStaker[tokenIds[i]] == msg.sender, "You're not staking this Sheet!" ); // Transfer SheetFighterToken back to staker ISheetFighterToken(sheetFighterTokenAddress).transferFrom( address(this), msg.sender, tokenIds[i] ); // Add rewards for the current token totalRewards = totalRewards + ( (block.timestamp - tokenIdToTimeStamp[tokenIds[i]]) * EMISSIONS_RATE ); // Remove the token from the staker in storage variables _removeTokenIdFromStaker(msg.sender, tokenIds[i]); delete tokenIdToStaker[tokenIds[i]]; } // Mint CellTokens to reward staker _mint(msg.sender, _getMaximumRewards(totalRewards)); } /// @notice Claim $CELL tokens as reward for staking a SheetFighterTokens, given by an id /// @notice This function does not unstake your Sheets /// @param tokenId SheetFighterToken id function claimByTokenId(uint256 tokenId) external { require( tokenIdToStaker[tokenId] == msg.sender, "You're not staking this Sheet!" ); _mint( msg.sender, _getMaximumRewards((block.timestamp - tokenIdToTimeStamp[tokenId]) * EMISSIONS_RATE) ); tokenIdToTimeStamp[tokenId] = block.timestamp; } /// @notice Claim $CELL tokens as reward for all SheetFighterTokens staked /// @notice This function does not unstake your Sheets function claimAll() external { uint256[] memory tokenIds = stakerToTokenIds[msg.sender]; uint256 totalRewards = 0; for (uint256 i = 0; i < tokenIds.length; i++) { require( tokenIdToStaker[tokenIds[i]] == msg.sender, "Token is not claimable by you!" ); totalRewards = totalRewards + ((block.timestamp - tokenIdToTimeStamp[tokenIds[i]]) * EMISSIONS_RATE); tokenIdToTimeStamp[tokenIds[i]] = block.timestamp; } _mint(msg.sender, _getMaximumRewards(totalRewards)); } /// @notice Mint tokens when bridging /// @dev This function is only used for bridging to mint tokens on one end /// @param to Address to send new tokens to /// @param value Number of new tokens to mint function bridgeMint(address to, uint256 value) external { require(bridge != address(0), "Bridge is not set"); require(msg.sender == bridge, "Only bridge can do this"); _mint(to, _getMaximumRewards(value)); } /// @notice Burn tokens when bridging /// @dev This function is only used for bridging to burn tokens on one end /// @param from Address to burn tokens from /// @param value Number of tokens to burn function bridgeBurn(address from, uint256 value) external { require(bridge != address(0), "Bridge is not set"); require(msg.sender == bridge, "Only bridge can do this"); _burn(from, value); } /// @notice View all rewards claimable by a staker /// @param staker Address of the staker /// @return Number of $CELL claimable by the staker function getAllRewards(address staker) external view returns (uint256) { uint256[] memory tokenIds = stakerToTokenIds[staker]; uint256 totalRewards = 0; for (uint256 i = 0; i < tokenIds.length; i++) { totalRewards = totalRewards + ((block.timestamp - tokenIdToTimeStamp[tokenIds[i]]) * EMISSIONS_RATE); } return _getMaximumRewards(totalRewards); } /// @notice View rewards claimable for a specific SheetFighterToken /// @param tokenId Id of the SheetFightToken /// @return Number of $CELL claimable by the staker for this Sheet function getRewardsByTokenId(uint256 tokenId) external view returns (uint256) { require(tokenIdToStaker[tokenId] != address(0), "Sheet is not staked!"); uint256 rewards = (block.timestamp - tokenIdToTimeStamp[tokenId]) * EMISSIONS_RATE; return _getMaximumRewards(rewards); } /// @notice Get all the token Ids staked by a staker /// @param staker Address of the staker /// @return Array of tokens staked function getTokensStaked(address staker) external view returns (uint256[] memory) { return stakerToTokenIds[staker]; } /// @notice Remove a token, given by an index, from a staker in staking storage variables /// @dev This function is significantly more gas efficient the greater the index is /// @param staker Address of the staker /// @param index Index of the SheetFighterToken in stakeToTokenIds[staker] being removed function _remove(address staker, uint256 index) internal { if (index >= stakerToTokenIds[staker].length) return; // Reset all for (uint256 i = index; i < stakerToTokenIds[staker].length - 1; i++) { stakerToTokenIds[staker][i] = stakerToTokenIds[staker][i + 1]; } stakerToTokenIds[staker].pop(); } /// @notice Remove a token, given by an id, from a staker in staking storage variables /// @param staker Address of the staker /// @param tokenId SheetFighterToken id function _removeTokenIdFromStaker(address staker, uint256 tokenId) internal { // Find index of SheetFighterToken in stakerToTokenIds[staker] array for (uint256 i = 0; i < stakerToTokenIds[staker].length; i++) { if (stakerToTokenIds[staker][i] == tokenId) { // This is the tokenId to remove // Now, remove it _remove(staker, i); } } } /// @dev Returns the maximum amount of rewards the user can get, when considering the max token cap /// @param calculatedRewards The rewards the user would receive, if there were no token cap /// @return How much the owner can claim function _getMaximumRewards(uint256 calculatedRewards) internal view returns(uint256) { uint256 totalCellAvailable = MAX_CELL - totalSupply(); return totalCellAvailable > calculatedRewards ? calculatedRewards : totalCellAvailable; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_sheetFighterTokenAddress","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":"EMISSIONS_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_CELL","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":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bridge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"bridgeBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"bridgeMint","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimByTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"staker","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":"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":"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bridge","type":"address"}],"name":"setBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"}],"name":"setSheetFighterTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sheetFighterTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stakeByIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakerToTokenIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToStaker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToTimeStamp","outputs":[{"internalType":"uint256","name":"","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":[],"name":"unstakeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unstakeByIds","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620026a9380380620026a98339810160408190526200003491620001db565b6040518060400160405280600481526020016310d95b1b60e21b8152506040518060400160405280600481526020016310d1531360e21b81525081600390805190602001906200008692919062000135565b5080516200009c90600490602084019062000135565b505050620000b9620000b3620000df60201b60201c565b620000e3565b600680546001600160a01b0319166001600160a01b039290921691909117905562000248565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000143906200020b565b90600052602060002090601f016020900481019282620001675760008555620001b2565b82601f106200018257805160ff1916838001178555620001b2565b82800160010185558215620001b2579182015b82811115620001b257825182559160200191906001019062000195565b50620001c0929150620001c4565b5090565b5b80821115620001c05760008155600101620001c5565b600060208284031215620001ed578081fd5b81516001600160a01b038116811462000204578182fd5b9392505050565b6002810460018216806200022057607f821691505b602082108114156200024257634e487b7160e01b600052602260045260246000fd5b50919050565b61245180620002586000396000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c80638ab8fab311610125578063bd87f577116100ad578063dd62ed3e1161007c578063dd62ed3e1461044e578063e78cea9214610461578063e9f7f02a14610469578063f008a69014610471578063f2fde38b146104845761021c565b8063bd87f57714610418578063d1058e591461042b578063d6c876b914610433578063d9ffad471461043b5761021c565b806395d89b41116100f457806395d89b41146103cf578063a457c2d7146103d7578063a9059cbb146103ea578063b6518b33146103fd578063ba7e7662146104105761021c565b80638ab8fab3146103995780638c2a993e146103a15780638da5cb5b146103b45780638dd14802146103bc5761021c565b806348aa1936116101a857806370a082311161017757806370a082311461033857806370f8f9d91461034b578063715018a61461036b57806374f4f5471461037357806379cc6790146103865761021c565b806348aa1936146102df578063515ec105146102f257806352eb7796146103055780635e1f1e2a146103255761021c565b8063313ce567116101ef578063313ce5671461028757806335322f371461029c578063362a3fad146102a657806339509351146102b957806342966c68146102cc5761021c565b806306fdde0314610221578063095ea7b31461023f57806318160ddd1461025f57806323b872dd14610274575b600080fd5b610229610497565b6040516102369190611d73565b60405180910390f35b61025261024d366004611b80565b610529565b6040516102369190611d68565b610267610546565b6040516102369190612308565b610252610282366004611b40565b61054c565b61028f6105e5565b6040516102369190612311565b6102a46105ea565b005b6102676102b4366004611ad0565b61075d565b6102526102c7366004611b80565b610855565b6102a46102da366004611cd4565b6108a9565b6102a46102ed366004611c1a565b6108ba565b610267610300366004611cd4565b610acd565b610318610313366004611ad0565b610b3e565b6040516102369190611d24565b6102a4610333366004611cd4565b610baa565b610267610346366004611ad0565b610c2d565b61035e610359366004611cd4565b610c48565b6040516102369190611cec565b6102a4610c63565b6102a4610381366004611b80565b610cae565b6102a4610394366004611b80565b610d0a565b610267610d5d565b6102a46103af366004611b80565b610d62565b61035e610dc1565b6102a46103ca366004611ad0565b610dd0565b610229610e31565b6102526103e5366004611b80565b610e40565b6102526103f8366004611b80565b610eb9565b61026761040b366004611cd4565b610ecd565b610267610edf565b610267610426366004611b80565b610ee9565b6102a4610f1a565b6102676110a9565b6102a4610449366004611bab565b6110b8565b61026761045c366004611b08565b6113ba565b61035e6113e5565b61035e6113f4565b6102a461047f366004611ad0565b611403565b6102a4610492366004611ad0565b611464565b6060600380546104a690612384565b80601f01602080910402602001604051908101604052809291908181526020018280546104d290612384565b801561051f5780601f106104f45761010080835404028352916020019161051f565b820191906000526020600020905b81548152906001019060200180831161050257829003601f168201915b5050505050905090565b600061053d6105366114d2565b84846114d6565b50600192915050565b60025490565b600061055984848461158a565b6001600160a01b03841660009081526001602052604081208161057a6114d2565b6001600160a01b03166001600160a01b03168152602001908152602001600020549050828110156105c65760405162461bcd60e51b81526004016105bd906120a8565b60405180910390fd5b6105da856105d26114d2565b8584036114d6565b506001949350505050565b601290565b336000908152600960205260409020546106165760405162461bcd60e51b81526004016105bd90611f4f565b336000908152600960205260408120545b801561074757336000908152600960205260408120610647600184612356565b8154811061066557634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546006546040516323b872dd60e01b81529192506001600160a01b0316906323b872dd906106a690309033908690600401611d00565b600060405180830381600087803b1580156106c057600080fd5b505af11580156106d4573d6000803e3d6000fd5b505050600082815260076020526040902054656943fdbce68591506106f99042612356565b6107039190612337565b61070d908461231f565b925061071933826116b4565b600090815260086020526040902080546001600160a01b03191690558061073f8161236d565b915050610627565b5061075a336107558361173f565b611775565b50565b6001600160a01b0381166000908152600960209081526040808320805482518185028101850190935280835284938301828280156107ba57602002820191906000526020600020905b8154815260200190600101908083116107a6575b505050505090506000805b825181101561084357656943fdbce685600760008584815181106107f957634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020544261081b9190612356565b6108259190612337565b61082f908361231f565b91508061083b816123bf565b9150506107c5565b5061084d8161173f565b949350505050565b600061053d6108626114d2565b8484600160006108706114d2565b6001600160a01b03908116825260208083019390935260409182016000908120918b16815292529020546108a4919061231f565b6114d6565b61075a6108b46114d2565b8261183d565b6000805b8251811015610abb57336001600160a01b0316600860008584815181106108f557634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160a01b0316146109365760405162461bcd60e51b81526004016105bd9061203a565b60065483516001600160a01b03909116906323b872dd903090339087908690811061097157634e487b7160e01b600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b815260040161099793929190611d00565b600060405180830381600087803b1580156109b157600080fd5b505af11580156109c5573d6000803e3d6000fd5b50505050656943fdbce685600760008584815181106109f457634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205442610a169190612356565b610a209190612337565b610a2a908361231f565b9150610a5d33848381518110610a5057634e487b7160e01b600052603260045260246000fd5b60200260200101516116b4565b60086000848381518110610a8157634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825281019190915260400160002080546001600160a01b031916905580610ab3816123bf565b9150506108be565b50610ac9336107558361173f565b5050565b6000818152600860205260408120546001600160a01b0316610b015760405162461bcd60e51b81526004016105bd90612125565b600082815260076020526040812054656943fdbce68590610b229042612356565b610b2c9190612337565b9050610b378161173f565b9392505050565b6001600160a01b038116600090815260096020908152604091829020805483518184028101840190945280845260609392830182828015610b9e57602002820191906000526020600020905b815481526020019060010190808311610b8a575b50505050509050919050565b6000818152600860205260409020546001600160a01b03163314610be05760405162461bcd60e51b81526004016105bd9061203a565b600081815260076020526040902054610c1a90339061075590656943fdbce68590610c0b9042612356565b610c159190612337565b61173f565b6000908152600760205260409020429055565b6001600160a01b031660009081526020819052604090205490565b6008602052600090815260409020546001600160a01b031681565b610c6b6114d2565b6001600160a01b0316610c7c610dc1565b6001600160a01b031614610ca25760405162461bcd60e51b81526004016105bd906120f0565b610cac600061192e565b565b600a546001600160a01b0316610cd65760405162461bcd60e51b81526004016105bd90612261565b600a546001600160a01b03163314610d005760405162461bcd60e51b81526004016105bd90612071565b610ac9828261183d565b6000610d188361045c6114d2565b905081811015610d3a5760405162461bcd60e51b81526004016105bd90612153565b610d4e83610d466114d2565b8484036114d6565b610d58838361183d565b505050565b600a81565b600a546001600160a01b0316610d8a5760405162461bcd60e51b81526004016105bd90612261565b600a546001600160a01b03163314610db45760405162461bcd60e51b81526004016105bd90612071565b610ac9826107558361173f565b6005546001600160a01b031690565b610dd86114d2565b6001600160a01b0316610de9610dc1565b6001600160a01b031614610e0f5760405162461bcd60e51b81526004016105bd906120f0565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600480546104a690612384565b60008060016000610e4f6114d2565b6001600160a01b0390811682526020808301939093526040918201600090812091881681529252902054905082811015610e9b5760405162461bcd60e51b81526004016105bd9061228c565b610eaf610ea66114d2565b858584036114d6565b5060019392505050565b600061053d610ec66114d2565b848461158a565b60076020526000908152604090205481565b656943fdbce68581565b60096020528160005260406000208181548110610f0557600080fd5b90600052602060002001600091509150505481565b33600090815260096020908152604080832080548251818502810185019093528083529192909190830182828015610f7157602002820191906000526020600020905b815481526020019060010190808311610f5d575b505050505090506000805b8251811015610abb57336001600160a01b031660086000858481518110610fb357634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160a01b031614610ff45760405162461bcd60e51b81526004016105bd90612003565b656943fdbce6856007600085848151811061101f57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002054426110419190612356565b61104b9190612337565b611055908361231f565b9150426007600085848151811061107c57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000208190555080806110a1906123bf565b915050610f7c565b6a52b7d2dcc80cd2e400000081565b33600090815260096020526040902054600a906110d690839061231f565b11156110f45760405162461bcd60e51b81526004016105bd90611e09565b60005b81811015610d585760065433906001600160a01b0316636352211e85858581811061113257634e487b7160e01b600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b81526004016111559190612308565b60206040518083038186803b15801561116d57600080fd5b505afa158015611181573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a59190611aec565b6001600160a01b0316146111cb5760405162461bcd60e51b81526004016105bd90611f18565b60006008818585858181106111f057634e487b7160e01b600052603260045260246000fd5b60209081029290920135835250810191909152604001600020546001600160a01b0316146112305760405162461bcd60e51b81526004016105bd90611fcc565b6006546001600160a01b03166323b872dd333086868681811061126357634e487b7160e01b600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b815260040161128893929190611d00565b600060405180830381600087803b1580156112a257600080fd5b505af11580156112b6573d6000803e3d6000fd5b5050336000908152600960205260409020915084905083838181106112eb57634e487b7160e01b600052603260045260246000fd5b8354600181018555600094855260208086209202939093013592019190915550429060079085858581811061133057634e487b7160e01b600052603260045260246000fd5b90506020020135815260200190815260200160002081905550336008600085858581811061136e57634e487b7160e01b600052603260045260246000fd5b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080806113b2906123bf565b9150506110f7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600a546001600160a01b031681565b6006546001600160a01b031681565b61140b6114d2565b6001600160a01b031661141c610dc1565b6001600160a01b0316146114425760405162461bcd60e51b81526004016105bd906120f0565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b61146c6114d2565b6001600160a01b031661147d610dc1565b6001600160a01b0316146114a35760405162461bcd60e51b81526004016105bd906120f0565b6001600160a01b0381166114c95760405162461bcd60e51b81526004016105bd90611e90565b61075a8161192e565b3390565b6001600160a01b0383166114fc5760405162461bcd60e51b81526004016105bd9061221d565b6001600160a01b0382166115225760405162461bcd60e51b81526004016105bd90611ed6565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061157d908590612308565b60405180910390a3505050565b6001600160a01b0383166115b05760405162461bcd60e51b81526004016105bd906121d8565b6001600160a01b0382166115d65760405162461bcd60e51b81526004016105bd90611dc6565b6115e1838383610d58565b6001600160a01b0383166000908152602081905260409020548181101561161a5760405162461bcd60e51b81526004016105bd90611f86565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061165190849061231f565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161169b9190612308565b60405180910390a36116ae848484610d58565b50505050565b60005b6001600160a01b038316600090815260096020526040902054811015610d58576001600160a01b038316600090815260096020526040902080548391908390811061171257634e487b7160e01b600052603260045260246000fd5b9060005260206000200154141561172d5761172d8382611980565b80611737816123bf565b9150506116b7565b60008061174a610546565b61175f906a52b7d2dcc80cd2e4000000612356565b905082811161176e5780610b37565b5090919050565b6001600160a01b03821661179b5760405162461bcd60e51b81526004016105bd906122d1565b6117a760008383610d58565b80600260008282546117b9919061231f565b90915550506001600160a01b038216600090815260208190526040812080548392906117e690849061231f565b90915550506040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611829908590612308565b60405180910390a3610ac960008383610d58565b6001600160a01b0382166118635760405162461bcd60e51b81526004016105bd90612197565b61186f82600083610d58565b6001600160a01b038216600090815260208190526040902054818110156118a85760405162461bcd60e51b81526004016105bd90611e4e565b6001600160a01b03831660009081526020819052604081208383039055600280548492906118d7908490612356565b90915550506040516000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061191a908690612308565b60405180910390a3610d5883600084610d58565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526009602052604090205481106119a457610ac9565b805b6001600160a01b0383166000908152600960205260409020546119cb90600190612356565b811015611a80576001600160a01b03831660009081526009602052604090206119f582600161231f565b81548110611a1357634e487b7160e01b600052603260045260246000fd5b906000526020600020015460096000856001600160a01b03166001600160a01b031681526020019081526020016000208281548110611a6257634e487b7160e01b600052603260045260246000fd5b60009182526020909120015580611a78816123bf565b9150506119a6565b506001600160a01b0382166000908152600960205260409020805480611ab657634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590555050565b600060208284031215611ae1578081fd5b8135610b3781612406565b600060208284031215611afd578081fd5b8151610b3781612406565b60008060408385031215611b1a578081fd5b8235611b2581612406565b91506020830135611b3581612406565b809150509250929050565b600080600060608486031215611b54578081fd5b8335611b5f81612406565b92506020840135611b6f81612406565b929592945050506040919091013590565b60008060408385031215611b92578182fd5b8235611b9d81612406565b946020939093013593505050565b60008060208385031215611bbd578182fd5b823567ffffffffffffffff80821115611bd4578384fd5b818501915085601f830112611be7578384fd5b813581811115611bf5578485fd5b8660208083028501011115611c08578485fd5b60209290920196919550909350505050565b60006020808385031215611c2c578182fd5b823567ffffffffffffffff80821115611c43578384fd5b818501915085601f830112611c56578384fd5b813581811115611c6857611c686123f0565b83810260405185828201018181108582111715611c8757611c876123f0565b604052828152858101935084860182860187018a1015611ca5578788fd5b8795505b83861015611cc7578035855260019590950194938601938601611ca9565b5098975050505050505050565b600060208284031215611ce5578081fd5b5035919050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6020808252825182820181905260009190848201906040850190845b81811015611d5c57835183529284019291840191600101611d40565b50909695505050505050565b901515815260200190565b6000602080835283518082850152825b81811015611d9f57858101830151858201604001528201611d83565b81811115611db05783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526025908201527f4d7573742068617665206c657373207468616e20313020536865657473207374604082015264616b65642160d81b606082015260800190565b60208082526022908201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604082015261636560f01b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b60208082526019908201527f596f7520646f6e2774206f776e20746869732053686565742100000000000000604082015260600190565b6020808252601a908201527f596f752068617665206e6f20746f6b656e73207374616b656421000000000000604082015260600190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b6020808252601e908201527f546f6b656e20697320616c7265616479206265696e67207374616b6564210000604082015260600190565b6020808252601e908201527f546f6b656e206973206e6f7420636c61696d61626c6520627920796f75210000604082015260600190565b6020808252601e908201527f596f75277265206e6f74207374616b696e672074686973205368656574210000604082015260600190565b60208082526017908201527f4f6e6c79206272696467652063616e20646f2074686973000000000000000000604082015260600190565b60208082526028908201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616040820152676c6c6f77616e636560c01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601490820152735368656574206973206e6f74207374616b65642160601b604082015260600190565b60208082526024908201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604082015263616e636560e01b606082015260800190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b602080825260119082015270109c9a5919d9481a5cc81b9bdd081cd95d607a1b604082015260600190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604082015264207a65726f60d81b606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b60ff91909116815260200190565b60008219821115612332576123326123da565b500190565b6000816000190483118215151615612351576123516123da565b500290565b600082821015612368576123686123da565b500390565b60008161237c5761237c6123da565b506000190190565b60028104600182168061239857607f821691505b602082108114156123b957634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156123d3576123d36123da565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461075a57600080fdfea2646970667358221220e60f590cc0abe27a60ff16ba87a313fba595d450db410c1fb8492819661f31d164736f6c634300080000330000000000000000000000000c734134d68adbc6eeeb7477f77409fdf7bc9dee
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061021c5760003560e01c80638ab8fab311610125578063bd87f577116100ad578063dd62ed3e1161007c578063dd62ed3e1461044e578063e78cea9214610461578063e9f7f02a14610469578063f008a69014610471578063f2fde38b146104845761021c565b8063bd87f57714610418578063d1058e591461042b578063d6c876b914610433578063d9ffad471461043b5761021c565b806395d89b41116100f457806395d89b41146103cf578063a457c2d7146103d7578063a9059cbb146103ea578063b6518b33146103fd578063ba7e7662146104105761021c565b80638ab8fab3146103995780638c2a993e146103a15780638da5cb5b146103b45780638dd14802146103bc5761021c565b806348aa1936116101a857806370a082311161017757806370a082311461033857806370f8f9d91461034b578063715018a61461036b57806374f4f5471461037357806379cc6790146103865761021c565b806348aa1936146102df578063515ec105146102f257806352eb7796146103055780635e1f1e2a146103255761021c565b8063313ce567116101ef578063313ce5671461028757806335322f371461029c578063362a3fad146102a657806339509351146102b957806342966c68146102cc5761021c565b806306fdde0314610221578063095ea7b31461023f57806318160ddd1461025f57806323b872dd14610274575b600080fd5b610229610497565b6040516102369190611d73565b60405180910390f35b61025261024d366004611b80565b610529565b6040516102369190611d68565b610267610546565b6040516102369190612308565b610252610282366004611b40565b61054c565b61028f6105e5565b6040516102369190612311565b6102a46105ea565b005b6102676102b4366004611ad0565b61075d565b6102526102c7366004611b80565b610855565b6102a46102da366004611cd4565b6108a9565b6102a46102ed366004611c1a565b6108ba565b610267610300366004611cd4565b610acd565b610318610313366004611ad0565b610b3e565b6040516102369190611d24565b6102a4610333366004611cd4565b610baa565b610267610346366004611ad0565b610c2d565b61035e610359366004611cd4565b610c48565b6040516102369190611cec565b6102a4610c63565b6102a4610381366004611b80565b610cae565b6102a4610394366004611b80565b610d0a565b610267610d5d565b6102a46103af366004611b80565b610d62565b61035e610dc1565b6102a46103ca366004611ad0565b610dd0565b610229610e31565b6102526103e5366004611b80565b610e40565b6102526103f8366004611b80565b610eb9565b61026761040b366004611cd4565b610ecd565b610267610edf565b610267610426366004611b80565b610ee9565b6102a4610f1a565b6102676110a9565b6102a4610449366004611bab565b6110b8565b61026761045c366004611b08565b6113ba565b61035e6113e5565b61035e6113f4565b6102a461047f366004611ad0565b611403565b6102a4610492366004611ad0565b611464565b6060600380546104a690612384565b80601f01602080910402602001604051908101604052809291908181526020018280546104d290612384565b801561051f5780601f106104f45761010080835404028352916020019161051f565b820191906000526020600020905b81548152906001019060200180831161050257829003601f168201915b5050505050905090565b600061053d6105366114d2565b84846114d6565b50600192915050565b60025490565b600061055984848461158a565b6001600160a01b03841660009081526001602052604081208161057a6114d2565b6001600160a01b03166001600160a01b03168152602001908152602001600020549050828110156105c65760405162461bcd60e51b81526004016105bd906120a8565b60405180910390fd5b6105da856105d26114d2565b8584036114d6565b506001949350505050565b601290565b336000908152600960205260409020546106165760405162461bcd60e51b81526004016105bd90611f4f565b336000908152600960205260408120545b801561074757336000908152600960205260408120610647600184612356565b8154811061066557634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546006546040516323b872dd60e01b81529192506001600160a01b0316906323b872dd906106a690309033908690600401611d00565b600060405180830381600087803b1580156106c057600080fd5b505af11580156106d4573d6000803e3d6000fd5b505050600082815260076020526040902054656943fdbce68591506106f99042612356565b6107039190612337565b61070d908461231f565b925061071933826116b4565b600090815260086020526040902080546001600160a01b03191690558061073f8161236d565b915050610627565b5061075a336107558361173f565b611775565b50565b6001600160a01b0381166000908152600960209081526040808320805482518185028101850190935280835284938301828280156107ba57602002820191906000526020600020905b8154815260200190600101908083116107a6575b505050505090506000805b825181101561084357656943fdbce685600760008584815181106107f957634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020544261081b9190612356565b6108259190612337565b61082f908361231f565b91508061083b816123bf565b9150506107c5565b5061084d8161173f565b949350505050565b600061053d6108626114d2565b8484600160006108706114d2565b6001600160a01b03908116825260208083019390935260409182016000908120918b16815292529020546108a4919061231f565b6114d6565b61075a6108b46114d2565b8261183d565b6000805b8251811015610abb57336001600160a01b0316600860008584815181106108f557634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160a01b0316146109365760405162461bcd60e51b81526004016105bd9061203a565b60065483516001600160a01b03909116906323b872dd903090339087908690811061097157634e487b7160e01b600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b815260040161099793929190611d00565b600060405180830381600087803b1580156109b157600080fd5b505af11580156109c5573d6000803e3d6000fd5b50505050656943fdbce685600760008584815181106109f457634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205442610a169190612356565b610a209190612337565b610a2a908361231f565b9150610a5d33848381518110610a5057634e487b7160e01b600052603260045260246000fd5b60200260200101516116b4565b60086000848381518110610a8157634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825281019190915260400160002080546001600160a01b031916905580610ab3816123bf565b9150506108be565b50610ac9336107558361173f565b5050565b6000818152600860205260408120546001600160a01b0316610b015760405162461bcd60e51b81526004016105bd90612125565b600082815260076020526040812054656943fdbce68590610b229042612356565b610b2c9190612337565b9050610b378161173f565b9392505050565b6001600160a01b038116600090815260096020908152604091829020805483518184028101840190945280845260609392830182828015610b9e57602002820191906000526020600020905b815481526020019060010190808311610b8a575b50505050509050919050565b6000818152600860205260409020546001600160a01b03163314610be05760405162461bcd60e51b81526004016105bd9061203a565b600081815260076020526040902054610c1a90339061075590656943fdbce68590610c0b9042612356565b610c159190612337565b61173f565b6000908152600760205260409020429055565b6001600160a01b031660009081526020819052604090205490565b6008602052600090815260409020546001600160a01b031681565b610c6b6114d2565b6001600160a01b0316610c7c610dc1565b6001600160a01b031614610ca25760405162461bcd60e51b81526004016105bd906120f0565b610cac600061192e565b565b600a546001600160a01b0316610cd65760405162461bcd60e51b81526004016105bd90612261565b600a546001600160a01b03163314610d005760405162461bcd60e51b81526004016105bd90612071565b610ac9828261183d565b6000610d188361045c6114d2565b905081811015610d3a5760405162461bcd60e51b81526004016105bd90612153565b610d4e83610d466114d2565b8484036114d6565b610d58838361183d565b505050565b600a81565b600a546001600160a01b0316610d8a5760405162461bcd60e51b81526004016105bd90612261565b600a546001600160a01b03163314610db45760405162461bcd60e51b81526004016105bd90612071565b610ac9826107558361173f565b6005546001600160a01b031690565b610dd86114d2565b6001600160a01b0316610de9610dc1565b6001600160a01b031614610e0f5760405162461bcd60e51b81526004016105bd906120f0565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600480546104a690612384565b60008060016000610e4f6114d2565b6001600160a01b0390811682526020808301939093526040918201600090812091881681529252902054905082811015610e9b5760405162461bcd60e51b81526004016105bd9061228c565b610eaf610ea66114d2565b858584036114d6565b5060019392505050565b600061053d610ec66114d2565b848461158a565b60076020526000908152604090205481565b656943fdbce68581565b60096020528160005260406000208181548110610f0557600080fd5b90600052602060002001600091509150505481565b33600090815260096020908152604080832080548251818502810185019093528083529192909190830182828015610f7157602002820191906000526020600020905b815481526020019060010190808311610f5d575b505050505090506000805b8251811015610abb57336001600160a01b031660086000858481518110610fb357634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160a01b031614610ff45760405162461bcd60e51b81526004016105bd90612003565b656943fdbce6856007600085848151811061101f57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002054426110419190612356565b61104b9190612337565b611055908361231f565b9150426007600085848151811061107c57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000208190555080806110a1906123bf565b915050610f7c565b6a52b7d2dcc80cd2e400000081565b33600090815260096020526040902054600a906110d690839061231f565b11156110f45760405162461bcd60e51b81526004016105bd90611e09565b60005b81811015610d585760065433906001600160a01b0316636352211e85858581811061113257634e487b7160e01b600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b81526004016111559190612308565b60206040518083038186803b15801561116d57600080fd5b505afa158015611181573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a59190611aec565b6001600160a01b0316146111cb5760405162461bcd60e51b81526004016105bd90611f18565b60006008818585858181106111f057634e487b7160e01b600052603260045260246000fd5b60209081029290920135835250810191909152604001600020546001600160a01b0316146112305760405162461bcd60e51b81526004016105bd90611fcc565b6006546001600160a01b03166323b872dd333086868681811061126357634e487b7160e01b600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b815260040161128893929190611d00565b600060405180830381600087803b1580156112a257600080fd5b505af11580156112b6573d6000803e3d6000fd5b5050336000908152600960205260409020915084905083838181106112eb57634e487b7160e01b600052603260045260246000fd5b8354600181018555600094855260208086209202939093013592019190915550429060079085858581811061133057634e487b7160e01b600052603260045260246000fd5b90506020020135815260200190815260200160002081905550336008600085858581811061136e57634e487b7160e01b600052603260045260246000fd5b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080806113b2906123bf565b9150506110f7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600a546001600160a01b031681565b6006546001600160a01b031681565b61140b6114d2565b6001600160a01b031661141c610dc1565b6001600160a01b0316146114425760405162461bcd60e51b81526004016105bd906120f0565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b61146c6114d2565b6001600160a01b031661147d610dc1565b6001600160a01b0316146114a35760405162461bcd60e51b81526004016105bd906120f0565b6001600160a01b0381166114c95760405162461bcd60e51b81526004016105bd90611e90565b61075a8161192e565b3390565b6001600160a01b0383166114fc5760405162461bcd60e51b81526004016105bd9061221d565b6001600160a01b0382166115225760405162461bcd60e51b81526004016105bd90611ed6565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061157d908590612308565b60405180910390a3505050565b6001600160a01b0383166115b05760405162461bcd60e51b81526004016105bd906121d8565b6001600160a01b0382166115d65760405162461bcd60e51b81526004016105bd90611dc6565b6115e1838383610d58565b6001600160a01b0383166000908152602081905260409020548181101561161a5760405162461bcd60e51b81526004016105bd90611f86565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061165190849061231f565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161169b9190612308565b60405180910390a36116ae848484610d58565b50505050565b60005b6001600160a01b038316600090815260096020526040902054811015610d58576001600160a01b038316600090815260096020526040902080548391908390811061171257634e487b7160e01b600052603260045260246000fd5b9060005260206000200154141561172d5761172d8382611980565b80611737816123bf565b9150506116b7565b60008061174a610546565b61175f906a52b7d2dcc80cd2e4000000612356565b905082811161176e5780610b37565b5090919050565b6001600160a01b03821661179b5760405162461bcd60e51b81526004016105bd906122d1565b6117a760008383610d58565b80600260008282546117b9919061231f565b90915550506001600160a01b038216600090815260208190526040812080548392906117e690849061231f565b90915550506040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611829908590612308565b60405180910390a3610ac960008383610d58565b6001600160a01b0382166118635760405162461bcd60e51b81526004016105bd90612197565b61186f82600083610d58565b6001600160a01b038216600090815260208190526040902054818110156118a85760405162461bcd60e51b81526004016105bd90611e4e565b6001600160a01b03831660009081526020819052604081208383039055600280548492906118d7908490612356565b90915550506040516000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061191a908690612308565b60405180910390a3610d5883600084610d58565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526009602052604090205481106119a457610ac9565b805b6001600160a01b0383166000908152600960205260409020546119cb90600190612356565b811015611a80576001600160a01b03831660009081526009602052604090206119f582600161231f565b81548110611a1357634e487b7160e01b600052603260045260246000fd5b906000526020600020015460096000856001600160a01b03166001600160a01b031681526020019081526020016000208281548110611a6257634e487b7160e01b600052603260045260246000fd5b60009182526020909120015580611a78816123bf565b9150506119a6565b506001600160a01b0382166000908152600960205260409020805480611ab657634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590555050565b600060208284031215611ae1578081fd5b8135610b3781612406565b600060208284031215611afd578081fd5b8151610b3781612406565b60008060408385031215611b1a578081fd5b8235611b2581612406565b91506020830135611b3581612406565b809150509250929050565b600080600060608486031215611b54578081fd5b8335611b5f81612406565b92506020840135611b6f81612406565b929592945050506040919091013590565b60008060408385031215611b92578182fd5b8235611b9d81612406565b946020939093013593505050565b60008060208385031215611bbd578182fd5b823567ffffffffffffffff80821115611bd4578384fd5b818501915085601f830112611be7578384fd5b813581811115611bf5578485fd5b8660208083028501011115611c08578485fd5b60209290920196919550909350505050565b60006020808385031215611c2c578182fd5b823567ffffffffffffffff80821115611c43578384fd5b818501915085601f830112611c56578384fd5b813581811115611c6857611c686123f0565b83810260405185828201018181108582111715611c8757611c876123f0565b604052828152858101935084860182860187018a1015611ca5578788fd5b8795505b83861015611cc7578035855260019590950194938601938601611ca9565b5098975050505050505050565b600060208284031215611ce5578081fd5b5035919050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6020808252825182820181905260009190848201906040850190845b81811015611d5c57835183529284019291840191600101611d40565b50909695505050505050565b901515815260200190565b6000602080835283518082850152825b81811015611d9f57858101830151858201604001528201611d83565b81811115611db05783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526025908201527f4d7573742068617665206c657373207468616e20313020536865657473207374604082015264616b65642160d81b606082015260800190565b60208082526022908201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604082015261636560f01b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b60208082526019908201527f596f7520646f6e2774206f776e20746869732053686565742100000000000000604082015260600190565b6020808252601a908201527f596f752068617665206e6f20746f6b656e73207374616b656421000000000000604082015260600190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b6020808252601e908201527f546f6b656e20697320616c7265616479206265696e67207374616b6564210000604082015260600190565b6020808252601e908201527f546f6b656e206973206e6f7420636c61696d61626c6520627920796f75210000604082015260600190565b6020808252601e908201527f596f75277265206e6f74207374616b696e672074686973205368656574210000604082015260600190565b60208082526017908201527f4f6e6c79206272696467652063616e20646f2074686973000000000000000000604082015260600190565b60208082526028908201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616040820152676c6c6f77616e636560c01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601490820152735368656574206973206e6f74207374616b65642160601b604082015260600190565b60208082526024908201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604082015263616e636560e01b606082015260800190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b602080825260119082015270109c9a5919d9481a5cc81b9bdd081cd95d607a1b604082015260600190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604082015264207a65726f60d81b606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b60ff91909116815260200190565b60008219821115612332576123326123da565b500190565b6000816000190483118215151615612351576123516123da565b500290565b600082821015612368576123686123da565b500390565b60008161237c5761237c6123da565b506000190190565b60028104600182168061239857607f821691505b602082108114156123b957634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156123d3576123d36123da565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461075a57600080fdfea2646970667358221220e60f590cc0abe27a60ff16ba87a313fba595d450db410c1fb8492819661f31d164736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000c734134d68adbc6eeeb7477f77409fdf7bc9dee
-----Decoded View---------------
Arg [0] : _sheetFighterTokenAddress (address): 0x0c734134D68ADbC6EeEb7477f77409Fdf7BC9Dee
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000c734134d68adbc6eeeb7477f77409fdf7bc9dee
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.