Source Code
Latest 25 from a total of 3,340 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Purchase | 285701447 | 403 days ago | IN | 0 ETH | 0.00000089 | ||||
| Purchase | 285693048 | 403 days ago | IN | 0 ETH | 0.00000057 | ||||
| Purchase | 285692490 | 403 days ago | IN | 0 ETH | 0.00000057 | ||||
| Purchase | 285692452 | 403 days ago | IN | 0 ETH | 0.00000057 | ||||
| Purchase | 285691535 | 403 days ago | IN | 0 ETH | 0.00000057 | ||||
| Purchase | 285691497 | 403 days ago | IN | 0 ETH | 0.00000057 | ||||
| Purchase | 285691157 | 403 days ago | IN | 0 ETH | 0.00000057 | ||||
| Purchase | 285691144 | 403 days ago | IN | 0 ETH | 0.00000057 | ||||
| Purchase | 285690138 | 403 days ago | IN | 0 ETH | 0.00000054 | ||||
| Purchase | 285690098 | 403 days ago | IN | 0 ETH | 0.00000054 | ||||
| Purchase | 285690062 | 403 days ago | IN | 0 ETH | 0.00000054 | ||||
| Whitelisted Purc... | 285686321 | 403 days ago | IN | 0 ETH | 0.00000203 | ||||
| Whitelisted Purc... | 285685829 | 403 days ago | IN | 0 ETH | 0.0000016 | ||||
| Whitelisted Purc... | 285685140 | 403 days ago | IN | 0 ETH | 0.0000016 | ||||
| Whitelisted Purc... | 285684852 | 403 days ago | IN | 0 ETH | 0.0000016 | ||||
| Whitelisted Purc... | 285683106 | 403 days ago | IN | 0 ETH | 0.0000017 | ||||
| Whitelisted Purc... | 285682898 | 403 days ago | IN | 0 ETH | 0.00000158 | ||||
| Whitelisted Purc... | 285682898 | 403 days ago | IN | 0 ETH | 0.00000158 | ||||
| Whitelisted Purc... | 285682897 | 403 days ago | IN | 0 ETH | 0.00000158 | ||||
| Whitelisted Purc... | 285682897 | 403 days ago | IN | 0 ETH | 0.00000158 | ||||
| Whitelisted Purc... | 285682896 | 403 days ago | IN | 0 ETH | 0.00000158 | ||||
| Whitelisted Purc... | 285682896 | 403 days ago | IN | 0 ETH | 0.00000158 | ||||
| Whitelisted Purc... | 285682896 | 403 days ago | IN | 0 ETH | 0.00000158 | ||||
| Whitelisted Purc... | 285682896 | 403 days ago | IN | 0 ETH | 0.00000158 | ||||
| Whitelisted Purc... | 285682895 | 403 days ago | IN | 0 ETH | 0.00000158 |
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x30941b23...8F34885c1 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
IFFixedSaleV12
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity)
/** *Submitted for verification at Arbiscan.io on 2024-04-29 */ // SPDX-License-Identifier: MIT // Sources flattened with hardhat v2.16.1 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/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.7.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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, 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; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev 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 (last updated v4.7.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 functionCall(target, data, "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"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(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) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(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) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason 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 { // 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.7.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 @openzeppelin/contracts/utils/cryptography/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // File @openzeppelin/contracts/security/[email protected] // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File contracts/IFFundable.sol pragma solidity 0.8.9; /** @title Abstract contract providing funder related functions in a sale @notice To be implemented by IFSale. */ abstract contract IFFundable is Ownable, ReentrancyGuard { using SafeERC20 for ERC20; // --- CONSTANTS // number of decimals of sale price uint64 constant SALE_PRICE_DECIMALS = 10**18; uint64 private constant ONE_HOUR = 3600; uint64 private constant ONE_YEAR = 31556926; uint64 private constant FIVE_YEARS = 157784630; uint64 private constant TEN_YEARS = 315742060; // --- OPERATOR ADDRESSES address public funder; // optional casher (settable by owner) address public casher; // --- SALE INFO // start timestamp when sale is active (inclusive) uint256 public immutable startTime; // end timestamp when sale is active (inclusive) uint256 public immutable endTime; // payment token ERC20 private immutable paymentToken; // sale token ERC20 private immutable saleToken; // withdraw/cash delay timestamp (inclusive) uint24 public withdrawDelay; // tracks whether user has already successfully withdrawn mapping(address => bool) public hasWithdrawn; // --- STATS // amount of sale token to sell uint256 public saleAmount; // tracks whether sale has been cashed bool public hasCashed; // total payment received for sale uint256 public totalPaymentReceived; // counter of unique withdrawers (doesn't count "cash"ing) uint32 public withdrawerCount; // --- CONSTRUCTOR constructor( ERC20 _paymentToken, ERC20 _saleToken, uint256 _startTime, uint256 _endTime, address _funder ) { // saleToken shouldn't be the same as paymentToken require(_saleToken != _paymentToken, 'saleToken = paymentToken'); // when salePrice != 0, paymentToken and maxTotalPayment shouldn't be 0 // sale token cannot be 0 require(address(_saleToken) != address(0), '0x0 saleToken'); // start timestamp must be in future require(block.timestamp < _startTime, 'start timestamp too early'); require(_startTime - ONE_YEAR < block.timestamp, 'start time has to be within 1 year'); // end timestamp must be after start timestamp require(_startTime < _endTime, 'end timestamp must be after start timestamp'); require(_endTime - TEN_YEARS < _startTime, 'end time has to be within 10 years'); require(_funder != address(0), '0x0 funder'); funder = _funder; paymentToken = _paymentToken; // can be 0 (for giveaway) saleToken = _saleToken; startTime = _startTime; endTime = _endTime; } // --- MODIFIERS // Throws if called by any account other than the funder. modifier onlyFunder() { require(_msgSender() == funder, 'caller not funder'); _; } // Throws if called by any account other than the casher. modifier onlyCasherOrOwner() { require( _msgSender() == casher || _msgSender() == owner(), 'caller not casher or owner' ); _; } // Throws if called during or after sale modifier onlyBeforeSale() { require(block.timestamp < startTime, 'sale already started'); _; } // Throws if called outside of claim period modifier onlyAfterSale { require(block.timestamp > endTime + withdrawDelay, "can't withdraw before claim is started"); _; } // Throws if called outside of sale period modifier onlyDuringSale { require(startTime <= block.timestamp, 'sale has not begun'); require(block.timestamp <= endTime, 'sale over'); _; } // --- EVENTS event SetCasher(address indexed casher); event SetFunder(address indexed funder); event Fund(address indexed sender, uint256 amount); event SetWithdrawDelay(uint24 indexed withdrawDelay); event Cash( address indexed sender, uint256 paymentTokenBalance, uint256 saleTokenBalance ); event EmergencyTokenRetrieve(address indexed sender, uint256 amount); event Withdraw(address indexed sender, uint256 amount); // --- SETTER // Function for owner to set an optional, separate casher function setCasher(address _casher) public onlyOwner { casher = _casher; emit SetCasher(_casher); } function setFunder(address _funder) public onlyOwner { require(_funder != address(0), '0x0 funder'); funder = _funder; emit SetFunder(_funder); } // Function for owner to set a withdraw delay function setWithdrawDelay(uint24 _withdrawDelay) virtual public onlyOwner onlyBeforeSale{ require(_withdrawDelay < FIVE_YEARS, "withdrawDelay has to be within 5 years"); withdrawDelay = _withdrawDelay; emit SetWithdrawDelay(_withdrawDelay); } // --- FUNDER'S LOGIC // Virtual function to be implemented by IFSale. // To calculate the amount of cashable tokens. function getSaleTokensSold() internal virtual returns (uint256 amount); // Function for funding sale with sale token (called by project team) function fund(uint256 amount) public onlyFunder onlyBeforeSale{ // transfer specified amount from funder to this contract saleToken.safeTransferFrom(_msgSender(), address(this), amount); // increase tracked sale amount saleAmount += amount; emit Fund(_msgSender(), amount); } // Function for funder to cash in payment token and unsold sale token function cash() external onlyCasherOrOwner onlyAfterSale { // prevent repeat cash require(!hasCashed, 'already cashed'); hasCashed = true; // get amount of payment token received uint256 paymentTokenBal = paymentToken.balanceOf(address(this)); // transfer all paymentToken.safeTransfer(_msgSender(), paymentTokenBal); // get amount of sale token on contract uint256 saleTokenBal = saleToken.balanceOf(address(this)); // get amount of sold token uint256 totalTokensSold = getSaleTokensSold(); // get principal (whichever is bigger between sale amount or amount on contract) uint256 principal = saleAmount < saleTokenBal ? saleTokenBal : saleAmount; // calculate amount of unsold sale token uint256 amountUnsold = principal - totalTokensSold; // transfer unsold saleToken.safeTransfer(_msgSender(), amountUnsold); emit Cash(_msgSender(), paymentTokenBal, amountUnsold); } function cashPaymentToken(uint256 amount) external onlyCasherOrOwner { // Get amount of payment token received uint256 paymentTokenBal = paymentToken.balanceOf(address(this)); // Ensure there's enough payment tokens to cash require(paymentTokenBal >= amount, "No enough payment tokens to cash"); // Transfer payment tokens to the caller paymentToken.safeTransfer(_msgSender(), amount); // Emit an event for this cashing emit Cash(_msgSender(), amount, 0); } // Retrieve tokens erroneously sent in to this address function emergencyTokenRetrieve(address token) public onlyOwner onlyAfterSale { // cannot be sale tokens require(token != address(saleToken)); uint256 tokenBalance = ERC20(token).balanceOf(address(this)); // transfer all ERC20(token).safeTransfer(_msgSender(), tokenBalance); emit EmergencyTokenRetrieve(_msgSender(), tokenBalance); } // Function for withdrawing purchased sale token after sale end function withdraw() virtual public nonReentrant {} function _withdraw(uint256 saleTokenOwed) virtual internal { require(saleTokenOwed != 0, 'no token to be withdrawn'); // increment withdrawer count if (!hasWithdrawn[_msgSender()]) { withdrawerCount += 1; // set withdrawn to true hasWithdrawn[_msgSender()] = true; } saleToken.safeTransfer(_msgSender(), saleTokenOwed); emit Withdraw(_msgSender(), saleTokenOwed); } } // File contracts/IFPurchasable.sol pragma solidity 0.8.9; /** @dev Abstract contract containing sale logics. To be implemented by IFSale. @notice Include virtual functions for regular and whitelisted purchase @notice Include virtual functions for whitelisted free token giveaway @notice Include sale state variables @notice Implemneted sale state variables changes on purchase and withdraw */ abstract contract IFPurchasable is Ownable, ReentrancyGuard { using SafeERC20 for ERC20; // --- SALE INFO // payment token ERC20 public immutable paymentToken; // price of the sale token uint256 public salePrice; // max for payment token amount uint256 public maxTotalPayment; // current purchased amount uint256 public saleTokenPurchased; // optional min for payment token amount uint256 public minTotalPayment; // optional max for total purchasable amount, default is 0 if there's no limit // assuming all users buy the token on the same price uint256 public maxTotalPurchasable; // halt purchase if true. default is false bool public isPurchaseHalted = false; // --- USER INFO // tracks amount purchased by each address // user address => purchased amount mapping(address => uint256) public paymentReceived; // track amount purchased with code by each address // user address => purchased amount with code mapping(address => uint256) public paymentReceivedWithCode; // track amount purchased with each code by each address // user address => code => purchased amount with each code mapping(address => mapping(string => uint256)) public paymentReceivedWithEachCode; // track promo code used by each address // user address => promo codes mapping(address => string[]) public promoCodesPerUser; // track if a promo code is used by an address // user address => promo code => bool mapping(address => mapping(string => bool)) public hasUsedCode; // -- PROMO CODE // all promo codes string[] public codes; // track if a promo code is stored mapping(string => bool) isCodeStored; // amount received per promo code mapping(string => uint256) public amountPerCode; // unique use per promo code mapping(string => uint256) public uniqueUsePerCode; // max amount of promo code per user uint256 public maxPromoCodePerUser = 50; // --- STAT // counter of unique purchasers uint32 public purchaserCount; event Purchase(address indexed sender, uint256 paymentAmount); event PurchaseWithCode(address indexed sender, uint256 paymentAmount, string code); event SetMinTotalPayment(uint256 indexed minTotalPayment); event SetMaxTotalPurchasable(uint256 indexed _maxTotalPurchasable); event SetIsPurchaseHalted(bool indexed isPurchaseHalted); constructor( ERC20 _paymentToken, uint256 _salePrice, uint256 _maxTotalPayment ) { require( _salePrice == 0 || (_salePrice != 0 && address(_paymentToken) != address(0) && _maxTotalPayment >= _salePrice), 'paymentToken or maxTotalPayment should not be 0 when salePrice is not 0' ); salePrice = _salePrice; // can be 0 (for giveaway) paymentToken = _paymentToken; // can be 0 (for giveaway) maxTotalPayment = _maxTotalPayment; // can be 0 (for giveaway) } function setIsPurchaseHalted(bool _isPurchaseHalted) public onlyOwner { isPurchaseHalted = _isPurchaseHalted; emit SetIsPurchaseHalted(_isPurchaseHalted); } // Function for owner to set an optional, minTotalPayment function setMinTotalPayment(uint256 _minTotalPayment) public onlyOwner { minTotalPayment = _minTotalPayment; emit SetMinTotalPayment(_minTotalPayment); } // Function for owner to set an optional, maxTotalPurchasable // The amount is calculated on salePrice. function setMaxTotalPurchasable(uint256 _maxTotalPurchasable) virtual public onlyOwner { maxTotalPurchasable = _maxTotalPurchasable * salePrice; require(maxTotalPurchasable >= saleTokenPurchased, 'Max purchasable should not be lower than the amount of token purchased'); emit SetMaxTotalPurchasable(_maxTotalPurchasable); } // --- PURCHASE function purchase(uint256 paymentAmount) virtual public {} // Internal function for making purchase // Used by public functions `purchase` function _purchase(uint256 paymentAmount, uint256 remaining) virtual internal nonReentrant { require(!isPurchaseHalted, 'purchase is halted'); require(salePrice > 0, 'sale price is zero'); // amount must be greater than minTotalPayment // by default, minTotalPayment is 0 unless otherwise set require(paymentAmount >= minTotalPayment, 'amount below min'); // payment must not exceed remaining require(paymentAmount <= remaining, 'exceeds max payment'); require(paymentAmount != 0, 'zero payment amount'); saleTokenPurchased += paymentAmount; require(maxTotalPurchasable == 0 || maxTotalPurchasable >= saleTokenPurchased, 'exceed max purchasable'); // if user is paying for the first time to this contract, increase counter if (paymentReceived[_msgSender()] == 0) purchaserCount += 1; // increase payment received amount paymentReceived[_msgSender()] += paymentAmount; // transfer specified amount from user to this contract paymentToken.safeTransferFrom(_msgSender(), address(this), paymentAmount); emit Purchase(_msgSender(), paymentAmount); } function _purchaseWithCode(uint256 paymentAmount, uint256 remaining, string memory code) virtual internal { // check if code is not empty require(bytes(code).length > 0, 'code is empty'); // check if code is too long require(bytes(code).length <= 64, 'code is too long'); // This needs to be before anything else // === _purchase(paymentAmount, remaining); // ==== if (!isCodeStored[code]) { isCodeStored[code] = true; codes.push(code); } if (!hasUsedCode[_msgSender()][code]) { require(promoCodesPerUser[_msgSender()].length < maxPromoCodePerUser, 'max promo code per user reached'); hasUsedCode[_msgSender()][code] = true; promoCodesPerUser[_msgSender()].push(code); } amountPerCode[code] += paymentAmount; if (paymentReceivedWithEachCode[_msgSender()][code] == 0) { uniqueUsePerCode[code] += 1; } paymentReceivedWithCode[_msgSender()] += paymentAmount; paymentReceivedWithEachCode[_msgSender()][code] += paymentAmount; emit PurchaseWithCode(_msgSender(), paymentAmount, code); } } // File @openzeppelin/contracts/utils/math/[email protected] // OpenZeppelin Contracts (last updated v4.7.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. It 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)`. // We also know that `k`, the position of the most significant bit, is such that `msb(a) = 2**k`. // This gives `2**k < a <= 2**(k+1)` → `2**(k/2) <= sqrt(a) < 2 ** (k/2+1)`. // Using an algorithm similar to the msb conmputation, we are able to compute `result = 2**(k/2)` which is a // good first aproximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1; uint256 x = a; if (x >> 128 > 0) { x >>= 128; result <<= 64; } if (x >> 64 > 0) { x >>= 64; result <<= 32; } if (x >> 32 > 0) { x >>= 32; result <<= 16; } if (x >> 16 > 0) { x >>= 16; result <<= 8; } if (x >> 8 > 0) { x >>= 8; result <<= 4; } if (x >> 4 > 0) { x >>= 4; result <<= 2; } if (x >> 2 > 0) { result <<= 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) { uint256 result = sqrt(a); if (rounding == Rounding.Up && result * result < a) { result += 1; } return result; } } // File contracts/IFVestable.sol pragma solidity 0.8.9; /** @dev Abstract contract containing vesting logics. To be implemented by IFSale. @notice There are two vesting types: linear and cliff @notice Can only set one vesting type @notice Once one of the vesting type is set, another one will be reset @notice Linear vesting unlocks tokens at a linear scale. Calculated by vesting end time @notice Cliff vesting unlocks tokens at a series of specific time. According to cliff period */ abstract contract IFVestable is Ownable { uint64 private constant TEN_YEARS = 315742060; // --- VESTING // Allow vesting to be editable after sale bool public vestingEditableOverride; // withdraw/cash delay timestamp (inclusive) uint256 public withdrawTime; // the most recent time the user claimed the saleToken mapping(address => uint256) public latestClaimTime; event OptInBuyback(address indexed user); // --- LINEAR VESTING // the time where the user can take all of the vested saleToken uint256 public linearVestingEndTime; event SetLinearVestingEndTime(uint256 indexed linearVestingEndTime); // --- CLIFF VESTING // store how many percentage of the token can be claimed at a certain cliff date struct Cliff { // the date when the percentage of token can be claimed uint256 claimTime; // the percentage token that can be claimed uint8 pct; } // cliff vesting time and percentage Cliff[] public cliffPeriod; event SetCliffVestingPeriod(Cliff[] indexed cliffPeriod); function getCliffPeriod() public view returns (Cliff[] memory){ return cliffPeriod; } // --- CONSTRUCTOR constructor( uint256 _withdrawTime ) { // withdrawal delay is by default 0 // it can be set using setWithdrawDelay withdrawTime = _withdrawTime; } // --- SETTER function setVestingEditable(bool _vestingEditableOverride) public onlyOwner { vestingEditableOverride = _vestingEditableOverride; } function setWithdrawTime(uint256 _withdrawTime) internal { withdrawTime = _withdrawTime; } // Function for owner to set a vesting end time function setLinearVestingEndTime(uint256 _linearVestingEndTime) virtual public onlyOwner { require(vestingEditableOverride || block.timestamp < withdrawTime, "Can't edit vesting after sale"); require(_linearVestingEndTime > withdrawTime, "vesting end time has to be after withdrawal start time"); require(withdrawTime > _linearVestingEndTime - TEN_YEARS, "vesting end time has to be within 10 years"); linearVestingEndTime = _linearVestingEndTime; // unset cliff vesting delete cliffPeriod; emit SetLinearVestingEndTime(_linearVestingEndTime); } function setCliffPeriod(uint256[] calldata claimTimes, uint8[] calldata pct) virtual public onlyOwner { require(vestingEditableOverride || block.timestamp < withdrawTime, "Can't edit vesting after sale"); require(claimTimes.length == pct.length, "dates and pct doesn't match"); require(claimTimes.length > 0, "input is empty"); require(claimTimes.length <= 100, "input length cannot exceed 100"); // clear the past entry delete cliffPeriod; uint256 maxDate; uint8 totalPct; require(claimTimes[0] > withdrawTime, "first claim time is before end time + withdraw delay"); for (uint i = 0; i < claimTimes.length; i++) { require(maxDate < claimTimes[i], "dates not in ascending order"); maxDate = claimTimes[i]; totalPct += pct[i]; cliffPeriod.push(Cliff(claimTimes[i], pct[i])); } require(withdrawTime > maxDate - TEN_YEARS, "vesting end time has to be within 10 years"); // pct is the release percentage, with a precision of 1%. Thus, the sum of all elements of pct must be equal to 100 require(totalPct == 100, "total input percentage doesn't equal to 100"); // unset linear vesting linearVestingEndTime = 0; } // --- VESTING LOGIC /** @notice Get the amount of token unlocked @param totalPurchased Total tokens purchased @param user Address of the user claiming the tokens */ function getUnlockedToken(uint256 totalPurchased, uint256 claimable, address user) virtual public view returns (uint256) { // linear vesting if (linearVestingEndTime > block.timestamp) { // current claimable = total purchased * (now - last claimed time) / (total vesting time) return totalPurchased * (block.timestamp - Math.max(latestClaimTime[user], withdrawTime)) / (linearVestingEndTime - withdrawTime); } // cliff vesting uint256 cliffPeriodLength = cliffPeriod.length; if (cliffPeriodLength != 0 && (cliffPeriod[cliffPeriodLength - 1].claimTime > block.timestamp)) { uint8 claimablePct; for (uint8 i; i < cliffPeriodLength; i++) { // if the cliff timestamp has been passed, add the claimable percentage if (cliffPeriod[i].claimTime > block.timestamp) { break; } if (latestClaimTime[user] < cliffPeriod[i].claimTime) { claimablePct += cliffPeriod[i].pct; } } // current claimable = total * claimiable percentage if (claimablePct == 0) { return 0; } return totalPurchased * claimablePct / 100; } // When vesting end, claim all of the remaining tokens. // Since all of the above calculations return a lower rounded number, // users will get a little bit less tokens. // Keeping track and returning the total remaining claimable makes sure the users will get the exact amount. return claimable; } } // File contracts/IFWhitelistable.sol pragma solidity 0.8.9; abstract contract IFWhitelistable is Ownable, ReentrancyGuard { // optional whitelist setter (settable by owner) address public whitelistSetter; // whitelist merkle root; if not set, then sale is open to everyone that has allocation bytes32 public whitelistRootHash; event SetWhitelistSetter(address indexed whitelistSetter); event SetWhitelist(bytes32 indexed whitelistRootHash); constructor() { whitelistSetter = _msgSender(); } // Throws if called by any account other than the whitelist setter. modifier onlyWhitelistSetterOrOwner() { require( _msgSender() == whitelistSetter || _msgSender() == owner(), 'caller not whitelist setter or owner' ); _; } // Function for owner to set an optional, separate whitelist setter function setWhitelistSetter(address _whitelistSetter) public onlyOwner { whitelistSetter = _whitelistSetter; emit SetWhitelistSetter(_whitelistSetter); } // Function for owner or whitelist setter to set a whitelist; if not set, then everyone allowed function setWhitelist(bytes32 _whitelistRootHash) public onlyWhitelistSetterOrOwner { whitelistRootHash = _whitelistRootHash; emit SetWhitelist(_whitelistRootHash); } // purchase function when there is a whitelist function whitelistedPurchase(uint256 paymentAmount, bytes32[] calldata merkleProof) virtual public {} function withdrawGiveaway(bytes32[] calldata merkleProof) virtual public nonReentrant {} } // File contracts/IFSale.sol pragma solidity 0.8.9; /** @dev Vanilla Sale contract compositing vesting, funding, and whitelisting functions. @notice Features: @notice 1. Funder related actions like fund and cash @notice 2. Regular and whitelisted purchase @notice 3. Whitelisted free token giveaway @notice 4. Vest tokens in linear or cliff mode */ contract IFSale is IFPurchasable, IFVestable, IFFundable, IFWhitelistable { // tracks amount of tokens owed to each address mapping(address => uint256) public claimable; // tracks amount of tokens purchased by each address mapping(address => uint256) public totalPurchased; // flag to enable integer sale bool public isIntegerSale = false; // --- CONSTRUCTOR constructor( address _funder, uint256 _salePrice, ERC20 _paymentToken, ERC20 _saleToken, uint256 _startTime, uint256 _endTime, uint256 _maxTotalPayment ) IFPurchasable(_paymentToken, _salePrice, _maxTotalPayment) IFVestable(_endTime) IFFundable(_paymentToken, _saleToken, _startTime, _endTime, _funder) IFWhitelistable() {} // --- SETTERS function setWithdrawDelay(uint24 _withdrawDelay) override public onlyOwner onlyBeforeSale { setWithdrawTime(endTime + _withdrawDelay); super.setWithdrawDelay(_withdrawDelay); } function setLinearVestingEndTime(uint256 _vestingEndTime) override public onlyOwner onlyBeforeSale { super.setLinearVestingEndTime(_vestingEndTime); } function setCliffPeriod(uint256[] calldata claimTimes, uint8[] calldata pct) override public onlyOwner onlyBeforeSale { super.setCliffPeriod(claimTimes, pct); } function setIsIntegerSale(bool _isIntegerSale) public onlyOwner onlyBeforeSale { isIntegerSale = _isIntegerSale; } // --- PURCHASE function purchase(uint256 paymentAmount) virtual override public onlyDuringSale { require(whitelistRootHash == 0, 'use whitelistedPurchase'); _purchase(paymentAmount, maxTotalPayment); } // purchase function when there is a whitelist function whitelistedPurchase( uint256 paymentAmount, bytes32[] calldata merkleProof ) virtual override public onlyDuringSale { // the user has to be whitelisted require(checkWhitelist(_msgSender(), merkleProof), 'proof invalid'); _purchase(paymentAmount, maxTotalPayment); } // --- WITHDRAW function withdraw() virtual override public onlyAfterSale nonReentrant { // must not be a zero price sale require(salePrice != 0, 'use withdrawGiveaway'); address user = _msgSender(); uint256 tokenOwed = getCurrentClaimableToken(user); require(tokenOwed != 0, 'no token to be withdrawn'); // send token and update states _withdraw(tokenOwed); } // Function to withdraw (redeem) tokens from a zero cost "giveaway" sale function withdrawGiveaway(bytes32[] calldata merkleProof) virtual override public onlyAfterSale nonReentrant { revert("Not implemented"); } // --- UPDATE SALE STATES function _purchase(uint256 paymentAmount, uint256 remaining) override internal { if (isIntegerSale) { require(isIntegerPayment(paymentAmount), 'can only buy integer amount of sale tokens'); } totalPaymentReceived += paymentAmount; super._purchase(paymentAmount, remaining); // Update vesting variables uint256 tokenPurchased = (paymentReceived[_msgSender()] * SALE_PRICE_DECIMALS) / salePrice; totalPurchased[_msgSender()] = tokenPurchased; claimable[_msgSender()] = tokenPurchased; } function _withdraw(uint256 tokenOwed) override internal { // Update vesting variables latestClaimTime[_msgSender()] = block.timestamp; claimable[_msgSender()] -= tokenOwed; super._withdraw(tokenOwed); } // --- HELPER FUNCTIONS function getSaleTokensSold() override internal view returns (uint256 amount) { // if salePrice is 0, no tokens will be sold if (salePrice == 0) { return 0; } else { return totalPaymentReceived * SALE_PRICE_DECIMALS / salePrice; } } // A helper function to get the amount of unlocked token by providing user's address function getCurrentClaimableToken (address user) public view returns (uint256) { return getUnlockedToken(totalPurchased[user], claimable[user], user); } // Returns true if user is on whitelist, otherwise false function checkWhitelist(address user, bytes32[] calldata merkleProof) virtual public view returns (bool) { // compute merkle leaf from input bytes32 leaf = keccak256(abi.encodePacked(user)); // verify merkle proof return MerkleProof.verify(merkleProof, whitelistRootHash, leaf); } // a function to check if the payment amount can buy integer amount of sale tokens, accounting the token decimals function isIntegerPayment(uint256 paymentAmount) public view returns (bool) { return ( // has to at least purchase 1 token paymentAmount % salePrice == 0 && paymentAmount >= salePrice ); } // Override the renounceOwnership function to disable it function renounceOwnership() public pure override{ revert("ownership renunciation is disabled"); } } // File contracts/IFFixedSaleV12.sol pragma solidity 0.8.9; /** @title Sale contract with user's allocation stored in merkle root @notice Regular purchase from IFSale is disabled here @notice Apart from merkle proof, users or the frontend has to supply allocation amount for verification @notice That means functions having `merkleProof` as param will also need `allocation` */ contract IFFixedSaleV12 is IFSale { // --- CONSTRUCTOR constructor( uint256 _salePrice, address _funder, ERC20 _paymentToken, ERC20 _saleToken, uint256 _startTime, uint256 _endTime, uint256 _maxTotalPayment ) IFSale( _funder, _salePrice, _paymentToken, _saleToken, _startTime, _endTime, _maxTotalPayment ) {} bool public isVestedGiveaway = false; // allocation when the user is not whitelisted // note that any user can get publicAllocation regardless of their whitelisted allocation uint256 public publicAllocation = 0; // --- SETTER FUNCTIONS function setVestedGiveaway(bool _isVestedGiveaway) public onlyOwner onlyBeforeSale { isVestedGiveaway = _isVestedGiveaway; } function setPublicAllocation(uint256 _publicAllocation) public onlyWhitelistSetterOrOwner onlyBeforeSale { publicAllocation = _publicAllocation; } function setMaxTotalPurchasable(uint256 _maxTotalPurchasable) override public onlyWhitelistSetterOrOwner { maxTotalPurchasable = _maxTotalPurchasable * salePrice; require(maxTotalPurchasable >= saleTokenPurchased, 'Max purchasable should not be lower than the amount of token purchased'); emit SetMaxTotalPurchasable(_maxTotalPurchasable); } // --- DISABLED FUNCTIONS function purchase(uint256) virtual override public { revert("Use whitelistedPurchase(uint256 paymentAmount, bytes32[] calldata merkleProof, uint256 allocation)"); } function whitelistedPurchase(uint256, bytes32[] calldata) override public pure { revert("Use whitelistedPurchase(uint256 paymentAmount, bytes32[] calldata merkleProof, uint256 allocation)"); } function withdrawGiveaway(bytes32[] calldata) override public pure { revert("Use withdrawGiveaway(bytes32[] calldata merkleProof, uint256 allocation)"); } // --- WHITELISTED ACTIONS // purchase with code function when there is a whitelist function whitelistedPurchaseWithCode( uint256 paymentAmount, bytes32[] calldata merkleProof, uint256 _allocation, string calldata code ) public onlyDuringSale { uint256 allocation = publicAllocation; if (merkleProof.length > 0) { // require that user is whitelisted by checking proof require(checkWhitelist(_msgSender(), merkleProof, _allocation), 'proof invalid'); if (_allocation > publicAllocation) { allocation = _allocation; } } uint256 remaining = getMaxPayment(_msgSender(), allocation); _purchaseWithCode(paymentAmount, remaining, code); } // purchase function when there is a whitelist function whitelistedPurchase( uint256 paymentAmount, bytes32[] calldata merkleProof, uint256 _allocation ) public onlyDuringSale { uint256 allocation = publicAllocation; if (merkleProof.length > 0) { // require that user is whitelisted by checking proof require(checkWhitelist(_msgSender(), merkleProof, _allocation), 'proof invalid'); if (_allocation > publicAllocation) { allocation = _allocation; } } uint256 remaining = getMaxPayment(_msgSender(), allocation); _purchase(paymentAmount, remaining); } // Function to withdraw (redeem) tokens from a zero cost "giveaway" sale function withdrawGiveaway(bytes32[] calldata merkleProof, uint256 allocation) external nonReentrant onlyAfterSale { address user = _msgSender(); // not vested giveaway require(isVestedGiveaway == false, 'use withdrawGiveawayVested'); // must be a zero price sale require(salePrice == 0, 'not a giveaway'); // can withdraw only once require(hasWithdrawn[user] == false, 'already withdrawn'); // require that user is whitelisted by checking proof require(checkWhitelist(user, merkleProof, allocation), 'proof invalid'); uint256 saleTokenOwed = 0; // initialize claimable before the first time of withdrawal if (!hasWithdrawn[user]) { // each participant in the zero cost "giveaway" gets a flat amount of sale token saleTokenOwed = allocation; claimable[user] = allocation; totalPurchased[user] = allocation; } // sale token owed must be greater than 0 require(saleTokenOwed != 0, 'withdraw giveaway amount 0'); // send token and update states _withdraw(saleTokenOwed); } // Function to withdraw (redeem) tokens from a zero cost "giveaway" sale function withdrawGiveawayVested(bytes32[] calldata merkleProof, uint256 allocation) external nonReentrant onlyAfterSale { address user = _msgSender(); // not vested giveaway require(isVestedGiveaway == true, 'use withdrawGiveaway'); // must be a zero price sale require(salePrice == 0, 'not a giveaway'); // require that user is whitelisted by checking proof require(checkWhitelist(user, merkleProof, allocation), 'proof invalid'); // initialize claimable before the first time of withdrawal if (!hasWithdrawn[user]) { claimable[user] = allocation; totalPurchased[user] = allocation; } uint256 tokenOwed = getCurrentClaimableToken(user); // sale token owed must be greater than 0 require(tokenOwed != 0, 'withdraw giveaway amount 0'); // send token and update states _withdraw(tokenOwed); } // --- HELPER FUNCTIONS // Returns true if user's allocation matches the one in merkle root, otherwise false function checkWhitelist(address user, bytes32[] calldata merkleProof, uint256 allocation) public view returns (bool) { // compute merkle leaf from input bytes32 leaf = keccak256(abi.encodePacked(user, allocation)); // verify merkle proof return MerkleProof.verify(merkleProof, whitelistRootHash, leaf); } // @dev get max payment from allocation function getMaxPayment(address user, uint256 allocation) public view returns (uint256) { // get the maximum total payment for a user uint256 max = (salePrice * allocation) / SALE_PRICE_DECIMALS; if (maxTotalPayment < max) { max = maxTotalPayment; } // calculate and return remaining return max - paymentReceived[user]; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"uint256","name":"_salePrice","type":"uint256"},{"internalType":"address","name":"_funder","type":"address"},{"internalType":"contract ERC20","name":"_paymentToken","type":"address"},{"internalType":"contract ERC20","name":"_saleToken","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"},{"internalType":"uint256","name":"_maxTotalPayment","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"paymentTokenBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"saleTokenBalance","type":"uint256"}],"name":"Cash","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyTokenRetrieve","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Fund","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"OptInBuyback","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"paymentAmount","type":"uint256"}],"name":"Purchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"paymentAmount","type":"uint256"},{"indexed":false,"internalType":"string","name":"code","type":"string"}],"name":"PurchaseWithCode","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"casher","type":"address"}],"name":"SetCasher","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"uint256","name":"claimTime","type":"uint256"},{"internalType":"uint8","name":"pct","type":"uint8"}],"indexed":true,"internalType":"struct IFVestable.Cliff[]","name":"cliffPeriod","type":"tuple[]"}],"name":"SetCliffVestingPeriod","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"funder","type":"address"}],"name":"SetFunder","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"isPurchaseHalted","type":"bool"}],"name":"SetIsPurchaseHalted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"linearVestingEndTime","type":"uint256"}],"name":"SetLinearVestingEndTime","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_maxTotalPurchasable","type":"uint256"}],"name":"SetMaxTotalPurchasable","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"minTotalPayment","type":"uint256"}],"name":"SetMinTotalPayment","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"whitelistRootHash","type":"bytes32"}],"name":"SetWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"whitelistSetter","type":"address"}],"name":"SetWhitelistSetter","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint24","name":"withdrawDelay","type":"uint24"}],"name":"SetWithdrawDelay","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"amountPerCode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"cashPaymentToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"casher","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"checkWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"allocation","type":"uint256"}],"name":"checkWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cliffPeriod","outputs":[{"internalType":"uint256","name":"claimTime","type":"uint256"},{"internalType":"uint8","name":"pct","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"codes","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"emergencyTokenRetrieve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"fund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"funder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCliffPeriod","outputs":[{"components":[{"internalType":"uint256","name":"claimTime","type":"uint256"},{"internalType":"uint8","name":"pct","type":"uint8"}],"internalType":"struct IFVestable.Cliff[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getCurrentClaimableToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"allocation","type":"uint256"}],"name":"getMaxPayment","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"totalPurchased","type":"uint256"},{"internalType":"uint256","name":"claimable","type":"uint256"},{"internalType":"address","name":"user","type":"address"}],"name":"getUnlockedToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasCashed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"string","name":"","type":"string"}],"name":"hasUsedCode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasWithdrawn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"paymentAmount","type":"uint256"}],"name":"isIntegerPayment","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isIntegerSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPurchaseHalted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isVestedGiveaway","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"latestClaimTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"linearVestingEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPromoCodePerUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTotalPayment","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTotalPurchasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minTotalPayment","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"paymentReceived","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"paymentReceivedWithCode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"string","name":"","type":"string"}],"name":"paymentReceivedWithEachCode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentToken","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"promoCodesPerUser","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"purchase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"purchaserCount","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"saleAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"salePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleTokenPurchased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_casher","type":"address"}],"name":"setCasher","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"claimTimes","type":"uint256[]"},{"internalType":"uint8[]","name":"pct","type":"uint8[]"}],"name":"setCliffPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_funder","type":"address"}],"name":"setFunder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isIntegerSale","type":"bool"}],"name":"setIsIntegerSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPurchaseHalted","type":"bool"}],"name":"setIsPurchaseHalted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_vestingEndTime","type":"uint256"}],"name":"setLinearVestingEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTotalPurchasable","type":"uint256"}],"name":"setMaxTotalPurchasable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minTotalPayment","type":"uint256"}],"name":"setMinTotalPayment","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicAllocation","type":"uint256"}],"name":"setPublicAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isVestedGiveaway","type":"bool"}],"name":"setVestedGiveaway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_vestingEditableOverride","type":"bool"}],"name":"setVestingEditable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_whitelistRootHash","type":"bytes32"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_whitelistSetter","type":"address"}],"name":"setWhitelistSetter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint24","name":"_withdrawDelay","type":"uint24"}],"name":"setWithdrawDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPaymentReceived","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalPurchased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"uniqueUsePerCode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingEditableOverride","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistRootHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSetter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"name":"whitelistedPurchase","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"paymentAmount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_allocation","type":"uint256"}],"name":"whitelistedPurchase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"paymentAmount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_allocation","type":"uint256"},{"internalType":"string","name":"code","type":"string"}],"name":"whitelistedPurchaseWithCode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawDelay","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"name":"withdrawGiveaway","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"allocation","type":"uint256"}],"name":"withdrawGiveaway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"allocation","type":"uint256"}],"name":"withdrawGiveawayVested","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawerCount","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"}]Contract Creation Code
0x6101206040526007805460ff1916905560326011556021805461ffff1916905560006022553480156200003157600080fd5b5060405162004a8938038062004a89833981016040819052620000549162000493565b85878686868686848484848a81858c886200006f336200042a565b60018055811580620000a1575081158015906200009457506001600160a01b03831615155b8015620000a15750818110155b620001295760405162461bcd60e51b815260206004820152604760248201527f7061796d656e74546f6b656e206f72206d6178546f74616c5061796d656e742060448201527f73686f756c64206e6f742062652030207768656e2073616c6550726963652069606482015266073206e6f7420360cc1b608482015260a4015b60405180910390fd5b6002919091556001600160a01b0391821660805260035560139190915584811690861614156200019c5760405162461bcd60e51b815260206004820152601860248201527f73616c65546f6b656e203d207061796d656e74546f6b656e0000000000000000604482015260640162000120565b6001600160a01b038416620001e45760405162461bcd60e51b815260206004820152600d60248201526c183c181039b0b632aa37b5b2b760991b604482015260640162000120565b824210620002355760405162461bcd60e51b815260206004820152601960248201527f73746172742074696d657374616d7020746f6f206561726c7900000000000000604482015260640162000120565b42620002466301e1853e856200050e565b10620002a05760405162461bcd60e51b815260206004820152602260248201527f73746172742074696d652068617320746f2062652077697468696e203120796560448201526130b960f11b606482015260840162000120565b818310620003055760405162461bcd60e51b815260206004820152602b60248201527f656e642074696d657374616d70206d757374206265206166746572207374617260448201526a0742074696d657374616d760ac1b606482015260840162000120565b82620003166312d1d76c846200050e565b10620003705760405162461bcd60e51b815260206004820152602260248201527f656e642074696d652068617320746f2062652077697468696e20313020796561604482015261727360f01b606482015260840162000120565b6001600160a01b038116620003b55760405162461bcd60e51b815260206004820152600a602482015269183c1810333ab73232b960b11b604482015260640162000120565b601780546001600160a01b0319166001600160a01b0392831617905593841660e052919092166101005260a09190915260c052620003f03390565b601d60046101000a8154816001600160a01b0302191690836001600160a01b03160217905550505050505050505050505050505062000534565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146200049057600080fd5b50565b600080600080600080600060e0888a031215620004af57600080fd5b875196506020880151620004c3816200047a565b6040890151909650620004d6816200047a565b6060890151909550620004e9816200047a565b809450506080880151925060a0880151915060c0880151905092959891949750929550565b6000828210156200052f57634e487b7160e01b600052601160045260246000fd5b500390565b60805160a05160c05160e05161010051614461620006286000396000818161131901528181611e6801528181611f2c01526124270152600081816117970152818161187001528181611da00152611e2101526000818161064901528181610baf01528181610f3e015281816111c4015281816112d5015281816114ff01528181611ced015281816120b5015261224c01526000818161085d015281816111600152818161149301528181611c11015281816120510152818161220101528181612317015281816123e5015281816124b1015281816126b701526130fe015260008181610622015261378601526144616000f3fe608060405234801561001057600080fd5b50600436106104495760003560e01c80636713cea211610241578063c1d25f831161013b578063d3b7adc9116100c3578063efef39a111610087578063efef39a114610a7e578063f2fde38b14610a8c578063f51f96dd14610a9f578063f67c008e14610aa8578063ff273b6614610abb57600080fd5b8063d3b7adc914610a1f578063d6ca214d14610a3f578063d98b1f9d14610a4f578063da943cee14610a58578063e86613a714610a6b57600080fd5b8063cc89629b1161010a578063cc89629b14610997578063cddfb5fd146109aa578063d03df6dd146109bd578063d1a12d6a146109d7578063d390bcc7146109e057600080fd5b8063c1d25f831461094b578063c32d55641461095e578063c9a2ff4314610971578063ca1d209d1461098457600080fd5b80638aae995a116101c9578063a54bd56d1161018d578063a54bd56d14610900578063a590c84e14610913578063a89e852214610926578063aacc557a1461092f578063bae235bc1461094257600080fd5b80638aae995a146108ac5780638da5cb5b146108b5578063928e5f8b146108c6578063961be391146108d8578063a47ff99b146108e057600080fd5b806376ebbbc21161021057806376ebbbc21461084457806378e97925146108585780637dd209461461087f57806384b587d11461088c57806389910cac1461089957600080fd5b80636713cea2146107e4578063715018a6146107ed57806374f54826146107f557806376078dbe1461083157600080fd5b80633197cbb61161035257806348faade4116102da5780635559638f1161029e5780635559638f146107445780635b2ee404146107645780635dbb4dbd146107845780635e2c19db146107ae578063642d0f70146107d157600080fd5b806348faade4146106ed578063497aef28146106f65780634ae0f5431461071557806352811c4b1461071e578063547a5eee1461073157600080fd5b80633efa1b68116103215780633efa1b681461069b578063402914f5146106a8578063440bc7f3146106c857806345cb3dde146106db5780634797a548146106e457600080fd5b80633197cbb6146106445780633763326a1461066b5780633ccfd60b1461067e5780633d9205c11461068657600080fd5b80631d6a4581116103d55780632316448c116103a45780632316448c146105d1578063252b99c5146105e457806326c65482146105f75780632feb25f61461060a5780633013ce291461061d57600080fd5b80631d6a4581146105775780631e937107146105805780631fa3f435146105935780632270e82d146105be57600080fd5b80630acc8cd11161041c5780630acc8cd1146104d057806310002d2a146104e35780631101eaaf1461051c5780631637cde0146105415780631649a8a91461055457600080fd5b806301fc191c1461044e578063022a8b1a146104635780630288a39c14610476578063041ae880146104a5575b600080fd5b61046161045c366004613b2e565b610ace565b005b610461610471366004613b79565b610b72565b60185461048c90600160a01b900462ffffff1681565b60405162ffffff90911681526020015b60405180910390f35b6017546104b8906001600160a01b031681565b6040516001600160a01b03909116815260200161049c565b6104616104de366004613be0565b610d65565b61050e6104f1366004613c9d565b8051602081830181018051600f8252928201919093012091525481565b60405190815260200161049c565b60125461052c9063ffffffff1681565b60405163ffffffff909116815260200161049c565b61046161054f366004613cd1565b610dfa565b610567610562366004613d12565b610e79565b604051901515815260200161049c565b61050e60045481565b61046161058e366004613b79565b610f01565b61050e6105a1366004613c9d565b805160208183018101805160108252928201919093012091525481565b6104616105cc366004613d59565b611136565b6104616105df366004613d76565b61115d565b6104616105f2366004613dc8565b61127d565b610461610605366004613be0565b6112b8565b61050e610618366004613de1565b611420565b6104b87f000000000000000000000000000000000000000000000000000000000000000081565b61050e7f000000000000000000000000000000000000000000000000000000000000000081565b610461610679366004613d59565b611489565b6104616114ea565b61068e611616565b60405161049c9190613e0b565b6007546105679060ff1681565b61050e6106b6366004613be0565b601f6020526000908152604090205481565b6104616106d6366004613dc8565b611685565b61050e60135481565b61050e60055481565b61050e601c5481565b61050e610704366004613be0565b602080526000908152604090205481565b61050e60225481565b61046161072c366004613dc8565b611707565b61046161073f366004613be0565b6118d7565b61050e610752366004613be0565b60086020526000908152604090205481565b61050e610772366004613be0565b60146020526000908152604090205481565b610797610792366004613dc8565b611936565b6040805192835260ff90911660208301520161049c565b6105676107bc366004613be0565b60196020526000908152604090205460ff1681565b61050e6107df366004613e5d565b611967565b61050e60065481565b610461611b26565b61050e610803366004613e92565b600a602090815260009283526040909220815180830184018051928152908401929093019190912091525481565b61056761083f366004613edf565b611b79565b60125461056790600160201b900460ff1681565b61050e7f000000000000000000000000000000000000000000000000000000000000000081565b601b546105679060ff1681565b6021546105679060ff1681565b6104616108a7366004613f19565b611c07565b61050e601a5481565b6000546001600160a01b03166104b8565b60215461056790610100900460ff1681565b610461611c60565b6108f36108ee366004613de1565b611f95565b60405161049c9190613fdc565b61046161090e366004613fef565b61204e565b610461610921366004613be0565b6121a5565b61050e60035481565b61046161093d36600461409d565b6121f7565b61050e60115481565b610461610959366004613d59565b612281565b61046161096c366004613dc8565b6122c6565b61050e61097f366004613be0565b612359565b610461610992366004613dc8565b61238c565b6018546104b8906001600160a01b031681565b6104616109b8366004613dc8565b6124a7565b601d546104b890600160201b90046001600160a01b031681565b61050e601e5481565b6105676109ee366004613e92565b600c602090815260009283526040909220815180830184018051928152908401929093019190912091525460ff1681565b61050e610a2d366004613be0565b60096020526000908152604090205481565b601d5461052c9063ffffffff1681565b61050e60155481565b610461610a66366004613dc8565b6124f7565b6108f3610a79366004613dc8565b61260c565b61046161045c366004613dc8565b610461610a9a366004613be0565b612637565b61050e60025481565b610461610ab6366004613d59565b6126ad565b610567610ac9366004613dc8565b612707565b60405162461bcd60e51b815260206004820152606260248201527f5573652077686974656c697374656450757263686173652875696e743235362060448201527f7061796d656e74416d6f756e742c20627974657333325b5d2063616c6c64617460648201527f61206d65726b6c6550726f6f662c2075696e7432353620616c6c6f636174696f6084820152616e2960f01b60a482015260c4015b60405180910390fd5b60026001541415610b955760405162461bcd60e51b8152600401610b69906140c2565b6002600155601854610bd390600160a01b900462ffffff167f000000000000000000000000000000000000000000000000000000000000000061410f565b4211610bf15760405162461bcd60e51b8152600401610b6990614127565b6021543390600161010090910460ff16151514610c475760405162461bcd60e51b8152602060048201526014602482015273757365207769746864726177476976656177617960601b6044820152606401610b69565b60025415610c885760405162461bcd60e51b815260206004820152600e60248201526d6e6f74206120676976656177617960901b6044820152606401610b69565b610c9481858585611b79565b610cb05760405162461bcd60e51b8152600401610b699061416d565b6001600160a01b03811660009081526019602052604090205460ff16610cf7576001600160a01b0381166000908152601f6020908152604080832085905590805290208290555b6000610d0282612359565b905080610d515760405162461bcd60e51b815260206004820152601a60248201527f776974686472617720676976656177617920616d6f756e7420300000000000006044820152606401610b69565b610d5a81612728565b505060018055505050565b610d6d612763565b6001600160a01b038116610db05760405162461bcd60e51b815260206004820152600a602482015269183c1810333ab73232b960b11b6044820152606401610b69565b601780546001600160a01b0319166001600160a01b0383169081179091556040517f73e0366d7ceb5a21fb27f8b2aa2720e2a9dee755bd85bfb5dbccf2830753b02290600090a250565b60405162461bcd60e51b815260206004820152604860248201527f557365207769746864726177476976656177617928627974657333325b5d206360448201527f616c6c64617461206d65726b6c6550726f6f662c2075696e7432353620616c6c6064820152676f636174696f6e2960c01b608482015260a401610b69565b6040516bffffffffffffffffffffffff19606085901b1660208201526000908190603401604051602081830303815290604052805190602001209050610ef684848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601e5491508490506127bf565b9150505b9392505050565b60026001541415610f245760405162461bcd60e51b8152600401610b69906140c2565b6002600155601854610f6290600160a01b900462ffffff167f000000000000000000000000000000000000000000000000000000000000000061410f565b4211610f805760405162461bcd60e51b8152600401610b6990614127565b6021543390610100900460ff1615610fda5760405162461bcd60e51b815260206004820152601a60248201527f75736520776974686472617747697665617761795665737465640000000000006044820152606401610b69565b6002541561101b5760405162461bcd60e51b815260206004820152600e60248201526d6e6f74206120676976656177617960901b6044820152606401610b69565b6001600160a01b03811660009081526019602052604090205460ff16156110785760405162461bcd60e51b815260206004820152601160248201527030b63932b0b23c903bb4ba34323930bbb760791b6044820152606401610b69565b61108481858585611b79565b6110a05760405162461bcd60e51b8152600401610b699061416d565b6001600160a01b03811660009081526019602052604081205460ff166110e957506001600160a01b0381166000908152601f602090815260408083208590559080529020829055815b80610d515760405162461bcd60e51b815260206004820152601a60248201527f776974686472617720676976656177617920616d6f756e7420300000000000006044820152606401610b69565b61113e612763565b60128054911515600160201b0264ff0000000019909216919091179055565b427f000000000000000000000000000000000000000000000000000000000000000011156111c25760405162461bcd60e51b815260206004820152601260248201527139b0b632903430b9903737ba103132b3bab760711b6044820152606401610b69565b7f000000000000000000000000000000000000000000000000000000000000000042111561121e5760405162461bcd60e51b815260206004820152600960248201526839b0b6329037bb32b960b91b6044820152606401610b69565b602254821561125c5761123333858585611b79565b61124f5760405162461bcd60e51b8152600401610b699061416d565b60225482111561125c5750805b6000611269335b83611420565b905061127586826127d5565b505050505050565b611285612763565b600581905560405181907f4d893dbff365afe590ba8bf0f5d258598f5e63fde5b989dcd4902cf89d403c2f90600090a250565b6112c0612763565b6018546112f990600160a01b900462ffffff167f000000000000000000000000000000000000000000000000000000000000000061410f565b42116113175760405162461bcd60e51b8152600401610b6990614127565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b0316141561135657600080fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561139857600080fd5b505afa1580156113ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d09190614194565b90506113e66001600160a01b03831633836128bd565b60405181815233907fb1d34d1c064a5cb36c65797ef779e448eefccf2b978edbcfd206cc687c8cea5a906020015b60405180910390a25050565b600080670de0b6b3a76400006001600160401b03168360025461144391906141ad565b61144d91906141e2565b905080600354101561145e57506003545b6001600160a01b03841660009081526008602052604090205461148190826141f6565b949350505050565b611491612763565b7f000000000000000000000000000000000000000000000000000000000000000042106114d05760405162461bcd60e51b8152600401610b699061420d565b602180549115156101000261ff0019909216919091179055565b60185461152390600160a01b900462ffffff167f000000000000000000000000000000000000000000000000000000000000000061410f565b42116115415760405162461bcd60e51b8152600401610b6990614127565b600260015414156115645760405162461bcd60e51b8152600401610b69906140c2565b60026001819055546115af5760405162461bcd60e51b8152602060048201526014602482015273757365207769746864726177476976656177617960601b6044820152606401610b69565b3360006115bb82612359565b9050806116055760405162461bcd60e51b81526020600482015260186024820152773737903a37b5b2b7103a37903132903bb4ba34323930bbb760411b6044820152606401610b69565b61160e81612728565b505060018055565b60606016805480602002602001604051908101604052809291908181526020016000905b8282101561167c57600084815260209081902060408051808201909152600285029091018054825260019081015460ff1682840152908352909201910161163a565b50505050905090565b601d54600160201b90046001600160a01b0316336001600160a01b031614806116b857506000546001600160a01b031633145b6116d45760405162461bcd60e51b8152600401610b699061423b565b601e81905560405181907fc504a95022b9d01b3024e95b0a85c200d0c538f417160776512b95fcbf7b2daa90600090a250565b6018546001600160a01b0316336001600160a01b0316148061173357506000546001600160a01b031633145b61177f5760405162461bcd60e51b815260206004820152601a60248201527f63616c6c6572206e6f7420636173686572206f72206f776e65720000000000006044820152606401610b69565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156117e157600080fd5b505afa1580156117f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118199190614194565b90508181101561186b5760405162461bcd60e51b815260206004820181905260248201527f4e6f20656e6f756768207061796d656e7420746f6b656e7320746f20636173686044820152606401610b69565b61189f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633846128bd565b604080518381526000602082015233917f83205c70ca31ffcb57664adecfd9894647d48665aefae1fb38bbc7ca4c1b86fb9101611414565b6118df612763565b601d8054640100000000600160c01b031916600160201b6001600160a01b038416908102919091179091556040517f7aba5fc71e3607d34203924738fbacc00b5782879615f86db108794b4bdcc95b90600090a250565b6016818154811061194657600080fd5b60009182526020909120600290910201805460019091015490915060ff1682565b60004260155411156119ce5760135460155461198391906141f6565b6001600160a01b0383166000908152601460205260409020546013546119a99190612925565b6119b390426141f6565b6119bd90866141ad565b6119c791906141e2565b9050610efa565b6016548015801590611a0d57504260166119e96001846141f6565b815481106119f9576119f961427f565b906000526020600020906002020160000154115b15611b1d576000805b828160ff161015611ae7574260168260ff1681548110611a3857611a3861427f565b9060005260206000209060020201600001541115611a5557611ae7565b60168160ff1681548110611a6b57611a6b61427f565b600091825260208083206002909202909101546001600160a01b038816835260149091526040909120541015611ad55760168160ff1681548110611ab157611ab161427f565b6000918252602090912060016002909202010154611ad29060ff1683614295565b91505b80611adf816142ba565b915050611a16565b5060ff8116611afb57600092505050610efa565b6064611b0a60ff8316886141ad565b611b1491906141e2565b92505050610efa565b50919392505050565b60405162461bcd60e51b815260206004820152602260248201527f6f776e6572736869702072656e756e63696174696f6e2069732064697361626c604482015261195960f21b6064820152608401610b69565b6040516bffffffffffffffffffffffff19606086901b166020820152603481018290526000908190605401604051602081830303815290604052805190602001209050611bfd85858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601e5491508490506127bf565b9695505050505050565b611c0f612763565b7f00000000000000000000000000000000000000000000000000000000000000004210611c4e5760405162461bcd60e51b8152600401610b699061420d565b611c5a8484848461293c565b50505050565b6018546001600160a01b0316336001600160a01b03161480611c8c57506000546001600160a01b031633145b611cd85760405162461bcd60e51b815260206004820152601a60248201527f63616c6c6572206e6f7420636173686572206f72206f776e65720000000000006044820152606401610b69565b601854611d1190600160a01b900462ffffff167f000000000000000000000000000000000000000000000000000000000000000061410f565b4211611d2f5760405162461bcd60e51b8152600401610b6990614127565b601b5460ff1615611d735760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e4818d85cda195960921b6044820152606401610b69565b601b805460ff191660011790556040516370a0823160e01b81523060048201526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b158015611de257600080fd5b505afa158015611df6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e1a9190614194565b9050611e507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633836128bd565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b158015611eb257600080fd5b505afa158015611ec6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eea9190614194565b90506000611ef6612d23565b9050600082601a5410611f0b57601a54611f0d565b825b90506000611f1b83836141f6565b9050611f53335b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690836128bd565b604080518681526020810183905233917f83205c70ca31ffcb57664adecfd9894647d48665aefae1fb38bbc7ca4c1b86fb910160405180910390a25050505050565b600b6020528160005260406000208181548110611fb157600080fd5b90600052602060002001600091509150508054611fcd906142da565b80601f0160208091040260200160405190810160405280929190818152602001828054611ff9906142da565b80156120465780601f1061201b57610100808354040283529160200191612046565b820191906000526020600020905b81548152906001019060200180831161202957829003601f168201915b505050505081565b427f000000000000000000000000000000000000000000000000000000000000000011156120b35760405162461bcd60e51b815260206004820152601260248201527139b0b632903430b9903737ba103132b3bab760711b6044820152606401610b69565b7f000000000000000000000000000000000000000000000000000000000000000042111561210f5760405162461bcd60e51b815260206004820152600960248201526839b0b6329037bb32b960b91b6044820152606401610b69565b602254841561214d5761212433878787611b79565b6121405760405162461bcd60e51b8152600401610b699061416d565b60225484111561214d5750825b600061215833611263565b905061219b888286868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612d5e92505050565b5050505050505050565b6121ad612763565b601880546001600160a01b0319166001600160a01b0383169081179091556040517fde112653552cba8a4f696cac12b4478ce2b9b8c0e04429455a2052ec7c0412ce90600090a250565b6121ff612763565b7f0000000000000000000000000000000000000000000000000000000000000000421061223e5760405162461bcd60e51b8152600401610b699061420d565b61227561227062ffffff83167f000000000000000000000000000000000000000000000000000000000000000061410f565b601355565b61227e816130f4565b50565b612289612763565b6007805460ff19168215159081179091556040517fae0c36aff5cb672be07be42475485a2ac49daf228c55f2e749ff5075778a701890600090a250565b601d54600160201b90046001600160a01b0316336001600160a01b031614806122f957506000546001600160a01b031633145b6123155760405162461bcd60e51b8152600401610b699061423b565b7f000000000000000000000000000000000000000000000000000000000000000042106123545760405162461bcd60e51b8152600401610b699061420d565b602255565b6001600160a01b03811660009081526020808052604080832054601f909252822054612386919084611967565b92915050565b6017546001600160a01b0316336001600160a01b0316146123e35760405162461bcd60e51b815260206004820152601160248201527031b0b63632b9103737ba10333ab73232b960791b6044820152606401610b69565b7f000000000000000000000000000000000000000000000000000000000000000042106124225760405162461bcd60e51b8152600401610b699061420d565b6124577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163330846131f0565b80601a6000828254612469919061410f565b909155505060405181815233907fda8220a878ff7a89474ccffdaa31ea1ed1ffbb0207d5051afccc4fbaf81f9bcd906020015b60405180910390a250565b6124af612763565b7f000000000000000000000000000000000000000000000000000000000000000042106124ee5760405162461bcd60e51b8152600401610b699061420d565b61227e81613228565b601d54600160201b90046001600160a01b0316336001600160a01b0316148061252a57506000546001600160a01b031633145b6125465760405162461bcd60e51b8152600401610b699061423b565b60025461255390826141ad565b600681905560045411156125de5760405162461bcd60e51b815260206004820152604660248201527f4d6178207075726368617361626c652073686f756c64206e6f74206265206c6f60448201527f776572207468616e2074686520616d6f756e74206f6620746f6b656e2070757260648201526518da185cd95960d21b608482015260a401610b69565b60405181907f851466103668359b383470efccd1760dc8caf09bc6d5a74acc7d78ac751c21e990600090a250565b600d818154811061261c57600080fd5b906000526020600020016000915090508054611fcd906142da565b61263f612763565b6001600160a01b0381166126a45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b69565b61227e81613372565b6126b5612763565b7f000000000000000000000000000000000000000000000000000000000000000042106126f45760405162461bcd60e51b8152600401610b699061420d565b6021805460ff1916911515919091179055565b6000600254826127179190614315565b158015612386575050600254111590565b336000908152601460209081526040808320429055601f909152812080548392906127549084906141f6565b9091555061227e9050816133c2565b6000546001600160a01b031633146127bd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b69565b565b6000826127cc85846134cc565b14949350505050565b60215460ff1615612848576127e982612707565b6128485760405162461bcd60e51b815260206004820152602a60248201527f63616e206f6e6c792062757920696e746567657220616d6f756e74206f662073604482015269616c6520746f6b656e7360b01b6064820152608401610b69565b81601c600082825461285a919061410f565b9091555061286a90508282613519565b6002543360009081526008602052604081205490919061289390670de0b6b3a7640000906141ad565b61289d91906141e2565b33600090815260208080526040808320849055601f909152902055505050565b6040516001600160a01b03831660248201526044810182905261292090849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526137f3565b505050565b6000818310156129355781610efa565b5090919050565b612944612763565b601254600160201b900460ff168061295d575060135442105b6129a95760405162461bcd60e51b815260206004820152601d60248201527f43616e277420656469742076657374696e672061667465722073616c650000006044820152606401610b69565b8281146129f85760405162461bcd60e51b815260206004820152601b60248201527f646174657320616e642070637420646f65736e2774206d6174636800000000006044820152606401610b69565b82612a365760405162461bcd60e51b815260206004820152600e60248201526d696e70757420697320656d70747960901b6044820152606401610b69565b6064831115612a875760405162461bcd60e51b815260206004820152601e60248201527f696e707574206c656e6774682063616e6e6f74206578636565642031303000006044820152606401610b69565b612a9360166000613a08565b60008060135486866000818110612aac57612aac61427f565b9050602002013511612b1d5760405162461bcd60e51b815260206004820152603460248201527f666972737420636c61696d2074696d65206973206265666f726520656e642074604482015273696d65202b2077697468647261772064656c617960601b6064820152608401610b69565b60005b85811015612c8057868682818110612b3a57612b3a61427f565b905060200201358310612b8f5760405162461bcd60e51b815260206004820152601c60248201527f6461746573206e6f7420696e20617363656e64696e67206f72646572000000006044820152606401610b69565b868682818110612ba157612ba161427f565b905060200201359250848482818110612bbc57612bbc61427f565b9050602002016020810190612bd19190614329565b612bdb9083614295565b915060166040518060400160405280898985818110612bfc57612bfc61427f565b905060200201358152602001878785818110612c1a57612c1a61427f565b9050602002016020810190612c2f9190614329565b60ff9081169091528254600181810185556000948552602094859020845160029093020191825593909201519190920180549190921660ff1990911617905580612c788161434c565b915050612b20565b50612c8f6312d1d76c836141f6565b60135411612caf5760405162461bcd60e51b8152600401610b6990614367565b8060ff16606414612d165760405162461bcd60e51b815260206004820152602b60248201527f746f74616c20696e7075742070657263656e7461676520646f65736e2774206560448201526a07175616c20746f203130360ac1b6064820152608401610b69565b5050600060155550505050565b600060025460001415612d365750600090565b600254601c54612d4f90670de0b6b3a7640000906141ad565b612d5991906141e2565b905090565b6000815111612d9f5760405162461bcd60e51b815260206004820152600d60248201526c636f646520697320656d70747960981b6044820152606401610b69565b604081511115612de45760405162461bcd60e51b815260206004820152601060248201526f636f646520697320746f6f206c6f6e6760801b6044820152606401610b69565b612dee83836127d5565b600e81604051612dfe91906143b1565b9081526040519081900360200190205460ff16612e8c576001600e82604051612e2791906143b1565b90815260405160209181900382019020805460ff191692151592909217909155600d80546001810182556000919091528251612e8a927fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb590920191840190613a29565b505b336000908152600c6020526040908190209051612eaa9083906143b1565b9081526040519081900360200190205460ff16612faf57601154336000908152600b602052604090205410612f215760405162461bcd60e51b815260206004820152601f60248201527f6d61782070726f6d6f20636f64652070657220757365722072656163686564006044820152606401610b69565b336000908152600c602052604090819020905160019190612f439084906143b1565b908152604051908190036020019020805491151560ff19909216919091179055600b6000612f6e3390565b6001600160a01b0316815260208082019290925260400160009081208054600181018255908252908290208351612fad93919092019190840190613a29565b505b82600f82604051612fc091906143b1565b90815260200160405180910390206000828254612fdd919061410f565b9091555050336000908152600a60205260409081902090516130009083906143b1565b9081526020016040518091039020546000141561304c57600160108260405161302991906143b1565b90815260200160405180910390206000828254613046919061410f565b90915550505b336000908152600960205260408120805485929061306b90849061410f565b9091555050336000908152600a60205260409081902090518491906130919084906143b1565b908152602001604051809103902060008282546130ae919061410f565b909155505060405133907fd4855e7b21a64eb863713fc0e6b4e68770d741fd2bcedbb31ec938db7c31337c906130e790869085906143cd565b60405180910390a2505050565b6130fc612763565b7f0000000000000000000000000000000000000000000000000000000000000000421061313b5760405162461bcd60e51b8152600401610b699061420d565b6309679a3662ffffff8216106131a25760405162461bcd60e51b815260206004820152602660248201527f776974686472617744656c61792068617320746f2062652077697468696e203560448201526520796561727360d01b6064820152608401610b69565b6018805462ffffff60a01b1916600160a01b62ffffff8416908102919091179091556040517f0dac7b34fe917a51c24c51f379615699f5c23ce9168eaed469bc161c9002860890600090a250565b6040516001600160a01b0380851660248301528316604482015260648101829052611c5a9085906323b872dd60e01b906084016128e9565b613230612763565b601254600160201b900460ff1680613249575060135442105b6132955760405162461bcd60e51b815260206004820152601d60248201527f43616e277420656469742076657374696e672061667465722073616c650000006044820152606401610b69565b60135481116133055760405162461bcd60e51b815260206004820152603660248201527f76657374696e6720656e642074696d652068617320746f206265206166746572604482015275207769746864726177616c2073746172742074696d6560501b6064820152608401610b69565b6133136312d1d76c826141f6565b601354116133335760405162461bcd60e51b8152600401610b6990614367565b601581905561334460166000613a08565b60405181907f83d190eb78c1206ea1abb0222d475a5f70b7f63bcd534ab65e9404b39016c7a490600090a250565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8061340a5760405162461bcd60e51b81526020600482015260186024820152773737903a37b5b2b7103a37903132903bb4ba34323930bbb760411b6044820152606401610b69565b3360009081526019602052604090205460ff1661349157601d80546001919060009061343d90849063ffffffff166143e6565b92506101000a81548163ffffffff021916908363ffffffff1602179055506001601960006134683390565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790555b61349a33611f22565b60405181815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200161249c565b600081815b8451811015613511576134fd828683815181106134f0576134f061427f565b60200260200101516138c5565b9150806135098161434c565b9150506134d1565b509392505050565b6002600154141561353c5760405162461bcd60e51b8152600401610b69906140c2565b600260015560075460ff16156135895760405162461bcd60e51b81526020600482015260126024820152711c1d5c98da185cd9481a5cc81a185b1d195960721b6044820152606401610b69565b6000600254116135d05760405162461bcd60e51b815260206004820152601260248201527173616c65207072696365206973207a65726f60701b6044820152606401610b69565b6005548210156136155760405162461bcd60e51b815260206004820152601060248201526f30b6b7bab73a103132b637bb9036b4b760811b6044820152606401610b69565b8082111561365b5760405162461bcd60e51b8152602060048201526013602482015272195e18d959591cc81b585e081c185e5b595b9d606a1b6044820152606401610b69565b8161369e5760405162461bcd60e51b81526020600482015260136024820152721e995c9bc81c185e5b595b9d08185b5bdd5b9d606a1b6044820152606401610b69565b81600460008282546136b0919061410f565b909155505060065415806136c8575060045460065410155b61370d5760405162461bcd60e51b8152602060048201526016602482015275657863656564206d6178207075726368617361626c6560501b6044820152606401610b69565b3360009081526008602052604090205461375c57601280546001919060009061373d90849063ffffffff166143e6565b92506101000a81548163ffffffff021916908363ffffffff1602179055505b336000908152600860205260408120805484929061377b90849061410f565b909155506137b690507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163330856131f0565b60405182815233907f2499a5330ab0979cc612135e7883ebc3cd5c9f7a8508f042540c34723348f6329060200160405180910390a2505060018055565b6000613848826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166138f49092919063ffffffff16565b8051909150156129205780806020019051810190613866919061440e565b6129205760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610b69565b60008183106138e1576000828152602084905260409020610efa565b6000838152602083905260409020610efa565b60606114818484600085856001600160a01b0385163b6139565760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610b69565b600080866001600160a01b0316858760405161397291906143b1565b60006040518083038185875af1925050503d80600081146139af576040519150601f19603f3d011682016040523d82523d6000602084013e6139b4565b606091505b50915091506139c48282866139cf565b979650505050505050565b606083156139de575081610efa565b8251156139ee5782518084602001fd5b8160405162461bcd60e51b8152600401610b699190613fdc565b508054600082556002029060005260206000209081019061227e9190613aad565b828054613a35906142da565b90600052602060002090601f016020900481019282613a575760008555613a9d565b82601f10613a7057805160ff1916838001178555613a9d565b82800160010185558215613a9d579182015b82811115613a9d578251825591602001919060010190613a82565b50613aa9929150613ace565b5090565b5b80821115613aa9576000815560018101805460ff19169055600201613aae565b5b80821115613aa95760008155600101613acf565b60008083601f840112613af557600080fd5b5081356001600160401b03811115613b0c57600080fd5b6020830191508360208260051b8501011115613b2757600080fd5b9250929050565b600080600060408486031215613b4357600080fd5b8335925060208401356001600160401b03811115613b6057600080fd5b613b6c86828701613ae3565b9497909650939450505050565b600080600060408486031215613b8e57600080fd5b83356001600160401b03811115613ba457600080fd5b613bb086828701613ae3565b909790965060209590950135949350505050565b80356001600160a01b0381168114613bdb57600080fd5b919050565b600060208284031215613bf257600080fd5b610efa82613bc4565b634e487b7160e01b600052604160045260246000fd5b600082601f830112613c2257600080fd5b81356001600160401b0380821115613c3c57613c3c613bfb565b604051601f8301601f19908116603f01168101908282118183101715613c6457613c64613bfb565b81604052838152866020858801011115613c7d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600060208284031215613caf57600080fd5b81356001600160401b03811115613cc557600080fd5b61148184828501613c11565b60008060208385031215613ce457600080fd5b82356001600160401b03811115613cfa57600080fd5b613d0685828601613ae3565b90969095509350505050565b600080600060408486031215613d2757600080fd5b613d3084613bc4565b925060208401356001600160401b03811115613b6057600080fd5b801515811461227e57600080fd5b600060208284031215613d6b57600080fd5b8135610efa81613d4b565b60008060008060608587031215613d8c57600080fd5b8435935060208501356001600160401b03811115613da957600080fd5b613db587828801613ae3565b9598909750949560400135949350505050565b600060208284031215613dda57600080fd5b5035919050565b60008060408385031215613df457600080fd5b613dfd83613bc4565b946020939093013593505050565b602080825282518282018190526000919060409081850190868401855b82811015613e505781518051855286015160ff16868501529284019290850190600101613e28565b5091979650505050505050565b600080600060608486031215613e7257600080fd5b8335925060208401359150613e8960408501613bc4565b90509250925092565b60008060408385031215613ea557600080fd5b613eae83613bc4565b915060208301356001600160401b03811115613ec957600080fd5b613ed585828601613c11565b9150509250929050565b60008060008060608587031215613ef557600080fd5b613efe85613bc4565b935060208501356001600160401b03811115613da957600080fd5b60008060008060408587031215613f2f57600080fd5b84356001600160401b0380821115613f4657600080fd5b613f5288838901613ae3565b90965094506020870135915080821115613f6b57600080fd5b50613f7887828801613ae3565b95989497509550505050565b60005b83811015613f9f578181015183820152602001613f87565b83811115611c5a5750506000910152565b60008151808452613fc8816020860160208601613f84565b601f01601f19169290920160200192915050565b602081526000610efa6020830184613fb0565b6000806000806000806080878903121561400857600080fd5b8635955060208701356001600160401b038082111561402657600080fd5b6140328a838b01613ae3565b909750955060408901359450606089013591508082111561405257600080fd5b818901915089601f83011261406657600080fd5b81358181111561407557600080fd5b8a602082850101111561408757600080fd5b6020830194508093505050509295509295509295565b6000602082840312156140af57600080fd5b813562ffffff81168114610efa57600080fd5b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115614122576141226140f9565b500190565b60208082526026908201527f63616e2774207769746864726177206265666f726520636c61696d20697320736040820152651d185c9d195960d21b606082015260800190565b6020808252600d908201526c1c1c9bdbd9881a5b9d985b1a59609a1b604082015260600190565b6000602082840312156141a657600080fd5b5051919050565b60008160001904831182151516156141c7576141c76140f9565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826141f1576141f16141cc565b500490565b600082821015614208576142086140f9565b500390565b6020808252601490820152731cd85b1948185b1c9958591e481cdd185c9d195960621b604082015260600190565b60208082526024908201527f63616c6c6572206e6f742077686974656c69737420736574746572206f72206f6040820152633bb732b960e11b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff84168060ff038211156142b2576142b26140f9565b019392505050565b600060ff821660ff8114156142d1576142d16140f9565b60010192915050565b600181811c908216806142ee57607f821691505b6020821081141561430f57634e487b7160e01b600052602260045260246000fd5b50919050565b600082614324576143246141cc565b500690565b60006020828403121561433b57600080fd5b813560ff81168114610efa57600080fd5b6000600019821415614360576143606140f9565b5060010190565b6020808252602a908201527f76657374696e6720656e642074696d652068617320746f2062652077697468696040820152696e20313020796561727360b01b606082015260800190565b600082516143c3818460208701613f84565b9190910192915050565b8281526040602082015260006114816040830184613fb0565b600063ffffffff808316818516808303821115614405576144056140f9565b01949350505050565b60006020828403121561442057600080fd5b8151610efa81613d4b56fea264697066735822122073046635c677b403de4a63d3102589e1bb1f813b2b5569c7dd8b31f8f650086064736f6c634300080900330000000000000000000000000000000000000000000000000000000000004e2000000000000000000000000004a2684a46934504a62bdf9947af166f01bf14f8000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58310000000000000000000000005187e1139687b2bd5a863fd3b7f0606951d4982f0000000000000000000000000000000000000000000000000000000067614ba00000000000000000000000000000000000000000000000000000000067629d2000000000000000000000000000000000000000ffffffffffffffffffffffffff
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106104495760003560e01c80636713cea211610241578063c1d25f831161013b578063d3b7adc9116100c3578063efef39a111610087578063efef39a114610a7e578063f2fde38b14610a8c578063f51f96dd14610a9f578063f67c008e14610aa8578063ff273b6614610abb57600080fd5b8063d3b7adc914610a1f578063d6ca214d14610a3f578063d98b1f9d14610a4f578063da943cee14610a58578063e86613a714610a6b57600080fd5b8063cc89629b1161010a578063cc89629b14610997578063cddfb5fd146109aa578063d03df6dd146109bd578063d1a12d6a146109d7578063d390bcc7146109e057600080fd5b8063c1d25f831461094b578063c32d55641461095e578063c9a2ff4314610971578063ca1d209d1461098457600080fd5b80638aae995a116101c9578063a54bd56d1161018d578063a54bd56d14610900578063a590c84e14610913578063a89e852214610926578063aacc557a1461092f578063bae235bc1461094257600080fd5b80638aae995a146108ac5780638da5cb5b146108b5578063928e5f8b146108c6578063961be391146108d8578063a47ff99b146108e057600080fd5b806376ebbbc21161021057806376ebbbc21461084457806378e97925146108585780637dd209461461087f57806384b587d11461088c57806389910cac1461089957600080fd5b80636713cea2146107e4578063715018a6146107ed57806374f54826146107f557806376078dbe1461083157600080fd5b80633197cbb61161035257806348faade4116102da5780635559638f1161029e5780635559638f146107445780635b2ee404146107645780635dbb4dbd146107845780635e2c19db146107ae578063642d0f70146107d157600080fd5b806348faade4146106ed578063497aef28146106f65780634ae0f5431461071557806352811c4b1461071e578063547a5eee1461073157600080fd5b80633efa1b68116103215780633efa1b681461069b578063402914f5146106a8578063440bc7f3146106c857806345cb3dde146106db5780634797a548146106e457600080fd5b80633197cbb6146106445780633763326a1461066b5780633ccfd60b1461067e5780633d9205c11461068657600080fd5b80631d6a4581116103d55780632316448c116103a45780632316448c146105d1578063252b99c5146105e457806326c65482146105f75780632feb25f61461060a5780633013ce291461061d57600080fd5b80631d6a4581146105775780631e937107146105805780631fa3f435146105935780632270e82d146105be57600080fd5b80630acc8cd11161041c5780630acc8cd1146104d057806310002d2a146104e35780631101eaaf1461051c5780631637cde0146105415780631649a8a91461055457600080fd5b806301fc191c1461044e578063022a8b1a146104635780630288a39c14610476578063041ae880146104a5575b600080fd5b61046161045c366004613b2e565b610ace565b005b610461610471366004613b79565b610b72565b60185461048c90600160a01b900462ffffff1681565b60405162ffffff90911681526020015b60405180910390f35b6017546104b8906001600160a01b031681565b6040516001600160a01b03909116815260200161049c565b6104616104de366004613be0565b610d65565b61050e6104f1366004613c9d565b8051602081830181018051600f8252928201919093012091525481565b60405190815260200161049c565b60125461052c9063ffffffff1681565b60405163ffffffff909116815260200161049c565b61046161054f366004613cd1565b610dfa565b610567610562366004613d12565b610e79565b604051901515815260200161049c565b61050e60045481565b61046161058e366004613b79565b610f01565b61050e6105a1366004613c9d565b805160208183018101805160108252928201919093012091525481565b6104616105cc366004613d59565b611136565b6104616105df366004613d76565b61115d565b6104616105f2366004613dc8565b61127d565b610461610605366004613be0565b6112b8565b61050e610618366004613de1565b611420565b6104b87f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e583181565b61050e7f0000000000000000000000000000000000000000000000000000000067629d2081565b610461610679366004613d59565b611489565b6104616114ea565b61068e611616565b60405161049c9190613e0b565b6007546105679060ff1681565b61050e6106b6366004613be0565b601f6020526000908152604090205481565b6104616106d6366004613dc8565b611685565b61050e60135481565b61050e60055481565b61050e601c5481565b61050e610704366004613be0565b602080526000908152604090205481565b61050e60225481565b61046161072c366004613dc8565b611707565b61046161073f366004613be0565b6118d7565b61050e610752366004613be0565b60086020526000908152604090205481565b61050e610772366004613be0565b60146020526000908152604090205481565b610797610792366004613dc8565b611936565b6040805192835260ff90911660208301520161049c565b6105676107bc366004613be0565b60196020526000908152604090205460ff1681565b61050e6107df366004613e5d565b611967565b61050e60065481565b610461611b26565b61050e610803366004613e92565b600a602090815260009283526040909220815180830184018051928152908401929093019190912091525481565b61056761083f366004613edf565b611b79565b60125461056790600160201b900460ff1681565b61050e7f0000000000000000000000000000000000000000000000000000000067614ba081565b601b546105679060ff1681565b6021546105679060ff1681565b6104616108a7366004613f19565b611c07565b61050e601a5481565b6000546001600160a01b03166104b8565b60215461056790610100900460ff1681565b610461611c60565b6108f36108ee366004613de1565b611f95565b60405161049c9190613fdc565b61046161090e366004613fef565b61204e565b610461610921366004613be0565b6121a5565b61050e60035481565b61046161093d36600461409d565b6121f7565b61050e60115481565b610461610959366004613d59565b612281565b61046161096c366004613dc8565b6122c6565b61050e61097f366004613be0565b612359565b610461610992366004613dc8565b61238c565b6018546104b8906001600160a01b031681565b6104616109b8366004613dc8565b6124a7565b601d546104b890600160201b90046001600160a01b031681565b61050e601e5481565b6105676109ee366004613e92565b600c602090815260009283526040909220815180830184018051928152908401929093019190912091525460ff1681565b61050e610a2d366004613be0565b60096020526000908152604090205481565b601d5461052c9063ffffffff1681565b61050e60155481565b610461610a66366004613dc8565b6124f7565b6108f3610a79366004613dc8565b61260c565b61046161045c366004613dc8565b610461610a9a366004613be0565b612637565b61050e60025481565b610461610ab6366004613d59565b6126ad565b610567610ac9366004613dc8565b612707565b60405162461bcd60e51b815260206004820152606260248201527f5573652077686974656c697374656450757263686173652875696e743235362060448201527f7061796d656e74416d6f756e742c20627974657333325b5d2063616c6c64617460648201527f61206d65726b6c6550726f6f662c2075696e7432353620616c6c6f636174696f6084820152616e2960f01b60a482015260c4015b60405180910390fd5b60026001541415610b955760405162461bcd60e51b8152600401610b69906140c2565b6002600155601854610bd390600160a01b900462ffffff167f0000000000000000000000000000000000000000000000000000000067629d2061410f565b4211610bf15760405162461bcd60e51b8152600401610b6990614127565b6021543390600161010090910460ff16151514610c475760405162461bcd60e51b8152602060048201526014602482015273757365207769746864726177476976656177617960601b6044820152606401610b69565b60025415610c885760405162461bcd60e51b815260206004820152600e60248201526d6e6f74206120676976656177617960901b6044820152606401610b69565b610c9481858585611b79565b610cb05760405162461bcd60e51b8152600401610b699061416d565b6001600160a01b03811660009081526019602052604090205460ff16610cf7576001600160a01b0381166000908152601f6020908152604080832085905590805290208290555b6000610d0282612359565b905080610d515760405162461bcd60e51b815260206004820152601a60248201527f776974686472617720676976656177617920616d6f756e7420300000000000006044820152606401610b69565b610d5a81612728565b505060018055505050565b610d6d612763565b6001600160a01b038116610db05760405162461bcd60e51b815260206004820152600a602482015269183c1810333ab73232b960b11b6044820152606401610b69565b601780546001600160a01b0319166001600160a01b0383169081179091556040517f73e0366d7ceb5a21fb27f8b2aa2720e2a9dee755bd85bfb5dbccf2830753b02290600090a250565b60405162461bcd60e51b815260206004820152604860248201527f557365207769746864726177476976656177617928627974657333325b5d206360448201527f616c6c64617461206d65726b6c6550726f6f662c2075696e7432353620616c6c6064820152676f636174696f6e2960c01b608482015260a401610b69565b6040516bffffffffffffffffffffffff19606085901b1660208201526000908190603401604051602081830303815290604052805190602001209050610ef684848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601e5491508490506127bf565b9150505b9392505050565b60026001541415610f245760405162461bcd60e51b8152600401610b69906140c2565b6002600155601854610f6290600160a01b900462ffffff167f0000000000000000000000000000000000000000000000000000000067629d2061410f565b4211610f805760405162461bcd60e51b8152600401610b6990614127565b6021543390610100900460ff1615610fda5760405162461bcd60e51b815260206004820152601a60248201527f75736520776974686472617747697665617761795665737465640000000000006044820152606401610b69565b6002541561101b5760405162461bcd60e51b815260206004820152600e60248201526d6e6f74206120676976656177617960901b6044820152606401610b69565b6001600160a01b03811660009081526019602052604090205460ff16156110785760405162461bcd60e51b815260206004820152601160248201527030b63932b0b23c903bb4ba34323930bbb760791b6044820152606401610b69565b61108481858585611b79565b6110a05760405162461bcd60e51b8152600401610b699061416d565b6001600160a01b03811660009081526019602052604081205460ff166110e957506001600160a01b0381166000908152601f602090815260408083208590559080529020829055815b80610d515760405162461bcd60e51b815260206004820152601a60248201527f776974686472617720676976656177617920616d6f756e7420300000000000006044820152606401610b69565b61113e612763565b60128054911515600160201b0264ff0000000019909216919091179055565b427f0000000000000000000000000000000000000000000000000000000067614ba011156111c25760405162461bcd60e51b815260206004820152601260248201527139b0b632903430b9903737ba103132b3bab760711b6044820152606401610b69565b7f0000000000000000000000000000000000000000000000000000000067629d2042111561121e5760405162461bcd60e51b815260206004820152600960248201526839b0b6329037bb32b960b91b6044820152606401610b69565b602254821561125c5761123333858585611b79565b61124f5760405162461bcd60e51b8152600401610b699061416d565b60225482111561125c5750805b6000611269335b83611420565b905061127586826127d5565b505050505050565b611285612763565b600581905560405181907f4d893dbff365afe590ba8bf0f5d258598f5e63fde5b989dcd4902cf89d403c2f90600090a250565b6112c0612763565b6018546112f990600160a01b900462ffffff167f0000000000000000000000000000000000000000000000000000000067629d2061410f565b42116113175760405162461bcd60e51b8152600401610b6990614127565b7f0000000000000000000000005187e1139687b2bd5a863fd3b7f0606951d4982f6001600160a01b0316816001600160a01b0316141561135657600080fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561139857600080fd5b505afa1580156113ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d09190614194565b90506113e66001600160a01b03831633836128bd565b60405181815233907fb1d34d1c064a5cb36c65797ef779e448eefccf2b978edbcfd206cc687c8cea5a906020015b60405180910390a25050565b600080670de0b6b3a76400006001600160401b03168360025461144391906141ad565b61144d91906141e2565b905080600354101561145e57506003545b6001600160a01b03841660009081526008602052604090205461148190826141f6565b949350505050565b611491612763565b7f0000000000000000000000000000000000000000000000000000000067614ba042106114d05760405162461bcd60e51b8152600401610b699061420d565b602180549115156101000261ff0019909216919091179055565b60185461152390600160a01b900462ffffff167f0000000000000000000000000000000000000000000000000000000067629d2061410f565b42116115415760405162461bcd60e51b8152600401610b6990614127565b600260015414156115645760405162461bcd60e51b8152600401610b69906140c2565b60026001819055546115af5760405162461bcd60e51b8152602060048201526014602482015273757365207769746864726177476976656177617960601b6044820152606401610b69565b3360006115bb82612359565b9050806116055760405162461bcd60e51b81526020600482015260186024820152773737903a37b5b2b7103a37903132903bb4ba34323930bbb760411b6044820152606401610b69565b61160e81612728565b505060018055565b60606016805480602002602001604051908101604052809291908181526020016000905b8282101561167c57600084815260209081902060408051808201909152600285029091018054825260019081015460ff1682840152908352909201910161163a565b50505050905090565b601d54600160201b90046001600160a01b0316336001600160a01b031614806116b857506000546001600160a01b031633145b6116d45760405162461bcd60e51b8152600401610b699061423b565b601e81905560405181907fc504a95022b9d01b3024e95b0a85c200d0c538f417160776512b95fcbf7b2daa90600090a250565b6018546001600160a01b0316336001600160a01b0316148061173357506000546001600160a01b031633145b61177f5760405162461bcd60e51b815260206004820152601a60248201527f63616c6c6572206e6f7420636173686572206f72206f776e65720000000000006044820152606401610b69565b6040516370a0823160e01b81523060048201526000907f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58316001600160a01b0316906370a082319060240160206040518083038186803b1580156117e157600080fd5b505afa1580156117f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118199190614194565b90508181101561186b5760405162461bcd60e51b815260206004820181905260248201527f4e6f20656e6f756768207061796d656e7420746f6b656e7320746f20636173686044820152606401610b69565b61189f7f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58316001600160a01b031633846128bd565b604080518381526000602082015233917f83205c70ca31ffcb57664adecfd9894647d48665aefae1fb38bbc7ca4c1b86fb9101611414565b6118df612763565b601d8054640100000000600160c01b031916600160201b6001600160a01b038416908102919091179091556040517f7aba5fc71e3607d34203924738fbacc00b5782879615f86db108794b4bdcc95b90600090a250565b6016818154811061194657600080fd5b60009182526020909120600290910201805460019091015490915060ff1682565b60004260155411156119ce5760135460155461198391906141f6565b6001600160a01b0383166000908152601460205260409020546013546119a99190612925565b6119b390426141f6565b6119bd90866141ad565b6119c791906141e2565b9050610efa565b6016548015801590611a0d57504260166119e96001846141f6565b815481106119f9576119f961427f565b906000526020600020906002020160000154115b15611b1d576000805b828160ff161015611ae7574260168260ff1681548110611a3857611a3861427f565b9060005260206000209060020201600001541115611a5557611ae7565b60168160ff1681548110611a6b57611a6b61427f565b600091825260208083206002909202909101546001600160a01b038816835260149091526040909120541015611ad55760168160ff1681548110611ab157611ab161427f565b6000918252602090912060016002909202010154611ad29060ff1683614295565b91505b80611adf816142ba565b915050611a16565b5060ff8116611afb57600092505050610efa565b6064611b0a60ff8316886141ad565b611b1491906141e2565b92505050610efa565b50919392505050565b60405162461bcd60e51b815260206004820152602260248201527f6f776e6572736869702072656e756e63696174696f6e2069732064697361626c604482015261195960f21b6064820152608401610b69565b6040516bffffffffffffffffffffffff19606086901b166020820152603481018290526000908190605401604051602081830303815290604052805190602001209050611bfd85858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601e5491508490506127bf565b9695505050505050565b611c0f612763565b7f0000000000000000000000000000000000000000000000000000000067614ba04210611c4e5760405162461bcd60e51b8152600401610b699061420d565b611c5a8484848461293c565b50505050565b6018546001600160a01b0316336001600160a01b03161480611c8c57506000546001600160a01b031633145b611cd85760405162461bcd60e51b815260206004820152601a60248201527f63616c6c6572206e6f7420636173686572206f72206f776e65720000000000006044820152606401610b69565b601854611d1190600160a01b900462ffffff167f0000000000000000000000000000000000000000000000000000000067629d2061410f565b4211611d2f5760405162461bcd60e51b8152600401610b6990614127565b601b5460ff1615611d735760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e4818d85cda195960921b6044820152606401610b69565b601b805460ff191660011790556040516370a0823160e01b81523060048201526000906001600160a01b037f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e583116906370a082319060240160206040518083038186803b158015611de257600080fd5b505afa158015611df6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e1a9190614194565b9050611e507f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58316001600160a01b031633836128bd565b6040516370a0823160e01b81523060048201526000907f0000000000000000000000005187e1139687b2bd5a863fd3b7f0606951d4982f6001600160a01b0316906370a082319060240160206040518083038186803b158015611eb257600080fd5b505afa158015611ec6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eea9190614194565b90506000611ef6612d23565b9050600082601a5410611f0b57601a54611f0d565b825b90506000611f1b83836141f6565b9050611f53335b6001600160a01b037f0000000000000000000000005187e1139687b2bd5a863fd3b7f0606951d4982f1690836128bd565b604080518681526020810183905233917f83205c70ca31ffcb57664adecfd9894647d48665aefae1fb38bbc7ca4c1b86fb910160405180910390a25050505050565b600b6020528160005260406000208181548110611fb157600080fd5b90600052602060002001600091509150508054611fcd906142da565b80601f0160208091040260200160405190810160405280929190818152602001828054611ff9906142da565b80156120465780601f1061201b57610100808354040283529160200191612046565b820191906000526020600020905b81548152906001019060200180831161202957829003601f168201915b505050505081565b427f0000000000000000000000000000000000000000000000000000000067614ba011156120b35760405162461bcd60e51b815260206004820152601260248201527139b0b632903430b9903737ba103132b3bab760711b6044820152606401610b69565b7f0000000000000000000000000000000000000000000000000000000067629d2042111561210f5760405162461bcd60e51b815260206004820152600960248201526839b0b6329037bb32b960b91b6044820152606401610b69565b602254841561214d5761212433878787611b79565b6121405760405162461bcd60e51b8152600401610b699061416d565b60225484111561214d5750825b600061215833611263565b905061219b888286868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612d5e92505050565b5050505050505050565b6121ad612763565b601880546001600160a01b0319166001600160a01b0383169081179091556040517fde112653552cba8a4f696cac12b4478ce2b9b8c0e04429455a2052ec7c0412ce90600090a250565b6121ff612763565b7f0000000000000000000000000000000000000000000000000000000067614ba0421061223e5760405162461bcd60e51b8152600401610b699061420d565b61227561227062ffffff83167f0000000000000000000000000000000000000000000000000000000067629d2061410f565b601355565b61227e816130f4565b50565b612289612763565b6007805460ff19168215159081179091556040517fae0c36aff5cb672be07be42475485a2ac49daf228c55f2e749ff5075778a701890600090a250565b601d54600160201b90046001600160a01b0316336001600160a01b031614806122f957506000546001600160a01b031633145b6123155760405162461bcd60e51b8152600401610b699061423b565b7f0000000000000000000000000000000000000000000000000000000067614ba042106123545760405162461bcd60e51b8152600401610b699061420d565b602255565b6001600160a01b03811660009081526020808052604080832054601f909252822054612386919084611967565b92915050565b6017546001600160a01b0316336001600160a01b0316146123e35760405162461bcd60e51b815260206004820152601160248201527031b0b63632b9103737ba10333ab73232b960791b6044820152606401610b69565b7f0000000000000000000000000000000000000000000000000000000067614ba042106124225760405162461bcd60e51b8152600401610b699061420d565b6124577f0000000000000000000000005187e1139687b2bd5a863fd3b7f0606951d4982f6001600160a01b03163330846131f0565b80601a6000828254612469919061410f565b909155505060405181815233907fda8220a878ff7a89474ccffdaa31ea1ed1ffbb0207d5051afccc4fbaf81f9bcd906020015b60405180910390a250565b6124af612763565b7f0000000000000000000000000000000000000000000000000000000067614ba042106124ee5760405162461bcd60e51b8152600401610b699061420d565b61227e81613228565b601d54600160201b90046001600160a01b0316336001600160a01b0316148061252a57506000546001600160a01b031633145b6125465760405162461bcd60e51b8152600401610b699061423b565b60025461255390826141ad565b600681905560045411156125de5760405162461bcd60e51b815260206004820152604660248201527f4d6178207075726368617361626c652073686f756c64206e6f74206265206c6f60448201527f776572207468616e2074686520616d6f756e74206f6620746f6b656e2070757260648201526518da185cd95960d21b608482015260a401610b69565b60405181907f851466103668359b383470efccd1760dc8caf09bc6d5a74acc7d78ac751c21e990600090a250565b600d818154811061261c57600080fd5b906000526020600020016000915090508054611fcd906142da565b61263f612763565b6001600160a01b0381166126a45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b69565b61227e81613372565b6126b5612763565b7f0000000000000000000000000000000000000000000000000000000067614ba042106126f45760405162461bcd60e51b8152600401610b699061420d565b6021805460ff1916911515919091179055565b6000600254826127179190614315565b158015612386575050600254111590565b336000908152601460209081526040808320429055601f909152812080548392906127549084906141f6565b9091555061227e9050816133c2565b6000546001600160a01b031633146127bd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b69565b565b6000826127cc85846134cc565b14949350505050565b60215460ff1615612848576127e982612707565b6128485760405162461bcd60e51b815260206004820152602a60248201527f63616e206f6e6c792062757920696e746567657220616d6f756e74206f662073604482015269616c6520746f6b656e7360b01b6064820152608401610b69565b81601c600082825461285a919061410f565b9091555061286a90508282613519565b6002543360009081526008602052604081205490919061289390670de0b6b3a7640000906141ad565b61289d91906141e2565b33600090815260208080526040808320849055601f909152902055505050565b6040516001600160a01b03831660248201526044810182905261292090849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526137f3565b505050565b6000818310156129355781610efa565b5090919050565b612944612763565b601254600160201b900460ff168061295d575060135442105b6129a95760405162461bcd60e51b815260206004820152601d60248201527f43616e277420656469742076657374696e672061667465722073616c650000006044820152606401610b69565b8281146129f85760405162461bcd60e51b815260206004820152601b60248201527f646174657320616e642070637420646f65736e2774206d6174636800000000006044820152606401610b69565b82612a365760405162461bcd60e51b815260206004820152600e60248201526d696e70757420697320656d70747960901b6044820152606401610b69565b6064831115612a875760405162461bcd60e51b815260206004820152601e60248201527f696e707574206c656e6774682063616e6e6f74206578636565642031303000006044820152606401610b69565b612a9360166000613a08565b60008060135486866000818110612aac57612aac61427f565b9050602002013511612b1d5760405162461bcd60e51b815260206004820152603460248201527f666972737420636c61696d2074696d65206973206265666f726520656e642074604482015273696d65202b2077697468647261772064656c617960601b6064820152608401610b69565b60005b85811015612c8057868682818110612b3a57612b3a61427f565b905060200201358310612b8f5760405162461bcd60e51b815260206004820152601c60248201527f6461746573206e6f7420696e20617363656e64696e67206f72646572000000006044820152606401610b69565b868682818110612ba157612ba161427f565b905060200201359250848482818110612bbc57612bbc61427f565b9050602002016020810190612bd19190614329565b612bdb9083614295565b915060166040518060400160405280898985818110612bfc57612bfc61427f565b905060200201358152602001878785818110612c1a57612c1a61427f565b9050602002016020810190612c2f9190614329565b60ff9081169091528254600181810185556000948552602094859020845160029093020191825593909201519190920180549190921660ff1990911617905580612c788161434c565b915050612b20565b50612c8f6312d1d76c836141f6565b60135411612caf5760405162461bcd60e51b8152600401610b6990614367565b8060ff16606414612d165760405162461bcd60e51b815260206004820152602b60248201527f746f74616c20696e7075742070657263656e7461676520646f65736e2774206560448201526a07175616c20746f203130360ac1b6064820152608401610b69565b5050600060155550505050565b600060025460001415612d365750600090565b600254601c54612d4f90670de0b6b3a7640000906141ad565b612d5991906141e2565b905090565b6000815111612d9f5760405162461bcd60e51b815260206004820152600d60248201526c636f646520697320656d70747960981b6044820152606401610b69565b604081511115612de45760405162461bcd60e51b815260206004820152601060248201526f636f646520697320746f6f206c6f6e6760801b6044820152606401610b69565b612dee83836127d5565b600e81604051612dfe91906143b1565b9081526040519081900360200190205460ff16612e8c576001600e82604051612e2791906143b1565b90815260405160209181900382019020805460ff191692151592909217909155600d80546001810182556000919091528251612e8a927fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb590920191840190613a29565b505b336000908152600c6020526040908190209051612eaa9083906143b1565b9081526040519081900360200190205460ff16612faf57601154336000908152600b602052604090205410612f215760405162461bcd60e51b815260206004820152601f60248201527f6d61782070726f6d6f20636f64652070657220757365722072656163686564006044820152606401610b69565b336000908152600c602052604090819020905160019190612f439084906143b1565b908152604051908190036020019020805491151560ff19909216919091179055600b6000612f6e3390565b6001600160a01b0316815260208082019290925260400160009081208054600181018255908252908290208351612fad93919092019190840190613a29565b505b82600f82604051612fc091906143b1565b90815260200160405180910390206000828254612fdd919061410f565b9091555050336000908152600a60205260409081902090516130009083906143b1565b9081526020016040518091039020546000141561304c57600160108260405161302991906143b1565b90815260200160405180910390206000828254613046919061410f565b90915550505b336000908152600960205260408120805485929061306b90849061410f565b9091555050336000908152600a60205260409081902090518491906130919084906143b1565b908152602001604051809103902060008282546130ae919061410f565b909155505060405133907fd4855e7b21a64eb863713fc0e6b4e68770d741fd2bcedbb31ec938db7c31337c906130e790869085906143cd565b60405180910390a2505050565b6130fc612763565b7f0000000000000000000000000000000000000000000000000000000067614ba0421061313b5760405162461bcd60e51b8152600401610b699061420d565b6309679a3662ffffff8216106131a25760405162461bcd60e51b815260206004820152602660248201527f776974686472617744656c61792068617320746f2062652077697468696e203560448201526520796561727360d01b6064820152608401610b69565b6018805462ffffff60a01b1916600160a01b62ffffff8416908102919091179091556040517f0dac7b34fe917a51c24c51f379615699f5c23ce9168eaed469bc161c9002860890600090a250565b6040516001600160a01b0380851660248301528316604482015260648101829052611c5a9085906323b872dd60e01b906084016128e9565b613230612763565b601254600160201b900460ff1680613249575060135442105b6132955760405162461bcd60e51b815260206004820152601d60248201527f43616e277420656469742076657374696e672061667465722073616c650000006044820152606401610b69565b60135481116133055760405162461bcd60e51b815260206004820152603660248201527f76657374696e6720656e642074696d652068617320746f206265206166746572604482015275207769746864726177616c2073746172742074696d6560501b6064820152608401610b69565b6133136312d1d76c826141f6565b601354116133335760405162461bcd60e51b8152600401610b6990614367565b601581905561334460166000613a08565b60405181907f83d190eb78c1206ea1abb0222d475a5f70b7f63bcd534ab65e9404b39016c7a490600090a250565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8061340a5760405162461bcd60e51b81526020600482015260186024820152773737903a37b5b2b7103a37903132903bb4ba34323930bbb760411b6044820152606401610b69565b3360009081526019602052604090205460ff1661349157601d80546001919060009061343d90849063ffffffff166143e6565b92506101000a81548163ffffffff021916908363ffffffff1602179055506001601960006134683390565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790555b61349a33611f22565b60405181815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200161249c565b600081815b8451811015613511576134fd828683815181106134f0576134f061427f565b60200260200101516138c5565b9150806135098161434c565b9150506134d1565b509392505050565b6002600154141561353c5760405162461bcd60e51b8152600401610b69906140c2565b600260015560075460ff16156135895760405162461bcd60e51b81526020600482015260126024820152711c1d5c98da185cd9481a5cc81a185b1d195960721b6044820152606401610b69565b6000600254116135d05760405162461bcd60e51b815260206004820152601260248201527173616c65207072696365206973207a65726f60701b6044820152606401610b69565b6005548210156136155760405162461bcd60e51b815260206004820152601060248201526f30b6b7bab73a103132b637bb9036b4b760811b6044820152606401610b69565b8082111561365b5760405162461bcd60e51b8152602060048201526013602482015272195e18d959591cc81b585e081c185e5b595b9d606a1b6044820152606401610b69565b8161369e5760405162461bcd60e51b81526020600482015260136024820152721e995c9bc81c185e5b595b9d08185b5bdd5b9d606a1b6044820152606401610b69565b81600460008282546136b0919061410f565b909155505060065415806136c8575060045460065410155b61370d5760405162461bcd60e51b8152602060048201526016602482015275657863656564206d6178207075726368617361626c6560501b6044820152606401610b69565b3360009081526008602052604090205461375c57601280546001919060009061373d90849063ffffffff166143e6565b92506101000a81548163ffffffff021916908363ffffffff1602179055505b336000908152600860205260408120805484929061377b90849061410f565b909155506137b690507f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58316001600160a01b03163330856131f0565b60405182815233907f2499a5330ab0979cc612135e7883ebc3cd5c9f7a8508f042540c34723348f6329060200160405180910390a2505060018055565b6000613848826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166138f49092919063ffffffff16565b8051909150156129205780806020019051810190613866919061440e565b6129205760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610b69565b60008183106138e1576000828152602084905260409020610efa565b6000838152602083905260409020610efa565b60606114818484600085856001600160a01b0385163b6139565760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610b69565b600080866001600160a01b0316858760405161397291906143b1565b60006040518083038185875af1925050503d80600081146139af576040519150601f19603f3d011682016040523d82523d6000602084013e6139b4565b606091505b50915091506139c48282866139cf565b979650505050505050565b606083156139de575081610efa565b8251156139ee5782518084602001fd5b8160405162461bcd60e51b8152600401610b699190613fdc565b508054600082556002029060005260206000209081019061227e9190613aad565b828054613a35906142da565b90600052602060002090601f016020900481019282613a575760008555613a9d565b82601f10613a7057805160ff1916838001178555613a9d565b82800160010185558215613a9d579182015b82811115613a9d578251825591602001919060010190613a82565b50613aa9929150613ace565b5090565b5b80821115613aa9576000815560018101805460ff19169055600201613aae565b5b80821115613aa95760008155600101613acf565b60008083601f840112613af557600080fd5b5081356001600160401b03811115613b0c57600080fd5b6020830191508360208260051b8501011115613b2757600080fd5b9250929050565b600080600060408486031215613b4357600080fd5b8335925060208401356001600160401b03811115613b6057600080fd5b613b6c86828701613ae3565b9497909650939450505050565b600080600060408486031215613b8e57600080fd5b83356001600160401b03811115613ba457600080fd5b613bb086828701613ae3565b909790965060209590950135949350505050565b80356001600160a01b0381168114613bdb57600080fd5b919050565b600060208284031215613bf257600080fd5b610efa82613bc4565b634e487b7160e01b600052604160045260246000fd5b600082601f830112613c2257600080fd5b81356001600160401b0380821115613c3c57613c3c613bfb565b604051601f8301601f19908116603f01168101908282118183101715613c6457613c64613bfb565b81604052838152866020858801011115613c7d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600060208284031215613caf57600080fd5b81356001600160401b03811115613cc557600080fd5b61148184828501613c11565b60008060208385031215613ce457600080fd5b82356001600160401b03811115613cfa57600080fd5b613d0685828601613ae3565b90969095509350505050565b600080600060408486031215613d2757600080fd5b613d3084613bc4565b925060208401356001600160401b03811115613b6057600080fd5b801515811461227e57600080fd5b600060208284031215613d6b57600080fd5b8135610efa81613d4b565b60008060008060608587031215613d8c57600080fd5b8435935060208501356001600160401b03811115613da957600080fd5b613db587828801613ae3565b9598909750949560400135949350505050565b600060208284031215613dda57600080fd5b5035919050565b60008060408385031215613df457600080fd5b613dfd83613bc4565b946020939093013593505050565b602080825282518282018190526000919060409081850190868401855b82811015613e505781518051855286015160ff16868501529284019290850190600101613e28565b5091979650505050505050565b600080600060608486031215613e7257600080fd5b8335925060208401359150613e8960408501613bc4565b90509250925092565b60008060408385031215613ea557600080fd5b613eae83613bc4565b915060208301356001600160401b03811115613ec957600080fd5b613ed585828601613c11565b9150509250929050565b60008060008060608587031215613ef557600080fd5b613efe85613bc4565b935060208501356001600160401b03811115613da957600080fd5b60008060008060408587031215613f2f57600080fd5b84356001600160401b0380821115613f4657600080fd5b613f5288838901613ae3565b90965094506020870135915080821115613f6b57600080fd5b50613f7887828801613ae3565b95989497509550505050565b60005b83811015613f9f578181015183820152602001613f87565b83811115611c5a5750506000910152565b60008151808452613fc8816020860160208601613f84565b601f01601f19169290920160200192915050565b602081526000610efa6020830184613fb0565b6000806000806000806080878903121561400857600080fd5b8635955060208701356001600160401b038082111561402657600080fd5b6140328a838b01613ae3565b909750955060408901359450606089013591508082111561405257600080fd5b818901915089601f83011261406657600080fd5b81358181111561407557600080fd5b8a602082850101111561408757600080fd5b6020830194508093505050509295509295509295565b6000602082840312156140af57600080fd5b813562ffffff81168114610efa57600080fd5b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115614122576141226140f9565b500190565b60208082526026908201527f63616e2774207769746864726177206265666f726520636c61696d20697320736040820152651d185c9d195960d21b606082015260800190565b6020808252600d908201526c1c1c9bdbd9881a5b9d985b1a59609a1b604082015260600190565b6000602082840312156141a657600080fd5b5051919050565b60008160001904831182151516156141c7576141c76140f9565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826141f1576141f16141cc565b500490565b600082821015614208576142086140f9565b500390565b6020808252601490820152731cd85b1948185b1c9958591e481cdd185c9d195960621b604082015260600190565b60208082526024908201527f63616c6c6572206e6f742077686974656c69737420736574746572206f72206f6040820152633bb732b960e11b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff84168060ff038211156142b2576142b26140f9565b019392505050565b600060ff821660ff8114156142d1576142d16140f9565b60010192915050565b600181811c908216806142ee57607f821691505b6020821081141561430f57634e487b7160e01b600052602260045260246000fd5b50919050565b600082614324576143246141cc565b500690565b60006020828403121561433b57600080fd5b813560ff81168114610efa57600080fd5b6000600019821415614360576143606140f9565b5060010190565b6020808252602a908201527f76657374696e6720656e642074696d652068617320746f2062652077697468696040820152696e20313020796561727360b01b606082015260800190565b600082516143c3818460208701613f84565b9190910192915050565b8281526040602082015260006114816040830184613fb0565b600063ffffffff808316818516808303821115614405576144056140f9565b01949350505050565b60006020828403121561442057600080fd5b8151610efa81613d4b56fea264697066735822122073046635c677b403de4a63d3102589e1bb1f813b2b5569c7dd8b31f8f650086064736f6c63430008090033
Deployed Bytecode Sourcemap
85914:6949:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87608:206;;;;;;:::i;:::-;;:::i;:::-;;90907:998;;;;;;:::i;:::-;;:::i;48326:27::-;;;;;-1:-1:-1;;;48326:27:0;;;;;;;;;1580:8:1;1568:21;;;1550:40;;1538:2;1523:18;48326:27:0;;;;;;;;47836:21;;;;;-1:-1:-1;;;;;47836:21:0;;;;;;-1:-1:-1;;;;;1765:32:1;;;1747:51;;1735:2;1720:18;47836:21:0;1601:203:1;51816:179:0;;;;;;:::i;:::-;;:::i;58015:47::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3507:25:1;;;3495:2;3480:18;58015:47:0;3361:177:1;58308:28:0;;;;;;;;;;;;3717:10:1;3705:23;;;3687:42;;3675:2;3660:18;58308:28:0;3543:192:1;87822:168:0;;;;;;:::i;:::-;;:::i;84615:328::-;;;;;;:::i;:::-;;:::i;:::-;;;4863:14:1;;4856:22;4838:41;;4826:2;4811:18;84615:328:0;4698:187:1;56548:33:0;;;;;;89605:1216;;;;;;:::i;:::-;;:::i;58103:50::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;73998:145;;;;;;:::i;:::-;;:::i;88863:656::-;;;;;;:::i;:::-;;:::i;59586:178::-;;;;;;:::i;:::-;;:::i;54741:399::-;;;;;;:::i;:::-;;:::i;92466:394::-;;;;;;:::i;:::-;;:::i;56336:35::-;;;;;48113:32;;;;;86690:138;;;;;;:::i;:::-;;:::i;82415:416::-;;;:::i;73644:99::-;;;:::i;:::-;;;;;;;:::i;56903:36::-;;;;;;;;;80334:44;;;;;;:::i;:::-;;;;;;;;;;;;;;79332:214;;;;;;:::i;:::-;;:::i;72779:27::-;;;;;;56634:30;;;;;;48677:35;;;;;;80443:49;;;;;;:::i;:::-;;;;;;;;;;;;;;86617:35;;;;;;54131:540;;;;;;:::i;:::-;;:::i;79045:178::-;;;;;;:::i;:::-;;:::i;57063:50::-;;;;;;:::i;:::-;;;;;;;;;;;;;;72873;;;;;;:::i;:::-;;;;;;;;;;;;;;73546:26;;;;;;:::i;:::-;;:::i;:::-;;;;7657:25:1;;;7730:4;7718:17;;;7713:2;7698:18;;7691:45;7630:18;73546:26:0;7487:255:1;48423:44:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;76467:1638;;;;;;:::i;:::-;;:::i;56814:34::-;;;;;;85390:112;;;:::i;57419:81::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92034:379;;;;;;:::i;:::-;;:::i;72685:35::-;;;;;-1:-1:-1;;;72685:35:0;;;;;;48018:34;;;;;48609:21;;;;;;;;;80535:33;;;;;;;;;81445:174;;;;;;:::i;:::-;;:::i;48533:25::-;;;;;;2234:87;2280:7;2307:6;-1:-1:-1;;;;;2307:6:0;2234:87;;86425:36;;;;;;;;;;;;53043:1080;;;:::i;57589:53::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;88094:709::-;;;;;;:::i;:::-;;:::i;51684:124::-;;;;;;:::i;:::-;;:::i;56478:30::-;;;;;;81066:199;;;;;;:::i;:::-;;:::i;58202:39::-;;;;;;59334:181;;;;;;:::i;:::-;;:::i;86836:160::-;;;;;;:::i;:::-;;:::i;84379:166::-;;;;;;:::i;:::-;;:::i;52629:329::-;;;;;;:::i;:::-;;:::i;47908:21::-;;;;;-1:-1:-1;;;;;47908:21:0;;;81273:164;;;;;;:::i;:::-;;:::i;78306:30::-;;;;;-1:-1:-1;;;78306:30:0;;-1:-1:-1;;;;;78306:30:0;;;78438:32;;;;;;57744:62;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57228:58;;;;;;:::i;:::-;;;;;;;;;;;;;;48783:29;;;;;;;;;73079:35;;;;;;87004:377;;;;;;:::i;:::-;;:::i;57865:21::-;;;;;;:::i;:::-;;:::i;87422:178::-;;;;;;:::i;3140:201::-;;;;;;:::i;:::-;;:::i;56410:24::-;;;;;;81627:128;;;;;;:::i;:::-;;:::i;85070:250::-;;;;;;:::i;:::-;;:::i;87608:206::-;87698:108;;-1:-1:-1;;;87698:108:0;;12298:2:1;87698:108:0;;;12280:21:1;12337:2;12317:18;;;12310:30;12376:34;12356:18;;;12349:62;12447:34;12427:18;;;12420:62;12519:34;12498:19;;;12491:63;-1:-1:-1;;;12570:19:1;;;12563:33;12613:19;;87698:108:0;;;;;;;;90907:998;46246:1;46844:7;;:19;;46836:63;;;;-1:-1:-1;;;46836:63:0;;;;;;;:::i;:::-;46246:1;46977:7;:18;50790:13:::1;::::0;50780:23:::1;::::0;-1:-1:-1;;;50790:13:0;::::1;;;50780:7;:23;:::i;:::-;50762:15;:41;50754:92;;;;-1:-1:-1::0;;;50754:92:0::1;;;;;;;:::i;:::-;91150:16:::2;::::0;861:10;;91150:16:::2;;::::0;;::::2;;;:24;;;91142:57;;;::::0;-1:-1:-1;;;91142:57:0;;13877:2:1;91142:57:0::2;::::0;::::2;13859:21:1::0;13916:2;13896:18;;;13889:30;-1:-1:-1;;;13935:18:1;;;13928:50;13995:18;;91142:57:0::2;13675:344:1::0;91142:57:0::2;91256:9;::::0;:14;91248:41:::2;;;::::0;-1:-1:-1;;;91248:41:0;;14226:2:1;91248:41:0::2;::::0;::::2;14208:21:1::0;14265:2;14245:18;;;14238:30;-1:-1:-1;;;14284:18:1;;;14277:44;14338:18;;91248:41:0::2;14024:338:1::0;91248:41:0::2;91371:45;91386:4;91392:11;;91405:10;91371:14;:45::i;:::-;91363:71;;;;-1:-1:-1::0;;;91363:71:0::2;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;91521:18:0;::::2;;::::0;;;:12:::2;:18;::::0;;;;;::::2;;91516:128;;-1:-1:-1::0;;;;;91556:15:0;::::2;;::::0;;;:9:::2;:15;::::0;;;;;;;:28;;;91599:20;;;;;:33;;;91516:128:::2;91656:17;91676:30;91701:4;91676:24;:30::i;:::-;91656:50:::0;-1:-1:-1;91778:14:0;91770:53:::2;;;::::0;-1:-1:-1;;;91770:53:0;;14911:2:1;91770:53:0::2;::::0;::::2;14893:21:1::0;14950:2;14930:18;;;14923:30;14989:28;14969:18;;;14962:56;15035:18;;91770:53:0::2;14709:350:1::0;91770:53:0::2;91877:20;91887:9;91877;:20::i;:::-;-1:-1:-1::0;;46202:1:0;47156:22;;-1:-1:-1;;;90907:998:0:o;51816:179::-;2120:13;:11;:13::i;:::-;-1:-1:-1;;;;;51888:21:0;::::1;51880:44;;;::::0;-1:-1:-1;;;51880:44:0;;15266:2:1;51880:44:0::1;::::0;::::1;15248:21:1::0;15305:2;15285:18;;;15278:30;-1:-1:-1;;;15324:18:1;;;15317:40;15374:18;;51880:44:0::1;15064:334:1::0;51880:44:0::1;51935:6;:16:::0;;-1:-1:-1;;;;;;51935:16:0::1;-1:-1:-1::0;;;;;51935:16:0;::::1;::::0;;::::1;::::0;;;51969:18:::1;::::0;::::1;::::0;-1:-1:-1;;51969:18:0::1;51816:179:::0;:::o;87822:168::-;87900:82;;-1:-1:-1;;;87900:82:0;;15605:2:1;87900:82:0;;;15587:21:1;15644:2;15624:18;;;15617:30;15683:34;15663:18;;;15656:62;15754:34;15734:18;;;15727:62;-1:-1:-1;;;15805:19:1;;;15798:39;15854:19;;87900:82:0;15403:476:1;84615:328:0;84804:22;;-1:-1:-1;;16033:2:1;16029:15;;;16025:53;84804:22:0;;;16013:66:1;84714:4:0;;;;16095:12:1;;84804:22:0;;;;;;;;;;;;84794:33;;;;;;84779:48;;84879:56;84898:11;;84879:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;84911:17:0;;;-1:-1:-1;84930:4:0;;-1:-1:-1;84879:18:0;:56::i;:::-;84872:63;;;84615:328;;;;;;:::o;89605:1216::-;46246:1;46844:7;;:19;;46836:63;;;;-1:-1:-1;;;46836:63:0;;;;;;;:::i;:::-;46246:1;46977:7;:18;50790:13:::1;::::0;50780:23:::1;::::0;-1:-1:-1;;;50790:13:0;::::1;;;50780:7;:23;:::i;:::-;50762:15;:41;50754:92;;;;-1:-1:-1::0;;;50754:92:0::1;;;;;;;:::i;:::-;89840:16:::2;::::0;861:10;;89840:16:::2;::::0;::::2;;;:25;89832:64;;;::::0;-1:-1:-1;;;89832:64:0;;16320:2:1;89832:64:0::2;::::0;::::2;16302:21:1::0;16359:2;16339:18;;;16332:30;16398:28;16378:18;;;16371:56;16444:18;;89832:64:0::2;16118:350:1::0;89832:64:0::2;89953:9;::::0;:14;89945:41:::2;;;::::0;-1:-1:-1;;;89945:41:0;;14226:2:1;89945:41:0::2;::::0;::::2;14208:21:1::0;14265:2;14245:18;;;14238:30;-1:-1:-1;;;14284:18:1;;;14277:44;14338:18;;89945:41:0::2;14024:338:1::0;89945:41:0::2;-1:-1:-1::0;;;;;90040:18:0;::::2;;::::0;;;:12:::2;:18;::::0;;;;;::::2;;:27;90032:57;;;::::0;-1:-1:-1;;;90032:57:0;;16675:2:1;90032:57:0::2;::::0;::::2;16657:21:1::0;16714:2;16694:18;;;16687:30;-1:-1:-1;;;16733:18:1;;;16726:47;16790:18;;90032:57:0::2;16473:341:1::0;90032:57:0::2;90171:45;90186:4;90192:11;;90205:10;90171:14;:45::i;:::-;90163:71;;;;-1:-1:-1::0;;;90163:71:0::2;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;90357:18:0;::::2;90247:21;90357:18:::0;;;:12:::2;:18;::::0;;;;;::::2;;90352:263;;-1:-1:-1::0;;;;;;90527:15:0;::::2;;::::0;;;:9:::2;:15;::::0;;;;;;;:28;;;90570:20;;;;;:33;;;90502:10;90352:263:::2;90686:18:::0;90678:57:::2;;;::::0;-1:-1:-1;;;90678:57:0;;14911:2:1;90678:57:0::2;::::0;::::2;14893:21:1::0;14950:2;14930:18;;;14923:30;14989:28;14969:18;;;14962:56;15035:18;;90678:57:0::2;14709:350:1::0;73998:145:0;2120:13;:11;:13::i;:::-;74085:23:::1;:50:::0;;;::::1;;-1:-1:-1::0;;;74085:50:0::1;-1:-1:-1::0;;74085:50:0;;::::1;::::0;;;::::1;::::0;;73998:145::o;88863:656::-;50978:15;50965:9;:28;;50957:59;;;;-1:-1:-1;;;50957:59:0;;17021:2:1;50957:59:0;;;17003:21:1;17060:2;17040:18;;;17033:30;-1:-1:-1;;;17079:18:1;;;17072:48;17137:18;;50957:59:0;16819:342:1;50957:59:0;51054:7;51035:15;:26;;51027:48;;;;-1:-1:-1;;;51027:48:0;;17368:2:1;51027:48:0;;;17350:21:1;17407:1;17387:18;;;17380:29;-1:-1:-1;;;17425:18:1;;;17418:39;17474:18;;51027:48:0;17166:332:1;51027:48:0;89056:16:::1;::::0;89087:22;;89083:311:::1;;89201:54;861:10:::0;89230:11:::1;;89243;89201:14;:54::i;:::-;89193:80;;;;-1:-1:-1::0;;;89193:80:0::1;;;;;;;:::i;:::-;89306:16;;89292:11;:30;89288:95;;;-1:-1:-1::0;89356:11:0;89288:95:::1;89406:17;89426:39;861:10:::0;89440:12:::1;89454:10;89426:13;:39::i;:::-;89406:59;;89476:35;89486:13;89501:9;89476;:35::i;:::-;89024:495;;88863:656:::0;;;;:::o;59586:178::-;2120:13;:11;:13::i;:::-;59668:15:::1;:34:::0;;;59720:36:::1;::::0;59686:16;;59720:36:::1;::::0;;;::::1;59586:178:::0;:::o;54741:399::-;2120:13;:11;:13::i;:::-;50790::::1;::::0;50780:23:::1;::::0;-1:-1:-1;;;50790:13:0;::::1;;;50780:7;:23;:::i;:::-;50762:15;:41;50754:92;;;;-1:-1:-1::0;;;50754:92:0::1;;;;;;;:::i;:::-;54889:9:::2;-1:-1:-1::0;;;;;54872:27:0::2;:5;-1:-1:-1::0;;;;;54872:27:0::2;;;54864:36;;;::::0;::::2;;54936:37;::::0;-1:-1:-1;;;54936:37:0;;54967:4:::2;54936:37;::::0;::::2;1747:51:1::0;54913:20:0::2;::::0;-1:-1:-1;;;;;54936:22:0;::::2;::::0;::::2;::::0;1720:18:1;;54936:37:0::2;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;54913:60:::0;-1:-1:-1;55011:53:0::2;-1:-1:-1::0;;;;;55011:25:0;::::2;861:10:::0;54913:60;55011:25:::2;:53::i;:::-;55082:50;::::0;3507:25:1;;;861:10:0;;55082:50:::2;::::0;3495:2:1;3480:18;55082:50:0::2;;;;;;;;54819:321;54741:399:::0;:::o;92466:394::-;92544:7;92617:11;47587:6;-1:-1:-1;;;;;92631:46:0;92644:10;92632:9;;:22;;;;:::i;:::-;92631:46;;;;:::i;:::-;92617:60;;92710:3;92692:15;;:21;92688:75;;;-1:-1:-1;92736:15:0;;92688:75;-1:-1:-1;;;;;92831:21:0;;;;;;:15;:21;;;;;;92825:27;;:3;:27;:::i;:::-;92818:34;92466:394;-1:-1:-1;;;;92466:394:0:o;86690:138::-;2120:13;:11;:13::i;:::-;50609:9:::1;50591:15;:27;50583:60;;;;-1:-1:-1::0;;;50583:60:0::1;;;;;;;:::i;:::-;86784:16:::2;:36:::0;;;::::2;;;;-1:-1:-1::0;;86784:36:0;;::::2;::::0;;;::::2;::::0;;86690:138::o;82415:416::-;50790:13;;50780:23;;-1:-1:-1;;;50790:13:0;;;;50780:7;:23;:::i;:::-;50762:15;:41;50754:92;;;;-1:-1:-1;;;50754:92:0;;;;;;;:::i;:::-;46246:1:::1;46844:7;;:19;;46836:63;;;;-1:-1:-1::0;;;46836:63:0::1;;;;;;;:::i;:::-;46246:1;46977:7;:18:::0;;;82547:9;82539:47:::2;;;::::0;-1:-1:-1;;;82539:47:0;;13877:2:1;82539:47:0::2;::::0;::::2;13859:21:1::0;13916:2;13896:18;;;13889:30;-1:-1:-1;;;13935:18:1;;;13928:50;13995:18;;82539:47:0::2;13675:344:1::0;82539:47:0::2;861:10:::0;82599:12:::2;82659:30;861:10:::0;82659:24:::2;:30::i;:::-;82639:50:::0;-1:-1:-1;82708:14:0;82700:51:::2;;;::::0;-1:-1:-1;;;82700:51:0;;18803:2:1;82700:51:0::2;::::0;::::2;18785:21:1::0;18842:2;18822:18;;;18815:30;-1:-1:-1;;;18861:18:1;;;18854:54;18925:18;;82700:51:0::2;18601:348:1::0;82700:51:0::2;82803:20;82813:9;82803;:20::i;:::-;-1:-1:-1::0;;46202:1:0::1;47156:22:::0;;82415:416::o;73644:99::-;73691:14;73724:11;73717:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73644:99;:::o;79332:214::-;78838:15;;-1:-1:-1;;;78838:15:0;;-1:-1:-1;;;;;78838:15:0;861:10;-1:-1:-1;;;;;78822:31:0;;:58;;;-1:-1:-1;2280:7:0;2307:6;-1:-1:-1;;;;;2307:6:0;861:10;78857:23;78822:58;78800:144;;;;-1:-1:-1;;;78800:144:0;;;;;;;:::i;:::-;79450:17:::1;:38:::0;;;79506:32:::1;::::0;79470:18;;79506:32:::1;::::0;;;::::1;79332:214:::0;:::o;54131:540::-;50385:6;;-1:-1:-1;;;;;50385:6:0;861:10;-1:-1:-1;;;;;50369:22:0;;:49;;;-1:-1:-1;2280:7:0;2307:6;-1:-1:-1;;;;;2307:6:0;861:10;50395:23;50369:49;50347:125;;;;-1:-1:-1;;;50347:125:0;;19561:2:1;50347:125:0;;;19543:21:1;19600:2;19580:18;;;19573:30;19639:28;19619:18;;;19612:56;19685:18;;50347:125:0;19359:350:1;50347:125:0;54286:37:::1;::::0;-1:-1:-1;;;54286:37:0;;54317:4:::1;54286:37;::::0;::::1;1747:51:1::0;54260:23:0::1;::::0;54286:12:::1;-1:-1:-1::0;;;;;54286:22:0::1;::::0;::::1;::::0;1720:18:1;;54286:37:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;54260:63;;54420:6;54401:15;:25;;54393:70;;;::::0;-1:-1:-1;;;54393:70:0;;19916:2:1;54393:70:0::1;::::0;::::1;19898:21:1::0;;;19935:18;;;19928:30;19994:34;19974:18;;;19967:62;20046:18;;54393:70:0::1;19714:356:1::0;54393:70:0::1;54526:47;:12;-1:-1:-1::0;;;;;54526:25:0::1;861:10:::0;54566:6;54526:25:::1;:47::i;:::-;54634:29;::::0;;20257:25:1;;;54661:1:0::1;20313:2:1::0;20298:18;;20291:34;861:10:0;;54634:29:::1;::::0;20230:18:1;54634:29:0::1;20075:256:1::0;79045:178:0;2120:13;:11;:13::i;:::-;79127:15:::1;:34:::0;;-1:-1:-1;;;;;;79127:34:0::1;-1:-1:-1::0;;;;;;;;79127:34:0;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;79179:36:::1;::::0;::::1;::::0;-1:-1:-1;;79179:36:0::1;79045:178:::0;:::o;73546:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;73546:26:0;;;:::o;76467:1638::-;76579:7;76653:15;76630:20;;:38;76626:303;;;76904:12;;76881:20;;:35;;;;:::i;:::-;-1:-1:-1;;;;;76840:21:0;;;;;;:15;:21;;;;;;76863:12;;76831:45;;76840:21;76831:8;:45::i;:::-;76813:63;;:15;:63;:::i;:::-;76795:82;;:14;:82;:::i;:::-;:122;;;;:::i;:::-;76788:129;;;;76626:303;76995:11;:18;77028:22;;;;;:90;;-1:-1:-1;77102:15:0;77055:11;77067:21;77087:1;77067:17;:21;:::i;:::-;77055:34;;;;;;;;:::i;:::-;;;;;;;;;;;:44;;;:62;77028:90;77024:730;;;77135:18;77173:7;77168:372;77186:17;77182:1;:21;;;77168:372;;;77349:15;77322:11;77334:1;77322:14;;;;;;;;;;:::i;:::-;;;;;;;;;;;:24;;;:42;77318:58;;;77368:5;;77318:58;77422:11;77434:1;77422:14;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;:24;-1:-1:-1;;;;;77398:21:0;;;;:15;:21;;;;;;;;:48;77394:131;;;77487:11;77499:1;77487:14;;;;;;;;;;:::i;:::-;;;;;;;;;:18;:14;;;;;:18;;77471:34;;77487:18;;77471:34;;:::i;:::-;;;77394:131;77205:3;;;;:::i;:::-;;;;77168:372;;;-1:-1:-1;77624:17:0;;;77620:66;;77669:1;77662:8;;;;;;77620:66;77739:3;77707:29;;;;:14;:29;:::i;:::-;:35;;;;:::i;:::-;77700:42;;;;;;77024:730;-1:-1:-1;78088:9:0;;76467:1638;-1:-1:-1;;;76467:1638:0:o;85390:112::-;85450:44;;-1:-1:-1;;;85450:44:0;;21059:2:1;85450:44:0;;;21041:21:1;21098:2;21078:18;;;21071:30;21137:34;21117:18;;;21110:62;-1:-1:-1;;;21188:18:1;;;21181:32;21230:19;;85450:44:0;20857:398:1;92034:379:0;92262:34;;-1:-1:-1;;21437:2:1;21433:15;;;21429:53;92262:34:0;;;21417:66:1;21499:12;;;21492:28;;;92172:4:0;;;;21536:12:1;;92262:34:0;;;;;;;;;;;;92252:45;;;;;;92237:60;;92349:56;92368:11;;92349:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;92381:17:0;;;-1:-1:-1;92400:4:0;;-1:-1:-1;92349:18:0;:56::i;:::-;92342:63;92034:379;-1:-1:-1;;;;;;92034:379:0:o;81445:174::-;2120:13;:11;:13::i;:::-;50609:9:::1;50591:15;:27;50583:60;;;;-1:-1:-1::0;;;50583:60:0::1;;;;;;;:::i;:::-;81574:37:::2;81595:10;;81607:3;;81574:20;:37::i;:::-;81445:174:::0;;;;:::o;53043:1080::-;50385:6;;-1:-1:-1;;;;;50385:6:0;861:10;-1:-1:-1;;;;;50369:22:0;;:49;;;-1:-1:-1;2280:7:0;2307:6;-1:-1:-1;;;;;2307:6:0;861:10;50395:23;50369:49;50347:125;;;;-1:-1:-1;;;50347:125:0;;19561:2:1;50347:125:0;;;19543:21:1;19600:2;19580:18;;;19573:30;19639:28;19619:18;;;19612:56;19685:18;;50347:125:0;19359:350:1;50347:125:0;50790:13:::1;::::0;50780:23:::1;::::0;-1:-1:-1;;;50790:13:0;::::1;;;50780:7;:23;:::i;:::-;50762:15;:41;50754:92;;;;-1:-1:-1::0;;;50754:92:0::1;;;;;;;:::i;:::-;53152:9:::2;::::0;::::2;;53151:10;53143:37;;;::::0;-1:-1:-1;;;53143:37:0;;21761:2:1;53143:37:0::2;::::0;::::2;21743:21:1::0;21800:2;21780:18;;;21773:30;-1:-1:-1;;;21819:18:1;;;21812:44;21873:18;;53143:37:0::2;21559:338:1::0;53143:37:0::2;53193:9;:16:::0;;-1:-1:-1;;53193:16:0::2;53205:4;53193:16;::::0;;53297:37:::2;::::0;-1:-1:-1;;;53297:37:0;;53328:4:::2;53297:37;::::0;::::2;1747:51:1::0;-1:-1:-1;;;;;;;53297:12:0::2;:22;::::0;::::2;::::0;1720:18:1;;53297:37:0::2;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;53271:63:::0;-1:-1:-1;53372:56:0::2;:12;-1:-1:-1::0;;;;;53372:25:0::2;861:10:::0;53271:63;53372:25:::2;:56::i;:::-;53513:34;::::0;-1:-1:-1;;;53513:34:0;;53541:4:::2;53513:34;::::0;::::2;1747:51:1::0;53490:20:0::2;::::0;53513:9:::2;-1:-1:-1::0;;;;;53513:19:0::2;::::0;::::2;::::0;1720:18:1;;53513:34:0::2;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;53490:57;;53597:23;53623:19;:17;:19::i;:::-;53597:45;;53745:17;53778:12;53765:10;;:25;:79;;53834:10;;53765:79;;;53806:12;53765:79;53745:99:::0;-1:-1:-1;53907:20:0::2;53930:27;53942:15:::0;53745:99;53930:27:::2;:::i;:::-;53907:50:::0;-1:-1:-1;53998:50:0::2;861:10:::0;54021:12:::2;-1:-1:-1::0;;;;;53998:9:0::2;:22;::::0;54035:12;53998:22:::2;:50::i;:::-;54066:49;::::0;;20257:25:1;;;20313:2;20298:18;;20291:34;;;861:10:0;;54066:49:::2;::::0;20230:18:1;54066:49:0::2;;;;;;;53100:1023;;;;;53043:1080::o:0;57589:53::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;88094:709::-;50978:15;50965:9;:28;;50957:59;;;;-1:-1:-1;;;50957:59:0;;17021:2:1;50957:59:0;;;17003:21:1;17060:2;17040:18;;;17033:30;-1:-1:-1;;;17079:18:1;;;17072:48;17137:18;;50957:59:0;16819:342:1;50957:59:0;51054:7;51035:15;:26;;51027:48;;;;-1:-1:-1;;;51027:48:0;;17368:2:1;51027:48:0;;;17350:21:1;17407:1;17387:18;;;17380:29;-1:-1:-1;;;17425:18:1;;;17418:39;17474:18;;51027:48:0;17166:332:1;51027:48:0;88326:16:::1;::::0;88357:22;;88353:311:::1;;88471:54;861:10:::0;88500:11:::1;;88513;88471:14;:54::i;:::-;88463:80;;;;-1:-1:-1::0;;;88463:80:0::1;;;;;;;:::i;:::-;88576:16;;88562:11;:30;88558:95;;;-1:-1:-1::0;88626:11:0;88558:95:::1;88676:17;88696:39;861:10:::0;88710:12:::1;781:98:::0;88696:39:::1;88676:59;;88746:49;88764:13;88779:9;88790:4;;88746:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;88746:17:0::1;::::0;-1:-1:-1;;;88746:49:0:i:1;:::-;88294:509;;88094:709:::0;;;;;;:::o;51684:124::-;2120:13;:11;:13::i;:::-;51748:6:::1;:16:::0;;-1:-1:-1;;;;;;51748:16:0::1;-1:-1:-1::0;;;;;51748:16:0;::::1;::::0;;::::1;::::0;;;51782:18:::1;::::0;::::1;::::0;-1:-1:-1;;51782:18:0::1;51684:124:::0;:::o;81066:199::-;2120:13;:11;:13::i;:::-;50609:9:::1;50591:15;:27;50583:60;;;;-1:-1:-1::0;;;50583:60:0::1;;;;;;;:::i;:::-;81167:41:::2;81183:24;;::::0;::::2;:7;:24;:::i;:::-;74219:12:::0;:28;74151:104;81167:41:::2;81219:38;81242:14;81219:22;:38::i;:::-;81066:199:::0;:::o;59334:181::-;2120:13;:11;:13::i;:::-;59415:16:::1;:36:::0;;-1:-1:-1;;59415:36:0::1;::::0;::::1;;::::0;;::::1;::::0;;;59469:38:::1;::::0;::::1;::::0;-1:-1:-1;;59469:38:0::1;59334:181:::0;:::o;86836:160::-;78838:15;;-1:-1:-1;;;78838:15:0;;-1:-1:-1;;;;;78838:15:0;861:10;-1:-1:-1;;;;;78822:31:0;;:58;;;-1:-1:-1;2280:7:0;2307:6;-1:-1:-1;;;;;2307:6:0;861:10;78857:23;78822:58;78800:144;;;;-1:-1:-1;;;78800:144:0;;;;;;;:::i;:::-;50609:9:::1;50591:15;:27;50583:60;;;;-1:-1:-1::0;;;50583:60:0::1;;;;;;;:::i;:::-;86952:16:::2;:36:::0;86836:160::o;84379:166::-;-1:-1:-1;;;;;84493:20:0;;84449:7;84493:20;;;:14;:20;;;;;;;;84515:9;:15;;;;;;84476:61;;84493:20;84508:4;84476:16;:61::i;:::-;84469:68;84379:166;-1:-1:-1;;84379:166:0:o;52629:329::-;50188:6;;-1:-1:-1;;;;;50188:6:0;861:10;-1:-1:-1;;;;;50172:22:0;;50164:52;;;;-1:-1:-1;;;50164:52:0;;22742:2:1;50164:52:0;;;22724:21:1;22781:2;22761:18;;;22754:30;-1:-1:-1;;;22800:18:1;;;22793:47;22857:18;;50164:52:0;22540:341:1;50164:52:0;50609:9:::1;50591:15;:27;50583:60;;;;-1:-1:-1::0;;;50583:60:0::1;;;;;;;:::i;:::-;52769:63:::2;:9;-1:-1:-1::0;;;;;52769:26:0::2;861:10:::0;52818:4:::2;52825:6:::0;52769:26:::2;:63::i;:::-;52900:6;52886:10;;:20;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;52924:26:0::2;::::0;3507:25:1;;;861:10:0;;52924:26:::2;::::0;3495:2:1;3480:18;52924:26:0::2;;;;;;;;52629:329:::0;:::o;81273:164::-;2120:13;:11;:13::i;:::-;50609:9:::1;50591:15;:27;50583:60;;;;-1:-1:-1::0;;;50583:60:0::1;;;;;;;:::i;:::-;81383:46:::2;81413:15;81383:29;:46::i;87004:377::-:0;78838:15;;-1:-1:-1;;;78838:15:0;;-1:-1:-1;;;;;78838:15:0;861:10;-1:-1:-1;;;;;78822:31:0;;:58;;;-1:-1:-1;2280:7:0;2307:6;-1:-1:-1;;;;;2307:6:0;861:10;78857:23;78822:58;78800:144;;;;-1:-1:-1;;;78800:144:0;;;;;;;:::i;:::-;87165:9:::1;::::0;87142:32:::1;::::0;:20;:32:::1;:::i;:::-;87120:19;:54:::0;;;87218:18:::1;::::0;-1:-1:-1;87195:41:0::1;87187:124;;;::::0;-1:-1:-1;;;87187:124:0;;23088:2:1;87187:124:0::1;::::0;::::1;23070:21:1::0;23127:2;23107:18;;;23100:30;23166:34;23146:18;;;23139:62;23237:34;23217:18;;;23210:62;-1:-1:-1;;;23288:19:1;;;23281:37;23335:19;;87187:124:0::1;22886:474:1::0;87187:124:0::1;87329:44;::::0;87352:20;;87329:44:::1;::::0;;;::::1;87004:377:::0;:::o;57865:21::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;3140:201::-;2120:13;:11;:13::i;:::-;-1:-1:-1;;;;;3229:22:0;::::1;3221:73;;;::::0;-1:-1:-1;;;3221:73:0;;23567:2:1;3221:73:0::1;::::0;::::1;23549:21:1::0;23606:2;23586:18;;;23579:30;23645:34;23625:18;;;23618:62;-1:-1:-1;;;23696:18:1;;;23689:36;23742:19;;3221:73:0::1;23365:402:1::0;3221:73:0::1;3305:28;3324:8;3305:18;:28::i;81627:128::-:0;2120:13;:11;:13::i;:::-;50609:9:::1;50591:15;:27;50583:60;;;;-1:-1:-1::0;;;50583:60:0::1;;;;;;;:::i;:::-;81717:13:::2;:30:::0;;-1:-1:-1;;81717:30:0::2;::::0;::::2;;::::0;;;::::2;::::0;;81627:128::o;85070:250::-;85140:4;85244:9;;85228:13;:25;;;;:::i;:::-;:30;:73;;;;-1:-1:-1;;85292:9:0;;-1:-1:-1;85275:26:0;;85070:250::o;83701:243::-;861:10;83805:29;;;;:15;:29;;;;;;;;83837:15;83805:47;;83863:9;:23;;;;;:36;;83890:9;;83805:29;83863:36;;83890:9;;83863:36;:::i;:::-;;;;-1:-1:-1;83910:26:0;;-1:-1:-1;83926:9:0;83910:15;:26::i;2399:132::-;2280:7;2307:6;-1:-1:-1;;;;;2307:6:0;861:10;2463:23;2455:68;;;;-1:-1:-1;;;2455:68:0;;24091:2:1;2455:68:0;;;24073:21:1;;;24110:18;;;24103:30;24169:34;24149:18;;;24142:62;24221:18;;2455:68:0;23889:356:1;2455:68:0;2399:132::o;36922:190::-;37047:4;37100;37071:25;37084:5;37091:4;37071:12;:25::i;:::-;:33;;36922:190;-1:-1:-1;;;;36922:190:0:o;83119:574::-;83213:13;;;;83209:132;;;83251:31;83268:13;83251:16;:31::i;:::-;83243:86;;;;-1:-1:-1;;;83243:86:0;;24452:2:1;83243:86:0;;;24434:21:1;24491:2;24471:18;;;24464:30;24530:34;24510:18;;;24503:62;-1:-1:-1;;;24581:18:1;;;24574:40;24631:19;;83243:86:0;24250:406:1;83243:86:0;83375:13;83351:20;;:37;;;;;;;:::i;:::-;;;;-1:-1:-1;83399:41:0;;-1:-1:-1;83415:13:0;83430:9;83399:15;:41::i;:::-;83569:9;;861:10;83488:22;83514:29;;;:15;:29;;;;;;83488:22;;83569:9;83514:51;;47587:6;;83514:51;:::i;:::-;83513:65;;;;:::i;:::-;861:10;83589:28;;;;:14;:28;;;;;;;:45;;;83645:9;:23;;;;;:40;-1:-1:-1;;;83119:574:0:o;31907:211::-;32051:58;;-1:-1:-1;;;;;24853:32:1;;32051:58:0;;;24835:51:1;24902:18;;;24895:34;;;32024:86:0;;32044:5;;-1:-1:-1;;;32074:23:0;24808:18:1;;32051:58:0;;;;-1:-1:-1;;32051:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;32051:58:0;-1:-1:-1;;;;;;32051:58:0;;;;;;;;;;32024:19;:86::i;:::-;31907:211;;;:::o;63364:107::-;63422:7;63454:1;63449;:6;;:14;;63462:1;63449:14;;;-1:-1:-1;63458:1:0;;63442:21;-1:-1:-1;63364:107:0:o;74939:1315::-;2120:13;:11;:13::i;:::-;75060:23:::1;::::0;-1:-1:-1;;;75060:23:0;::::1;;;::::0;:57:::1;;;75105:12;;75087:15;:30;75060:57;75052:99;;;::::0;-1:-1:-1;;;75052:99:0;;25142:2:1;75052:99:0::1;::::0;::::1;25124:21:1::0;25181:2;25161:18;;;25154:30;25220:31;25200:18;;;25193:59;25269:18;;75052:99:0::1;24940:353:1::0;75052:99:0::1;75170:31:::0;;::::1;75162:71;;;::::0;-1:-1:-1;;;75162:71:0;;25500:2:1;75162:71:0::1;::::0;::::1;25482:21:1::0;25539:2;25519:18;;;25512:30;25578:29;25558:18;;;25551:57;25625:18;;75162:71:0::1;25298:351:1::0;75162:71:0::1;75252:21:::0;75244:48:::1;;;::::0;-1:-1:-1;;;75244:48:0;;25856:2:1;75244:48:0::1;::::0;::::1;25838:21:1::0;25895:2;25875:18;;;25868:30;-1:-1:-1;;;25914:18:1;;;25907:44;25968:18;;75244:48:0::1;25654:338:1::0;75244:48:0::1;75332:3;75311:24:::0;::::1;;75303:67;;;::::0;-1:-1:-1;;;75303:67:0;;26199:2:1;75303:67:0::1;::::0;::::1;26181:21:1::0;26238:2;26218:18;;;26211:30;26277:32;26257:18;;;26250:60;26327:18;;75303:67:0::1;25997:354:1::0;75303:67:0::1;75416:18;75423:11;;75416:18;:::i;:::-;75447:15;75473:14:::0;75522:12:::1;;75506:10;;75517:1;75506:13;;;;;;;:::i;:::-;;;;;;;:28;75498:93;;;::::0;-1:-1:-1;;;75498:93:0;;26558:2:1;75498:93:0::1;::::0;::::1;26540:21:1::0;26597:2;26577:18;;;26570:30;26636:34;26616:18;;;26609:62;-1:-1:-1;;;26687:18:1;;;26680:50;26747:19;;75498:93:0::1;26356:416:1::0;75498:93:0::1;75607:6;75602:268;75619:21:::0;;::::1;75602:268;;;75680:10;;75691:1;75680:13;;;;;;;:::i;:::-;;;;;;;75670:7;:23;75662:64;;;::::0;-1:-1:-1;;;75662:64:0;;26979:2:1;75662:64:0::1;::::0;::::1;26961:21:1::0;27018:2;26998:18;;;26991:30;27057;27037:18;;;27030:58;27105:18;;75662:64:0::1;26777:352:1::0;75662:64:0::1;75751:10;;75762:1;75751:13;;;;;;;:::i;:::-;;;;;;;75741:23;;75791:3;;75795:1;75791:6;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;75779:18;::::0;;::::1;:::i;:::-;;;75812:11;75829:28;;;;;;;;75835:10;;75846:1;75835:13;;;;;;;:::i;:::-;;;;;;;75829:28;;;;75850:3;;75854:1;75850:6;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;75829:28;::::0;;::::1;::::0;;;75812:46;;::::1;::::0;;::::1;::::0;;-1:-1:-1;75812:46:0;;;::::1;::::0;;;;;;::::1;::::0;;::::1;;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;;;;::::1;-1:-1:-1::0;;75812:46:0;;::::1;;::::0;;75642:3;::::1;::::0;::::1;:::i;:::-;;;;75602:268;;;-1:-1:-1::0;75903:19:0::1;72597:9;75903:7:::0;:19:::1;:::i;:::-;75888:12;;:34;75880:89;;;;-1:-1:-1::0;;;75880:89:0::1;;;;;;;:::i;:::-;76113:8;:15;;76125:3;76113:15;76105:71;;;::::0;-1:-1:-1;;;76105:71:0;;28161:2:1;76105:71:0::1;::::0;::::1;28143:21:1::0;28200:2;28180:18;;;28173:30;28239:34;28219:18;;;28212:62;-1:-1:-1;;;28290:18:1;;;28283:41;28341:19;;76105:71:0::1;27959:407:1::0;76105:71:0::1;-1:-1:-1::0;;76245:1:0::1;76222:20;:24:::0;-1:-1:-1;;;;74939:1315:0:o;83983:298::-;84044:14;84129:9;;84142:1;84129:14;84125:149;;;-1:-1:-1;84167:1:0;;83983:298::o;84125:149::-;84253:9;;84208:20;;:42;;47587:6;;84208:42;:::i;:::-;:54;;;;:::i;:::-;84201:61;;83983:298;:::o;61657:1238::-;61842:1;61827:4;61821:18;:22;61813:48;;;;-1:-1:-1;;;61813:48:0;;28573:2:1;61813:48:0;;;28555:21:1;28612:2;28592:18;;;28585:30;-1:-1:-1;;;28631:18:1;;;28624:43;28684:18;;61813:48:0;28371:337:1;61813:48:0;61940:2;61924:4;61918:18;:24;;61910:53;;;;-1:-1:-1;;;61910:53:0;;28915:2:1;61910:53:0;;;28897:21:1;28954:2;28934:18;;;28927:30;-1:-1:-1;;;28973:18:1;;;28966:46;29029:18;;61910:53:0;28713:340:1;61910:53:0;62042:35;62052:13;62067:9;62042;:35::i;:::-;62112:12;62125:4;62112:18;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;62107:108;;62168:4;62147:12;62160:4;62147:18;;;;;;:::i;:::-;;;;;;;;;;;;;;;:25;;-1:-1:-1;;62147:25:0;;;;;;;;;;;62187:5;:16;;-1:-1:-1;62187:16:0;;;;-1:-1:-1;62187:16:0;;;;;;;;;;;;;;;;;:::i;:::-;;62107:108;861:10;62232:25;;;;:11;:25;;;;;;;:31;;;;62258:4;;62232:31;:::i;:::-;;;;;;;;;;;;;;;;;62227:279;;62329:19;;861:10;62288:31;;;;:17;:31;;;;;:38;:60;62280:104;;;;-1:-1:-1;;;62280:104:0;;29541:2:1;62280:104:0;;;29523:21:1;29580:2;29560:18;;;29553:30;29619:33;29599:18;;;29592:61;29670:18;;62280:104:0;29339:355:1;62280:104:0;861:10;62399:25;;;;:11;:25;;;;;;;:31;;62433:4;;62399:25;:31;;62425:4;;62399:31;:::i;:::-;;;;;;;;;;;;;;:38;;;;;-1:-1:-1;;62399:38:0;;;;;;;;;62452:17;62399:31;62470:12;861:10;;781:98;62470:12;-1:-1:-1;;;;;62452:31:0;;;;;;;;;;;;;-1:-1:-1;62452:31:0;;;:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;62227:279;62541:13;62518;62532:4;62518:19;;;;;;:::i;:::-;;;;;;;;;;;;;;:36;;;;;;;:::i;:::-;;;;-1:-1:-1;;861:10:0;62571:41;;;;:27;:41;;;;;;;:47;;;;62613:4;;62571:47;:::i;:::-;;;;;;;;;;;;;;62622:1;62571:52;62567:112;;;62666:1;62640:16;62657:4;62640:22;;;;;;:::i;:::-;;;;;;;;;;;;;;:27;;;;;;;:::i;:::-;;;;-1:-1:-1;;62567:112:0;861:10;62689:37;;;;:23;:37;;;;;:54;;62730:13;;62689:37;:54;;62730:13;;62689:54;:::i;:::-;;;;-1:-1:-1;;861:10:0;62754:41;;;;:27;:41;;;;;;;:47;;62805:13;;62754:41;:47;;62796:4;;62754:47;:::i;:::-;;;;;;;;;;;;;;:64;;;;;;;:::i;:::-;;;;-1:-1:-1;;62836:51:0;;861:10;;62836:51;;;;62867:13;;62882:4;;62836:51;:::i;:::-;;;;;;;;61657:1238;;;:::o;52054:276::-;2120:13;:11;:13::i;:::-;50609:9:::1;50591:15;:27;50583:60;;;;-1:-1:-1::0;;;50583:60:0::1;;;;;;;:::i;:::-;47733:9:::2;52161:27;::::0;::::2;;52153:78;;;::::0;-1:-1:-1;;;52153:78:0;;30197:2:1;52153:78:0::2;::::0;::::2;30179:21:1::0;30236:2;30216:18;;;30209:30;30275:34;30255:18;;;30248:62;-1:-1:-1;;;30326:18:1;;;30319:36;30372:19;;52153:78:0::2;29995:402:1::0;52153:78:0::2;52242:13;:30:::0;;-1:-1:-1;;;;52242:30:0::2;-1:-1:-1::0;;;52242:30:0::2;::::0;::::2;::::0;;::::2;::::0;;;::::2;::::0;;;52290:32:::2;::::0;::::2;::::0;-1:-1:-1;;52290:32:0::2;52054:276:::0;:::o;32126:248::-;32297:68;;-1:-1:-1;;;;;30660:15:1;;;32297:68:0;;;30642:34:1;30712:15;;30692:18;;;30685:43;30744:18;;;30737:34;;;32270:96:0;;32290:5;;-1:-1:-1;;;32320:27:0;30577:18:1;;32297:68:0;30402:375:1;74316:615:0;2120:13;:11;:13::i;:::-;74424:23:::1;::::0;-1:-1:-1;;;74424:23:0;::::1;;;::::0;:57:::1;;;74469:12;;74451:15;:30;74424:57;74416:99;;;::::0;-1:-1:-1;;;74416:99:0;;25142:2:1;74416:99:0::1;::::0;::::1;25124:21:1::0;25181:2;25161:18;;;25154:30;25220:31;25200:18;;;25193:59;25269:18;;74416:99:0::1;24940:353:1::0;74416:99:0::1;74558:12;;74534:21;:36;74526:103;;;::::0;-1:-1:-1;;;74526:103:0;;30984:2:1;74526:103:0::1;::::0;::::1;30966:21:1::0;31023:2;31003:18;;;30996:30;31062:34;31042:18;;;31035:62;-1:-1:-1;;;31113:18:1;;;31106:52;31175:19;;74526:103:0::1;30782:418:1::0;74526:103:0::1;74663:33;72597:9;74663:21:::0;:33:::1;:::i;:::-;74648:12;;:48;74640:103;;;;-1:-1:-1::0;;;74640:103:0::1;;;;;;;:::i;:::-;74754:20;:44:::0;;;74843:18:::1;74850:11;;74843:18;:::i;:::-;74877:46;::::0;74901:21;;74877:46:::1;::::0;;;::::1;74316:615:::0;:::o;3501:191::-;3575:16;3594:6;;-1:-1:-1;;;;;3611:17:0;;;-1:-1:-1;;;;;;3611:17:0;;;;;;3644:40;;3594:6;;;;;;;3644:40;;3575:16;3644:40;3564:128;3501:191;:::o;55278:469::-;55356:18;55348:55;;;;-1:-1:-1;;;55348:55:0;;18803:2:1;55348:55:0;;;18785:21:1;18842:2;18822:18;;;18815:30;-1:-1:-1;;;18861:18:1;;;18854:54;18925:18;;55348:55:0;18601:348:1;55348:55:0;861:10;55460:26;;;;:12;:26;;;;;;;;55455:166;;55503:15;:20;;55522:1;;55503:15;;;:20;;55522:1;;55503:20;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;55605:4;55576:12;:26;55589:12;861:10;;781:98;55589:12;-1:-1:-1;;;;;55576:26:0;;;;;;;;;;;;-1:-1:-1;55576:26:0;:33;;-1:-1:-1;;55576:33:0;;;;;;;;;;55455:166;55633:51;861:10;55656:12;781:98;55633:51;55702:37;;3507:25:1;;;861:10:0;;55702:37;;3495:2:1;3480:18;55702:37:0;3361:177:1;37789:296:0;37872:7;37915:4;37872:7;37930:118;37954:5;:12;37950:1;:16;37930:118;;;38003:33;38013:12;38027:5;38033:1;38027:8;;;;;;;;:::i;:::-;;;;;;;38003:9;:33::i;:::-;37988:48;-1:-1:-1;37968:3:0;;;;:::i;:::-;;;;37930:118;;;-1:-1:-1;38065:12:0;37789:296;-1:-1:-1;;;37789:296:0:o;60435:1214::-;46246:1;46844:7;;:19;;46836:63;;;;-1:-1:-1;;;46836:63:0;;;;;;;:::i;:::-;46246:1;46977:7;:18;60546:16:::1;::::0;::::1;;60545:17;60537:48;;;::::0;-1:-1:-1;;;60537:48:0;;31640:2:1;60537:48:0::1;::::0;::::1;31622:21:1::0;31679:2;31659:18;;;31652:30;-1:-1:-1;;;31698:18:1;;;31691:48;31756:18;;60537:48:0::1;31438:342:1::0;60537:48:0::1;60616:1;60604:9;;:13;60596:44;;;::::0;-1:-1:-1;;;60596:44:0;;31987:2:1;60596:44:0::1;::::0;::::1;31969:21:1::0;32026:2;32006:18;;;31999:30;-1:-1:-1;;;32045:18:1;;;32038:48;32103:18;;60596:44:0::1;31785:342:1::0;60596:44:0::1;60798:15;;60781:13;:32;;60773:61;;;::::0;-1:-1:-1;;;60773:61:0;;32334:2:1;60773:61:0::1;::::0;::::1;32316:21:1::0;32373:2;32353:18;;;32346:30;-1:-1:-1;;;32392:18:1;;;32385:46;32448:18;;60773:61:0::1;32132:340:1::0;60773:61:0::1;60918:9;60901:13;:26;;60893:58;;;::::0;-1:-1:-1;;;60893:58:0;;32679:2:1;60893:58:0::1;::::0;::::1;32661:21:1::0;32718:2;32698:18;;;32691:30;-1:-1:-1;;;32737:18:1;;;32730:49;32796:18;;60893:58:0::1;32477:343:1::0;60893:58:0::1;60970:18:::0;60962:50:::1;;;::::0;-1:-1:-1;;;60962:50:0;;33027:2:1;60962:50:0::1;::::0;::::1;33009:21:1::0;33066:2;33046:18;;;33039:30;-1:-1:-1;;;33085:18:1;;;33078:49;33144:18;;60962:50:0::1;32825:343:1::0;60962:50:0::1;61047:13;61025:18;;:35;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;61079:19:0::1;::::0;:24;;:69:::1;;;61130:18;;61107:19;;:41;;61079:69;61071:104;;;::::0;-1:-1:-1;;;61071:104:0;;33375:2:1;61071:104:0::1;::::0;::::1;33357:21:1::0;33414:2;33394:18;;;33387:30;-1:-1:-1;;;33433:18:1;;;33426:52;33495:18;;61071:104:0::1;33173:346:1::0;61071:104:0::1;861:10:::0;61276:29:::1;::::0;;;:15:::1;:29;::::0;;;;;61272:59:::1;;61312:14;:19:::0;;61330:1:::1;::::0;61312:14;::::1;::::0;:19:::1;::::0;61330:1;;61312:19:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;61272:59;861:10:::0;61389:29:::1;::::0;;;:15:::1;:29;::::0;;;;:46;;61422:13;;61389:29;:46:::1;::::0;61422:13;;61389:46:::1;:::i;:::-;::::0;;;-1:-1:-1;61513:73:0::1;::::0;-1:-1:-1;61513:12:0::1;-1:-1:-1::0;;;;;61513:29:0::1;861:10:::0;61565:4:::1;61572:13:::0;61513:29:::1;:73::i;:::-;61604:37;::::0;3507:25:1;;;861:10:0;;61604:37:::1;::::0;3495:2:1;3480:18;61604:37:0::1;;;;;;;-1:-1:-1::0;;46202:1:0;47156:22;;60435:1214::o;34974:716::-;35398:23;35424:69;35452:4;35424:69;;;;;;;;;;;;;;;;;35432:5;-1:-1:-1;;;;;35424:27:0;;;:69;;;;;:::i;:::-;35508:17;;35398:95;;-1:-1:-1;35508:21:0;35504:179;;35605:10;35594:30;;;;;;;;;;;;:::i;:::-;35586:85;;;;-1:-1:-1;;;35586:85:0;;33976:2:1;35586:85:0;;;33958:21:1;34015:2;33995:18;;;33988:30;34054:34;34034:18;;;34027:62;-1:-1:-1;;;34105:18:1;;;34098:40;34155:19;;35586:85:0;33774:406:1;43996:149:0;44059:7;44090:1;44086;:5;:51;;44221:13;44315:15;;;44351:4;44344:15;;;44398:4;44382:21;;44086:51;;;44221:13;44315:15;;;44351:4;44344:15;;;44398:4;44382:21;;44094:20;44153:268;26614:229;26751:12;26783:52;26805:6;26813:4;26819:1;26822:12;26751;-1:-1:-1;;;;;24164:19:0;;;28021:60;;;;-1:-1:-1;;;28021:60:0;;34794:2:1;28021:60:0;;;34776:21:1;34833:2;34813:18;;;34806:30;34872:31;34852:18;;;34845:59;34921:18;;28021:60:0;34592:353:1;28021:60:0;28095:12;28109:23;28136:6;-1:-1:-1;;;;;28136:11:0;28155:5;28162:4;28136:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28094:73;;;;28185:51;28202:7;28211:10;28223:12;28185:16;:51::i;:::-;28178:58;27734:510;-1:-1:-1;;;;;;;27734:510:0:o;30420:762::-;30570:12;30599:7;30595:580;;;-1:-1:-1;30630:10:0;30623:17;;30595:580;30744:17;;:21;30740:424;;30992:10;30986:17;31053:15;31040:10;31036:2;31032:19;31025:44;30740:424;31135:12;31128:20;;-1:-1:-1;;;31128:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:367:1;77:8;87:6;141:3;134:4;126:6;122:17;118:27;108:55;;159:1;156;149:12;108:55;-1:-1:-1;182:20:1;;-1:-1:-1;;;;;214:30:1;;211:50;;;257:1;254;247:12;211:50;294:4;286:6;282:17;270:29;;354:3;347:4;337:6;334:1;330:14;322:6;318:27;314:38;311:47;308:67;;;371:1;368;361:12;308:67;14:367;;;;;:::o;386:505::-;481:6;489;497;550:2;538:9;529:7;525:23;521:32;518:52;;;566:1;563;556:12;518:52;602:9;589:23;579:33;;663:2;652:9;648:18;635:32;-1:-1:-1;;;;;682:6:1;679:30;676:50;;;722:1;719;712:12;676:50;761:70;823:7;814:6;803:9;799:22;761:70;:::i;:::-;386:505;;850:8;;-1:-1:-1;735:96:1;;-1:-1:-1;;;;386:505:1:o;896:::-;991:6;999;1007;1060:2;1048:9;1039:7;1035:23;1031:32;1028:52;;;1076:1;1073;1066:12;1028:52;1116:9;1103:23;-1:-1:-1;;;;;1141:6:1;1138:30;1135:50;;;1181:1;1178;1171:12;1135:50;1220:70;1282:7;1273:6;1262:9;1258:22;1220:70;:::i;:::-;1309:8;;1194:96;;-1:-1:-1;1391:2:1;1376:18;;;;1363:32;;896:505;-1:-1:-1;;;;896:505:1:o;1809:173::-;1877:20;;-1:-1:-1;;;;;1926:31:1;;1916:42;;1906:70;;1972:1;1969;1962:12;1906:70;1809:173;;;:::o;1987:186::-;2046:6;2099:2;2087:9;2078:7;2074:23;2070:32;2067:52;;;2115:1;2112;2105:12;2067:52;2138:29;2157:9;2138:29;:::i;2178:127::-;2239:10;2234:3;2230:20;2227:1;2220:31;2270:4;2267:1;2260:15;2294:4;2291:1;2284:15;2310:719;2353:5;2406:3;2399:4;2391:6;2387:17;2383:27;2373:55;;2424:1;2421;2414:12;2373:55;2460:6;2447:20;-1:-1:-1;;;;;2523:2:1;2519;2516:10;2513:36;;;2529:18;;:::i;:::-;2604:2;2598:9;2572:2;2658:13;;-1:-1:-1;;2654:22:1;;;2678:2;2650:31;2646:40;2634:53;;;2702:18;;;2722:22;;;2699:46;2696:72;;;2748:18;;:::i;:::-;2788:10;2784:2;2777:22;2823:2;2815:6;2808:18;2869:3;2862:4;2857:2;2849:6;2845:15;2841:26;2838:35;2835:55;;;2886:1;2883;2876:12;2835:55;2950:2;2943:4;2935:6;2931:17;2924:4;2916:6;2912:17;2899:54;2997:1;2990:4;2985:2;2977:6;2973:15;2969:26;2962:37;3017:6;3008:15;;;;;;2310:719;;;;:::o;3034:322::-;3103:6;3156:2;3144:9;3135:7;3131:23;3127:32;3124:52;;;3172:1;3169;3162:12;3124:52;3212:9;3199:23;-1:-1:-1;;;;;3237:6:1;3234:30;3231:50;;;3277:1;3274;3267:12;3231:50;3300;3342:7;3333:6;3322:9;3318:22;3300:50;:::i;3740:437::-;3826:6;3834;3887:2;3875:9;3866:7;3862:23;3858:32;3855:52;;;3903:1;3900;3893:12;3855:52;3943:9;3930:23;-1:-1:-1;;;;;3968:6:1;3965:30;3962:50;;;4008:1;4005;3998:12;3962:50;4047:70;4109:7;4100:6;4089:9;4085:22;4047:70;:::i;:::-;4136:8;;4021:96;;-1:-1:-1;3740:437:1;-1:-1:-1;;;;3740:437:1:o;4182:511::-;4277:6;4285;4293;4346:2;4334:9;4325:7;4321:23;4317:32;4314:52;;;4362:1;4359;4352:12;4314:52;4385:29;4404:9;4385:29;:::i;:::-;4375:39;;4465:2;4454:9;4450:18;4437:32;-1:-1:-1;;;;;4484:6:1;4481:30;4478:50;;;4524:1;4521;4514:12;4890:118;4976:5;4969:13;4962:21;4955:5;4952:32;4942:60;;4998:1;4995;4988:12;5013:241;5069:6;5122:2;5110:9;5101:7;5097:23;5093:32;5090:52;;;5138:1;5135;5128:12;5090:52;5177:9;5164:23;5196:28;5218:5;5196:28;:::i;5259:573::-;5363:6;5371;5379;5387;5440:2;5428:9;5419:7;5415:23;5411:32;5408:52;;;5456:1;5453;5446:12;5408:52;5492:9;5479:23;5469:33;;5553:2;5542:9;5538:18;5525:32;-1:-1:-1;;;;;5572:6:1;5569:30;5566:50;;;5612:1;5609;5602:12;5566:50;5651:70;5713:7;5704:6;5693:9;5689:22;5651:70;:::i;:::-;5259:573;;5740:8;;-1:-1:-1;5625:96:1;;5822:2;5807:18;5794:32;;5259:573;-1:-1:-1;;;;5259:573:1:o;5837:180::-;5896:6;5949:2;5937:9;5928:7;5924:23;5920:32;5917:52;;;5965:1;5962;5955:12;5917:52;-1:-1:-1;5988:23:1;;5837:180;-1:-1:-1;5837:180:1:o;6022:254::-;6090:6;6098;6151:2;6139:9;6130:7;6126:23;6122:32;6119:52;;;6167:1;6164;6157:12;6119:52;6190:29;6209:9;6190:29;:::i;:::-;6180:39;6266:2;6251:18;;;;6238:32;;-1:-1:-1;;;6022:254:1:o;6502:795::-;6719:2;6771:21;;;6841:13;;6744:18;;;6863:22;;;6690:4;;6719:2;6904;;6922:18;;;;6963:15;;;6690:4;7006:265;7020:6;7017:1;7014:13;7006:265;;;7079:13;;7117:9;;7105:22;;7171:11;;7165:18;7185:4;7161:29;7147:12;;;7140:51;7211:12;;;;7246:15;;;;7042:1;7035:9;7006:265;;;-1:-1:-1;7288:3:1;;6502:795;-1:-1:-1;;;;;;;6502:795:1:o;7747:322::-;7824:6;7832;7840;7893:2;7881:9;7872:7;7868:23;7864:32;7861:52;;;7909:1;7906;7899:12;7861:52;7945:9;7932:23;7922:33;;8002:2;7991:9;7987:18;7974:32;7964:42;;8025:38;8059:2;8048:9;8044:18;8025:38;:::i;:::-;8015:48;;7747:322;;;;;:::o;8074:396::-;8152:6;8160;8213:2;8201:9;8192:7;8188:23;8184:32;8181:52;;;8229:1;8226;8219:12;8181:52;8252:29;8271:9;8252:29;:::i;:::-;8242:39;;8332:2;8321:9;8317:18;8304:32;-1:-1:-1;;;;;8351:6:1;8348:30;8345:50;;;8391:1;8388;8381:12;8345:50;8414;8456:7;8447:6;8436:9;8432:22;8414:50;:::i;:::-;8404:60;;;8074:396;;;;;:::o;8475:579::-;8579:6;8587;8595;8603;8656:2;8644:9;8635:7;8631:23;8627:32;8624:52;;;8672:1;8669;8662:12;8624:52;8695:29;8714:9;8695:29;:::i;:::-;8685:39;;8775:2;8764:9;8760:18;8747:32;-1:-1:-1;;;;;8794:6:1;8791:30;8788:50;;;8834:1;8831;8824:12;9059:771;9179:6;9187;9195;9203;9256:2;9244:9;9235:7;9231:23;9227:32;9224:52;;;9272:1;9269;9262:12;9224:52;9312:9;9299:23;-1:-1:-1;;;;;9382:2:1;9374:6;9371:14;9368:34;;;9398:1;9395;9388:12;9368:34;9437:70;9499:7;9490:6;9479:9;9475:22;9437:70;:::i;:::-;9526:8;;-1:-1:-1;9411:96:1;-1:-1:-1;9614:2:1;9599:18;;9586:32;;-1:-1:-1;9630:16:1;;;9627:36;;;9659:1;9656;9649:12;9627:36;;9698:72;9762:7;9751:8;9740:9;9736:24;9698:72;:::i;:::-;9059:771;;;;-1:-1:-1;9789:8:1;-1:-1:-1;;;;9059:771:1:o;9835:258::-;9907:1;9917:113;9931:6;9928:1;9925:13;9917:113;;;10007:11;;;10001:18;9988:11;;;9981:39;9953:2;9946:10;9917:113;;;10048:6;10045:1;10042:13;10039:48;;;-1:-1:-1;;10083:1:1;10065:16;;10058:27;9835:258::o;10098:::-;10140:3;10178:5;10172:12;10205:6;10200:3;10193:19;10221:63;10277:6;10270:4;10265:3;10261:14;10254:4;10247:5;10243:16;10221:63;:::i;:::-;10338:2;10317:15;-1:-1:-1;;10313:29:1;10304:39;;;;10345:4;10300:50;;10098:258;-1:-1:-1;;10098:258:1:o;10361:220::-;10510:2;10499:9;10492:21;10473:4;10530:45;10571:2;10560:9;10556:18;10548:6;10530:45;:::i;10586:1044::-;10711:6;10719;10727;10735;10743;10751;10804:3;10792:9;10783:7;10779:23;10775:33;10772:53;;;10821:1;10818;10811:12;10772:53;10857:9;10844:23;10834:33;;10918:2;10907:9;10903:18;10890:32;-1:-1:-1;;;;;10982:2:1;10974:6;10971:14;10968:34;;;10998:1;10995;10988:12;10968:34;11037:70;11099:7;11090:6;11079:9;11075:22;11037:70;:::i;:::-;11126:8;;-1:-1:-1;11011:96:1;-1:-1:-1;11208:2:1;11193:18;;11180:32;;-1:-1:-1;11265:2:1;11250:18;;11237:32;;-1:-1:-1;11281:16:1;;;11278:36;;;11310:1;11307;11300:12;11278:36;11348:8;11337:9;11333:24;11323:34;;11395:7;11388:4;11384:2;11380:13;11376:27;11366:55;;11417:1;11414;11407:12;11366:55;11457:2;11444:16;11483:2;11475:6;11472:14;11469:34;;;11499:1;11496;11489:12;11469:34;11544:7;11539:2;11530:6;11526:2;11522:15;11518:24;11515:37;11512:57;;;11565:1;11562;11555:12;11512:57;11596:2;11592;11588:11;11578:21;;11618:6;11608:16;;;;;10586:1044;;;;;;;;:::o;11635:274::-;11693:6;11746:2;11734:9;11725:7;11721:23;11717:32;11714:52;;;11762:1;11759;11752:12;11714:52;11801:9;11788:23;11851:8;11844:5;11840:20;11833:5;11830:31;11820:59;;11875:1;11872;11865:12;12643:355;12845:2;12827:21;;;12884:2;12864:18;;;12857:30;12923:33;12918:2;12903:18;;12896:61;12989:2;12974:18;;12643:355::o;13003:127::-;13064:10;13059:3;13055:20;13052:1;13045:31;13095:4;13092:1;13085:15;13119:4;13116:1;13109:15;13135:128;13175:3;13206:1;13202:6;13199:1;13196:13;13193:39;;;13212:18;;:::i;:::-;-1:-1:-1;13248:9:1;;13135:128::o;13268:402::-;13470:2;13452:21;;;13509:2;13489:18;;;13482:30;13548:34;13543:2;13528:18;;13521:62;-1:-1:-1;;;13614:2:1;13599:18;;13592:36;13660:3;13645:19;;13268:402::o;14367:337::-;14569:2;14551:21;;;14608:2;14588:18;;;14581:30;-1:-1:-1;;;14642:2:1;14627:18;;14620:43;14695:2;14680:18;;14367:337::o;17503:184::-;17573:6;17626:2;17614:9;17605:7;17601:23;17597:32;17594:52;;;17642:1;17639;17632:12;17594:52;-1:-1:-1;17665:16:1;;17503:184;-1:-1:-1;17503:184:1:o;17692:168::-;17732:7;17798:1;17794;17790:6;17786:14;17783:1;17780:21;17775:1;17768:9;17761:17;17757:45;17754:71;;;17805:18;;:::i;:::-;-1:-1:-1;17845:9:1;;17692:168::o;17865:127::-;17926:10;17921:3;17917:20;17914:1;17907:31;17957:4;17954:1;17947:15;17981:4;17978:1;17971:15;17997:120;18037:1;18063;18053:35;;18068:18;;:::i;:::-;-1:-1:-1;18102:9:1;;17997:120::o;18122:125::-;18162:4;18190:1;18187;18184:8;18181:34;;;18195:18;;:::i;:::-;-1:-1:-1;18232:9:1;;18122:125::o;18252:344::-;18454:2;18436:21;;;18493:2;18473:18;;;18466:30;-1:-1:-1;;;18527:2:1;18512:18;;18505:50;18587:2;18572:18;;18252:344::o;18954:400::-;19156:2;19138:21;;;19195:2;19175:18;;;19168:30;19234:34;19229:2;19214:18;;19207:62;-1:-1:-1;;;19300:2:1;19285:18;;19278:34;19344:3;19329:19;;18954:400::o;20336:127::-;20397:10;20392:3;20388:20;20385:1;20378:31;20428:4;20425:1;20418:15;20452:4;20449:1;20442:15;20468:204;20506:3;20542:4;20539:1;20535:12;20574:4;20571:1;20567:12;20609:3;20603:4;20599:14;20594:3;20591:23;20588:49;;;20617:18;;:::i;:::-;20653:13;;20468:204;-1:-1:-1;;;20468:204:1:o;20677:175::-;20714:3;20758:4;20751:5;20747:16;20787:4;20778:7;20775:17;20772:43;;;20795:18;;:::i;:::-;20844:1;20831:15;;20677:175;-1:-1:-1;;20677:175:1:o;22155:380::-;22234:1;22230:12;;;;22277;;;22298:61;;22352:4;22344:6;22340:17;22330:27;;22298:61;22405:2;22397:6;22394:14;22374:18;22371:38;22368:161;;;22451:10;22446:3;22442:20;22439:1;22432:31;22486:4;22483:1;22476:15;22514:4;22511:1;22504:15;22368:161;;22155:380;;;:::o;23772:112::-;23804:1;23830;23820:35;;23835:18;;:::i;:::-;-1:-1:-1;23869:9:1;;23772:112::o;27134:269::-;27191:6;27244:2;27232:9;27223:7;27219:23;27215:32;27212:52;;;27260:1;27257;27250:12;27212:52;27299:9;27286:23;27349:4;27342:5;27338:16;27331:5;27328:27;27318:55;;27369:1;27366;27359:12;27408:135;27447:3;-1:-1:-1;;27468:17:1;;27465:43;;;27488:18;;:::i;:::-;-1:-1:-1;27535:1:1;27524:13;;27408:135::o;27548:406::-;27750:2;27732:21;;;27789:2;27769:18;;;27762:30;27828:34;27823:2;27808:18;;27801:62;-1:-1:-1;;;27894:2:1;27879:18;;27872:40;27944:3;27929:19;;27548:406::o;29058:276::-;29189:3;29227:6;29221:13;29243:53;29289:6;29284:3;29277:4;29269:6;29265:17;29243:53;:::i;:::-;29312:16;;;;;29058:276;-1:-1:-1;;29058:276:1:o;29699:291::-;29876:6;29865:9;29858:25;29919:2;29914;29903:9;29899:18;29892:30;29839:4;29939:45;29980:2;29969:9;29965:18;29957:6;29939:45;:::i;31205:228::-;31244:3;31272:10;31309:2;31306:1;31302:10;31339:2;31336:1;31332:10;31370:3;31366:2;31362:12;31357:3;31354:21;31351:47;;;31378:18;;:::i;:::-;31414:13;;31205:228;-1:-1:-1;;;;31205:228:1:o;33524:245::-;33591:6;33644:2;33632:9;33623:7;33619:23;33615:32;33612:52;;;33660:1;33657;33650:12;33612:52;33692:9;33686:16;33711:28;33733:5;33711:28;:::i
Swarm Source
ipfs://73046635c677b403de4a63d3102589e1bb1f813b2b5569c7dd8b31f8f6500860
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.