Feature Tip: Add private address tag to any address under My Name Tag !
Overview
Max Total Supply
100,000,000 HLD
Holders
1,612 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
HLD
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-02-17 */ // File: @openzeppelin/contracts/utils/Context.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol pragma solidity >=0.6.0 <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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) public { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual 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 {_setupDecimals} is * called. * * 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 returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` 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 = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(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); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(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 Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal virtual { _decimals = decimals_; } /** * @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 to 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 { } } // File: @openzeppelin/contracts/drafts/IERC20Permit.sol pragma solidity >=0.6.0 <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/cryptography/ECDSA.sol pragma solidity >=0.6.0 <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 { /** * @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) { // Check the signature length if (signature.length != 65) { revert("ECDSA: invalid signature length"); } // Divide the signature in r, s and v variables bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return recover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover-bytes32-bytes-} that receives the `v`, * `r` and `s` signature fields separately. */ function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { // 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 (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): 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. require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value"); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * replicates the behavior of the * https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`] * JSON-RPC method. * * 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)); } } // File: @openzeppelin/contracts/utils/Counters.sol pragma solidity >=0.6.0 <0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented or decremented by one. 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;` * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath} * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never * directly accessed. */ library Counters { using SafeMath for uint256; 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 { // The {SafeMath} overflow check can be skipped here, see the comment at the top counter._value += 1; } function decrement(Counter storage counter) internal { counter._value = counter._value.sub(1); } } // File: @openzeppelin/contracts/drafts/EIP712.sol pragma solidity >=0.6.0 <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; 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) internal { 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 = _getChainId(); _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view virtual returns (bytes32) { if (_getChainId() == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator(bytes32 typeHash, bytes32 name, bytes32 version) private view returns (bytes32) { return keccak256( abi.encode( typeHash, name, version, _getChainId(), 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 keccak256(abi.encodePacked("\x19\x01", _domainSeparatorV4(), structHash)); } function _getChainId() private view returns (uint256 chainId) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 // solhint-disable-next-line no-inline-assembly assembly { chainId := chainid() } } } // File: @openzeppelin/contracts/drafts/ERC20Permit.sol pragma solidity >=0.6.5 <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 immutable _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @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) internal 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 { // solhint-disable-next-line not-rely-on-time require(block.timestamp <= deadline, "ERC20Permit: expired deadline"); bytes32 structHash = keccak256( abi.encode( _PERMIT_TYPEHASH, owner, spender, value, _nonces[owner].current(), deadline ) ); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); require(signer == owner, "ERC20Permit: invalid signature"); _nonces[owner].increment(); _approve(owner, spender, value); } /** * @dev See {IERC20Permit-nonces}. */ function nonces(address owner) public view 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(); } } // File: contracts/HLD.sol pragma solidity 0.6.12; contract HLD is ERC20Permit { constructor() public ERC20("Holdefi Token", "HLD") ERC20Permit("Holdefi Token") { _mint(_msgSender(), 100000000 ether); } // Taking ideas from Compound: // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol /// @notice A record of states for signing / validating signatures mapping (address => Counters.Counter) public delegateNonces; /// @dev A record of each accounts delegate mapping (address => address) public delegates; /// @notice A checkpoint for marking number of votes from a given block struct Checkpoint { uint32 fromBlock; uint256 votes; } /// @notice A record of votes checkpoints for each account, by index mapping (address => mapping (uint32 => Checkpoint)) public checkpoints; /// @notice The number of checkpoints for each account mapping (address => uint32) public numCheckpoints; // solhint-disable-next-line var-name-mixedcase bytes32 private immutable DELEGATION_TYPEHASH = keccak256("Delegation(address delegator,address delegatee,uint256 nonce,uint256 expiry)"); /// @notice An event thats emitted when an account changes its delegate event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate); /// @notice An event thats emitted when a delegate account's vote balance changes event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance); /** * ERC20 modified transferFrom that also update the avgPrice paid for the recipient and * updates user gov idx * * @param sender : sender account * @param recipient : recipient account * @param amount : value to transfer * @return : flag whether transfer was successful or not */ function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, msg.sender, allowance(sender, msg.sender).sub(amount, "ERC20: transfer amount exceeds allowance")); _moveDelegates(delegates[sender], delegates[recipient], amount); return true; } /** * ERC20 modified transfer that also update the delegates * * @param recipient : recipient account * @param amount : value to transfer * @return : flag whether transfer was successful or not */ function transfer(address recipient, uint256 amount) public override returns (bool) { _transfer(msg.sender, recipient, amount); _moveDelegates(delegates[msg.sender], delegates[recipient], amount); return true; } /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegatee The address to delegate votes to */ function delegate(address delegatee) external { _delegate(msg.sender, delegatee); } /** * @notice Delegates votes from signatory to `delegatee` * @param delegator The address which delegates votes * @param delegatee The address to delegate votes to * @param expiry The time at which to expire the signature * @param v The recovery byte of the signature * @param r Half of the ECDSA signature pair * @param s Half of the ECDSA signature pair */ function delegateBySig(address delegator, address delegatee, uint expiry, uint8 v, bytes32 r, bytes32 s) external { require(block.timestamp <= expiry, "HLD::delegateBySig: signature expired"); bytes32 structHash = keccak256( abi.encode( DELEGATION_TYPEHASH, delegator, delegatee, delegateNonces[delegator].current(), expiry ) ); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); require(signer == delegator, "HLD::delegateBySig: invalid signature"); delegateNonces[delegator].increment(); _delegate(delegator, delegatee); } /** * @notice Gets the current votes balance for `account` * @param account The address to get votes balance * @return The number of current votes for `account` */ function getCurrentVotes(address account) external view returns (uint256) { uint32 nCheckpoints = numCheckpoints[account]; return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0; } /** * @notice Determine the prior number of votes for an account as of a block number * @dev Block number must be a finalized block or else this function will revert to prevent misinformation. * @param account The address of the account to check * @param blockNumber The block number to get the vote balance at * @return The number of votes the account had as of the given block */ function getPriorVotes(address account, uint blockNumber) external view returns (uint256) { require(blockNumber < block.number, "HLD::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0; } // First check most recent balance if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) { return checkpoints[account][nCheckpoints - 1].votes; } // Next check implicit zero balance if (checkpoints[account][0].fromBlock > blockNumber) { return 0; } uint32 lower = 0; uint32 upper = nCheckpoints - 1; while (upper > lower) { uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow Checkpoint memory cp = checkpoints[account][center]; if (cp.fromBlock == blockNumber) { return cp.votes; } else if (cp.fromBlock < blockNumber) { lower = center; } else { upper = center - 1; } } return checkpoints[account][lower].votes; } function _delegate(address delegator, address delegatee) internal { address currentDelegate = delegates[delegator]; uint256 delegatorBalance = balanceOf(delegator); // balance of underlying HLDs (not scaled); delegates[delegator] = delegatee; emit DelegateChanged(delegator, currentDelegate, delegatee); _moveDelegates(currentDelegate, delegatee, delegatorBalance); } function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal { if (srcRep != dstRep && amount > 0) { if (srcRep != address(0)) { // decrease old representative uint32 srcRepNum = numCheckpoints[srcRep]; uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0; uint256 srcRepNew = srcRepOld.sub(amount); _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew); } if (dstRep != address(0)) { // increase new representative uint32 dstRepNum = numCheckpoints[dstRep]; uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0; uint256 dstRepNew = dstRepOld.add(amount); _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew); } } } function _writeCheckpoint(address delegatee, uint32 nCheckpoints, uint256 oldVotes, uint256 newVotes) internal { uint32 blockNumber = safe32(block.number, "HLD::_writeCheckpoint: block number exceeds 32 bits"); if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) { checkpoints[delegatee][nCheckpoints - 1].votes = newVotes; } else { checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes); numCheckpoints[delegatee] = nCheckpoints + 1; } emit DelegateVotesChanged(delegatee, oldVotes, newVotes); } function safe32(uint n, string memory errorMessage) internal pure returns (uint32) { require(n < 2**32, errorMessage); return uint32(n); } }
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":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"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":[{"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":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"checkpoints","outputs":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint256","name":"votes","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegator","type":"address"},{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"delegateNonces","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPriorVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"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":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101606040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610120527faa11865cb8897b3c2ba242159cd526b3893c142dbad19457a992dedf7ea54535610140523480156200005c57600080fd5b506040518060400160405280600d81526020016c2437b63232b334902a37b5b2b760991b81525080604051806040016040528060018152602001603160f81b8152506040518060400160405280600d81526020016c2437b63232b334902a37b5b2b760991b8152506040518060400160405280600381526020016212131160ea1b8152508160039080519060200190620000f89291906200038e565b5080516200010e9060049060208401906200038e565b50506005805460ff1916601217905550815160208084019190912082519183019190912060c082905260e08190527f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f62000167620001ac565b60a05262000177818484620001b0565b6080526101005250620001a6935062000194925050620002149050565b6a52b7d2dcc80cd2e400000062000218565b6200042a565b4690565b6000838383620001bf620001ac565b3060405160200180868152602001858152602001848152602001838152602001826001600160a01b03168152602001955050505050506040516020818303038152906040528051906020012090509392505050565b3390565b6001600160a01b03821662000274576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b620002826000838362000327565b6200029e816002546200032c60201b62000ec11790919060201c565b6002556001600160a01b03821660009081526020818152604090912054620002d191839062000ec16200032c821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b505050565b60008282018381101562000387576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003d157805160ff191683800117855562000401565b8280016001018555821562000401579182015b8281111562000401578251825591602001919060010190620003e4565b506200040f92915062000413565b5090565b5b808211156200040f576000815560010162000414565b60805160a05160c05160e051610100516101205161014051611b346200047e60003980610b27525080610d215250806113a05250806113e25250806113c15250806113475250806113775250611b346000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c806370a08231116100b8578063a9059cbb1161007c578063a9059cbb14610421578063b20d7fa91461044d578063b4b5ea5714610498578063d505accf146104be578063dd62ed3e1461050f578063f1127ed81461053d57610142565b806370a0823114610375578063782d6fe11461039b5780637ecebe00146103c757806395d89b41146103ed578063a457c2d7146103f557610142565b8063313ce5671161010a578063313ce5671461027a5780633644e5151461029857806339509351146102a0578063587cde1e146102cc5780635c19a95c1461030e5780636fcfff451461033657610142565b806306fdde0314610147578063095ea7b3146101c457806318160ddd1461020457806323b872dd1461021e5780632d7c279214610254575b600080fd5b61014f61058f565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610189578181015183820152602001610171565b50505050905090810190601f1680156101b65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101f0600480360360408110156101da57600080fd5b506001600160a01b038135169060200135610626565b604080519115158252519081900360200190f35b61020c610644565b60408051918252519081900360200190f35b6101f06004803603606081101561023457600080fd5b506001600160a01b0381358116916020810135909116906040013561064a565b61020c6004803603602081101561026a57600080fd5b50356001600160a01b03166106cb565b6102826106dd565b6040805160ff9092168252519081900360200190f35b61020c6106e6565b6101f0600480360360408110156102b657600080fd5b506001600160a01b0381351690602001356106f5565b6102f2600480360360208110156102e257600080fd5b50356001600160a01b0316610743565b604080516001600160a01b039092168252519081900360200190f35b6103346004803603602081101561032457600080fd5b50356001600160a01b031661075e565b005b61035c6004803603602081101561034c57600080fd5b50356001600160a01b031661076b565b6040805163ffffffff9092168252519081900360200190f35b61020c6004803603602081101561038b57600080fd5b50356001600160a01b0316610783565b61020c600480360360408110156103b157600080fd5b506001600160a01b03813516906020013561079e565b61020c600480360360208110156103dd57600080fd5b50356001600160a01b03166109a6565b61014f6109c7565b6101f06004803603604081101561040b57600080fd5b506001600160a01b038135169060200135610a28565b6101f06004803603604081101561043757600080fd5b506001600160a01b038135169060200135610a90565b610334600480360360c081101561046357600080fd5b506001600160a01b03813581169160208101359091169060408101359060ff6060820135169060808101359060a00135610ace565b61020c600480360360208110156104ae57600080fd5b50356001600160a01b0316610c4e565b610334600480360360e08110156104d457600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135610cb2565b61020c6004803603604081101561052557600080fd5b506001600160a01b0381358116916020013516610e69565b61056f6004803603604081101561055357600080fd5b5080356001600160a01b0316906020013563ffffffff16610e94565b6040805163ffffffff909316835260208301919091528051918290030190f35b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561061b5780601f106105f05761010080835404028352916020019161061b565b820191906000526020600020905b8154815290600101906020018083116105fe57829003601f168201915b505050505090505b90565b600061063a610633610f1b565b8484610f1f565b5060015b92915050565b60025490565b600061065784848461100b565b61068f843361068a85604051806060016040528060288152602001611a43602891396106838a33610e69565b9190611166565b610f1f565b6001600160a01b038085166000908152600860205260408082205486841683529120546106c1929182169116846111fd565b5060019392505050565b60076020526000908152604090205481565b60055460ff1690565b60006106f0611343565b905090565b600061063a610702610f1b565b8461068a8560016000610713610f1b565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610ec1565b6008602052600090815260409020546001600160a01b031681565b610768338261140d565b50565b600a6020526000908152604090205463ffffffff1681565b6001600160a01b031660009081526020819052604090205490565b60004382106107de5760405162461bcd60e51b8152600401808060200182810382526026815260200180611a6b6026913960400191505060405180910390fd5b6001600160a01b0383166000908152600a602052604090205463ffffffff168061080c57600091505061063e565b6001600160a01b038416600090815260096020908152604080832063ffffffff60001986018116855292529091205416831061087b576001600160a01b03841660009081526009602090815260408083206000199490940163ffffffff1683529290522060010154905061063e565b6001600160a01b038416600090815260096020908152604080832083805290915290205463ffffffff168310156108b657600091505061063e565b600060001982015b8163ffffffff168163ffffffff16111561096f57600282820363ffffffff160481036108e86118ff565b506001600160a01b038716600090815260096020908152604080832063ffffffff80861685529083529281902081518083019092528054909316808252600190930154918101919091529087141561094a5760200151945061063e9350505050565b805163ffffffff1687111561096157819350610968565b6001820392505b50506108be565b506001600160a01b038516600090815260096020908152604080832063ffffffff9094168352929052206001015491505092915050565b6001600160a01b038116600090815260066020526040812061063e906114a2565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561061b5780601f106105f05761010080835404028352916020019161061b565b600061063a610a35610f1b565b8461068a85604051806060016040528060258152602001611ada6025913960016000610a5f610f1b565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611166565b6000610a9d33848461100b565b33600090815260086020526040808220546001600160a01b038681168452919092205461063a9282169116846111fd565b83421115610b0d5760405162461bcd60e51b81526004018080602001828103825260258152602001806119c96025913960400191505060405180910390fd5b6001600160a01b03861660009081526007602052604081207f00000000000000000000000000000000000000000000000000000000000000009088908890610b54906114a2565b8860405160200180868152602001856001600160a01b03168152602001846001600160a01b03168152602001838152602001828152602001955050505050506040516020818303038152906040528051906020012090506000610bb6826114a6565b90506000610bc6828787876114f2565b9050886001600160a01b0316816001600160a01b031614610c185760405162461bcd60e51b815260040180806020018281038252602581526020018061195c6025913960400191505060405180910390fd5b6001600160a01b0389166000908152600760205260409020610c3990611670565b610c43898961140d565b505050505050505050565b6001600160a01b0381166000908152600a602052604081205463ffffffff1680610c79576000610cab565b6001600160a01b038316600090815260096020908152604080832063ffffffff60001986011684529091529020600101545b9392505050565b83421115610d07576040805162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015290519081900360640190fd5b6001600160a01b03871660009081526006602052604081207f000000000000000000000000000000000000000000000000000000000000000090899089908990610d50906114a2565b8960405160200180878152602001866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200182815260200196505050505050506040516020818303038152906040528051906020012090506000610db9826114a6565b90506000610dc9828787876114f2565b9050896001600160a01b0316816001600160a01b031614610e31576040805162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015290519081900360640190fd5b6001600160a01b038a166000908152600660205260409020610e5290611670565b610e5d8a8a8a610f1f565b50505050505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60096020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b600082820183811015610cab576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b6001600160a01b038316610f645760405162461bcd60e51b8152600401808060200182810382526024815260200180611ab66024913960400191505060405180910390fd5b6001600160a01b038216610fa95760405162461bcd60e51b815260040180806020018281038252602281526020018061193a6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166110505760405162461bcd60e51b8152600401808060200182810382526025815260200180611a916025913960400191505060405180910390fd5b6001600160a01b0382166110955760405162461bcd60e51b81526004018080602001828103825260238152602001806119176023913960400191505060405180910390fd5b6110a083838361133e565b6110dd81604051806060016040528060268152602001611981602691396001600160a01b0386166000908152602081905260409020549190611166565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461110c9082610ec1565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156111f55760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156111ba5781810151838201526020016111a2565b50505050905090810190601f1680156111e75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b816001600160a01b0316836001600160a01b03161415801561121f5750600081115b1561133e576001600160a01b038316156112b1576001600160a01b0383166000908152600a602052604081205463ffffffff16908161125f576000611291565b6001600160a01b038516600090815260096020908152604080832063ffffffff60001987011684529091529020600101545b9050600061129f8285611679565b90506112ad868484846116d6565b5050505b6001600160a01b0382161561133e576001600160a01b0382166000908152600a602052604081205463ffffffff1690816112ec57600061131e565b6001600160a01b038416600090815260096020908152604080832063ffffffff60001987011684529091529020600101545b9050600061132c8285610ec1565b905061133a858484846116d6565b5050505b505050565b60007f000000000000000000000000000000000000000000000000000000000000000061136e61183b565b141561139b57507f0000000000000000000000000000000000000000000000000000000000000000610623565b6114067f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000061183f565b9050610623565b6001600160a01b038083166000908152600860205260408120549091169061143484610783565b6001600160a01b0385811660008181526008602052604080822080546001600160a01b031916898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a461149c8284836111fd565b50505050565b5490565b60006114b0611343565b82604051602001808061190160f01b81525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050919050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156115535760405162461bcd60e51b81526004018080602001828103825260228152602001806119a76022913960400191505060405180910390fd5b8360ff16601b148061156857508360ff16601c145b6115a35760405162461bcd60e51b8152600401808060200182810382526022815260200180611a216022913960400191505060405180910390fd5b600060018686868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa1580156115ff573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611667576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b95945050505050565b80546001019055565b6000828211156116d0576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60006116fa436040518060600160405280603381526020016119ee603391396118a1565b905060008463ffffffff1611801561174357506001600160a01b038516600090815260096020908152604080832063ffffffff6000198901811685529252909120548282169116145b15611780576001600160a01b038516600090815260096020908152604080832063ffffffff600019890116845290915290206001018290556117f1565b60408051808201825263ffffffff808416825260208083018681526001600160a01b038a166000818152600984528681208b8616825284528681209551865490861663ffffffff199182161787559251600196870155908152600a9092529390208054928801909116919092161790555b604080518481526020810184905281516001600160a01b038816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a25050505050565b4690565b600083838361184c61183b565b3060405160200180868152602001858152602001848152602001838152602001826001600160a01b03168152602001955050505050506040516020818303038152906040528051906020012090509392505050565b60008164010000000084106118f75760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156111ba5781810151838201526020016111a2565b509192915050565b60408051808201909152600080825260208201529056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f2061646472657373484c443a3a64656c656761746542795369673a20696e76616c6964207369676e617475726545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545434453413a20696e76616c6964207369676e6174757265202773272076616c7565484c443a3a64656c656761746542795369673a207369676e61747572652065787069726564484c443a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d6265722065786365656473203332206269747345434453413a20696e76616c6964207369676e6174757265202776272076616c756545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365484c443a3a6765745072696f72566f7465733a206e6f74207965742064657465726d696e656445524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220bf51c85af8c2890ff4faed0a635d1ea78e59c1becfe2a148edadf5eba241f51f64736f6c634300060c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101425760003560e01c806370a08231116100b8578063a9059cbb1161007c578063a9059cbb14610421578063b20d7fa91461044d578063b4b5ea5714610498578063d505accf146104be578063dd62ed3e1461050f578063f1127ed81461053d57610142565b806370a0823114610375578063782d6fe11461039b5780637ecebe00146103c757806395d89b41146103ed578063a457c2d7146103f557610142565b8063313ce5671161010a578063313ce5671461027a5780633644e5151461029857806339509351146102a0578063587cde1e146102cc5780635c19a95c1461030e5780636fcfff451461033657610142565b806306fdde0314610147578063095ea7b3146101c457806318160ddd1461020457806323b872dd1461021e5780632d7c279214610254575b600080fd5b61014f61058f565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610189578181015183820152602001610171565b50505050905090810190601f1680156101b65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101f0600480360360408110156101da57600080fd5b506001600160a01b038135169060200135610626565b604080519115158252519081900360200190f35b61020c610644565b60408051918252519081900360200190f35b6101f06004803603606081101561023457600080fd5b506001600160a01b0381358116916020810135909116906040013561064a565b61020c6004803603602081101561026a57600080fd5b50356001600160a01b03166106cb565b6102826106dd565b6040805160ff9092168252519081900360200190f35b61020c6106e6565b6101f0600480360360408110156102b657600080fd5b506001600160a01b0381351690602001356106f5565b6102f2600480360360208110156102e257600080fd5b50356001600160a01b0316610743565b604080516001600160a01b039092168252519081900360200190f35b6103346004803603602081101561032457600080fd5b50356001600160a01b031661075e565b005b61035c6004803603602081101561034c57600080fd5b50356001600160a01b031661076b565b6040805163ffffffff9092168252519081900360200190f35b61020c6004803603602081101561038b57600080fd5b50356001600160a01b0316610783565b61020c600480360360408110156103b157600080fd5b506001600160a01b03813516906020013561079e565b61020c600480360360208110156103dd57600080fd5b50356001600160a01b03166109a6565b61014f6109c7565b6101f06004803603604081101561040b57600080fd5b506001600160a01b038135169060200135610a28565b6101f06004803603604081101561043757600080fd5b506001600160a01b038135169060200135610a90565b610334600480360360c081101561046357600080fd5b506001600160a01b03813581169160208101359091169060408101359060ff6060820135169060808101359060a00135610ace565b61020c600480360360208110156104ae57600080fd5b50356001600160a01b0316610c4e565b610334600480360360e08110156104d457600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135610cb2565b61020c6004803603604081101561052557600080fd5b506001600160a01b0381358116916020013516610e69565b61056f6004803603604081101561055357600080fd5b5080356001600160a01b0316906020013563ffffffff16610e94565b6040805163ffffffff909316835260208301919091528051918290030190f35b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561061b5780601f106105f05761010080835404028352916020019161061b565b820191906000526020600020905b8154815290600101906020018083116105fe57829003601f168201915b505050505090505b90565b600061063a610633610f1b565b8484610f1f565b5060015b92915050565b60025490565b600061065784848461100b565b61068f843361068a85604051806060016040528060288152602001611a43602891396106838a33610e69565b9190611166565b610f1f565b6001600160a01b038085166000908152600860205260408082205486841683529120546106c1929182169116846111fd565b5060019392505050565b60076020526000908152604090205481565b60055460ff1690565b60006106f0611343565b905090565b600061063a610702610f1b565b8461068a8560016000610713610f1b565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610ec1565b6008602052600090815260409020546001600160a01b031681565b610768338261140d565b50565b600a6020526000908152604090205463ffffffff1681565b6001600160a01b031660009081526020819052604090205490565b60004382106107de5760405162461bcd60e51b8152600401808060200182810382526026815260200180611a6b6026913960400191505060405180910390fd5b6001600160a01b0383166000908152600a602052604090205463ffffffff168061080c57600091505061063e565b6001600160a01b038416600090815260096020908152604080832063ffffffff60001986018116855292529091205416831061087b576001600160a01b03841660009081526009602090815260408083206000199490940163ffffffff1683529290522060010154905061063e565b6001600160a01b038416600090815260096020908152604080832083805290915290205463ffffffff168310156108b657600091505061063e565b600060001982015b8163ffffffff168163ffffffff16111561096f57600282820363ffffffff160481036108e86118ff565b506001600160a01b038716600090815260096020908152604080832063ffffffff80861685529083529281902081518083019092528054909316808252600190930154918101919091529087141561094a5760200151945061063e9350505050565b805163ffffffff1687111561096157819350610968565b6001820392505b50506108be565b506001600160a01b038516600090815260096020908152604080832063ffffffff9094168352929052206001015491505092915050565b6001600160a01b038116600090815260066020526040812061063e906114a2565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561061b5780601f106105f05761010080835404028352916020019161061b565b600061063a610a35610f1b565b8461068a85604051806060016040528060258152602001611ada6025913960016000610a5f610f1b565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611166565b6000610a9d33848461100b565b33600090815260086020526040808220546001600160a01b038681168452919092205461063a9282169116846111fd565b83421115610b0d5760405162461bcd60e51b81526004018080602001828103825260258152602001806119c96025913960400191505060405180910390fd5b6001600160a01b03861660009081526007602052604081207faa11865cb8897b3c2ba242159cd526b3893c142dbad19457a992dedf7ea545359088908890610b54906114a2565b8860405160200180868152602001856001600160a01b03168152602001846001600160a01b03168152602001838152602001828152602001955050505050506040516020818303038152906040528051906020012090506000610bb6826114a6565b90506000610bc6828787876114f2565b9050886001600160a01b0316816001600160a01b031614610c185760405162461bcd60e51b815260040180806020018281038252602581526020018061195c6025913960400191505060405180910390fd5b6001600160a01b0389166000908152600760205260409020610c3990611670565b610c43898961140d565b505050505050505050565b6001600160a01b0381166000908152600a602052604081205463ffffffff1680610c79576000610cab565b6001600160a01b038316600090815260096020908152604080832063ffffffff60001986011684529091529020600101545b9392505050565b83421115610d07576040805162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015290519081900360640190fd5b6001600160a01b03871660009081526006602052604081207f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c990899089908990610d50906114a2565b8960405160200180878152602001866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200182815260200196505050505050506040516020818303038152906040528051906020012090506000610db9826114a6565b90506000610dc9828787876114f2565b9050896001600160a01b0316816001600160a01b031614610e31576040805162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015290519081900360640190fd5b6001600160a01b038a166000908152600660205260409020610e5290611670565b610e5d8a8a8a610f1f565b50505050505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60096020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b600082820183811015610cab576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b6001600160a01b038316610f645760405162461bcd60e51b8152600401808060200182810382526024815260200180611ab66024913960400191505060405180910390fd5b6001600160a01b038216610fa95760405162461bcd60e51b815260040180806020018281038252602281526020018061193a6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166110505760405162461bcd60e51b8152600401808060200182810382526025815260200180611a916025913960400191505060405180910390fd5b6001600160a01b0382166110955760405162461bcd60e51b81526004018080602001828103825260238152602001806119176023913960400191505060405180910390fd5b6110a083838361133e565b6110dd81604051806060016040528060268152602001611981602691396001600160a01b0386166000908152602081905260409020549190611166565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461110c9082610ec1565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156111f55760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156111ba5781810151838201526020016111a2565b50505050905090810190601f1680156111e75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b816001600160a01b0316836001600160a01b03161415801561121f5750600081115b1561133e576001600160a01b038316156112b1576001600160a01b0383166000908152600a602052604081205463ffffffff16908161125f576000611291565b6001600160a01b038516600090815260096020908152604080832063ffffffff60001987011684529091529020600101545b9050600061129f8285611679565b90506112ad868484846116d6565b5050505b6001600160a01b0382161561133e576001600160a01b0382166000908152600a602052604081205463ffffffff1690816112ec57600061131e565b6001600160a01b038416600090815260096020908152604080832063ffffffff60001987011684529091529020600101545b9050600061132c8285610ec1565b905061133a858484846116d6565b5050505b505050565b60007f000000000000000000000000000000000000000000000000000000000000000161136e61183b565b141561139b57507f872eb2aea140eb95c9a6d40abbc90f94d2fe03d4ce07def626a131e352dc58d0610623565b6114067f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f387882cd71cc91393b085d928d6b834eabdd91622091665657dacab66f0189ae7fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc661183f565b9050610623565b6001600160a01b038083166000908152600860205260408120549091169061143484610783565b6001600160a01b0385811660008181526008602052604080822080546001600160a01b031916898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a461149c8284836111fd565b50505050565b5490565b60006114b0611343565b82604051602001808061190160f01b81525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050919050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156115535760405162461bcd60e51b81526004018080602001828103825260228152602001806119a76022913960400191505060405180910390fd5b8360ff16601b148061156857508360ff16601c145b6115a35760405162461bcd60e51b8152600401808060200182810382526022815260200180611a216022913960400191505060405180910390fd5b600060018686868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa1580156115ff573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611667576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b95945050505050565b80546001019055565b6000828211156116d0576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60006116fa436040518060600160405280603381526020016119ee603391396118a1565b905060008463ffffffff1611801561174357506001600160a01b038516600090815260096020908152604080832063ffffffff6000198901811685529252909120548282169116145b15611780576001600160a01b038516600090815260096020908152604080832063ffffffff600019890116845290915290206001018290556117f1565b60408051808201825263ffffffff808416825260208083018681526001600160a01b038a166000818152600984528681208b8616825284528681209551865490861663ffffffff199182161787559251600196870155908152600a9092529390208054928801909116919092161790555b604080518481526020810184905281516001600160a01b038816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a25050505050565b4690565b600083838361184c61183b565b3060405160200180868152602001858152602001848152602001838152602001826001600160a01b03168152602001955050505050506040516020818303038152906040528051906020012090509392505050565b60008164010000000084106118f75760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156111ba5781810151838201526020016111a2565b509192915050565b60408051808201909152600080825260208201529056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f2061646472657373484c443a3a64656c656761746542795369673a20696e76616c6964207369676e617475726545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545434453413a20696e76616c6964207369676e6174757265202773272076616c7565484c443a3a64656c656761746542795369673a207369676e61747572652065787069726564484c443a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d6265722065786365656473203332206269747345434453413a20696e76616c6964207369676e6174757265202776272076616c756545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365484c443a3a6765745072696f72566f7465733a206e6f74207965742064657465726d696e656445524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220bf51c85af8c2890ff4faed0a635d1ea78e59c1becfe2a148edadf5eba241f51f64736f6c634300060c0033
Deployed Bytecode Sourcemap
37632:8492:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13462:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15608:169;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15608:169:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;14561:108;;;:::i;:::-;;;;;;;;;;;;;;;;39542:373;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;39542:373:0;;;;;;;;;;;;;;;;;:::i;38024:59::-;;;;;;;;;;;;;;;;-1:-1:-1;38024:59:0;-1:-1:-1;;;;;38024:59:0;;:::i;14405:91::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;37449:115;;;:::i;16989:218::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;16989:218:0;;;;;;;;:::i;38141:45::-;;;;;;;;;;;;;;;;-1:-1:-1;38141:45:0;-1:-1:-1;;;;;38141:45:0;;:::i;:::-;;;;-1:-1:-1;;;;;38141:45:0;;;;;;;;;;;;;;40542:97;;;;;;;;;;;;;;;;-1:-1:-1;40542:97:0;-1:-1:-1;;;;;40542:97:0;;:::i;:::-;;38570:49;;;;;;;;;;;;;;;;-1:-1:-1;38570:49:0;-1:-1:-1;;;;;38570:49:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;14732:127;;;;;;;;;;;;;;;;-1:-1:-1;14732:127:0;-1:-1:-1;;;;;14732:127:0;;:::i;42694:1220::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;42694:1220:0;;;;;;;;:::i;37199:120::-;;;;;;;;;;;;;;;;-1:-1:-1;37199:120:0;-1:-1:-1;;;;;37199:120:0;;:::i;13672:95::-;;;:::i;17710:269::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;17710:269:0;;;;;;;;:::i;40161:237::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;40161:237:0;;;;;;;;:::i;41062:777::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;41062:777:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;42040:223::-;;;;;;;;;;;;;;;;-1:-1:-1;42040:223:0;-1:-1:-1;;;;;42040:223:0;;:::i;36317:816::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;36317:816:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;15310:151::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15310:151:0;;;;;;;;;;:::i;38431:70::-;;;;;;;;;;;;;;;;-1:-1:-1;38431:70:0;;-1:-1:-1;;;;;38431:70:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;13462:91;13540:5;13533:12;;;;;;;;-1:-1:-1;;13533:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13507:13;;13533:12;;13540:5;;13533:12;;13540:5;13533:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13462:91;;:::o;15608:169::-;15691:4;15708:39;15717:12;:10;:12::i;:::-;15731:7;15740:6;15708:8;:39::i;:::-;-1:-1:-1;15765:4:0;15608:169;;;;;:::o;14561:108::-;14649:12;;14561:108;:::o;39542:373::-;39640:4;39655:36;39665:6;39673:9;39684:6;39655:9;:36::i;:::-;39700:115;39709:6;39717:10;39729:85;39763:6;39729:85;;;;;;;;;;;;;;;;;:29;39739:6;39747:10;39729:9;:29::i;:::-;:33;:85;:33;:85::i;:::-;39700:8;:115::i;:::-;-1:-1:-1;;;;;39839:17:0;;;;;;;:9;:17;;;;;;;39858:20;;;;;;;;39824:63;;39839:17;;;;39858:20;39880:6;39824:14;:63::i;:::-;-1:-1:-1;39903:4:0;39542:373;;;;;:::o;38024:59::-;;;;;;;;;;;;;:::o;14405:91::-;14479:9;;;;14405:91;:::o;37449:115::-;37509:7;37536:20;:18;:20::i;:::-;37529:27;;37449:115;:::o;16989:218::-;17077:4;17094:83;17103:12;:10;:12::i;:::-;17117:7;17126:50;17165:10;17126:11;:25;17138:12;:10;:12::i;:::-;-1:-1:-1;;;;;17126:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;17126:25:0;;;:34;;;;;;;;;;;:38;:50::i;38141:45::-;;;;;;;;;;;;-1:-1:-1;;;;;38141:45:0;;:::o;40542:97::-;40599:32;40609:10;40621:9;40599;:32::i;:::-;40542:97;:::o;38570:49::-;;;;;;;;;;;;;;;:::o;14732:127::-;-1:-1:-1;;;;;14833:18:0;14806:7;14833:18;;;;;;;;;;;;14732:127::o;42694:1220::-;42775:7;42817:12;42803:11;:26;42795:77;;;;-1:-1:-1;;;42795:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;42907:23:0;;42885:19;42907:23;;;:14;:23;;;;;;;;42945:17;42941:58;;42986:1;42979:8;;;;;42941:58;-1:-1:-1;;;;;43059:20:0;;;;;;:11;:20;;;;;;;;:38;-1:-1:-1;;43080:16:0;;43059:38;;;;;;;;;:48;;:63;-1:-1:-1;43055:147:0;;-1:-1:-1;;;;;43146:20:0;;;;;;:11;:20;;;;;;;;-1:-1:-1;;43167:16:0;;;;43146:38;;;;;;;;43182:1;43146:44;;;-1:-1:-1;43139:51:0;;43055:147;-1:-1:-1;;;;;43263:20:0;;;;;;:11;:20;;;;;;;;:23;;;;;;;;:33;:23;:33;:47;-1:-1:-1;43259:88:0;;;43334:1;43327:8;;;;;43259:88;43359:12;-1:-1:-1;;43401:16:0;;43428:428;43443:5;43435:13;;:5;:13;;;43428:428;;;43507:1;43490:13;;;43489:19;;;43481:27;;43550:20;;:::i;:::-;-1:-1:-1;;;;;;43573:20:0;;;;;;:11;:20;;;;;;;;:28;;;;;;;;;;;;;43550:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43620:27;;43616:229;;;43675:8;;;;-1:-1:-1;43668:15:0;;-1:-1:-1;;;;43668:15:0;43616:229;43709:12;;:26;;;-1:-1:-1;43705:140:0;;;43764:6;43756:14;;43705:140;;;43828:1;43819:6;:10;43811:18;;43705:140;43428:428;;;;;-1:-1:-1;;;;;;43873:20:0;;;;;;:11;:20;;;;;;;;:27;;;;;;;;;;:33;;;;-1:-1:-1;;42694:1220:0;;;;:::o;37199:120::-;-1:-1:-1;;;;;37287:14:0;;37260:7;37287:14;;;:7;:14;;;;;:24;;:22;:24::i;13672:95::-;13752:7;13745:14;;;;;;;;-1:-1:-1;;13745:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13719:13;;13745:14;;13752:7;;13745:14;;13752:7;13745:14;;;;;;;;;;;;;;;;;;;;;;;;17710:269;17803:4;17820:129;17829:12;:10;:12::i;:::-;17843:7;17852:96;17891:15;17852:96;;;;;;;;;;;;;;;;;:11;:25;17864:12;:10;:12::i;:::-;-1:-1:-1;;;;;17852:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;17852:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;40161:237::-;40239:4;40254:40;40264:10;40276:9;40287:6;40254:9;:40::i;:::-;40328:10;40318:21;;;;:9;:21;;;;;;;-1:-1:-1;;;;;40341:20:0;;;;;;;;;;40303:67;;40318:21;;;40341:20;40363:6;40303:14;:67::i;41062:777::-;41214:6;41195:15;:25;;41187:75;;;;-1:-1:-1;;;41187:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;41443:25:0;;41275:18;41443:25;;;:14;:25;;;;;41349:19;;41387:9;;41415;;41443:35;;:33;:35::i;:::-;41497:6;41320:198;;;;;;;;;;;-1:-1:-1;;;;;41320:198:0;;;;;;-1:-1:-1;;;;;41320:198:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41296:233;;;;;;41275:254;;41542:12;41557:28;41574:10;41557:16;:28::i;:::-;41542:43;;41606:14;41623:28;41637:4;41643:1;41646;41649;41623:13;:28::i;:::-;41606:45;;41680:9;-1:-1:-1;;;;;41670:19:0;:6;-1:-1:-1;;;;;41670:19:0;;41662:69;;;;-1:-1:-1;;;41662:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;41752:25:0;;;;;;:14;:25;;;;;:37;;:35;:37::i;:::-;41800:31;41810:9;41821;41800;:31::i;:::-;41062:777;;;;;;;;;:::o;42040:223::-;-1:-1:-1;;;;;42147:23:0;;42105:7;42147:23;;;:14;:23;;;;;;;;42188:16;:67;;42254:1;42188:67;;;-1:-1:-1;;;;;42207:20:0;;;;;;:11;:20;;;;;;;;:38;-1:-1:-1;;42228:16:0;;42207:38;;;;;;;;42243:1;42207:44;;42188:67;42181:74;42040:223;-1:-1:-1;;;42040:223:0:o;36317:816::-;36546:8;36527:15;:27;;36519:69;;;;;-1:-1:-1;;;36519:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;36784:14:0;;36601:18;36784:14;;;:7;:14;;;;;36675:16;;36710:5;;36734:7;;36760:5;;36784:24;;:22;:24::i;:::-;36827:8;36646:204;;;;;;;;;;;-1:-1:-1;;;;;36646:204:0;;;;;;-1:-1:-1;;;;;36646:204:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36622:239;;;;;;36601:260;;36874:12;36889:28;36906:10;36889:16;:28::i;:::-;36874:43;;36930:14;36947:28;36961:4;36967:1;36970;36973;36947:13;:28::i;:::-;36930:45;;37004:5;-1:-1:-1;;;;;36994:15:0;:6;-1:-1:-1;;;;;36994:15:0;;36986:58;;;;;-1:-1:-1;;;36986:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;37057:14:0;;;;;;:7;:14;;;;;:26;;:24;:26::i;:::-;37094:31;37103:5;37110:7;37119:5;37094:8;:31::i;:::-;36317:816;;;;;;;;;;:::o;15310:151::-;-1:-1:-1;;;;;15426:18:0;;;15399:7;15426:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;15310:151::o;38431:70::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;6633:179::-;6691:7;6723:5;;;6747:6;;;;6739:46;;;;;-1:-1:-1;;;6739:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;671:106;759:10;671:106;:::o;20857:346::-;-1:-1:-1;;;;;20959:19:0;;20951:68;;;;-1:-1:-1;;;20951:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21038:21:0;;21030:68;;;;-1:-1:-1;;;21030:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21111:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;21163:32;;;;;;;;;;;;;;;;;20857:346;;;:::o;18469:539::-;-1:-1:-1;;;;;18575:20:0;;18567:70;;;;-1:-1:-1;;;18567:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18656:23:0;;18648:71;;;;-1:-1:-1;;;18648:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18732:47;18753:6;18761:9;18772:6;18732:20;:47::i;:::-;18812:71;18834:6;18812:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18812:17:0;;:9;:17;;;;;;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;18792:17:0;;;:9;:17;;;;;;;;;;;:91;;;;18917:20;;;;;;;:32;;18942:6;18917:24;:32::i;:::-;-1:-1:-1;;;;;18894:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;18965:35;;;;;;;18894:20;;18965:35;;;;;;;;;;;;;18469:539;;;:::o;9460:166::-;9546:7;9582:12;9574:6;;;;9566:29;;;;-1:-1:-1;;;9566:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9613:5:0;;;9460:166::o;44351:947::-;44457:6;-1:-1:-1;;;;;44447:16:0;:6;-1:-1:-1;;;;;44447:16:0;;;:30;;;;;44476:1;44467:6;:10;44447:30;44443:848;;;-1:-1:-1;;;;;44498:20:0;;;44494:385;;-1:-1:-1;;;;;44606:22:0;;44587:16;44606:22;;;:14;:22;;;;;;;;;44667:13;:60;;44726:1;44667:60;;;-1:-1:-1;;;;;44683:19:0;;;;;;:11;:19;;;;;;;;:34;-1:-1:-1;;44703:13:0;;44683:34;;;;;;;;44715:1;44683:40;;44667:60;44647:80;-1:-1:-1;44746:17:0;44766:21;44647:80;44780:6;44766:13;:21::i;:::-;44746:41;;44806:57;44823:6;44831:9;44842;44853;44806:16;:57::i;:::-;44494:385;;;;-1:-1:-1;;;;;44899:20:0;;;44895:385;;-1:-1:-1;;;;;45007:22:0;;44988:16;45007:22;;;:14;:22;;;;;;;;;45068:13;:60;;45127:1;45068:60;;;-1:-1:-1;;;;;45084:19:0;;;;;;:11;:19;;;;;;;;:34;-1:-1:-1;;45104:13:0;;45084:34;;;;;;;;45116:1;45084:40;;45068:60;45048:80;-1:-1:-1;45147:17:0;45167:21;45048:80;45181:6;45167:13;:21::i;:::-;45147:41;;45207:57;45224:6;45232:9;45243;45254;45207:16;:57::i;:::-;44895:385;;;;44351:947;;;:::o;33150:289::-;33211:7;33252:16;33235:13;:11;:13::i;:::-;:33;33231:201;;;-1:-1:-1;33292:24:0;33285:31;;33231:201;33356:64;33378:10;33390:12;33404:15;33356:21;:64::i;:::-;33349:71;;;;43922:421;-1:-1:-1;;;;;44025:20:0;;;43999:23;44025:20;;;:9;:20;;;;;;;;;;44083;44035:9;44083;:20::i;:::-;-1:-1:-1;;;;;44158:20:0;;;;;;;:9;:20;;;;;;:32;;-1:-1:-1;;;;;;44158:32:0;;;;;;;;;;44208:54;;44056:47;;-1:-1:-1;44158:32:0;44208:54;;;;;;44158:20;44208:54;44275:60;44290:15;44307:9;44318:16;44275:14;:60::i;:::-;43922:421;;;;:::o;29677:114::-;29769:14;;29677:114::o;34426:185::-;34503:7;34569:20;:18;:20::i;:::-;34591:10;34540:62;;;;;;-1:-1:-1;;;34540:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34530:73;;;;;;34523:80;;34426:185;;;:::o;26572:1432::-;26657:7;27582:66;27568:80;;;27560:127;;;;-1:-1:-1;;;27560:127:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27706:1;:7;;27711:2;27706:7;:18;;;;27717:1;:7;;27722:2;27717:7;27706:18;27698:65;;;;-1:-1:-1;;;27698:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27861:14;27878:24;27888:4;27894:1;27897;27900;27878:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;27878:24:0;;-1:-1:-1;;27878:24:0;;;-1:-1:-1;;;;;;;27921:20:0;;27913:57;;;;;-1:-1:-1;;;27913:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;27990:6;26572:1432;-1:-1:-1;;;;;26572:1432:0:o;29799:181::-;29953:19;;29971:1;29953:19;;;29799:181::o;7095:158::-;7153:7;7186:1;7181;:6;;7173:49;;;;;-1:-1:-1;;;7173:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7240:5:0;;;7095:158::o;45306:646::-;45428:18;45449:75;45456:12;45449:75;;;;;;;;;;;;;;;;;:6;:75::i;:::-;45428:96;;45556:1;45541:12;:16;;;:85;;;;-1:-1:-1;;;;;;45561:22:0;;;;;;:11;:22;;;;;;;;:65;-1:-1:-1;;45584:16:0;;45561:40;;;;;;;;;:50;:65;;;:50;;:65;45541:85;45537:339;;;-1:-1:-1;;;;;45643:22:0;;;;;;:11;:22;;;;;;;;:40;-1:-1:-1;;45666:16:0;;45643:40;;;;;;;;45681:1;45643:46;:57;;;45537:339;;;45772:33;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;45733:22:0;;-1:-1:-1;45733:22:0;;;:11;:22;;;;;:36;;;;;;;;;;:72;;;;;;;-1:-1:-1;;45733:72:0;;;;;;;;;;;;;45820:25;;;:14;:25;;;;;;:44;;45848:16;;;45820:44;;;;;;;;;;45537:339;45893:51;;;;;;;;;;;;;;-1:-1:-1;;;;;45893:51:0;;;;;;;;;;;45306:646;;;;;:::o;34619:326::-;34918:9;;34892:46::o;33447:337::-;33549:7;33629:8;33656:4;33679:7;33705:13;:11;:13::i;:::-;33745:4;33600:165;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33600:165:0;;;;;;;;;;;;;;;;;;;;;;;;33576:200;;;;;;33569:207;;33447:337;;;;;:::o;45960:161::-;46035:6;46073:12;46066:5;46062:9;;46054:32;;;;-1:-1:-1;;;46054:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46111:1:0;;45960:161;-1:-1:-1;;45960:161:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;:::o
Swarm Source
ipfs://bf51c85af8c2890ff4faed0a635d1ea78e59c1becfe2a148edadf5eba241f51f
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.