Polygon Sponsored slots available. Book your slot here!
ERC-20
Overview
Max Total Supply
400,000,100 HORA
Holders
22,771
Market
Price
$0.00 @ 0.000000 MATIC
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 6 Decimals)
Balance
12,430 HORAValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
HoraToken
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at polygonscan.com on 2023-09-19 */ // Sources flattened with hardhat v2.12.6 https://hardhat.org // File @openzeppelin/contracts/utils/[email protected] // 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; } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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); } } // File @openzeppelin/contracts/security/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File @openzeppelin/contracts/token/ERC20/[email protected] // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @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); } // File @openzeppelin/contracts/token/ERC20/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @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.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _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; // Overflow not possible: amount <= accountBalance <= totalSupply. _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 Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } } // File @openzeppelin/contracts/utils/math/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File @openzeppelin/contracts/utils/cryptography/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } } // File @openzeppelin/contracts/utils/cryptography/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/EIP712.sol) pragma solidity ^0.8.0; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; address private immutable _CACHED_THIS; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/extensions/draft-ERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * _Available since v3.4._ */ abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 { using Counters for Counters.Counter; mapping(address => Counters.Counter) private _nonces; // solhint-disable-next-line var-name-mixedcase bytes32 private constant _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev In previous versions `_PERMIT_TYPEHASH` was declared as `immutable`. * However, to ensure consistency with the upgradeable transpiler, we will continue * to reserve a slot. * @custom:oz-renamed-from _PERMIT_TYPEHASH */ // solhint-disable-next-line var-name-mixedcase bytes32 private _PERMIT_TYPEHASH_DEPRECATED_SLOT; /** * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. * * It's a good idea to use the same `name` that is defined as the ERC20 token name. */ constructor(string memory name) EIP712(name, "1") {} /** * @dev See {IERC20Permit-permit}. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual override { require(block.timestamp <= deadline, "ERC20Permit: expired deadline"); bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline)); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); require(signer == owner, "ERC20Permit: invalid signature"); _approve(owner, spender, value); } /** * @dev See {IERC20Permit-nonces}. */ function nonces(address owner) public view virtual override returns (uint256) { return _nonces[owner].current(); } /** * @dev See {IERC20Permit-DOMAIN_SEPARATOR}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view override returns (bytes32) { return _domainSeparatorV4(); } /** * @dev "Consume a nonce": return the current value and increment. * * _Available since v4.1._ */ function _useNonce(address owner) internal virtual returns (uint256 current) { Counters.Counter storage nonce = _nonces[owner]; current = nonce.current(); nonce.increment(); } } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Capped.sol) pragma solidity ^0.8.0; /** * @dev Extension of {ERC20} that adds a cap to the supply of tokens. */ abstract contract ERC20Capped is ERC20 { uint256 private immutable _cap; /** * @dev Sets the value of the `cap`. This value is immutable, it can only be * set once during construction. */ constructor(uint256 cap_) { require(cap_ > 0, "ERC20Capped: cap is 0"); _cap = cap_; } /** * @dev Returns the cap on the token's total supply. */ function cap() public view virtual returns (uint256) { return _cap; } /** * @dev See {ERC20-_mint}. */ function _mint(address account, uint256 amount) internal virtual override { require(ERC20.totalSupply() + amount <= cap(), "ERC20Capped: cap exceeded"); super._mint(account, amount); } } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Pausable.sol) pragma solidity ^0.8.0; /** * @dev ERC20 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC20Pausable is ERC20, Pausable { /** * @dev See {ERC20-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override { super._beforeTokenTransfer(from, to, amount); require(!paused(), "ERC20Pausable: token transfer while paused"); } } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File @openzeppelin/contracts/token/ERC20/utils/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File contracts/HoraToken.sol pragma solidity 0.8.17; contract HoraToken is ERC20, Ownable, ERC20Permit, ERC20Burnable, ERC20Pausable, ERC20Capped { /* Globals */ uint256 public constant mintTotalLimit = 1000000 * 1000000000 * 12; // 12b max minting, uint public constant DELAY = 2 days; mapping(address => bool) public isMinter; address[] public minters; address public immutable underlying; address public vault; address public pendingMinter; uint public delayMinter; uint public feePercent = 0; bool public usePermitSpenderNonce = false; bytes32 private constant _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /* Modifiers */ modifier onlyAuth() { require(isMinter[msg.sender], "AnyswapV6ERC20: FORBIDDEN"); _; } /* initialization and configuration */ constructor() ERC20("Hora Token", "HORA") ERC20Permit("Hora Token") ERC20Capped(mintTotalLimit) { vault = msg.sender; underlying = address (0); isMinter[msg.sender] = true; minters.push(msg.sender); usePermitSpenderNonce = true; } function pause() public onlyOwner virtual { _pause(); } function unpause() public onlyOwner virtual { _unpause(); } function setFeePercent(uint256 _feePercent) external onlyOwner { require(_feePercent >= 0 && _feePercent < 11); feePercent = _feePercent; } function setUsePermitSpenderNonce(bool _use) external onlyOwner { usePermitSpenderNonce = _use; } // minter account(s) handling function setMinter(address _auth) external onlyOwner { require(_auth != address(0), "AnyswapV6ERC20: address(0)"); pendingMinter = _auth; delayMinter = block.timestamp + DELAY; } function applyMinter() external onlyOwner { require(pendingMinter != address(0) && block.timestamp >= delayMinter); isMinter[pendingMinter] = true; minters.push(pendingMinter); pendingMinter = address(0); delayMinter = 0; } function revokeMinter(address _auth) external onlyOwner { isMinter[_auth] = false; } /* view functions */ function decimals() public pure override returns (uint8) { return 6; } function getAllMinters() external view returns (address[] memory) { return minters; } /* asset transfer functions */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override(ERC20, ERC20Pausable) { super._beforeTokenTransfer(from, to, amount); } function mint(address to, uint256 amount) external onlyAuth returns (bool) { _mint(to, amount); return true; } function _mint(address account, uint256 amount) internal override(ERC20Capped, ERC20) { super._mint(account, amount); } function _transferWithFee(address from, address to, uint256 amount) internal returns (bool) { uint256 feeValue = 100 / feePercent; uint256 fee = amount / feeValue; address contractOwner = owner(); _transfer(from, contractOwner, fee); _transfer(from, to, amount - fee); return true; } function transfer(address to, uint256 amount) public override returns (bool) { address from = _msgSender(); if (feePercent > 0) { return _transferWithFee(from, to, amount); } _transfer(from, to, amount); return true; } function transferFrom(address from, address to, uint256 amount) public override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); if (feePercent > 0) { return _transferWithFee(from, to, amount); } _transfer(from, to, amount); return true; } function transferFromWithPermit( address sender, address recipient, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external { permit( sender, recipient, amount, deadline, v, r, s); transferFrom(sender, recipient, amount); } function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public override { if (!usePermitSpenderNonce) { super.permit(owner, spender, value, deadline, v, r, s); return; } require(block.timestamp <= deadline, "ERC20Permit: expired deadline"); bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(spender), deadline)); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); require(signer == owner, "ERC20Permit: invalid signature"); _approve(owner, spender, value); } // recover accidentally sent tokens or ether function release(IERC20 token, uint256 amount) public onlyOwner { address contractOwner = owner(); SafeERC20.safeTransfer(token, contractOwner, amount); } function release() public onlyOwner { address payable contractOwner = payable(owner()); uint256 balance = address(this).balance; Address.sendValue(contractOwner, balance); } }
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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DELAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":[],"name":"applyMinter","outputs":[],"stateMutability":"nonpayable","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":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"delayMinter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllMinters","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintTotalLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"minters","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingMinter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_auth","type":"address"}],"name":"revokeMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_feePercent","type":"uint256"}],"name":"setFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_auth","type":"address"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_use","type":"bool"}],"name":"setUsePermitSpenderNonce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"transferFromWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"underlying","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usePermitSpenderNonce","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6101806040526000600e55600f805460ff191690553480156200002157600080fd5b50662aa1efb94e00006040518060400160405280600a8152602001692437b930902a37b5b2b760b11b81525080604051806040016040528060018152602001603160f81b8152506040518060400160405280600a8152602001692437b930902a37b5b2b760b11b81525060405180604001604052806004815260200163484f524160e01b8152508160039081620000b9919062000358565b506004620000c8828262000358565b505050620000e5620000df6200025d60201b60201c565b62000261565b815160208084019190912082518383012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c00190528051940193909320919290916080523060c0526101205250506008805460ff1916905550505080620001d35760405162461bcd60e51b815260206004820152601560248201527f45524332304361707065643a2063617020697320300000000000000000000000604482015260640160405180910390fd5b61014052600b8054336001600160a01b031991821681179092556000610160819052828152600960205260408120805460ff199081166001908117909255600a8054808401825593527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a89092018054909316909317909155600f8054909116909117905562000424565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620002de57607f821691505b602082108103620002ff57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200035357600081815260208120601f850160051c810160208610156200032e5750805b601f850160051c820191505b818110156200034f578281556001016200033a565b5050505b505050565b81516001600160401b03811115620003745762000374620002b3565b6200038c81620003858454620002c9565b8462000305565b602080601f831160018114620003c45760008415620003ab5750858301515b600019600386901b1c1916600185901b1785556200034f565b600085815260208120601f198616915b82811015620003f557888601518255948401946001909101908401620003d4565b5085821015620004145787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c05160e0516101005161012051610140516101605161211c62000491600039600061039c015260008181610315015261183601526000611214015260006112630152600061123e01526000611197015260006111c1015260006111eb015261211c6000f3fe608060405234801561001057600080fd5b50600436106102695760003560e01c80637ecebe0011610151578063a9059cbb116100c3578063d6e03cd411610087578063d6e03cd414610533578063dd62ed3e14610546578063ea610b2f14610559578063f2fde38b14610566578063fbfa77cf14610579578063fca3b5aa1461058c57600080fd5b8063a9059cbb146104ce578063aa271e1a146104e1578063c308124014610504578063cfbd48851461050d578063d505accf1461052057600080fd5b80638da5cb5b116101155780638da5cb5b1461046c57806391c5df491461047d57806395d89b411461049057806397b90ad614610498578063a045442c146104a6578063a457c2d7146104bb57600080fd5b80637ecebe001461042d5780637fd6f15c146104405780638456cb59146104495780638623ec7b1461045157806386d1a69f1461046457600080fd5b806339509351116101ea57806369b41170116101ae57806369b411701461038d5780636f307dc31461039757806370a08231146103d6578063715018a6146103ff57806379cc6790146104075780637ce3489b1461041a57600080fd5b806339509351146103415780633f4ba83a1461035457806340c10f191461035c57806342966c681461036f5780635c975abb1461038257600080fd5b806323b872dd1161023157806323b872dd146102de578063286d98cd146102f1578063313ce56714610304578063355274ea146103135780633644e5151461033957600080fd5b80630357371d1461026e57806306fdde0314610283578063095ea7b3146102a15780630d707df8146102c457806318160ddd146102cc575b600080fd5b61028161027c366004611de3565b61059f565b005b61028b6105cd565b6040516102989190611e33565b60405180910390f35b6102b46102af366004611de3565b61065f565b6040519015158152602001610298565b610281610679565b6002545b604051908152602001610298565b6102b46102ec366004611e66565b610726565b6102816102ff366004611eb5565b610767565b60405160068152602001610298565b7f00000000000000000000000000000000000000000000000000000000000000006102d0565b6102d0610782565b6102b461034f366004611de3565b610791565b6102816107b3565b6102b461036a366004611de3565b6107c5565b61028161037d366004611ed2565b61083c565b60085460ff166102b4565b6102d06202a30081565b6103be7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610298565b6102d06103e4366004611eeb565b6001600160a01b031660009081526020819052604090205490565b610281610849565b610281610415366004611de3565b61085b565b610281610428366004611ed2565b610874565b6102d061043b366004611eeb565b61088e565b6102d0600e5481565b6102816108ac565b6103be61045f366004611ed2565b6108bc565b6102816108e6565b6005546001600160a01b03166103be565b600c546103be906001600160a01b031681565b61028b61090f565b6102d0662aa1efb94e000081565b6104ae61091e565b6040516102989190611f08565b6102b46104c9366004611de3565b61097f565b6102b46104dc366004611de3565b610a05565b6102b46104ef366004611eeb565b60096020526000908152604090205460ff1681565b6102d0600d5481565b61028161051b366004611eeb565b610a30565b61028161052e366004611f55565b610a59565b610281610541366004611f55565b610bdc565b6102d0610554366004611fcc565b610c00565b600f546102b49060ff1681565b610281610574366004611eeb565b610c2b565b600b546103be906001600160a01b031681565b61028161059a366004611eeb565b610ca1565b6105a7610d2d565b60006105bb6005546001600160a01b031690565b90506105c8838284610d87565b505050565b6060600380546105dc90612005565b80601f016020809104026020016040519081016040528092919081815260200182805461060890612005565b80156106555780601f1061062a57610100808354040283529160200191610655565b820191906000526020600020905b81548152906001019060200180831161063857829003601f168201915b5050505050905090565b60003361066d818585610dd9565b60019150505b92915050565b610681610d2d565b600c546001600160a01b03161580159061069d5750600d544210155b6106a657600080fd5b600c80546001600160a01b0390811660009081526009602052604081208054600160ff1990911681179091558354600a8054928301815583527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a89091018054919093166001600160a01b0319918216179092558254909116909155600d55565b600033610734858285610efd565b600e541561074f57610747858585610f77565b915050610760565b61075a858585610fdb565b60019150505b9392505050565b61076f610d2d565b600f805460ff1916911515919091179055565b600061078c61118a565b905090565b60003361066d8185856107a48383610c00565b6107ae919061204f565b610dd9565b6107bb610d2d565b6107c36112b1565b565b3360009081526009602052604081205460ff166108295760405162461bcd60e51b815260206004820152601960248201527f416e7973776170563645524332303a20464f5242494444454e0000000000000060448201526064015b60405180910390fd5b6108338383611303565b50600192915050565b610846338261130d565b50565b610851610d2d565b6107c3600061144b565b610866823383610efd565b610870828261130d565b5050565b61087c610d2d565b600b811061088957600080fd5b600e55565b6001600160a01b038116600090815260066020526040812054610673565b6108b4610d2d565b6107c361149d565b600a81815481106108cc57600080fd5b6000918252602090912001546001600160a01b0316905081565b6108ee610d2d565b60006109026005546001600160a01b031690565b90504761087082826114da565b6060600480546105dc90612005565b6060600a80548060200260200160405190810160405280929190818152602001828054801561065557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610958575050505050905090565b6000338161098d8286610c00565b9050838110156109ed5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610820565b6109fa8286868403610dd9565b506001949350505050565b600e54600090339015610a2557610a1d818585610f77565b915050610673565b61066d818585610fdb565b610a38610d2d565b6001600160a01b03166000908152600960205260409020805460ff19169055565b600f5460ff16610a7757610a72878787878787876115f3565b610bd3565b83421115610ac75760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610820565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610af68b61166e565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610b5182611696565b90506000610b61828787876116e4565b9050896001600160a01b0316816001600160a01b031614610bc45760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610820565b610bcf8a8a8a610dd9565b5050505b50505050505050565b610beb87878787878787610a59565b610bf6878787610726565b5050505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610c33610d2d565b6001600160a01b038116610c985760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610820565b6108468161144b565b610ca9610d2d565b6001600160a01b038116610cff5760405162461bcd60e51b815260206004820152601a60248201527f416e7973776170563645524332303a20616464726573732830290000000000006044820152606401610820565b600c80546001600160a01b0319166001600160a01b038316179055610d276202a3004261204f565b600d5550565b6005546001600160a01b031633146107c35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610820565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526105c890849061170e565b6001600160a01b038316610e3b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610820565b6001600160a01b038216610e9c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610820565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610f098484610c00565b90506000198114610f715781811015610f645760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610820565b610f718484848403610dd9565b50505050565b600080600e546064610f899190612062565b90506000610f978285612062565b90506000610fad6005546001600160a01b031690565b9050610fba878284610fdb565b610fce8787610fc98589612084565b610fdb565b5060019695505050505050565b6001600160a01b03831661103f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610820565b6001600160a01b0382166110a15760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610820565b6110ac8383836117e0565b6001600160a01b038316600090815260208190526040902054818110156111245760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610820565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610f71565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156111e357507f000000000000000000000000000000000000000000000000000000000000000046145b1561120d57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6112b96117eb565b6008805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6108708282611834565b6001600160a01b03821661136d5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610820565b611379826000836117e0565b6001600160a01b038216600090815260208190526040902054818110156113ed5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610820565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6114a56118c1565b6008805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112e63390565b8047101561152a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610820565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611577576040519150601f19603f3d011682016040523d82523d6000602084013e61157c565b606091505b50509050806105c85760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610820565b834211156116435760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610820565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610af68c5b6001600160a01b03811660009081526006602052604090208054600181018255905b50919050565b60006106736116a361118a565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060006116f587878787611907565b91509150611702816119cb565b5090505b949350505050565b6000611763826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611b159092919063ffffffff16565b8051909150156105c857808060200190518101906117819190612097565b6105c85760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610820565b6105c8838383611b24565b60085460ff166107c35760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610820565b7f00000000000000000000000000000000000000000000000000000000000000008161185f60025490565b611869919061204f565b11156118b75760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a20636170206578636565646564000000000000006044820152606401610820565b6108708282611b8a565b60085460ff16156107c35760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610820565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561193e57506000905060036119c2565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611992573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166119bb576000600192509250506119c2565b9150600090505b94509492505050565b60008160048111156119df576119df6120b4565b036119e75750565b60018160048111156119fb576119fb6120b4565b03611a485760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610820565b6002816004811115611a5c57611a5c6120b4565b03611aa95760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610820565b6003816004811115611abd57611abd6120b4565b036108465760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610820565b60606117068484600085611c55565b60085460ff16156105c85760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608401610820565b6001600160a01b038216611be05760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610820565b611bec600083836117e0565b8060026000828254611bfe919061204f565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b606082471015611cb65760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610820565b600080866001600160a01b03168587604051611cd291906120ca565b60006040518083038185875af1925050503d8060008114611d0f576040519150601f19603f3d011682016040523d82523d6000602084013e611d14565b606091505b5091509150611d2587838387611d30565b979650505050505050565b60608315611d9f578251600003611d98576001600160a01b0385163b611d985760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610820565b5081611706565b6117068383815115611db45781518083602001fd5b8060405162461bcd60e51b81526004016108209190611e33565b6001600160a01b038116811461084657600080fd5b60008060408385031215611df657600080fd5b8235611e0181611dce565b946020939093013593505050565b60005b83811015611e2a578181015183820152602001611e12565b50506000910152565b6020815260008251806020840152611e52816040850160208701611e0f565b601f01601f19169190910160400192915050565b600080600060608486031215611e7b57600080fd5b8335611e8681611dce565b92506020840135611e9681611dce565b929592945050506040919091013590565b801515811461084657600080fd5b600060208284031215611ec757600080fd5b813561076081611ea7565b600060208284031215611ee457600080fd5b5035919050565b600060208284031215611efd57600080fd5b813561076081611dce565b6020808252825182820181905260009190848201906040850190845b81811015611f495783516001600160a01b031683529284019291840191600101611f24565b50909695505050505050565b600080600080600080600060e0888a031215611f7057600080fd5b8735611f7b81611dce565b96506020880135611f8b81611dce565b95506040880135945060608801359350608088013560ff81168114611faf57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215611fdf57600080fd5b8235611fea81611dce565b91506020830135611ffa81611dce565b809150509250929050565b600181811c9082168061201957607f821691505b60208210810361169057634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561067357610673612039565b60008261207f57634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561067357610673612039565b6000602082840312156120a957600080fd5b815161076081611ea7565b634e487b7160e01b600052602160045260246000fd5b600082516120dc818460208701611e0f565b919091019291505056fea26469706673582212205c2176cc88969f8bcc497fae8b38e69219637ab4f4166b03612f38f7f243d4ae64736f6c63430008110033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102695760003560e01c80637ecebe0011610151578063a9059cbb116100c3578063d6e03cd411610087578063d6e03cd414610533578063dd62ed3e14610546578063ea610b2f14610559578063f2fde38b14610566578063fbfa77cf14610579578063fca3b5aa1461058c57600080fd5b8063a9059cbb146104ce578063aa271e1a146104e1578063c308124014610504578063cfbd48851461050d578063d505accf1461052057600080fd5b80638da5cb5b116101155780638da5cb5b1461046c57806391c5df491461047d57806395d89b411461049057806397b90ad614610498578063a045442c146104a6578063a457c2d7146104bb57600080fd5b80637ecebe001461042d5780637fd6f15c146104405780638456cb59146104495780638623ec7b1461045157806386d1a69f1461046457600080fd5b806339509351116101ea57806369b41170116101ae57806369b411701461038d5780636f307dc31461039757806370a08231146103d6578063715018a6146103ff57806379cc6790146104075780637ce3489b1461041a57600080fd5b806339509351146103415780633f4ba83a1461035457806340c10f191461035c57806342966c681461036f5780635c975abb1461038257600080fd5b806323b872dd1161023157806323b872dd146102de578063286d98cd146102f1578063313ce56714610304578063355274ea146103135780633644e5151461033957600080fd5b80630357371d1461026e57806306fdde0314610283578063095ea7b3146102a15780630d707df8146102c457806318160ddd146102cc575b600080fd5b61028161027c366004611de3565b61059f565b005b61028b6105cd565b6040516102989190611e33565b60405180910390f35b6102b46102af366004611de3565b61065f565b6040519015158152602001610298565b610281610679565b6002545b604051908152602001610298565b6102b46102ec366004611e66565b610726565b6102816102ff366004611eb5565b610767565b60405160068152602001610298565b7f000000000000000000000000000000000000000000000000002aa1efb94e00006102d0565b6102d0610782565b6102b461034f366004611de3565b610791565b6102816107b3565b6102b461036a366004611de3565b6107c5565b61028161037d366004611ed2565b61083c565b60085460ff166102b4565b6102d06202a30081565b6103be7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610298565b6102d06103e4366004611eeb565b6001600160a01b031660009081526020819052604090205490565b610281610849565b610281610415366004611de3565b61085b565b610281610428366004611ed2565b610874565b6102d061043b366004611eeb565b61088e565b6102d0600e5481565b6102816108ac565b6103be61045f366004611ed2565b6108bc565b6102816108e6565b6005546001600160a01b03166103be565b600c546103be906001600160a01b031681565b61028b61090f565b6102d0662aa1efb94e000081565b6104ae61091e565b6040516102989190611f08565b6102b46104c9366004611de3565b61097f565b6102b46104dc366004611de3565b610a05565b6102b46104ef366004611eeb565b60096020526000908152604090205460ff1681565b6102d0600d5481565b61028161051b366004611eeb565b610a30565b61028161052e366004611f55565b610a59565b610281610541366004611f55565b610bdc565b6102d0610554366004611fcc565b610c00565b600f546102b49060ff1681565b610281610574366004611eeb565b610c2b565b600b546103be906001600160a01b031681565b61028161059a366004611eeb565b610ca1565b6105a7610d2d565b60006105bb6005546001600160a01b031690565b90506105c8838284610d87565b505050565b6060600380546105dc90612005565b80601f016020809104026020016040519081016040528092919081815260200182805461060890612005565b80156106555780601f1061062a57610100808354040283529160200191610655565b820191906000526020600020905b81548152906001019060200180831161063857829003601f168201915b5050505050905090565b60003361066d818585610dd9565b60019150505b92915050565b610681610d2d565b600c546001600160a01b03161580159061069d5750600d544210155b6106a657600080fd5b600c80546001600160a01b0390811660009081526009602052604081208054600160ff1990911681179091558354600a8054928301815583527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a89091018054919093166001600160a01b0319918216179092558254909116909155600d55565b600033610734858285610efd565b600e541561074f57610747858585610f77565b915050610760565b61075a858585610fdb565b60019150505b9392505050565b61076f610d2d565b600f805460ff1916911515919091179055565b600061078c61118a565b905090565b60003361066d8185856107a48383610c00565b6107ae919061204f565b610dd9565b6107bb610d2d565b6107c36112b1565b565b3360009081526009602052604081205460ff166108295760405162461bcd60e51b815260206004820152601960248201527f416e7973776170563645524332303a20464f5242494444454e0000000000000060448201526064015b60405180910390fd5b6108338383611303565b50600192915050565b610846338261130d565b50565b610851610d2d565b6107c3600061144b565b610866823383610efd565b610870828261130d565b5050565b61087c610d2d565b600b811061088957600080fd5b600e55565b6001600160a01b038116600090815260066020526040812054610673565b6108b4610d2d565b6107c361149d565b600a81815481106108cc57600080fd5b6000918252602090912001546001600160a01b0316905081565b6108ee610d2d565b60006109026005546001600160a01b031690565b90504761087082826114da565b6060600480546105dc90612005565b6060600a80548060200260200160405190810160405280929190818152602001828054801561065557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610958575050505050905090565b6000338161098d8286610c00565b9050838110156109ed5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610820565b6109fa8286868403610dd9565b506001949350505050565b600e54600090339015610a2557610a1d818585610f77565b915050610673565b61066d818585610fdb565b610a38610d2d565b6001600160a01b03166000908152600960205260409020805460ff19169055565b600f5460ff16610a7757610a72878787878787876115f3565b610bd3565b83421115610ac75760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610820565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610af68b61166e565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610b5182611696565b90506000610b61828787876116e4565b9050896001600160a01b0316816001600160a01b031614610bc45760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610820565b610bcf8a8a8a610dd9565b5050505b50505050505050565b610beb87878787878787610a59565b610bf6878787610726565b5050505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610c33610d2d565b6001600160a01b038116610c985760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610820565b6108468161144b565b610ca9610d2d565b6001600160a01b038116610cff5760405162461bcd60e51b815260206004820152601a60248201527f416e7973776170563645524332303a20616464726573732830290000000000006044820152606401610820565b600c80546001600160a01b0319166001600160a01b038316179055610d276202a3004261204f565b600d5550565b6005546001600160a01b031633146107c35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610820565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526105c890849061170e565b6001600160a01b038316610e3b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610820565b6001600160a01b038216610e9c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610820565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610f098484610c00565b90506000198114610f715781811015610f645760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610820565b610f718484848403610dd9565b50505050565b600080600e546064610f899190612062565b90506000610f978285612062565b90506000610fad6005546001600160a01b031690565b9050610fba878284610fdb565b610fce8787610fc98589612084565b610fdb565b5060019695505050505050565b6001600160a01b03831661103f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610820565b6001600160a01b0382166110a15760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610820565b6110ac8383836117e0565b6001600160a01b038316600090815260208190526040902054818110156111245760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610820565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610f71565b6000306001600160a01b037f00000000000000000000000060b4c9390bb3eaa726bdae2cae412efe3b2a9c31161480156111e357507f000000000000000000000000000000000000000000000000000000000000008946145b1561120d57507f351096ac6defe421dadbaed274cdb4d33be4d848715c66544fd208112416e3f090565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f513c63f6d13c2015bae6fbe20de3d0ae41a885d9825ed98bc0fc9fdeabb15bab828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6112b96117eb565b6008805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6108708282611834565b6001600160a01b03821661136d5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610820565b611379826000836117e0565b6001600160a01b038216600090815260208190526040902054818110156113ed5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610820565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6114a56118c1565b6008805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112e63390565b8047101561152a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610820565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611577576040519150601f19603f3d011682016040523d82523d6000602084013e61157c565b606091505b50509050806105c85760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610820565b834211156116435760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610820565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610af68c5b6001600160a01b03811660009081526006602052604090208054600181018255905b50919050565b60006106736116a361118a565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060006116f587878787611907565b91509150611702816119cb565b5090505b949350505050565b6000611763826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611b159092919063ffffffff16565b8051909150156105c857808060200190518101906117819190612097565b6105c85760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610820565b6105c8838383611b24565b60085460ff166107c35760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610820565b7f000000000000000000000000000000000000000000000000002aa1efb94e00008161185f60025490565b611869919061204f565b11156118b75760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a20636170206578636565646564000000000000006044820152606401610820565b6108708282611b8a565b60085460ff16156107c35760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610820565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561193e57506000905060036119c2565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611992573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166119bb576000600192509250506119c2565b9150600090505b94509492505050565b60008160048111156119df576119df6120b4565b036119e75750565b60018160048111156119fb576119fb6120b4565b03611a485760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610820565b6002816004811115611a5c57611a5c6120b4565b03611aa95760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610820565b6003816004811115611abd57611abd6120b4565b036108465760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610820565b60606117068484600085611c55565b60085460ff16156105c85760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608401610820565b6001600160a01b038216611be05760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610820565b611bec600083836117e0565b8060026000828254611bfe919061204f565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b606082471015611cb65760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610820565b600080866001600160a01b03168587604051611cd291906120ca565b60006040518083038185875af1925050503d8060008114611d0f576040519150601f19603f3d011682016040523d82523d6000602084013e611d14565b606091505b5091509150611d2587838387611d30565b979650505050505050565b60608315611d9f578251600003611d98576001600160a01b0385163b611d985760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610820565b5081611706565b6117068383815115611db45781518083602001fd5b8060405162461bcd60e51b81526004016108209190611e33565b6001600160a01b038116811461084657600080fd5b60008060408385031215611df657600080fd5b8235611e0181611dce565b946020939093013593505050565b60005b83811015611e2a578181015183820152602001611e12565b50506000910152565b6020815260008251806020840152611e52816040850160208701611e0f565b601f01601f19169190910160400192915050565b600080600060608486031215611e7b57600080fd5b8335611e8681611dce565b92506020840135611e9681611dce565b929592945050506040919091013590565b801515811461084657600080fd5b600060208284031215611ec757600080fd5b813561076081611ea7565b600060208284031215611ee457600080fd5b5035919050565b600060208284031215611efd57600080fd5b813561076081611dce565b6020808252825182820181905260009190848201906040850190845b81811015611f495783516001600160a01b031683529284019291840191600101611f24565b50909695505050505050565b600080600080600080600060e0888a031215611f7057600080fd5b8735611f7b81611dce565b96506020880135611f8b81611dce565b95506040880135945060608801359350608088013560ff81168114611faf57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215611fdf57600080fd5b8235611fea81611dce565b91506020830135611ffa81611dce565b809150509250929050565b600181811c9082168061201957607f821691505b60208210810361169057634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561067357610673612039565b60008261207f57634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561067357610673612039565b6000602082840312156120a957600080fd5b815161076081611ea7565b634e487b7160e01b600052602160045260246000fd5b600082516120dc818460208701611e0f565b919091019291505056fea26469706673582212205c2176cc88969f8bcc497fae8b38e69219637ab4f4166b03612f38f7f243d4ae64736f6c63430008110033
Deployed Bytecode Sourcemap
76207:5670:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81480:177;;;;;;:::i;:::-;;:::i;:::-;;12097:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;14448:201;;;;;;:::i;:::-;;:::i;:::-;;;1649:14:1;;1642:22;1624:41;;1612:2;1597:18;14448:201:0;1484:187:1;78133:275:0;;;:::i;13217:108::-;13305:12;;13217:108;;;1822:25:1;;;1810:2;1795:18;13217:108:0;1676:177:1;79941:351:0;;;;;;:::i;:::-;;:::i;77759:111::-;;;;;;:::i;:::-;;:::i;78570:84::-;;;78645:1;2846:36:1;;2834:2;2819:18;78570:84:0;2704:184:1;60881:83:0;60952:4;60881:83;;58562:115;;;:::i;15933:238::-;;;;;;:::i;:::-;;:::i;77508:73::-;;;:::i;79020:133::-;;;;;;:::i;:::-;;:::i;59616:91::-;;;;;;:::i;:::-;;:::i;5343:86::-;5414:7;;;;5343:86;;76437:35;;76466:6;76437:35;;76557;;;;;;;;-1:-1:-1;;;;;3424:32:1;;;3406:51;;3394:2;3379:18;76557:35:0;3260:203:1;13388:127:0;;;;;;:::i;:::-;-1:-1:-1;;;;;13489:18:0;13462:7;13489:18;;;;;;;;;;;;13388:127;2849:103;;;:::i;60026:164::-;;;;;;:::i;:::-;;:::i;77589:162::-;;;;;;:::i;:::-;;:::i;58304:128::-;;;;;;:::i;:::-;;:::i;76691:26::-;;;;;;77431:69;;;:::i;76526:24::-;;;;;;:::i;:::-;;:::i;81665:205::-;;;:::i;2201:87::-;2274:6;;-1:-1:-1;;;;;2274:6:0;2201:87;;76626:28;;;;;-1:-1:-1;;;;;76626:28:0;;;12316:104;;;:::i;76344:66::-;;76385:25;76344:66;;78662:99;;;:::i;:::-;;;;;;;:::i;16674:436::-;;;;;;:::i;:::-;;:::i;79652:281::-;;;;;;:::i;:::-;;:::i;76479:40::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;76661:23;;;;;;78416:98;;;;;;:::i;:::-;;:::i;80641:779::-;;;;;;:::i;:::-;;:::i;80300:333::-;;;;;;:::i;:::-;;:::i;13977:151::-;;;;;;:::i;:::-;;:::i;76724:41::-;;;;;;;;;3107:201;;;;;;:::i;:::-;;:::i;76599:20::-;;;;;-1:-1:-1;;;;;76599:20:0;;;77915:210;;;;;;:::i;:::-;;:::i;81480:177::-;2087:13;:11;:13::i;:::-;81555:21:::1;81579:7;2274:6:::0;;-1:-1:-1;;;;;2274:6:0;;2201:87;81579:7:::1;81555:31;;81597:52;81620:5;81627:13;81642:6;81597:22;:52::i;:::-;81544:113;81480:177:::0;;:::o;12097:100::-;12151:13;12184:5;12177:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12097:100;:::o;14448:201::-;14531:4;828:10;14587:32;828:10;14603:7;14612:6;14587:8;:32::i;:::-;14637:4;14630:11;;;14448:201;;;;;:::o;78133:275::-;2087:13;:11;:13::i;:::-;78194::::1;::::0;-1:-1:-1;;;;;78194:13:0::1;:27:::0;;::::1;::::0;:61:::1;;;78244:11;;78225:15;:30;;78194:61;78186:70;;;::::0;::::1;;78276:13;::::0;;-1:-1:-1;;;;;78276:13:0;;::::1;78267:23;::::0;;;:8:::1;:23;::::0;;;;:30;;78293:4:::1;-1:-1:-1::0;;78267:30:0;;::::1;::::0;::::1;::::0;;;78321:13;;78308:7:::1;:27:::0;;;;::::1;::::0;;;;;;;::::1;::::0;;78321:13;;;::::1;-1:-1:-1::0;;;;;;78308:27:0;;::::1;;::::0;;;78348:26;;;;::::1;::::0;;;78385:11:::1;:15:::0;78133:275::o;79941:351::-;80030:4;828:10;80088:38;80104:4;828:10;80119:6;80088:15;:38::i;:::-;80141:10;;:14;80137:88;;80179:34;80196:4;80202:2;80206:6;80179:16;:34::i;:::-;80172:41;;;;;80137:88;80235:27;80245:4;80251:2;80255:6;80235:9;:27::i;:::-;80280:4;80273:11;;;79941:351;;;;;;:::o;77759:111::-;2087:13;:11;:13::i;:::-;77834:21:::1;:28:::0;;-1:-1:-1;;77834:28:0::1;::::0;::::1;;::::0;;;::::1;::::0;;77759:111::o;58562:115::-;58622:7;58649:20;:18;:20::i;:::-;58642:27;;58562:115;:::o;15933:238::-;16021:4;828:10;16077:64;828:10;16093:7;16130:10;16102:25;828:10;16093:7;16102:9;:25::i;:::-;:38;;;;:::i;:::-;16077:8;:64::i;77508:73::-;2087:13;:11;:13::i;:::-;77563:10:::1;:8;:10::i;:::-;77508:73::o:0;79020:133::-;77012:10;79089:4;77003:20;;;:8;:20;;;;;;;;76995:58;;;;-1:-1:-1;;;76995:58:0;;6499:2:1;76995:58:0;;;6481:21:1;6538:2;6518:18;;;6511:30;6577:27;6557:18;;;6550:55;6622:18;;76995:58:0;;;;;;;;;79106:17:::1;79112:2;79116:6;79106:5;:17::i;:::-;-1:-1:-1::0;79141:4:0::1;79020:133:::0;;;;:::o;59616:91::-;59672:27;828:10;59692:6;59672:5;:27::i;:::-;59616:91;:::o;2849:103::-;2087:13;:11;:13::i;:::-;2914:30:::1;2941:1;2914:18;:30::i;60026:164::-:0;60103:46;60119:7;828:10;60142:6;60103:15;:46::i;:::-;60160:22;60166:7;60175:6;60160:5;:22::i;:::-;60026:164;;:::o;77589:162::-;2087:13;:11;:13::i;:::-;77705:2:::1;77691:11;:16;77663:45;;;::::0;::::1;;77719:10;:24:::0;77589:162::o;58304:128::-;-1:-1:-1;;;;;58400:14:0;;58373:7;58400:14;;;:7;:14;;;;;26626;58400:24;26534:114;77431:69;2087:13;:11;:13::i;:::-;77484:8:::1;:6;:8::i;76526:24::-:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;76526:24:0;;-1:-1:-1;76526:24:0;:::o;81665:205::-;2087:13;:11;:13::i;:::-;81712:29:::1;81752:7;2274:6:::0;;-1:-1:-1;;;;;2274:6:0;;2201:87;81752:7:::1;81712:48:::0;-1:-1:-1;81789:21:0::1;81821:41;81712:48:::0;81789:21;81821:17:::1;:41::i;12316:104::-:0;12372:13;12405:7;12398:14;;;;;:::i;78662:99::-;78710:16;78746:7;78739:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;78739:14:0;;;;;;;;;;;;;;;;;;;;;;78662:99;:::o;16674:436::-;16767:4;828:10;16767:4;16850:25;828:10;16867:7;16850:9;:25::i;:::-;16823:52;;16914:15;16894:16;:35;;16886:85;;;;-1:-1:-1;;;16886:85:0;;6853:2:1;16886:85:0;;;6835:21:1;6892:2;6872:18;;;6865:30;6931:34;6911:18;;;6904:62;-1:-1:-1;;;6982:18:1;;;6975:35;7027:19;;16886:85:0;6651:401:1;16886:85:0;17007:60;17016:5;17023:7;17051:15;17032:16;:34;17007:8;:60::i;:::-;-1:-1:-1;17098:4:0;;16674:436;-1:-1:-1;;;;16674:436:0:o;79652:281::-;79782:10;;79723:4;;828:10;;79782:14;79778:88;;79820:34;79837:4;79843:2;79847:6;79820:16;:34::i;:::-;79813:41;;;;;79778:88;79876:27;79886:4;79892:2;79896:6;79876:9;:27::i;78416:98::-;2087:13;:11;:13::i;:::-;-1:-1:-1;;;;;78483:15:0::1;78501:5;78483:15:::0;;;:8:::1;:15;::::0;;;;:23;;-1:-1:-1;;78483:23:0::1;::::0;;78416:98::o;80641:779::-;80855:21;;;;80850:130;;80893:54;80906:5;80913:7;80922:5;80929:8;80939:1;80942;80945;80893:12;:54::i;:::-;80962:7;;80850:130;81017:8;80998:15;:27;;80990:69;;;;-1:-1:-1;;;80990:69:0;;7259:2:1;80990:69:0;;;7241:21:1;7298:2;7278:18;;;7271:30;7337:31;7317:18;;;7310:59;7386:18;;80990:69:0;7057:353:1;80990:69:0;81072:18;76821:95;81132:5;81139:7;81148:5;81155:18;81165:7;81155:9;:18::i;:::-;81103:81;;;;;;7702:25:1;;;;-1:-1:-1;;;;;7801:15:1;;;7781:18;;;7774:43;7853:15;;;;7833:18;;;7826:43;7885:18;;;7878:34;7928:19;;;7921:35;7972:19;;;7965:35;;;7674:19;;81103:81:0;;;;;;;;;;;;81093:92;;;;;;81072:113;;81198:12;81213:28;81230:10;81213:16;:28::i;:::-;81198:43;;81254:14;81271:28;81285:4;81291:1;81294;81297;81271:13;:28::i;:::-;81254:45;;81328:5;-1:-1:-1;;;;;81318:15:0;:6;-1:-1:-1;;;;;81318:15:0;;81310:58;;;;-1:-1:-1;;;81310:58:0;;8213:2:1;81310:58:0;;;8195:21:1;8252:2;8232:18;;;8225:30;8291:32;8271:18;;;8264:60;8341:18;;81310:58:0;8011:354:1;81310:58:0;81381:31;81390:5;81397:7;81406:5;81381:8;:31::i;:::-;80839:581;;;80641:779;;;;;;;;:::o;80300:333::-;80522:53;80530:6;80538:9;80549:6;80557:8;80567:1;80570;80573;80522:6;:53::i;:::-;80586:39;80599:6;80607:9;80618:6;80586:12;:39::i;:::-;;80300:333;;;;;;;:::o;13977:151::-;-1:-1:-1;;;;;14093:18:0;;;14066:7;14093:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;13977:151::o;3107:201::-;2087:13;:11;:13::i;:::-;-1:-1:-1;;;;;3196:22:0;::::1;3188:73;;;::::0;-1:-1:-1;;;3188:73:0;;8572:2:1;3188:73:0::1;::::0;::::1;8554:21:1::0;8611:2;8591:18;;;8584:30;8650:34;8630:18;;;8623:62;-1:-1:-1;;;8701:18:1;;;8694:36;8747:19;;3188:73:0::1;8370:402:1::0;3188:73:0::1;3272:28;3291:8;3272:18;:28::i;77915:210::-:0;2087:13;:11;:13::i;:::-;-1:-1:-1;;;;;77987:19:0;::::1;77979:58;;;::::0;-1:-1:-1;;;77979:58:0;;8979:2:1;77979:58:0::1;::::0;::::1;8961:21:1::0;9018:2;8998:18;;;8991:30;9057:28;9037:18;;;9030:56;9103:18;;77979:58:0::1;8777:350:1::0;77979:58:0::1;78048:13;:21:::0;;-1:-1:-1;;;;;;78048:21:0::1;-1:-1:-1::0;;;;;78048:21:0;::::1;;::::0;;78094:23:::1;76466:6;78094:15;:23;:::i;:::-;78080:11;:37:::0;-1:-1:-1;77915:210:0:o;2366:132::-;2274:6;;-1:-1:-1;;;;;2274:6:0;828:10;2430:23;2422:68;;;;-1:-1:-1;;;2422:68:0;;9334:2:1;2422:68:0;;;9316:21:1;;;9353:18;;;9346:30;9412:34;9392:18;;;9385:62;9464:18;;2422:68:0;9132:356:1;72341:211:0;72485:58;;;-1:-1:-1;;;;;9685:32:1;;72485:58:0;;;9667:51:1;9734:18;;;;9727:34;;;72485:58:0;;;;;;;;;;9640:18:1;;;;72485:58:0;;;;;;;;-1:-1:-1;;;;;72485:58:0;-1:-1:-1;;;72485:58:0;;;72458:86;;72478:5;;72458:19;:86::i;20701:380::-;-1:-1:-1;;;;;20837:19:0;;20829:68;;;;-1:-1:-1;;;20829:68:0;;9974:2:1;20829:68:0;;;9956:21:1;10013:2;9993:18;;;9986:30;10052:34;10032:18;;;10025:62;-1:-1:-1;;;10103:18:1;;;10096:34;10147:19;;20829:68:0;9772:400:1;20829:68:0;-1:-1:-1;;;;;20916:21:0;;20908:68;;;;-1:-1:-1;;;20908:68:0;;10379:2:1;20908:68:0;;;10361:21:1;10418:2;10398:18;;;10391:30;10457:34;10437:18;;;10430:62;-1:-1:-1;;;10508:18:1;;;10501:32;10550:19;;20908:68:0;10177:398:1;20908:68:0;-1:-1:-1;;;;;20989:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;21041:32;;1822:25:1;;;21041:32:0;;1795:18:1;21041:32:0;;;;;;;20701:380;;;:::o;21372:453::-;21507:24;21534:25;21544:5;21551:7;21534:9;:25::i;:::-;21507:52;;-1:-1:-1;;21574:16:0;:37;21570:248;;21656:6;21636:16;:26;;21628:68;;;;-1:-1:-1;;;21628:68:0;;10782:2:1;21628:68:0;;;10764:21:1;10821:2;10801:18;;;10794:30;10860:31;10840:18;;;10833:59;10909:18;;21628:68:0;10580:353:1;21628:68:0;21740:51;21749:5;21756:7;21784:6;21765:16;:25;21740:8;:51::i;:::-;21496:329;21372:453;;;:::o;79302:342::-;79388:4;79405:16;79430:10;;79424:3;:16;;;;:::i;:::-;79405:35;-1:-1:-1;79451:11:0;79465:17;79405:35;79465:6;:17;:::i;:::-;79451:31;;79493:21;79517:7;2274:6;;-1:-1:-1;;;;;2274:6:0;;2201:87;79517:7;79493:31;;79535:35;79545:4;79551:13;79566:3;79535:9;:35::i;:::-;79581:33;79591:4;79597:2;79601:12;79610:3;79601:6;:12;:::i;:::-;79581:9;:33::i;:::-;-1:-1:-1;79632:4:0;;79302:342;-1:-1:-1;;;;;;79302:342:0:o;17580:840::-;-1:-1:-1;;;;;17711:18:0;;17703:68;;;;-1:-1:-1;;;17703:68:0;;11495:2:1;17703:68:0;;;11477:21:1;11534:2;11514:18;;;11507:30;11573:34;11553:18;;;11546:62;-1:-1:-1;;;11624:18:1;;;11617:35;11669:19;;17703:68:0;11293:401:1;17703:68:0;-1:-1:-1;;;;;17790:16:0;;17782:64;;;;-1:-1:-1;;;17782:64:0;;11901:2:1;17782:64:0;;;11883:21:1;11940:2;11920:18;;;11913:30;11979:34;11959:18;;;11952:62;-1:-1:-1;;;12030:18:1;;;12023:33;12073:19;;17782:64:0;11699:399:1;17782:64:0;17859:38;17880:4;17886:2;17890:6;17859:20;:38::i;:::-;-1:-1:-1;;;;;17932:15:0;;17910:19;17932:15;;;;;;;;;;;17966:21;;;;17958:72;;;;-1:-1:-1;;;17958:72:0;;12305:2:1;17958:72:0;;;12287:21:1;12344:2;12324:18;;;12317:30;12383:34;12363:18;;;12356:62;-1:-1:-1;;;12434:18:1;;;12427:36;12480:19;;17958:72:0;12103:402:1;17958:72:0;-1:-1:-1;;;;;18066:15:0;;;:9;:15;;;;;;;;;;;18084:20;;;18066:38;;18284:13;;;;;;;;;;:23;;;;;;18336:26;;1822:25:1;;;18284:13:0;;18336:26;;1795:18:1;18336:26:0;;;;;;;18375:37;81480:177;54338:314;54391:7;54423:4;-1:-1:-1;;;;;54432:12:0;54415:29;;:66;;;;;54465:16;54448:13;:33;54415:66;54411:234;;;-1:-1:-1;54505:24:0;;54338:314::o;54411:234::-;-1:-1:-1;54841:73:0;;;54591:10;54841:73;;;;15230:25:1;;;;54603:12:0;15271:18:1;;;15264:34;54617:15:0;15314:18:1;;;15307:34;54885:13:0;15357:18:1;;;15350:34;54908:4:0;15400:19:1;;;;15393:61;;;;54841:73:0;;;;;;;;;;15202:19:1;;;;54841:73:0;;;54831:84;;;;;;58562:115::o;6198:120::-;5207:16;:14;:16::i;:::-;6257:7:::1;:15:::0;;-1:-1:-1;;6257:15:0::1;::::0;;6288:22:::1;828:10:::0;6297:12:::1;6288:22;::::0;-1:-1:-1;;;;;3424:32:1;;;3406:51;;3394:2;3379:18;6288:22:0::1;;;;;;;6198:120::o:0;79161:133::-;79258:28;79270:7;79279:6;79258:11;:28::i;19588:675::-;-1:-1:-1;;;;;19672:21:0;;19664:67;;;;-1:-1:-1;;;19664:67:0;;12712:2:1;19664:67:0;;;12694:21:1;12751:2;12731:18;;;12724:30;12790:34;12770:18;;;12763:62;-1:-1:-1;;;12841:18:1;;;12834:31;12882:19;;19664:67:0;12510:397:1;19664:67:0;19744:49;19765:7;19782:1;19786:6;19744:20;:49::i;:::-;-1:-1:-1;;;;;19831:18:0;;19806:22;19831:18;;;;;;;;;;;19868:24;;;;19860:71;;;;-1:-1:-1;;;19860:71:0;;13114:2:1;19860:71:0;;;13096:21:1;13153:2;13133:18;;;13126:30;13192:34;13172:18;;;13165:62;-1:-1:-1;;;13243:18:1;;;13236:32;13285:19;;19860:71:0;12912:398:1;19860:71:0;-1:-1:-1;;;;;19967:18:0;;:9;:18;;;;;;;;;;;19988:23;;;19967:44;;20106:12;:22;;;;;;;20157:37;1822:25:1;;;19967:9:0;;:18;20157:37;;1795:18:1;20157:37:0;;;;;;;81544:113:::1;81480:177:::0;;:::o;3468:191::-;3561:6;;;-1:-1:-1;;;;;3578:17:0;;;-1:-1:-1;;;;;;3578:17:0;;;;;;;3611:40;;3561:6;;;3578:17;3561:6;;3611:40;;3542:16;;3611:40;3531:128;3468:191;:::o;5939:118::-;4948:19;:17;:19::i;:::-;5999:7:::1;:14:::0;;-1:-1:-1;;5999:14:0::1;6009:4;5999:14;::::0;;6029:20:::1;6036:12;828:10:::0;;748:98;64689:317;64804:6;64779:21;:31;;64771:73;;;;-1:-1:-1;;;64771:73:0;;13517:2:1;64771:73:0;;;13499:21:1;13556:2;13536:18;;;13529:30;13595:31;13575:18;;;13568:59;13644:18;;64771:73:0;13315:353:1;64771:73:0;64858:12;64876:9;-1:-1:-1;;;;;64876:14:0;64898:6;64876:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64857:52;;;64928:7;64920:78;;;;-1:-1:-1;;;64920:78:0;;14085:2:1;64920:78:0;;;14067:21:1;14124:2;14104:18;;;14097:30;14163:34;14143:18;;;14136:62;14234:28;14214:18;;;14207:56;14280:19;;64920:78:0;13883:422:1;57593:645:0;57837:8;57818:15;:27;;57810:69;;;;-1:-1:-1;;;57810:69:0;;7259:2:1;57810:69:0;;;7241:21:1;7298:2;7278:18;;;7271:30;7337:31;7317:18;;;7310:59;7386:18;;57810:69:0;7057:353:1;57810:69:0;57892:18;56768:95;57952:5;57959:7;57968:5;57975:16;57985:5;58815:207;-1:-1:-1;;;;;58936:14:0;;58875:15;58936:14;;;:7;:14;;;;;26626;;26763:1;26745:19;;;;26626:14;58997:17;58892:130;58815:207;;;:::o;55565:167::-;55642:7;55669:55;55691:20;:18;:20::i;:::-;55713:10;51028:57;;-1:-1:-1;;;51028:57:0;;;16771:27:1;16814:11;;;16807:27;;;16850:12;;;16843:28;;;50991:7:0;;16887:12:1;;51028:57:0;;;;;;;;;;;;51018:68;;;;;;51011:75;;50898:196;;;;;49207:279;49335:7;49356:17;49375:18;49397:25;49408:4;49414:1;49417;49420;49397:10;:25::i;:::-;49355:67;;;;49433:18;49445:5;49433:11;:18::i;:::-;-1:-1:-1;49469:9:0;-1:-1:-1;49207:279:0;;;;;;;:::o;75408:716::-;75832:23;75858:69;75886:4;75858:69;;;;;;;;;;;;;;;;;75866:5;-1:-1:-1;;;;;75858:27:0;;;:69;;;;;:::i;:::-;75942:17;;75832:95;;-1:-1:-1;75942:21:0;75938:179;;76039:10;76028:30;;;;;;;;;;;;:::i;:::-;76020:85;;;;-1:-1:-1;;;76020:85:0;;14762:2:1;76020:85:0;;;14744:21:1;14801:2;14781:18;;;14774:30;14840:34;14820:18;;;14813:62;-1:-1:-1;;;14891:18:1;;;14884:40;14941:19;;76020:85:0;14560:406:1;78829:183:0;78960:44;78987:4;78993:2;78997:6;78960:26;:44::i;5687:108::-;5414:7;;;;5746:41;;;;-1:-1:-1;;;5746:41:0;;15667:2:1;5746:41:0;;;15649:21:1;15706:2;15686:18;;;15679:30;-1:-1:-1;;;15725:18:1;;;15718:50;15785:18;;5746:41:0;15465:344:1;61022:207:0;60952:4;61137:6;61115:19;13305:12;;;13217:108;61115:19;:28;;;;:::i;:::-;:37;;61107:75;;;;-1:-1:-1;;;61107:75:0;;16016:2:1;61107:75:0;;;15998:21:1;16055:2;16035:18;;;16028:30;16094:27;16074:18;;;16067:55;16139:18;;61107:75:0;15814:349:1;61107:75:0;61193:28;61205:7;61214:6;61193:11;:28::i;5502:108::-;5414:7;;;;5572:9;5564:38;;;;-1:-1:-1;;;5564:38:0;;16370:2:1;5564:38:0;;;16352:21:1;16409:2;16389:18;;;16382:30;-1:-1:-1;;;16428:18:1;;;16421:46;16484:18;;5564:38:0;16168:340:1;47548:1520:0;47679:7;;48613:66;48600:79;;48596:163;;;-1:-1:-1;48712:1:0;;-1:-1:-1;48716:30:0;48696:51;;48596:163;48873:24;;;48856:14;48873:24;;;;;;;;;17137:25:1;;;17210:4;17198:17;;17178:18;;;17171:45;;;;17232:18;;;17225:34;;;17275:18;;;17268:34;;;48873:24:0;;17109:19:1;;48873:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;48873:24:0;;-1:-1:-1;;48873:24:0;;;-1:-1:-1;;;;;;;48912:20:0;;48908:103;;48965:1;48969:29;48949:50;;;;;;;48908:103;49031:6;-1:-1:-1;49039:20:0;;-1:-1:-1;47548:1520:0;;;;;;;;:::o;42940:521::-;43018:20;43009:5;:29;;;;;;;;:::i;:::-;;43005:449;;42940:521;:::o;43005:449::-;43116:29;43107:5;:38;;;;;;;;:::i;:::-;;43103:351;;43162:34;;-1:-1:-1;;;43162:34:0;;17647:2:1;43162:34:0;;;17629:21:1;17686:2;17666:18;;;17659:30;17725:26;17705:18;;;17698:54;17769:18;;43162:34:0;17445:348:1;43103:351:0;43227:35;43218:5;:44;;;;;;;;:::i;:::-;;43214:240;;43279:41;;-1:-1:-1;;;43279:41:0;;18000:2:1;43279:41:0;;;17982:21:1;18039:2;18019:18;;;18012:30;18078:33;18058:18;;;18051:61;18129:18;;43279:41:0;17798:355:1;43214:240:0;43351:30;43342:5;:39;;;;;;;;:::i;:::-;;43338:116;;43398:44;;-1:-1:-1;;;43398:44:0;;18360:2:1;43398:44:0;;;18342:21:1;18399:2;18379:18;;;18372:30;18438:34;18418:18;;;18411:62;-1:-1:-1;;;18489:18:1;;;18482:32;18531:19;;43398:44:0;18158:398:1;66185:229:0;66322:12;66354:52;66376:6;66384:4;66390:1;66393:12;66354:21;:52::i;61910:272::-;5414:7;;;;62118:9;62110:64;;;;-1:-1:-1;;;62110:64:0;;18763:2:1;62110:64:0;;;18745:21:1;18802:2;18782:18;;;18775:30;18841:34;18821:18;;;18814:62;-1:-1:-1;;;18892:18:1;;;18885:40;18942:19;;62110:64:0;18561:406:1;18707:548:0;-1:-1:-1;;;;;18791:21:0;;18783:65;;;;-1:-1:-1;;;18783:65:0;;19174:2:1;18783:65:0;;;19156:21:1;19213:2;19193:18;;;19186:30;19252:33;19232:18;;;19225:61;19303:18;;18783:65:0;18972:355:1;18783:65:0;18861:49;18890:1;18894:7;18903:6;18861:20;:49::i;:::-;18939:6;18923:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;19094:18:0;;:9;:18;;;;;;;;;;;:28;;;;;;19149:37;1822:25:1;;;19149:37:0;;1795:18:1;19149:37:0;;;;;;;60026:164;;:::o;67305:455::-;67475:12;67533:5;67508:21;:30;;67500:81;;;;-1:-1:-1;;;67500:81:0;;19534:2:1;67500:81:0;;;19516:21:1;19573:2;19553:18;;;19546:30;19612:34;19592:18;;;19585:62;-1:-1:-1;;;19663:18:1;;;19656:36;19709:19;;67500:81:0;19332:402:1;67500:81:0;67593:12;67607:23;67634:6;-1:-1:-1;;;;;67634:11:0;67653:5;67660:4;67634:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67592:73;;;;67683:69;67710:6;67718:7;67727:10;67739:12;67683:26;:69::i;:::-;67676:76;67305:455;-1:-1:-1;;;;;;;67305:455:0:o;69878:644::-;70063:12;70092:7;70088:427;;;70120:10;:17;70141:1;70120:22;70116:290;;-1:-1:-1;;;;;63723:19:0;;;70330:60;;;;-1:-1:-1;;;70330:60:0;;20233:2:1;70330:60:0;;;20215:21:1;20272:2;20252:18;;;20245:30;20311:31;20291:18;;;20284:59;20360:18;;70330:60:0;20031:353:1;70330:60:0;-1:-1:-1;70427:10:0;70420:17;;70088:427;70470:33;70478:10;70490:12;71225:17;;:21;71221:388;;71457:10;71451:17;71514:15;71501:10;71497:2;71493:19;71486:44;71221:388;71584:12;71577:20;;-1:-1:-1;;;71577:20:0;;;;;;;;:::i;14:139:1:-;-1:-1:-1;;;;;97:31:1;;87:42;;77:70;;143:1;140;133:12;158:337;240:6;248;301:2;289:9;280:7;276:23;272:32;269:52;;;317:1;314;307:12;269:52;356:9;343:23;375:39;408:5;375:39;:::i;:::-;433:5;485:2;470:18;;;;457:32;;-1:-1:-1;;;158:337:1:o;500:250::-;585:1;595:113;609:6;606:1;603:13;595:113;;;685:11;;;679:18;666:11;;;659:39;631:2;624:10;595:113;;;-1:-1:-1;;742:1:1;724:16;;717:27;500:250::o;755:396::-;904:2;893:9;886:21;867:4;936:6;930:13;979:6;974:2;963:9;959:18;952:34;995:79;1067:6;1062:2;1051:9;1047:18;1042:2;1034:6;1030:15;995:79;:::i;:::-;1135:2;1114:15;-1:-1:-1;;1110:29:1;1095:45;;;;1142:2;1091:54;;755:396;-1:-1:-1;;755:396:1:o;1858:472::-;1935:6;1943;1951;2004:2;1992:9;1983:7;1979:23;1975:32;1972:52;;;2020:1;2017;2010:12;1972:52;2059:9;2046:23;2078:39;2111:5;2078:39;:::i;:::-;2136:5;-1:-1:-1;2193:2:1;2178:18;;2165:32;2206:41;2165:32;2206:41;:::i;:::-;1858:472;;2266:7;;-1:-1:-1;;;2320:2:1;2305:18;;;;2292:32;;1858:472::o;2335:118::-;2421:5;2414:13;2407:21;2400:5;2397:32;2387:60;;2443:1;2440;2433:12;2458:241;2514:6;2567:2;2555:9;2546:7;2542:23;2538:32;2535:52;;;2583:1;2580;2573:12;2535:52;2622:9;2609:23;2641:28;2663:5;2641:28;:::i;3075:180::-;3134:6;3187:2;3175:9;3166:7;3162:23;3158:32;3155:52;;;3203:1;3200;3193:12;3155:52;-1:-1:-1;3226:23:1;;3075:180;-1:-1:-1;3075:180:1:o;3468:255::-;3527:6;3580:2;3568:9;3559:7;3555:23;3551:32;3548:52;;;3596:1;3593;3586:12;3548:52;3635:9;3622:23;3654:39;3687:5;3654:39;:::i;3728:658::-;3899:2;3951:21;;;4021:13;;3924:18;;;4043:22;;;3870:4;;3899:2;4122:15;;;;4096:2;4081:18;;;3870:4;4165:195;4179:6;4176:1;4173:13;4165:195;;;4244:13;;-1:-1:-1;;;;;4240:39:1;4228:52;;4335:15;;;;4300:12;;;;4276:1;4194:9;4165:195;;;-1:-1:-1;4377:3:1;;3728:658;-1:-1:-1;;;;;;3728:658:1:o;4391:845::-;4502:6;4510;4518;4526;4534;4542;4550;4603:3;4591:9;4582:7;4578:23;4574:33;4571:53;;;4620:1;4617;4610:12;4571:53;4659:9;4646:23;4678:39;4711:5;4678:39;:::i;:::-;4736:5;-1:-1:-1;4793:2:1;4778:18;;4765:32;4806:41;4765:32;4806:41;:::i;:::-;4866:7;-1:-1:-1;4920:2:1;4905:18;;4892:32;;-1:-1:-1;4971:2:1;4956:18;;4943:32;;-1:-1:-1;5027:3:1;5012:19;;4999:33;5076:4;5063:18;;5051:31;;5041:59;;5096:1;5093;5086:12;5041:59;4391:845;;;;-1:-1:-1;4391:845:1;;;;5119:7;5173:3;5158:19;;5145:33;;-1:-1:-1;5225:3:1;5210:19;;;5197:33;;4391:845;-1:-1:-1;;4391:845:1:o;5241:404::-;5309:6;5317;5370:2;5358:9;5349:7;5345:23;5341:32;5338:52;;;5386:1;5383;5376:12;5338:52;5425:9;5412:23;5444:39;5477:5;5444:39;:::i;:::-;5502:5;-1:-1:-1;5559:2:1;5544:18;;5531:32;5572:41;5531:32;5572:41;:::i;:::-;5632:7;5622:17;;;5241:404;;;;;:::o;5650:380::-;5729:1;5725:12;;;;5772;;;5793:61;;5847:4;5839:6;5835:17;5825:27;;5793:61;5900:2;5892:6;5889:14;5869:18;5866:38;5863:161;;5946:10;5941:3;5937:20;5934:1;5927:31;5981:4;5978:1;5971:15;6009:4;6006:1;5999:15;6035:127;6096:10;6091:3;6087:20;6084:1;6077:31;6127:4;6124:1;6117:15;6151:4;6148:1;6141:15;6167:125;6232:9;;;6253:10;;;6250:36;;;6266:18;;:::i;10938:217::-;10978:1;11004;10994:132;;11048:10;11043:3;11039:20;11036:1;11029:31;11083:4;11080:1;11073:15;11111:4;11108:1;11101:15;10994:132;-1:-1:-1;11140:9:1;;10938:217::o;11160:128::-;11227:9;;;11248:11;;;11245:37;;;11262:18;;:::i;14310:245::-;14377:6;14430:2;14418:9;14409:7;14405:23;14401:32;14398:52;;;14446:1;14443;14436:12;14398:52;14478:9;14472:16;14497:28;14519:5;14497:28;:::i;17313:127::-;17374:10;17369:3;17365:20;17362:1;17355:31;17405:4;17402:1;17395:15;17429:4;17426:1;17419:15;19739:287;19868:3;19906:6;19900:13;19922:66;19981:6;19976:3;19969:4;19961:6;19957:17;19922:66;:::i;:::-;20004:16;;;;;19739:287;-1:-1:-1;;19739:287:1:o
Swarm Source
ipfs://5c2176cc88969f8bcc497fae8b38e69219637ab4f4166b03612f38f7f243d4ae
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.