ERC-20
Overview
Max Total Supply
3,111,957.9894338066 SABI
Holders
1,184
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
121.1636147578 SABIValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Sabi
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 2000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// contracts/Sabi.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; contract Sabi is ERC20Burnable, Ownable { using SafeMath for uint256; uint256 public MAX_WALLET_STAKED = 100; uint256 public EMISSIONS_RATE = 115740700000000; uint256 public CLAIM_END_TIME = 1672581600; address nullAddress = 0x0000000000000000000000000000000000000000; address public wabiAddress; mapping(uint256 => uint256) internal idToRarityBoosts; //Mapping of wabi to timestamp mapping(uint256 => uint256) internal tokenIdToTimeStamp; //Mapping of wabi to staker mapping(uint256 => address) internal tokenIdToStaker; //Mapping of staker to wabi mapping(address => uint256[]) internal stakerToTokenIds; constructor() ERC20("Sabi", "SABI") { idToRarityBoosts[285] = 3; idToRarityBoosts[476] = 3; idToRarityBoosts[556] = 3; idToRarityBoosts[1480] = 3; idToRarityBoosts[1628] = 3; idToRarityBoosts[2594] = 3; idToRarityBoosts[2834] = 3; idToRarityBoosts[2961] = 3; idToRarityBoosts[3108] = 3; idToRarityBoosts[3472] = 3; idToRarityBoosts[4630] = 2; idToRarityBoosts[4722] = 2; idToRarityBoosts[2564] = 2; idToRarityBoosts[3474] = 2; idToRarityBoosts[2783] = 2; idToRarityBoosts[4637] = 2; idToRarityBoosts[1730] = 2; idToRarityBoosts[4066] = 2; idToRarityBoosts[218] = 2; idToRarityBoosts[4304] = 2; idToRarityBoosts[1027] = 2; idToRarityBoosts[5587] = 2; idToRarityBoosts[4466] = 2; idToRarityBoosts[2492] = 2; idToRarityBoosts[866] = 2; idToRarityBoosts[842] = 2; idToRarityBoosts[1252] = 2; idToRarityBoosts[4800] = 2; idToRarityBoosts[4425] = 2; idToRarityBoosts[5638] = 2; idToRarityBoosts[1358] = 2; idToRarityBoosts[4353] = 2; idToRarityBoosts[4183] = 2; idToRarityBoosts[5465] = 2; idToRarityBoosts[3530] = 2; idToRarityBoosts[3761] = 2; idToRarityBoosts[4454] = 2; idToRarityBoosts[2126] = 2; idToRarityBoosts[2425] = 2; idToRarityBoosts[101] = 2; idToRarityBoosts[2967] = 2; idToRarityBoosts[2736] = 2; idToRarityBoosts[2548] = 2; idToRarityBoosts[2878] = 2; idToRarityBoosts[511] = 2; idToRarityBoosts[4191] = 2; idToRarityBoosts[3001] = 2; idToRarityBoosts[4383] = 2; idToRarityBoosts[4359] = 2; idToRarityBoosts[2569] = 2; idToRarityBoosts[4435] = 2; idToRarityBoosts[2083] = 2; idToRarityBoosts[5428] = 2; idToRarityBoosts[1478] = 2; idToRarityBoosts[1735] = 2; idToRarityBoosts[1528] = 2; idToRarityBoosts[3357] = 2; idToRarityBoosts[2953] = 2; idToRarityBoosts[4502] = 2; idToRarityBoosts[1685] = 2; idToRarityBoosts[4424] = 2; idToRarityBoosts[1251] = 2; idToRarityBoosts[2457] = 2; idToRarityBoosts[2732] = 2; idToRarityBoosts[2917] = 2; idToRarityBoosts[519] = 2; idToRarityBoosts[1434] = 2; idToRarityBoosts[3939] = 2; idToRarityBoosts[1657] = 2; idToRarityBoosts[2676] = 2; idToRarityBoosts[841] = 2; idToRarityBoosts[643] = 2; idToRarityBoosts[4550] = 2; idToRarityBoosts[846] = 2; idToRarityBoosts[4587] = 2; idToRarityBoosts[1831] = 2; idToRarityBoosts[4763] = 2; idToRarityBoosts[1232] = 2; idToRarityBoosts[1594] = 2; idToRarityBoosts[1070] = 2; idToRarityBoosts[4497] = 2; idToRarityBoosts[2203] = 2; idToRarityBoosts[467] = 2; idToRarityBoosts[4810] = 2; idToRarityBoosts[75] = 2; idToRarityBoosts[3911] = 2; idToRarityBoosts[2391] = 2; idToRarityBoosts[2092] = 2; idToRarityBoosts[4953] = 2; } function setWabiAddress(address _wabiAddress) public onlyOwner { wabiAddress = _wabiAddress; return; } function setRarityBoost(uint256 tokenId, uint256 boost) public onlyOwner { idToRarityBoosts[tokenId] = boost; return; } function getTokensStaked(address staker) public view returns (uint256[] memory) { return stakerToTokenIds[staker]; } function remove(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; remove(staker, i); } } } function stakeByIds(uint256[] memory tokenIds) public { require( stakerToTokenIds[msg.sender].length + tokenIds.length <= MAX_WALLET_STAKED, "Must have less than 100 wabi staked!" ); for (uint256 i = 0; i < tokenIds.length; i++) { require( IERC721(wabiAddress).ownerOf(tokenIds[i]) == msg.sender && tokenIdToStaker[tokenIds[i]] == nullAddress, "Token must be stakable by you!" ); IERC721(wabiAddress).transferFrom( msg.sender, address(this), tokenIds[i] ); stakerToTokenIds[msg.sender].push(tokenIds[i]); tokenIdToTimeStamp[tokenIds[i]] = block.timestamp; tokenIdToStaker[tokenIds[i]] = msg.sender; } } function unstakeAll() public { require( stakerToTokenIds[msg.sender].length > 0, "Must have at least one token staked!" ); uint256 totalRewards = 0; for (uint256 i = stakerToTokenIds[msg.sender].length; i > 0; i--) { uint256 tokenId = stakerToTokenIds[msg.sender][i - 1]; IERC721(wabiAddress).transferFrom( address(this), msg.sender, tokenId ); if (idToRarityBoosts[tokenId] != 0) { totalRewards = totalRewards + ((block.timestamp - tokenIdToTimeStamp[tokenId]) * EMISSIONS_RATE * idToRarityBoosts[tokenId]); } else { totalRewards = totalRewards + ((block.timestamp - tokenIdToTimeStamp[tokenId]) * EMISSIONS_RATE); } removeTokenIdFromStaker(msg.sender, tokenId); tokenIdToStaker[tokenId] = nullAddress; } _mint(msg.sender, totalRewards); } function unstakeByIds(uint256[] memory tokenIds) public { uint256 totalRewards = 0; for (uint256 i = 0; i < tokenIds.length; i++) { require( tokenIdToStaker[tokenIds[i]] == msg.sender, "Message Sender was not original staker!" ); IERC721(wabiAddress).transferFrom( address(this), msg.sender, tokenIds[i] ); if (idToRarityBoosts[tokenIds[i]] != 0) { totalRewards = totalRewards + ((block.timestamp - tokenIdToTimeStamp[tokenIds[i]]) * EMISSIONS_RATE * idToRarityBoosts[tokenIds[i]]); } else { totalRewards = totalRewards + ((block.timestamp - tokenIdToTimeStamp[tokenIds[i]]) * EMISSIONS_RATE); } removeTokenIdFromStaker(msg.sender, tokenIds[i]); tokenIdToStaker[tokenIds[i]] = nullAddress; } _mint(msg.sender, totalRewards); } function claimByTokenId(uint256 tokenId) public { require( tokenIdToStaker[tokenId] == msg.sender, "Token is not claimable by you!" ); require(block.timestamp < CLAIM_END_TIME, "Claim period is over!"); if (idToRarityBoosts[tokenId] != 0) { _mint( msg.sender, ((block.timestamp - tokenIdToTimeStamp[tokenId]) * EMISSIONS_RATE * idToRarityBoosts[tokenId])); } else { _mint( msg.sender, ((block.timestamp - tokenIdToTimeStamp[tokenId]) * EMISSIONS_RATE)); } tokenIdToTimeStamp[tokenId] = block.timestamp; } function claimAll() public { require(block.timestamp < CLAIM_END_TIME, "Claim period is over!"); 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!" ); if (idToRarityBoosts[tokenIds[i]] != 0) { totalRewards = totalRewards + ((block.timestamp - tokenIdToTimeStamp[tokenIds[i]]) * EMISSIONS_RATE * idToRarityBoosts[tokenIds[i]]); } else { totalRewards = totalRewards + ((block.timestamp - tokenIdToTimeStamp[tokenIds[i]]) * EMISSIONS_RATE); } tokenIdToTimeStamp[tokenIds[i]] = block.timestamp; } _mint(msg.sender, totalRewards); } function getAllRewards(address staker) public view returns (uint256) { uint256[] memory tokenIds = stakerToTokenIds[staker]; uint256 totalRewards = 0; for (uint256 i = 0; i < tokenIds.length; i++) { if (idToRarityBoosts[tokenIds[i]] != 0) { totalRewards = totalRewards + ((block.timestamp - tokenIdToTimeStamp[tokenIds[i]]) * EMISSIONS_RATE * idToRarityBoosts[tokenIds[i]]); } else { totalRewards = totalRewards + ((block.timestamp - tokenIdToTimeStamp[tokenIds[i]]) * EMISSIONS_RATE); } } return totalRewards; } function getRewardsByTokenId(uint256 tokenId) public view returns (uint256) { require( tokenIdToStaker[tokenId] != nullAddress, "Token is not staked!" ); uint256 secondsStaked = block.timestamp - tokenIdToTimeStamp[tokenId]; if (idToRarityBoosts[tokenId] != 0) { return secondsStaked * EMISSIONS_RATE * idToRarityBoosts[tokenId]; } return secondsStaked * EMISSIONS_RATE; } function getStaker(uint256 tokenId) public view returns (address) { return tokenIdToStaker[tokenId]; } function getRarityBoost(uint256 tokenId) public view returns (uint256) { return idToRarityBoosts[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - 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 v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 2000, "details": { "yul": true, "yulDetails": { "stackAllocation": true, "optimizerSteps": "dhfoDgvulfnTUtnIf" } } }, "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":[{"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":[{"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":"getRarityBoost","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":"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":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"boost","type":"uint256"}],"name":"setRarityBoost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wabiAddress","type":"address"}],"name":"setWabiAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stakeByIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstakeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unstakeByIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wabiAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526064600655656943fb4f3f006007556363b191e0600855600980546001600160a01b03191690553480156200003857600080fd5b50604051806040016040528060048152602001635361626960e01b815250604051806040016040528060048152602001635341424960e01b81525081600390805190602001906200008b92919062000da9565b508051620000a190600490602084019062000da9565b505050620000be620000b862000d5360201b60201c565b62000d57565b600b60205260037fc3aa342ab3aabfd2deff9b5e98c171c9ed8585e3cdcb4c59632d657410d5904e8190557f0c881daded25acc6617bd443406e2f39fbe6f783230d8ce866f8c298597b94ba8190557f40875772369e6cde007502f177f0da362008ffd404db258278cd0ba36514fae48190557fe5a3761730bc57b170f795aca16786b46dac1c3fd479800677c2f86cf1044f2c8190557fa3943acfc81a8a86e65fed17d45a1a9c84076c8fe615205642e8089646aee7da8190557f72be04ca4d17faef99b04ce4fa0a702db0d597e8e6b432d8597b758ced2eefac8190557f02cbbdd8c8830718f2f54211ceffde4abd58ce4b1ab2cb13f83d6372e30346898190557ffce2f58339c7945949fe903c05b5034a87bff31779d2c56902dae2ddd72550e98190557f85b2c1f06234a41c5a9a59dff746ff262b3b94275a1b44e2d4b1feb3ff9bbd0b8190557f5025949d0cc3d33de5f392bf3bb74ab8f337ad9a6936b3210dcb9ab4c1df524c5560027fe340da55d24556fa41e759c881704366a561e5d3d9c6cba98f43375fe2494a9f8190557feef03bcc13aa9b5bd61ab94acc456437311888a280030614d9c6012da875d24b8190557feeff737e49e0f7284451e387bc1f00fbaa1435a2d31d0fc1360522473363110a8190557f41ab136655504c11eb7ae018bb144a80a2bbf74d3f6c2b52f433e33677f69cc28190557f60d5bd4ae9a17b8ebc1033de1e6c557fe49bb9df1c85215f956d2f64a2c4a4aa8190557feb82a1d3552fafbaaf173185298decca5aacc95c521d2e052f13e01b31ceac058190557f47a11fb004f474c1e1e827c57e399664d9506b4d59fae295acbff95fddde36458190557fccf64fb5ea3caa217ad8da4256f070c91de2b59816ce2d5285945205aa484cc98190557f8cded563a9284a57cf3f3ad357d9cba72293f7ad4841c171260cca968c857f228190557f97dbdba9244725c4a5d7611740a9964fc00e8b76fe7b8aa144cc2e492fc552f38190557f46022d2a6e26b0c36a67c080414eda4e70e57c464e7fa77ed416053a9f72532e8190557fe98cf02fed743eb36175f13361e99488b6f88813b0ce9d0e33ce8bd3902162448190557f62ce4c0d5a96b72a0a09b3d53cb2c24cd7c0837c0b147e86e07fe39ab3c706708190557ff1a864b885b0404145eab6a2f918624ba9857b160c4d6fbfcab0cb508d7ec88a8190557facffa0914c32a741361218ba78bbf7762a828f6cd6db6a56418a2f10503e16bb8190557fcbeaa97344e84757a9b6c8eb949cdcf4916d251d2bcd698269a35502e8d8d7108190557f78ce2d9e0c9be6b346dea58ee64bc6a370c1df5c62e414f76212a0a30fccf17f8190557f4d800d2f36716042b8380d5543271b3cacdd092fac4e3ddb3900d46a5c454dc88190557fe4db6e2372ac499c5f19c01f7c5fbe3e595dfe71a2bc59bfc22331c84f72a4cc8190557fa88e75e18fcacceb499417399cf1f01bc97e460657f841d087c38bbd7389d64e8190557ff57ac4cc53af431dab426c07f0a5afc9f09ebe698623c3da9c501743962b8d6f8190557f1f43937730427b9c0a7f5162bbe83f306621be7626009c3e7ae0fb93342c3a748190557fb11542fba13f132eb60ba9c9beb1cf888a68c935805d519424d5c2852df5f9de8190557f1ce442c902b4c7a13ef57f773f3f4bb18d5ff4b96a97a7199ec9ada928bc783d8190557fbd4532e0547c06d5caa6eb8f5d4f75221668d1831dde6268c61101412eda28758190557f2544c9e9d9fcc0a5122974c54eaaa4b8e01af62aec999545c6b3162df2fb48db8190557f68244b4e473ccf3648be5e4032ce3e2662d8b8f2f6f69e71a8785d1a5dc5ebfc8190557f4861faab63a817cdfac7a6bb9e9d6620402135c32b26d4f66bb4528413aeb0508190557fbb0c59726df0405c01c82a435d55dd88066caf7f0b99ca4e5e448978d2720d808190557fef9f389529476ca2f00a8e2d5991fddc784a5ef78916996333771927f3ae1bda8190557f575ee7a6d28e9cf8a18590679a9c8815177b2728b44a5d051beb69c2a26a500c8190557fb5c30b823af81c7b214a32000e5cc298ad87b2df79e94e66622096e7ea2fca308190557f54388ae5f62a41ccc14693ac0d7cba97b83a8e571c612be045094ed49309a06c8190557f5d7107d2a638be70425da72fdf7160f4ddfbee9db068a3d03ba0225ebba1cb658190557ff55b127f97d85b026b359bb99709947427a02218dd8909837487eabd79df71198190557f8ea107863ebfb6a17281e9a415b74ea6b83ee0f44c8c716638ccb8ec072010138190557fccb8da06bcadb9012edb43262474e248bcdbb403f73b5dd1a21c294088d36eaa8190557ff903722ab2cbb17da8a82490daf2563d69f4d4add3c0709813bc4b8ab3753a038190557fbd8b2cce56f6f44c1331a7d12efb53efc0812ad7b72c6506cebf44669054f2e78190557f6c8f66eba09ff56c2ff04a0d7bb7e1e70d90926e8089d2a58c12bda7f1d82e848190557f8db174e2abf8cb6b6669d8bdac6b37d587b050141da0ca71661fac05c63455a68190557fb84c93082075cb0738657de3bbb4353fb82b3ee9b4e3ad84fd395592ed0bb1958190557f113dcae54ca5c7fb970294234346e5c241a086cb528bec9955c583d20c6013f88190557fd9435dba341ed9bf366c4a58bc6ec76a2193a32c9b278c2899e7382d97b5c7b58190557fa11a1f8f5b432ca5c85a46fe850c75f331fde7bc036b45ffc5ce88673a9381d58190557ff9fa1acd6d1a1407e225f2c0bc91a47b8f7033640a5d0bdcb03a583cebb29bd78190557f81f55e5b41c6b7f2c545ff7f266597190b42ddf467052df035d8785fab15c5028190557f937719234de9ea21a1265f37ebf78c2856af82389e8b6fc846fb09d949103e138190557f8f6b59a3cfe807051626083ff405ee0bed91f319c5e68c5dc6da34a87dad2f388190557f4cfcfac8b933e90eb6fe68b4150238945d1db8bc2b0aec90c4858d8babda0aee8190557ffc3abcc0d8ed7e72ce60f9124b6731a203188b54d355897805d4696e5c4321088190557fb4737f62bf1f2d87eb66c7846956fe8bc9683604fb5bce68646b276b7204121b8190557fb952cd94e9ea790a43c33d85aed34cf70c082321cf3c4e2ae636cb1e51a069c98190557f96415bb88b86275d670b483d99046dc689f2737629334052456f5f2b949ad8028190557f3cc08b3534475be1ee729e1a2ade93449f44e70c0dd16ef21d202bfd7b15b8e28190557f8c2f72d625147c52c14bb846f8f9bafb1a307a8860a052b21c8828610d66b7638190557feb7b8e191a1d525a516bf92d33bd86aa55dfec2b77d1745f5285b16ad8ed3d438190557f9a8fd49c3c8e972a3804252ca0bca1565e27ad52998756e09be93ea102c10f9c8190557f716574d4f58520f394a85c48517959dd1fbf08e91ae3c0cd964f741ea72a7d858190557f9d81abe46274365cc61b2e0675f5ccedc981e4f23c9e7414431154dde3bc60ce8190557f5066be8282b5ae26a87a21e1b0e3f52d4c00d7ad77fb126328496365da1bc2638190557fce9f95ee3673f4f3af002d7311d744aeb8685a4328ed550f28571bf89cd563438190557f7e09ca774fac4a88442284fb6eab828f8783f7b476adf15b87845fefc69984618190557fa58e785ca3c144396604bfc4bcb395874a292307292e87f0f032850ea567c7df8190557f11ffa0b3c8a8216dde9b8db3c9df38c8781aae823cb26bd64252bac256eeb1c18190557f5f9635850a242584d95051599b420e22d97953c39ddc8bce5f9c7b5cdc5e8f398190557f496f6484e251acdf7bd6f410c0d901937882e29532d5c20e8b45ab35b595f0aa8190557fa1c33b924de790b5a3cae26e5f6263a1b566e8fb4f938f1edb22e871e78028f38190557f07dd69d954ad4df59785d83dde99a41583af7b4007ff2dbd6aea44066f4d37bf8190557f3e43b68db6c09c1a1d809cc0dc6e830047c6c01b2551200dd49a09fabd10ed8a8190557f0f6bc1b1366f5ae03f93a4194bba7e92c744b278f641fb977fb0c5b0d3a9484d8190557f7ea90bac48b6e2189ef6405a93f22e4b6b2c40a36828344a300172fb1e8586268190557f442f45033a60b724fb25cf7104fe16633bc20c0cdd537d6735817d41614d59d28190557fc92ea0339b4206e12c2ba4f46eecc7f08c51c7498a1936d115ecd9c3f84d48fa8190557f94e1dd6094f86a7893716b6e1aa6a61e4764f8c5f38eb72387b68ddd57afe45a8190557fff3a32a5d62d1fdb9bca3e276cc6d684460b7adfb15b17399298e5ea234024748190557f0daebf9c109d22bfd50974948274358bfbb6aa4ecee4b244ada773f21385b3338190557f6291a33c13bdf40aca0bb333dc0c5643cfd713f6ff6784a46e3d5f9a238413458190556113596000527f72ddafc83d3f3f9de2c4943e5fe8a271dad14e49334d816c444880cc4c17f1ab5562000e96565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000db79062000e65565b90600052602060002090601f01602090048101928262000ddb576000855562000e26565b82601f1062000df657805160ff191683800117855562000e26565b8280016001018555821562000e26579182015b8281111562000e2657825182559160200191906001019062000e09565b5062000e3492915062000e38565b5090565b5b8082111562000e34576000815560010162000e39565b634e487b7160e01b600052602260045260246000fd5b60028104600182168062000e7a57607f821691505b6020821081141562000e905762000e9062000e4f565b50919050565b6127118062000ea66000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c8063715018a61161010f578063ba7e7662116100a2578063dd62ed3e11610071578063dd62ed3e1461040a578063de82d1ab14610443578063e3c998fe14610456578063f2fde38b1461047f57600080fd5b8063ba7e7662146103c6578063c7902c0d146103cf578063d1058e59146103ef578063d9ffad47146103f757600080fd5b806395d89b41116100de57806395d89b4114610385578063a40010981461038d578063a457c2d7146103a0578063a9059cbb146103b357600080fd5b8063715018a61461034757806379cc67901461034f5780638ab8fab3146103625780638da5cb5b1461036b57600080fd5b8063362a3fad11610187578063515ec10511610156578063515ec105146102d857806352eb7796146102eb5780635e1f1e2a1461030b57806370a082311461031e57600080fd5b8063362a3fad1461028c578063395093511461029f57806342966c68146102b257806348aa1936146102c557600080fd5b806323b872dd116101c357806323b872dd1461024d57806325d61ea414610260578063313ce5671461027557806335322f371461028457600080fd5b806306fdde03146101f5578063095ea7b31461021357806318160ddd146102335780632209d38c14610244575b600080fd5b6101fd610492565b60405161020a9190611abf565b60405180910390f35b610226610221366004611b11565b610524565b60405161020a9190611b58565b6002545b60405161020a9190611b6c565b61023760085481565b61022661025b366004611b7a565b61053b565b61027361026e366004611bca565b6105ad565b005b601260405161020a9190611bf5565b6102736105ed565b61023761029a366004611c03565b6107e0565b6102266102ad366004611b11565b61097e565b6102736102c0366004611c2c565b6109ba565b6102736102d3366004611d52565b6109c4565b6102376102e6366004611c2c565b610c71565b6102fe6102f9366004611c03565b610d1a565b60405161020a9190611deb565b610273610319366004611c2c565b610d86565b61023761032c366004611c03565b6001600160a01b031660009081526020819052604090205490565b610273610e73565b61027361035d366004611b11565b610ea9565b61023760065481565b6005546001600160a01b03165b60405161020a9190611e05565b6101fd610ef3565b61027361039b366004611c03565b610f02565b6102266103ae366004611b11565b610f59565b6102266103c1366004611b11565b610fb4565b61023760075481565b6102376103dd366004611c2c565b6000908152600b602052604090205490565b610273610fc1565b610273610405366004611d52565b611205565b610237610418366004611e13565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600a54610378906001600160a01b031681565b610378610464366004611c2c565b6000908152600d60205260409020546001600160a01b031690565b61027361048d366004611c03565b6114b9565b6060600380546104a190611e5c565b80601f01602080910402602001604051908101604052809291908181526020018280546104cd90611e5c565b801561051a5780601f106104ef5761010080835404028352916020019161051a565b820191906000526020600020905b8154815290600101906020018083116104fd57829003601f168201915b5050505050905090565b6000610531338484611512565b5060015b92915050565b60006105488484846115c6565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156105955760405162461bcd60e51b815260040161058c90611ee3565b60405180910390fd5b6105a28533858403611512565b506001949350505050565b6005546001600160a01b031633146105d75760405162461bcd60e51b815260040161058c90611f23565b6000828152600b602052604090208190555b5050565b336000908152600e60205260409020546106195760405162461bcd60e51b815260040161058c90611f8b565b336000908152600e60205260408120545b80156107d257336000908152600e6020526040812061064a600184611fb1565b8154811061065a5761065a611fc8565b600091825260209091200154600a546040517f23b872dd0000000000000000000000000000000000000000000000000000000081529192506001600160a01b0316906323b872dd906106b490309033908690600401611fde565b600060405180830381600087803b1580156106ce57600080fd5b505af11580156106e2573d6000803e3d6000fd5b5050506000828152600b6020526040902054159050610747576000818152600b6020908152604080832054600754600c9093529220546107229042611fb1565b61072c9190612006565b6107369190612006565b6107409084612025565b925061077a565b6007546000828152600c60205260409020546107639042611fb1565b61076d9190612006565b6107779084612025565b92505b61078433826116db565b6009546000918252600d6020526040909120805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03909216919091179055806107ca8161203d565b91505061062a565b506107dd3382611758565b50565b6001600160a01b0381166000908152600e602090815260408083208054825181850281018501909352808352849383018282801561083d57602002820191906000526020600020905b815481526020019060010190808311610829575b505050505090506000805b825181101561097657600b600084838151811061086757610867611fc8565b602002602001015181526020019081526020016000205460001461091257600b600084838151811061089b5761089b611fc8565b6020026020010151815260200190815260200160002054600754600c60008685815181106108cb576108cb611fc8565b6020026020010151815260200190815260200160002054426108ed9190611fb1565b6108f79190612006565b6109019190612006565b61090b9083612025565b9150610964565b600754600c600085848151811061092b5761092b611fc8565b60200260200101518152602001908152602001600020544261094d9190611fb1565b6109579190612006565b6109619083612025565b91505b8061096e81612054565b915050610848565b509392505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916105319185906109b5908690612025565b611512565b6107dd338261180c565b6000805b8251811015610c6657336001600160a01b0316600d60008584815181106109f1576109f1611fc8565b6020908102919091018101518252810191909152604001600020546001600160a01b031614610a325760405162461bcd60e51b815260040161058c906120c7565b600a5483516001600160a01b03909116906323b872dd9030903390879086908110610a5f57610a5f611fc8565b60200260200101516040518463ffffffff1660e01b8152600401610a8593929190611fde565b600060405180830381600087803b158015610a9f57600080fd5b505af1158015610ab3573d6000803e3d6000fd5b50505050600b6000848381518110610acd57610acd611fc8565b6020026020010151815260200190815260200160002054600014610b7857600b6000848381518110610b0157610b01611fc8565b6020026020010151815260200190815260200160002054600754600c6000868581518110610b3157610b31611fc8565b602002602001015181526020019081526020016000205442610b539190611fb1565b610b5d9190612006565b610b679190612006565b610b719083612025565b9150610bca565b600754600c6000858481518110610b9157610b91611fc8565b602002602001015181526020019081526020016000205442610bb39190611fb1565b610bbd9190612006565b610bc79083612025565b91505b610bed33848381518110610be057610be0611fc8565b60200260200101516116db565b600960009054906101000a90046001600160a01b0316600d6000858481518110610c1957610c19611fc8565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508080610c5e90612054565b9150506109c8565b506105e93382611758565b6009546000828152600d602052604081205490916001600160a01b0391821691161415610cb05760405162461bcd60e51b815260040161058c90612109565b6000828152600c6020526040812054610cc99042611fb1565b6000848152600b602052604090205490915015610d0d576000838152600b6020526040902054600754610cfc9083612006565b610d069190612006565b9392505050565b600754610d069082612006565b6001600160a01b0381166000908152600e6020908152604091829020805483518184028101840190945280845260609392830182828015610d7a57602002820191906000526020600020905b815481526020019060010190808311610d66575b50505050509050919050565b6000818152600d60205260409020546001600160a01b03163314610dbc5760405162461bcd60e51b815260040161058c9061214b565b6008544210610ddd5760405162461bcd60e51b815260040161058c9061218d565b6000818152600b602052604090205415610e3e576000818152600b6020908152604080832054600754600c909352922054610e399233929091610e209042611fb1565b610e2a9190612006565b610e349190612006565b611758565b610e60565b6007546000828152600c6020526040902054610e60913391610e2a9042611fb1565b6000908152600c60205260409020429055565b6005546001600160a01b03163314610e9d5760405162461bcd60e51b815260040161058c90611f23565b610ea760006118dd565b565b6000610eb58333610418565b905081811015610ed75760405162461bcd60e51b815260040161058c906121f5565b610ee48333848403611512565b610eee838361180c565b505050565b6060600480546104a190611e5c565b6005546001600160a01b03163314610f2c5760405162461bcd60e51b815260040161058c90611f23565b600a80546001600160a01b03831673ffffffffffffffffffffffffffffffffffffffff1990911617905550565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610f9d5760405162461bcd60e51b815260040161058c9061225d565b610faa3385858403611512565b5060019392505050565b60006105313384846115c6565b6008544210610fe25760405162461bcd60e51b815260040161058c9061218d565b336000908152600e602090815260408083208054825181850281018501909352808352919290919083018282801561103957602002820191906000526020600020905b815481526020019060010190808311611025575b505050505090506000805b8251811015610c6657336001600160a01b0316600d600085848151811061106d5761106d611fc8565b6020908102919091018101518252810191909152604001600020546001600160a01b0316146110ae5760405162461bcd60e51b815260040161058c9061214b565b600b60008483815181106110c4576110c4611fc8565b602002602001015181526020019081526020016000205460001461116f57600b60008483815181106110f8576110f8611fc8565b6020026020010151815260200190815260200160002054600754600c600086858151811061112857611128611fc8565b60200260200101518152602001908152602001600020544261114a9190611fb1565b6111549190612006565b61115e9190612006565b6111689083612025565b91506111c1565b600754600c600085848151811061118857611188611fc8565b6020026020010151815260200190815260200160002054426111aa9190611fb1565b6111b49190612006565b6111be9083612025565b91505b42600c60008584815181106111d8576111d8611fc8565b602002602001015181526020019081526020016000208190555080806111fd90612054565b915050611044565b6006548151336000908152600e60205260409020546112249190612025565b11156112425760405162461bcd60e51b815260040161058c906122c5565b60005b81518110156105e957600a54825133916001600160a01b031690636352211e9085908590811061127757611277611fc8565b60200260200101516040518263ffffffff1660e01b815260040161129b9190611b6c565b602060405180830381865afa1580156112b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112dc91906122e0565b6001600160a01b031614801561133c575060095482516001600160a01b0390911690600d9060009085908590811061131657611316611fc8565b6020908102919091018101518252810191909152604001600020546001600160a01b0316145b6113585760405162461bcd60e51b815260040161058c90612333565b600a5482516001600160a01b03909116906323b872dd903390309086908690811061138557611385611fc8565b60200260200101516040518463ffffffff1660e01b81526004016113ab93929190611fde565b600060405180830381600087803b1580156113c557600080fd5b505af11580156113d9573d6000803e3d6000fd5b5050336000908152600e6020526040902084519092508491508390811061140257611402611fc8565b602090810291909101810151825460018101845560009384529183209091015582514291600c9185908590811061143b5761143b611fc8565b602002602001015181526020019081526020016000208190555033600d600084848151811061146c5761146c611fc8565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080806114b190612054565b915050611245565b6005546001600160a01b031633146114e35760405162461bcd60e51b815260040161058c90611f23565b6001600160a01b0381166115095760405162461bcd60e51b815260040161058c9061239b565b6107dd816118dd565b6001600160a01b0383166115385760405162461bcd60e51b815260040161058c90612403565b6001600160a01b03821661155e5760405162461bcd60e51b815260040161058c9061246b565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906115b9908590611b6c565b60405180910390a3505050565b6001600160a01b0383166115ec5760405162461bcd60e51b815260040161058c906124d3565b6001600160a01b0382166116125760405162461bcd60e51b815260040161058c9061253b565b6001600160a01b0383166000908152602081905260409020548181101561164b5760405162461bcd60e51b815260040161058c906125a3565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611682908490612025565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516116cc9190611b6c565b60405180910390a35b50505050565b60005b6001600160a01b0383166000908152600e6020526040902054811015610eee576001600160a01b0383166000908152600e6020526040902080548391908390811061172b5761172b611fc8565b9060005260206000200154141561174657611746838261193c565b8061175081612054565b9150506116de565b6001600160a01b03821661177e5760405162461bcd60e51b815260040161058c906125e5565b80600260008282546117909190612025565b90915550506001600160a01b038216600090815260208190526040812080548392906117bd908490612025565b90915550506040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611800908590611b6c565b60405180910390a35050565b6001600160a01b0382166118325760405162461bcd60e51b815260040161058c9061264d565b6001600160a01b0382166000908152602081905260409020548181101561186b5760405162461bcd60e51b815260040161058c906126b5565b6001600160a01b038316600090815260208190526040812083830390556002805484929061189a908490611fb1565b90915550506040516000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906115b9908690611b6c565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166000908152600e6020526040902054811061195f575050565b805b6001600160a01b0383166000908152600e602052604090205461198690600190611fb1565b811015611a1f576001600160a01b0383166000908152600e602052604090206119b0826001612025565b815481106119c0576119c0611fc8565b9060005260206000200154600e6000856001600160a01b03166001600160a01b031681526020019081526020016000208281548110611a0157611a01611fc8565b60009182526020909120015580611a1781612054565b915050611961565b506001600160a01b0382166000908152600e60205260409020805480611a4757611a476126c5565b600190038181906000526020600020016000905590555050565b60005b83811015611a7c578181015183820152602001611a64565b838111156116d55750506000910152565b6000611a97825190565b808452602084019350611aae818560208601611a61565b601f01601f19169290920192915050565b60208082528101610d068184611a8d565b60006001600160a01b038216610535565b611aea81611ad0565b81146107dd57600080fd5b803561053581611ae1565b80611aea565b803561053581611b00565b60008060408385031215611b2757611b27600080fd5b6000611b338585611af5565b9250506020611b4485828601611b06565b9150509250929050565b8015155b82525050565b602081016105358284611b4e565b80611b52565b602081016105358284611b66565b600080600060608486031215611b9257611b92600080fd5b6000611b9e8686611af5565b9350506020611baf86828701611af5565b9250506040611bc086828701611b06565b9150509250925092565b60008060408385031215611be057611be0600080fd5b6000611b338585611b06565b60ff8116611b52565b602081016105358284611bec565b600060208284031215611c1857611c18600080fd5b6000611c248484611af5565b949350505050565b600060208284031215611c4157611c41600080fd5b6000611c248484611b06565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715611c8957611c89611c4d565b6040525050565b6000611c9b60405190565b9050611ca78282611c63565b919050565b600067ffffffffffffffff821115611cc657611cc6611c4d565b5060209081020190565b6000611ce3611cde84611cac565b611c90565b83815290506020808201908402830185811115611d0257611d02600080fd5b835b81811015611d2457611d168782611b06565b835260209283019201611d04565b5050509392505050565b600082601f830112611d4257611d42600080fd5b8135611c24848260208601611cd0565b600060208284031215611d6757611d67600080fd5b813567ffffffffffffffff811115611d8157611d81600080fd5b611c2484828501611d2e565b611d978282611b66565b5060200190565b60200190565b6000611dae825190565b808452602093840193830160005b82811015611de1578151611dd08782611d8d565b965050602082019150600101611dbc565b5093949350505050565b60208082528101610d068184611da4565b611b5281611ad0565b602081016105358284611dfc565b60008060408385031215611e2957611e29600080fd5b6000611e358585611af5565b9250506020611b4485828601611af5565b634e487b7160e01b600052602260045260246000fd5b600281046001821680611e7057607f821691505b60208210811415611e8357611e83611e46565b50919050565b60288152602081017f45524332303a207472616e7366657220616d6f756e742065786365656473206181527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015290505b60400190565b6020808252810161053581611e89565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65729101908152611d9e565b6020808252810161053581611ef3565b60248152602081017f4d7573742068617665206174206c65617374206f6e6520746f6b656e2073746181527f6b6564210000000000000000000000000000000000000000000000000000000060208201529050611edd565b6020808252810161053581611f33565b634e487b7160e01b600052601160045260246000fd5b600082821015611fc357611fc3611f9b565b500390565b634e487b7160e01b600052603260045260246000fd5b60608101611fec8286611dfc565b611ff96020830185611dfc565b611c246040830184611b66565b600081600019048311821515161561202057612020611f9b565b500290565b6000821982111561203857612038611f9b565b500190565b60008161204c5761204c611f9b565b506000190190565b600060001982141561206857612068611f9b565b5060010190565b60278152602081017f4d6573736167652053656e64657220776173206e6f74206f726967696e616c2081527f7374616b6572210000000000000000000000000000000000000000000000000060208201529050611edd565b602080825281016105358161206f565b60148152602081017f546f6b656e206973206e6f74207374616b65642100000000000000000000000081529050611d9e565b60208082528101610535816120d7565b601e8152602081017f546f6b656e206973206e6f7420636c61696d61626c6520627920796f7521000081529050611d9e565b6020808252810161053581612119565b60158152602081017f436c61696d20706572696f64206973206f76657221000000000000000000000081529050611d9e565b602080825281016105358161215b565b60248152602081017f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7781527f616e63650000000000000000000000000000000000000000000000000000000060208201529050611edd565b602080825281016105358161219d565b60258152602081017f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7781527f207a65726f00000000000000000000000000000000000000000000000000000060208201529050611edd565b6020808252810161053581612205565b60248152602081017f4d7573742068617665206c657373207468616e2031303020776162692073746181527f6b6564210000000000000000000000000000000000000000000000000000000060208201529050611edd565b602080825281016105358161226d565b805161053581611ae1565b6000602082840312156122f5576122f5600080fd5b6000611c2484846122d5565b601e8152602081017f546f6b656e206d757374206265207374616b61626c6520627920796f7521000081529050611d9e565b6020808252810161053581612301565b60268152602081017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f646472657373000000000000000000000000000000000000000000000000000060208201529050611edd565b6020808252810161053581612343565b60248152602081017f45524332303a20617070726f76652066726f6d20746865207a65726f2061646481527f726573730000000000000000000000000000000000000000000000000000000060208201529050611edd565b60208082528101610535816123ab565b60228152602081017f45524332303a20617070726f766520746f20746865207a65726f20616464726581527f737300000000000000000000000000000000000000000000000000000000000060208201529050611edd565b6020808252810161053581612413565b60258152602081017f45524332303a207472616e736665722066726f6d20746865207a65726f20616481527f647265737300000000000000000000000000000000000000000000000000000060208201529050611edd565b602080825281016105358161247b565b60238152602081017f45524332303a207472616e7366657220746f20746865207a65726f206164647281527f657373000000000000000000000000000000000000000000000000000000000060208201529050611edd565b60208082528101610535816124e3565b60268152602081017f45524332303a207472616e7366657220616d6f756e742065786365656473206281527f616c616e6365000000000000000000000000000000000000000000000000000060208201529050611edd565b602080825281016105358161254b565b601f8152602081017f45524332303a206d696e7420746f20746865207a65726f20616464726573730081529050611d9e565b60208082528101610535816125b3565b60218152602081017f45524332303a206275726e2066726f6d20746865207a65726f2061646472657381527f730000000000000000000000000000000000000000000000000000000000000060208201529050611edd565b60208082528101610535816125f5565b60228152602081017f45524332303a206275726e20616d6f756e7420657863656564732062616c616e81527f636500000000000000000000000000000000000000000000000000000000000060208201529050611edd565b602080825281016105358161265d565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220cfeba8602796c75d81fd442e968ee6a9ac4bd01ab6dd810282599c64273374c064736f6c634300080b0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101f05760003560e01c8063715018a61161010f578063ba7e7662116100a2578063dd62ed3e11610071578063dd62ed3e1461040a578063de82d1ab14610443578063e3c998fe14610456578063f2fde38b1461047f57600080fd5b8063ba7e7662146103c6578063c7902c0d146103cf578063d1058e59146103ef578063d9ffad47146103f757600080fd5b806395d89b41116100de57806395d89b4114610385578063a40010981461038d578063a457c2d7146103a0578063a9059cbb146103b357600080fd5b8063715018a61461034757806379cc67901461034f5780638ab8fab3146103625780638da5cb5b1461036b57600080fd5b8063362a3fad11610187578063515ec10511610156578063515ec105146102d857806352eb7796146102eb5780635e1f1e2a1461030b57806370a082311461031e57600080fd5b8063362a3fad1461028c578063395093511461029f57806342966c68146102b257806348aa1936146102c557600080fd5b806323b872dd116101c357806323b872dd1461024d57806325d61ea414610260578063313ce5671461027557806335322f371461028457600080fd5b806306fdde03146101f5578063095ea7b31461021357806318160ddd146102335780632209d38c14610244575b600080fd5b6101fd610492565b60405161020a9190611abf565b60405180910390f35b610226610221366004611b11565b610524565b60405161020a9190611b58565b6002545b60405161020a9190611b6c565b61023760085481565b61022661025b366004611b7a565b61053b565b61027361026e366004611bca565b6105ad565b005b601260405161020a9190611bf5565b6102736105ed565b61023761029a366004611c03565b6107e0565b6102266102ad366004611b11565b61097e565b6102736102c0366004611c2c565b6109ba565b6102736102d3366004611d52565b6109c4565b6102376102e6366004611c2c565b610c71565b6102fe6102f9366004611c03565b610d1a565b60405161020a9190611deb565b610273610319366004611c2c565b610d86565b61023761032c366004611c03565b6001600160a01b031660009081526020819052604090205490565b610273610e73565b61027361035d366004611b11565b610ea9565b61023760065481565b6005546001600160a01b03165b60405161020a9190611e05565b6101fd610ef3565b61027361039b366004611c03565b610f02565b6102266103ae366004611b11565b610f59565b6102266103c1366004611b11565b610fb4565b61023760075481565b6102376103dd366004611c2c565b6000908152600b602052604090205490565b610273610fc1565b610273610405366004611d52565b611205565b610237610418366004611e13565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600a54610378906001600160a01b031681565b610378610464366004611c2c565b6000908152600d60205260409020546001600160a01b031690565b61027361048d366004611c03565b6114b9565b6060600380546104a190611e5c565b80601f01602080910402602001604051908101604052809291908181526020018280546104cd90611e5c565b801561051a5780601f106104ef5761010080835404028352916020019161051a565b820191906000526020600020905b8154815290600101906020018083116104fd57829003601f168201915b5050505050905090565b6000610531338484611512565b5060015b92915050565b60006105488484846115c6565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156105955760405162461bcd60e51b815260040161058c90611ee3565b60405180910390fd5b6105a28533858403611512565b506001949350505050565b6005546001600160a01b031633146105d75760405162461bcd60e51b815260040161058c90611f23565b6000828152600b602052604090208190555b5050565b336000908152600e60205260409020546106195760405162461bcd60e51b815260040161058c90611f8b565b336000908152600e60205260408120545b80156107d257336000908152600e6020526040812061064a600184611fb1565b8154811061065a5761065a611fc8565b600091825260209091200154600a546040517f23b872dd0000000000000000000000000000000000000000000000000000000081529192506001600160a01b0316906323b872dd906106b490309033908690600401611fde565b600060405180830381600087803b1580156106ce57600080fd5b505af11580156106e2573d6000803e3d6000fd5b5050506000828152600b6020526040902054159050610747576000818152600b6020908152604080832054600754600c9093529220546107229042611fb1565b61072c9190612006565b6107369190612006565b6107409084612025565b925061077a565b6007546000828152600c60205260409020546107639042611fb1565b61076d9190612006565b6107779084612025565b92505b61078433826116db565b6009546000918252600d6020526040909120805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03909216919091179055806107ca8161203d565b91505061062a565b506107dd3382611758565b50565b6001600160a01b0381166000908152600e602090815260408083208054825181850281018501909352808352849383018282801561083d57602002820191906000526020600020905b815481526020019060010190808311610829575b505050505090506000805b825181101561097657600b600084838151811061086757610867611fc8565b602002602001015181526020019081526020016000205460001461091257600b600084838151811061089b5761089b611fc8565b6020026020010151815260200190815260200160002054600754600c60008685815181106108cb576108cb611fc8565b6020026020010151815260200190815260200160002054426108ed9190611fb1565b6108f79190612006565b6109019190612006565b61090b9083612025565b9150610964565b600754600c600085848151811061092b5761092b611fc8565b60200260200101518152602001908152602001600020544261094d9190611fb1565b6109579190612006565b6109619083612025565b91505b8061096e81612054565b915050610848565b509392505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916105319185906109b5908690612025565b611512565b6107dd338261180c565b6000805b8251811015610c6657336001600160a01b0316600d60008584815181106109f1576109f1611fc8565b6020908102919091018101518252810191909152604001600020546001600160a01b031614610a325760405162461bcd60e51b815260040161058c906120c7565b600a5483516001600160a01b03909116906323b872dd9030903390879086908110610a5f57610a5f611fc8565b60200260200101516040518463ffffffff1660e01b8152600401610a8593929190611fde565b600060405180830381600087803b158015610a9f57600080fd5b505af1158015610ab3573d6000803e3d6000fd5b50505050600b6000848381518110610acd57610acd611fc8565b6020026020010151815260200190815260200160002054600014610b7857600b6000848381518110610b0157610b01611fc8565b6020026020010151815260200190815260200160002054600754600c6000868581518110610b3157610b31611fc8565b602002602001015181526020019081526020016000205442610b539190611fb1565b610b5d9190612006565b610b679190612006565b610b719083612025565b9150610bca565b600754600c6000858481518110610b9157610b91611fc8565b602002602001015181526020019081526020016000205442610bb39190611fb1565b610bbd9190612006565b610bc79083612025565b91505b610bed33848381518110610be057610be0611fc8565b60200260200101516116db565b600960009054906101000a90046001600160a01b0316600d6000858481518110610c1957610c19611fc8565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508080610c5e90612054565b9150506109c8565b506105e93382611758565b6009546000828152600d602052604081205490916001600160a01b0391821691161415610cb05760405162461bcd60e51b815260040161058c90612109565b6000828152600c6020526040812054610cc99042611fb1565b6000848152600b602052604090205490915015610d0d576000838152600b6020526040902054600754610cfc9083612006565b610d069190612006565b9392505050565b600754610d069082612006565b6001600160a01b0381166000908152600e6020908152604091829020805483518184028101840190945280845260609392830182828015610d7a57602002820191906000526020600020905b815481526020019060010190808311610d66575b50505050509050919050565b6000818152600d60205260409020546001600160a01b03163314610dbc5760405162461bcd60e51b815260040161058c9061214b565b6008544210610ddd5760405162461bcd60e51b815260040161058c9061218d565b6000818152600b602052604090205415610e3e576000818152600b6020908152604080832054600754600c909352922054610e399233929091610e209042611fb1565b610e2a9190612006565b610e349190612006565b611758565b610e60565b6007546000828152600c6020526040902054610e60913391610e2a9042611fb1565b6000908152600c60205260409020429055565b6005546001600160a01b03163314610e9d5760405162461bcd60e51b815260040161058c90611f23565b610ea760006118dd565b565b6000610eb58333610418565b905081811015610ed75760405162461bcd60e51b815260040161058c906121f5565b610ee48333848403611512565b610eee838361180c565b505050565b6060600480546104a190611e5c565b6005546001600160a01b03163314610f2c5760405162461bcd60e51b815260040161058c90611f23565b600a80546001600160a01b03831673ffffffffffffffffffffffffffffffffffffffff1990911617905550565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610f9d5760405162461bcd60e51b815260040161058c9061225d565b610faa3385858403611512565b5060019392505050565b60006105313384846115c6565b6008544210610fe25760405162461bcd60e51b815260040161058c9061218d565b336000908152600e602090815260408083208054825181850281018501909352808352919290919083018282801561103957602002820191906000526020600020905b815481526020019060010190808311611025575b505050505090506000805b8251811015610c6657336001600160a01b0316600d600085848151811061106d5761106d611fc8565b6020908102919091018101518252810191909152604001600020546001600160a01b0316146110ae5760405162461bcd60e51b815260040161058c9061214b565b600b60008483815181106110c4576110c4611fc8565b602002602001015181526020019081526020016000205460001461116f57600b60008483815181106110f8576110f8611fc8565b6020026020010151815260200190815260200160002054600754600c600086858151811061112857611128611fc8565b60200260200101518152602001908152602001600020544261114a9190611fb1565b6111549190612006565b61115e9190612006565b6111689083612025565b91506111c1565b600754600c600085848151811061118857611188611fc8565b6020026020010151815260200190815260200160002054426111aa9190611fb1565b6111b49190612006565b6111be9083612025565b91505b42600c60008584815181106111d8576111d8611fc8565b602002602001015181526020019081526020016000208190555080806111fd90612054565b915050611044565b6006548151336000908152600e60205260409020546112249190612025565b11156112425760405162461bcd60e51b815260040161058c906122c5565b60005b81518110156105e957600a54825133916001600160a01b031690636352211e9085908590811061127757611277611fc8565b60200260200101516040518263ffffffff1660e01b815260040161129b9190611b6c565b602060405180830381865afa1580156112b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112dc91906122e0565b6001600160a01b031614801561133c575060095482516001600160a01b0390911690600d9060009085908590811061131657611316611fc8565b6020908102919091018101518252810191909152604001600020546001600160a01b0316145b6113585760405162461bcd60e51b815260040161058c90612333565b600a5482516001600160a01b03909116906323b872dd903390309086908690811061138557611385611fc8565b60200260200101516040518463ffffffff1660e01b81526004016113ab93929190611fde565b600060405180830381600087803b1580156113c557600080fd5b505af11580156113d9573d6000803e3d6000fd5b5050336000908152600e6020526040902084519092508491508390811061140257611402611fc8565b602090810291909101810151825460018101845560009384529183209091015582514291600c9185908590811061143b5761143b611fc8565b602002602001015181526020019081526020016000208190555033600d600084848151811061146c5761146c611fc8565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080806114b190612054565b915050611245565b6005546001600160a01b031633146114e35760405162461bcd60e51b815260040161058c90611f23565b6001600160a01b0381166115095760405162461bcd60e51b815260040161058c9061239b565b6107dd816118dd565b6001600160a01b0383166115385760405162461bcd60e51b815260040161058c90612403565b6001600160a01b03821661155e5760405162461bcd60e51b815260040161058c9061246b565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906115b9908590611b6c565b60405180910390a3505050565b6001600160a01b0383166115ec5760405162461bcd60e51b815260040161058c906124d3565b6001600160a01b0382166116125760405162461bcd60e51b815260040161058c9061253b565b6001600160a01b0383166000908152602081905260409020548181101561164b5760405162461bcd60e51b815260040161058c906125a3565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611682908490612025565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516116cc9190611b6c565b60405180910390a35b50505050565b60005b6001600160a01b0383166000908152600e6020526040902054811015610eee576001600160a01b0383166000908152600e6020526040902080548391908390811061172b5761172b611fc8565b9060005260206000200154141561174657611746838261193c565b8061175081612054565b9150506116de565b6001600160a01b03821661177e5760405162461bcd60e51b815260040161058c906125e5565b80600260008282546117909190612025565b90915550506001600160a01b038216600090815260208190526040812080548392906117bd908490612025565b90915550506040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611800908590611b6c565b60405180910390a35050565b6001600160a01b0382166118325760405162461bcd60e51b815260040161058c9061264d565b6001600160a01b0382166000908152602081905260409020548181101561186b5760405162461bcd60e51b815260040161058c906126b5565b6001600160a01b038316600090815260208190526040812083830390556002805484929061189a908490611fb1565b90915550506040516000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906115b9908690611b6c565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166000908152600e6020526040902054811061195f575050565b805b6001600160a01b0383166000908152600e602052604090205461198690600190611fb1565b811015611a1f576001600160a01b0383166000908152600e602052604090206119b0826001612025565b815481106119c0576119c0611fc8565b9060005260206000200154600e6000856001600160a01b03166001600160a01b031681526020019081526020016000208281548110611a0157611a01611fc8565b60009182526020909120015580611a1781612054565b915050611961565b506001600160a01b0382166000908152600e60205260409020805480611a4757611a476126c5565b600190038181906000526020600020016000905590555050565b60005b83811015611a7c578181015183820152602001611a64565b838111156116d55750506000910152565b6000611a97825190565b808452602084019350611aae818560208601611a61565b601f01601f19169290920192915050565b60208082528101610d068184611a8d565b60006001600160a01b038216610535565b611aea81611ad0565b81146107dd57600080fd5b803561053581611ae1565b80611aea565b803561053581611b00565b60008060408385031215611b2757611b27600080fd5b6000611b338585611af5565b9250506020611b4485828601611b06565b9150509250929050565b8015155b82525050565b602081016105358284611b4e565b80611b52565b602081016105358284611b66565b600080600060608486031215611b9257611b92600080fd5b6000611b9e8686611af5565b9350506020611baf86828701611af5565b9250506040611bc086828701611b06565b9150509250925092565b60008060408385031215611be057611be0600080fd5b6000611b338585611b06565b60ff8116611b52565b602081016105358284611bec565b600060208284031215611c1857611c18600080fd5b6000611c248484611af5565b949350505050565b600060208284031215611c4157611c41600080fd5b6000611c248484611b06565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715611c8957611c89611c4d565b6040525050565b6000611c9b60405190565b9050611ca78282611c63565b919050565b600067ffffffffffffffff821115611cc657611cc6611c4d565b5060209081020190565b6000611ce3611cde84611cac565b611c90565b83815290506020808201908402830185811115611d0257611d02600080fd5b835b81811015611d2457611d168782611b06565b835260209283019201611d04565b5050509392505050565b600082601f830112611d4257611d42600080fd5b8135611c24848260208601611cd0565b600060208284031215611d6757611d67600080fd5b813567ffffffffffffffff811115611d8157611d81600080fd5b611c2484828501611d2e565b611d978282611b66565b5060200190565b60200190565b6000611dae825190565b808452602093840193830160005b82811015611de1578151611dd08782611d8d565b965050602082019150600101611dbc565b5093949350505050565b60208082528101610d068184611da4565b611b5281611ad0565b602081016105358284611dfc565b60008060408385031215611e2957611e29600080fd5b6000611e358585611af5565b9250506020611b4485828601611af5565b634e487b7160e01b600052602260045260246000fd5b600281046001821680611e7057607f821691505b60208210811415611e8357611e83611e46565b50919050565b60288152602081017f45524332303a207472616e7366657220616d6f756e742065786365656473206181527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015290505b60400190565b6020808252810161053581611e89565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65729101908152611d9e565b6020808252810161053581611ef3565b60248152602081017f4d7573742068617665206174206c65617374206f6e6520746f6b656e2073746181527f6b6564210000000000000000000000000000000000000000000000000000000060208201529050611edd565b6020808252810161053581611f33565b634e487b7160e01b600052601160045260246000fd5b600082821015611fc357611fc3611f9b565b500390565b634e487b7160e01b600052603260045260246000fd5b60608101611fec8286611dfc565b611ff96020830185611dfc565b611c246040830184611b66565b600081600019048311821515161561202057612020611f9b565b500290565b6000821982111561203857612038611f9b565b500190565b60008161204c5761204c611f9b565b506000190190565b600060001982141561206857612068611f9b565b5060010190565b60278152602081017f4d6573736167652053656e64657220776173206e6f74206f726967696e616c2081527f7374616b6572210000000000000000000000000000000000000000000000000060208201529050611edd565b602080825281016105358161206f565b60148152602081017f546f6b656e206973206e6f74207374616b65642100000000000000000000000081529050611d9e565b60208082528101610535816120d7565b601e8152602081017f546f6b656e206973206e6f7420636c61696d61626c6520627920796f7521000081529050611d9e565b6020808252810161053581612119565b60158152602081017f436c61696d20706572696f64206973206f76657221000000000000000000000081529050611d9e565b602080825281016105358161215b565b60248152602081017f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7781527f616e63650000000000000000000000000000000000000000000000000000000060208201529050611edd565b602080825281016105358161219d565b60258152602081017f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7781527f207a65726f00000000000000000000000000000000000000000000000000000060208201529050611edd565b6020808252810161053581612205565b60248152602081017f4d7573742068617665206c657373207468616e2031303020776162692073746181527f6b6564210000000000000000000000000000000000000000000000000000000060208201529050611edd565b602080825281016105358161226d565b805161053581611ae1565b6000602082840312156122f5576122f5600080fd5b6000611c2484846122d5565b601e8152602081017f546f6b656e206d757374206265207374616b61626c6520627920796f7521000081529050611d9e565b6020808252810161053581612301565b60268152602081017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f646472657373000000000000000000000000000000000000000000000000000060208201529050611edd565b6020808252810161053581612343565b60248152602081017f45524332303a20617070726f76652066726f6d20746865207a65726f2061646481527f726573730000000000000000000000000000000000000000000000000000000060208201529050611edd565b60208082528101610535816123ab565b60228152602081017f45524332303a20617070726f766520746f20746865207a65726f20616464726581527f737300000000000000000000000000000000000000000000000000000000000060208201529050611edd565b6020808252810161053581612413565b60258152602081017f45524332303a207472616e736665722066726f6d20746865207a65726f20616481527f647265737300000000000000000000000000000000000000000000000000000060208201529050611edd565b602080825281016105358161247b565b60238152602081017f45524332303a207472616e7366657220746f20746865207a65726f206164647281527f657373000000000000000000000000000000000000000000000000000000000060208201529050611edd565b60208082528101610535816124e3565b60268152602081017f45524332303a207472616e7366657220616d6f756e742065786365656473206281527f616c616e6365000000000000000000000000000000000000000000000000000060208201529050611edd565b602080825281016105358161254b565b601f8152602081017f45524332303a206d696e7420746f20746865207a65726f20616464726573730081529050611d9e565b60208082528101610535816125b3565b60218152602081017f45524332303a206275726e2066726f6d20746865207a65726f2061646472657381527f730000000000000000000000000000000000000000000000000000000000000060208201529050611edd565b60208082528101610535816125f5565b60228152602081017f45524332303a206275726e20616d6f756e7420657863656564732062616c616e81527f636500000000000000000000000000000000000000000000000000000000000060208201529050611edd565b602080825281016105358161265d565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220cfeba8602796c75d81fd442e968ee6a9ac4bd01ab6dd810282599c64273374c064736f6c634300080b0033
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.