There are reports that this token was used in a Phishing scam. Please exercise caution when interacting with it.
ERC-20
Phish / Hack
Overview
Max Total Supply
8,650,193,372.818939 ERC-20 TOKEN*
Holders
756 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 6 Decimals)
Balance
46.2 ERC-20 TOKEN*Value
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xA0968CeE...E9dA7dbb5 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
TriumphFX
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.17; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Snapshot.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "./Releasable.sol"; contract TriumphFX is ERC20, ERC20Burnable, ERC20Snapshot, Ownable, Pausable, Releasable { using Address for address; constructor() ERC20("TriumphFX", "TFX") { _mint(msg.sender, 10485872151 * 10**decimals()); } function mint(address to, uint256 amount) public onlyOwner { _mint(to, amount); } function decimals() public pure override returns (uint8) { return 6; } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function snapshot() public onlyOwner { _snapshot(); } function _beforeTokenTransfer( address from, address to, uint256 amount ) internal override(ERC20, ERC20Snapshot) whenNotPaused { super._beforeTokenTransfer(from, to, amount); } function releaseAllETH(address payable account) public onlyOwner { _releaseAllETH(account); } function releaseETH(address payable account, uint256 amount) public onlyOwner { _releaseETH(account, amount); } function releaseAllERC20(IERC20 token, address account) public onlyOwner { _releaseAllERC20(token, account); } function releaseERC20( IERC20 token, address account, uint256 amount ) public onlyOwner { _releaseERC20(token, account, amount); } function releaseERC721( IERC721 token, address account, uint256 tokenId ) public onlyOwner { _releaseERC721(token, account, tokenId); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.17; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/utils/Address.sol"; abstract contract Releasable { using Address for address; event ReleasedETH(address to, uint256 amount); event ReleasedERC20(IERC20 indexed token, address to, uint256 amount); event ReleasedERC721(IERC721 indexed token, address to, uint256 tokenId); receive() external payable virtual {} function _releaseAllETH(address payable account) internal virtual { uint256 amount = address(this).balance; _releaseETH(account, amount); } function _releaseETH(address payable account, uint256 amount) internal virtual { uint256 totalBalance = address(this).balance; require(totalBalance != 0, "Releasable: no network tokens to release"); require( totalBalance >= amount, "Releasable: not enough network tokens to release" ); Address.sendValue(account, amount); emit ReleasedETH(account, amount); } function _releaseAllERC20(IERC20 token, address account) internal virtual { uint256 amount = token.balanceOf(address(this)); _releaseERC20(token, account, amount); } function _releaseERC20( IERC20 token, address account, uint256 amount ) internal virtual { uint256 totalBalance = token.balanceOf(address(this)); require(totalBalance != 0, "Releasable: no ERC20 tokens to release"); require( totalBalance >= amount, "Releasable: not enough ERC20 tokens to release" ); SafeERC20.safeTransfer(token, account, amount); emit ReleasedERC20(token, account, amount); } function _callOptionalReturnERC721(IERC721 token, bytes memory data) private { bytes memory returndata = address(token).functionCall( data, "Releasable: low-level call failed" ); if (returndata.length > 0) { require( abi.decode(returndata, (bool)), "Releasable: ERC721 operation did not succeed" ); } } function _releaseERC721( IERC721 token, address account, uint256 tokenId ) internal virtual { address owner = token.ownerOf(tokenId); require( owner == address(this), "Releasable: contract is not owner of ERC721 NFT" ); _callOptionalReturnERC721( token, abi.encodeWithSelector( token.transferFrom.selector, address(this), account, tokenId ) ); emit ReleasedERC721(token, account, tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `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 {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // 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); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/extensions/ERC20Snapshot.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Arrays.sol"; import "../../../utils/Counters.sol"; /** * @dev This contract extends an ERC20 token with a snapshot mechanism. When a snapshot is created, the balances and * total supply at the time are recorded for later access. * * This can be used to safely create mechanisms based on token balances such as trustless dividends or weighted voting. * In naive implementations it's possible to perform a "double spend" attack by reusing the same balance from different * accounts. By using snapshots to calculate dividends or voting power, those attacks no longer apply. It can also be * used to create an efficient ERC20 forking mechanism. * * Snapshots are created by the internal {_snapshot} function, which will emit the {Snapshot} event and return a * snapshot id. To get the total supply at the time of a snapshot, call the function {totalSupplyAt} with the snapshot * id. To get the balance of an account at the time of a snapshot, call the {balanceOfAt} function with the snapshot id * and the account address. * * NOTE: Snapshot policy can be customized by overriding the {_getCurrentSnapshotId} method. For example, having it * return `block.number` will trigger the creation of snapshot at the beginning of each new block. When overriding this * function, be careful about the monotonicity of its result. Non-monotonic snapshot ids will break the contract. * * Implementing snapshots for every block using this method will incur significant gas costs. For a gas-efficient * alternative consider {ERC20Votes}. * * ==== Gas Costs * * Snapshots are efficient. Snapshot creation is _O(1)_. Retrieval of balances or total supply from a snapshot is _O(log * n)_ in the number of snapshots that have been created, although _n_ for a specific account will generally be much * smaller since identical balances in subsequent snapshots are stored as a single entry. * * There is a constant overhead for normal ERC20 transfers due to the additional snapshot bookkeeping. This overhead is * only significant for the first transfer that immediately follows a snapshot for a particular account. Subsequent * transfers will have normal cost until the next snapshot, and so on. */ abstract contract ERC20Snapshot is ERC20 { // Inspired by Jordi Baylina's MiniMeToken to record historical balances: // https://github.com/Giveth/minime/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol using Arrays for uint256[]; using Counters for Counters.Counter; // Snapshotted values have arrays of ids and the value corresponding to that id. These could be an array of a // Snapshot struct, but that would impede usage of functions that work on an array. struct Snapshots { uint256[] ids; uint256[] values; } mapping(address => Snapshots) private _accountBalanceSnapshots; Snapshots private _totalSupplySnapshots; // Snapshot ids increase monotonically, with the first value being 1. An id of 0 is invalid. Counters.Counter private _currentSnapshotId; /** * @dev Emitted by {_snapshot} when a snapshot identified by `id` is created. */ event Snapshot(uint256 id); /** * @dev Creates a new snapshot and returns its snapshot id. * * Emits a {Snapshot} event that contains the same id. * * {_snapshot} is `internal` and you have to decide how to expose it externally. Its usage may be restricted to a * set of accounts, for example using {AccessControl}, or it may be open to the public. * * [WARNING] * ==== * While an open way of calling {_snapshot} is required for certain trust minimization mechanisms such as forking, * you must consider that it can potentially be used by attackers in two ways. * * First, it can be used to increase the cost of retrieval of values from snapshots, although it will grow * logarithmically thus rendering this attack ineffective in the long term. Second, it can be used to target * specific accounts and increase the cost of ERC20 transfers for them, in the ways specified in the Gas Costs * section above. * * We haven't measured the actual numbers; if this is something you're interested in please reach out to us. * ==== */ function _snapshot() internal virtual returns (uint256) { _currentSnapshotId.increment(); uint256 currentId = _getCurrentSnapshotId(); emit Snapshot(currentId); return currentId; } /** * @dev Get the current snapshotId */ function _getCurrentSnapshotId() internal view virtual returns (uint256) { return _currentSnapshotId.current(); } /** * @dev Retrieves the balance of `account` at the time `snapshotId` was created. */ function balanceOfAt(address account, uint256 snapshotId) public view virtual returns (uint256) { (bool snapshotted, uint256 value) = _valueAt(snapshotId, _accountBalanceSnapshots[account]); return snapshotted ? value : balanceOf(account); } /** * @dev Retrieves the total supply at the time `snapshotId` was created. */ function totalSupplyAt(uint256 snapshotId) public view virtual returns (uint256) { (bool snapshotted, uint256 value) = _valueAt(snapshotId, _totalSupplySnapshots); return snapshotted ? value : totalSupply(); } // Update balance and/or total supply snapshots before the values are modified. This is implemented // in the _beforeTokenTransfer hook, which is executed for _mint, _burn, and _transfer operations. function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override { super._beforeTokenTransfer(from, to, amount); if (from == address(0)) { // mint _updateAccountSnapshot(to); _updateTotalSupplySnapshot(); } else if (to == address(0)) { // burn _updateAccountSnapshot(from); _updateTotalSupplySnapshot(); } else { // transfer _updateAccountSnapshot(from); _updateAccountSnapshot(to); } } function _valueAt(uint256 snapshotId, Snapshots storage snapshots) private view returns (bool, uint256) { require(snapshotId > 0, "ERC20Snapshot: id is 0"); require(snapshotId <= _getCurrentSnapshotId(), "ERC20Snapshot: nonexistent id"); // When a valid snapshot is queried, there are three possibilities: // a) The queried value was not modified after the snapshot was taken. Therefore, a snapshot entry was never // created for this id, and all stored snapshot ids are smaller than the requested one. The value that corresponds // to this id is the current one. // b) The queried value was modified after the snapshot was taken. Therefore, there will be an entry with the // requested id, and its value is the one to return. // c) More snapshots were created after the requested one, and the queried value was later modified. There will be // no entry for the requested id: the value that corresponds to it is that of the smallest snapshot id that is // larger than the requested one. // // In summary, we need to find an element in an array, returning the index of the smallest value that is larger if // it is not found, unless said value doesn't exist (e.g. when all values are smaller). Arrays.findUpperBound does // exactly this. uint256 index = snapshots.ids.findUpperBound(snapshotId); if (index == snapshots.ids.length) { return (false, 0); } else { return (true, snapshots.values[index]); } } function _updateAccountSnapshot(address account) private { _updateSnapshot(_accountBalanceSnapshots[account], balanceOf(account)); } function _updateTotalSupplySnapshot() private { _updateSnapshot(_totalSupplySnapshots, totalSupply()); } function _updateSnapshot(Snapshots storage snapshots, uint256 currentValue) private { uint256 currentId = _getCurrentSnapshotId(); if (_lastSnapshotId(snapshots.ids) < currentId) { snapshots.ids.push(currentId); snapshots.values.push(currentValue); } } function _lastSnapshotId(uint256[] storage ids) private view returns (uint256) { if (ids.length == 0) { return 0; } else { return ids[ids.length - 1]; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @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"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // 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); }
// SPDX-License-Identifier: MIT // 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Arrays.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev Collection of functions related to array types. */ library Arrays { /** * @dev Searches a sorted `array` and returns the first index that contains * a value greater or equal to `element`. If no such index exists (i.e. all * values in the array are strictly less than `element`), the array length is * returned. Time complexity O(log n). * * `array` is expected to be sorted in ascending order, and to contain no * repeated elements. */ function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) { if (array.length == 0) { return 0; } uint256 low = 0; uint256 high = array.length; while (low < high) { uint256 mid = Math.average(low, high); // Note that mid will always be strictly less than high (i.e. it will be a valid array index) // because Math.average rounds down (it does integer division with truncation). if (array[mid] > element) { high = mid; } else { low = mid + 1; } } // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound. if (low > 0 && array[low - 1] == element) { return low - 1; } else { return low; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // 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; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ReleasedERC20","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC721","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ReleasedERC721","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ReleasedETH","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Snapshot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"balanceOfAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"releaseAllERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"releaseAllETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"releaseERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"releaseERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"releaseETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"snapshot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"totalSupplyAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040518060400160405280600981526020017f547269756d7068465800000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f544658000000000000000000000000000000000000000000000000000000000081525081600390816200008f91906200096f565b508060049081620000a191906200096f565b505050620000c4620000b86200012660201b60201c565b6200012e60201b60201c565b6000600960146101000a81548160ff0219169083151502179055506200012033620000f4620001f460201b60201c565b600a62000102919062000be6565b64027101b61762000114919062000c37565b620001fd60201b60201c565b62000e4a565b600033905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006006905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036200026f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002669062000ce3565b60405180910390fd5b62000283600083836200037560201b60201c565b806002600082825462000297919062000d05565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254620002ee919062000d05565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405162000355919062000d51565b60405180910390a36200037160008383620003a260201b60201c565b5050565b62000385620003a760201b60201c565b6200039d838383620003fc60201b62000c4e1760201c565b505050565b505050565b620003b7620004f560201b60201c565b15620003fa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003f19062000dbe565b60405180910390fd5b565b620004148383836200050c60201b62000d061760201c565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160362000470576200045a826200051160201b60201c565b6200046a6200057460201b60201c565b620004f0565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620004cc57620004b6836200051160201b60201c565b620004c66200057460201b60201c565b620004ef565b620004dd836200051160201b60201c565b620004ee826200051160201b60201c565b5b5b505050565b6000600960149054906101000a900460ff16905090565b505050565b62000571600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002062000565836200059860201b60201c565b620005e060201b60201c565b50565b6200059660066200058a6200066c60201b60201c565b620005e060201b60201c565b565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000620005f26200067660201b60201c565b90508062000609846000016200069460201b60201c565b1015620006675782600001819080600181540180825580915050600190039060005260206000200160009091909190915055826001018290806001815401808255809150506001900390600052602060002001600090919091909150555b505050565b6000600254905090565b60006200068f6008620006e760201b62000d0b1760201c565b905090565b600080828054905003620006ac5760009050620006e2565b8160018380549050620006c0919062000de0565b81548110620006d457620006d362000e1b565b5b906000526020600020015490505b919050565b600081600001549050919050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200077757607f821691505b6020821081036200078d576200078c6200072f565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620007f77fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620007b8565b620008038683620007b8565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620008506200084a62000844846200081b565b62000825565b6200081b565b9050919050565b6000819050919050565b6200086c836200082f565b620008846200087b8262000857565b848454620007c5565b825550505050565b600090565b6200089b6200088c565b620008a881848462000861565b505050565b5b81811015620008d057620008c460008262000891565b600181019050620008ae565b5050565b601f8211156200091f57620008e98162000793565b620008f484620007a8565b8101602085101562000904578190505b6200091c6200091385620007a8565b830182620008ad565b50505b505050565b600082821c905092915050565b6000620009446000198460080262000924565b1980831691505092915050565b60006200095f838362000931565b9150826002028217905092915050565b6200097a82620006f5565b67ffffffffffffffff81111562000996576200099562000700565b5b620009a282546200075e565b620009af828285620008d4565b600060209050601f831160018114620009e75760008415620009d2578287015190505b620009de858262000951565b86555062000a4e565b601f198416620009f78662000793565b60005b8281101562000a2157848901518255600182019150602085019450602081019050620009fa565b8683101562000a41578489015162000a3d601f89168262000931565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b600185111562000ae45780860481111562000abc5762000abb62000a56565b5b600185161562000acc5780820291505b808102905062000adc8562000a85565b945062000a9c565b94509492505050565b60008262000aff576001905062000bd2565b8162000b0f576000905062000bd2565b816001811462000b28576002811462000b335762000b69565b600191505062000bd2565b60ff84111562000b485762000b4762000a56565b5b8360020a91508482111562000b625762000b6162000a56565b5b5062000bd2565b5060208310610133831016604e8410600b841016171562000ba35782820a90508381111562000b9d5762000b9c62000a56565b5b62000bd2565b62000bb2848484600162000a92565b9250905081840481111562000bcc5762000bcb62000a56565b5b81810290505b9392505050565b600060ff82169050919050565b600062000bf3826200081b565b915062000c008362000bd9565b925062000c2f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848462000aed565b905092915050565b600062000c44826200081b565b915062000c51836200081b565b925082820262000c61816200081b565b9150828204841483151762000c7b5762000c7a62000a56565b5b5092915050565b600082825260208201905092915050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b600062000ccb601f8362000c82565b915062000cd88262000c93565b602082019050919050565b6000602082019050818103600083015262000cfe8162000cbc565b9050919050565b600062000d12826200081b565b915062000d1f836200081b565b925082820190508082111562000d3a5762000d3962000a56565b5b92915050565b62000d4b816200081b565b82525050565b600060208201905062000d68600083018462000d40565b92915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600062000da660108362000c82565b915062000db38262000d6e565b602082019050919050565b6000602082019050818103600083015262000dd98162000d97565b9050919050565b600062000ded826200081b565b915062000dfa836200081b565b925082820390508181111562000e155762000e1462000a56565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b613c538062000e5a6000396000f3fe6080604052600436106101bb5760003560e01c806379cc6790116100ec578063a9059cbb1161008a578063e8e71f0c11610064578063e8e71f0c14610617578063f2fde38b14610640578063f3b4604c14610669578063f9a5155614610692576101c2565b8063a9059cbb14610574578063d8265846146105b1578063dd62ed3e146105da576101c2565b806395d89b41116100c657806395d89b41146104b85780639711715a146104e3578063981b24d0146104fa578063a457c2d714610537576101c2565b806379cc67901461044d5780638456cb59146104765780638da5cb5b1461048d576101c2565b806340c10f19116101595780635c975abb116101335780635c975abb146103a55780636cd533d8146103d057806370a08231146103f9578063715018a614610436576101c2565b806340c10f191461031657806342966c681461033f5780634ee2cd7e14610368576101c2565b806323b872dd1161019557806323b872dd1461025a578063313ce5671461029757806339509351146102c25780633f4ba83a146102ff576101c2565b806306fdde03146101c7578063095ea7b3146101f257806318160ddd1461022f576101c2565b366101c257005b600080fd5b3480156101d357600080fd5b506101dc6106bb565b6040516101e99190612552565b60405180910390f35b3480156101fe57600080fd5b506102196004803603810190610214919061260d565b61074d565b6040516102269190612668565b60405180910390f35b34801561023b57600080fd5b50610244610770565b6040516102519190612692565b60405180910390f35b34801561026657600080fd5b50610281600480360381019061027c91906126ad565b61077a565b60405161028e9190612668565b60405180910390f35b3480156102a357600080fd5b506102ac6107a9565b6040516102b9919061271c565b60405180910390f35b3480156102ce57600080fd5b506102e960048036038101906102e4919061260d565b6107b2565b6040516102f69190612668565b60405180910390f35b34801561030b57600080fd5b506103146107e9565b005b34801561032257600080fd5b5061033d6004803603810190610338919061260d565b6107fb565b005b34801561034b57600080fd5b5061036660048036038101906103619190612737565b610811565b005b34801561037457600080fd5b5061038f600480360381019061038a919061260d565b610825565b60405161039c9190612692565b60405180910390f35b3480156103b157600080fd5b506103ba610895565b6040516103c79190612668565b60405180910390f35b3480156103dc57600080fd5b506103f760048036038101906103f291906127a2565b6108ac565b005b34801561040557600080fd5b50610420600480360381019061041b91906127f5565b6108c4565b60405161042d9190612692565b60405180910390f35b34801561044257600080fd5b5061044b61090c565b005b34801561045957600080fd5b50610474600480360381019061046f919061260d565b610920565b005b34801561048257600080fd5b5061048b610940565b005b34801561049957600080fd5b506104a2610952565b6040516104af9190612831565b60405180910390f35b3480156104c457600080fd5b506104cd61097c565b6040516104da9190612552565b60405180910390f35b3480156104ef57600080fd5b506104f8610a0e565b005b34801561050657600080fd5b50610521600480360381019061051c9190612737565b610a21565b60405161052e9190612692565b60405180910390f35b34801561054357600080fd5b5061055e6004803603810190610559919061260d565b610a52565b60405161056b9190612668565b60405180910390f35b34801561058057600080fd5b5061059b6004803603810190610596919061260d565b610ac9565b6040516105a89190612668565b60405180910390f35b3480156105bd57600080fd5b506105d860048036038101906105d3919061288a565b610aec565b005b3480156105e657600080fd5b5061060160048036038101906105fc91906128dd565b610b04565b60405161060e9190612692565b60405180910390f35b34801561062357600080fd5b5061063e6004803603810190610639919061295b565b610b8b565b005b34801561064c57600080fd5b50610667600480360381019061066291906127f5565b610ba1565b005b34801561067557600080fd5b50610690600480360381019061068b919061299b565b610c24565b005b34801561069e57600080fd5b506106b960048036038101906106b491906129c8565b610c38565b005b6060600380546106ca90612a37565b80601f01602080910402602001604051908101604052809291908181526020018280546106f690612a37565b80156107435780601f1061071857610100808354040283529160200191610743565b820191906000526020600020905b81548152906001019060200180831161072657829003601f168201915b5050505050905090565b600080610758610d19565b9050610765818585610d21565b600191505092915050565b6000600254905090565b600080610785610d19565b9050610792858285610eea565b61079d858585610f76565b60019150509392505050565b60006006905090565b6000806107bd610d19565b90506107de8185856107cf8589610b04565b6107d99190612a97565b610d21565b600191505092915050565b6107f16111f5565b6107f9611273565b565b6108036111f5565b61080d82826112d6565b5050565b61082261081c610d19565b82611435565b50565b600080600061087284600560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061160b565b915091508161088957610884856108c4565b61088b565b805b9250505092915050565b6000600960149054906101000a900460ff16905090565b6108b46111f5565b6108bf838383611700565b505050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6109146111f5565b61091e6000611865565b565b6109328261092c610d19565b83610eea565b61093c8282611435565b5050565b6109486111f5565b61095061192b565b565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461098b90612a37565b80601f01602080910402602001604051908101604052809291908181526020018280546109b790612a37565b8015610a045780601f106109d957610100808354040283529160200191610a04565b820191906000526020600020905b8154815290600101906020018083116109e757829003601f168201915b5050505050905090565b610a166111f5565b610a1e61198e565b50565b6000806000610a3184600661160b565b9150915081610a4757610a42610770565b610a49565b805b92505050919050565b600080610a5d610d19565b90506000610a6b8286610b04565b905083811015610ab0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa790612b3d565b60405180910390fd5b610abd8286868403610d21565b60019250505092915050565b600080610ad4610d19565b9050610ae1818585610f76565b600191505092915050565b610af46111f5565b610aff8383836119e4565b505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610b936111f5565b610b9d8282611ba9565b5050565b610ba96111f5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610c18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0f90612bcf565b60405180910390fd5b610c2181611865565b50565b610c2c6111f5565b610c3581611c7c565b50565b610c406111f5565b610c4a8282611c8f565b5050565b610c59838383610d06565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ca357610c9682611d1d565b610c9e611d70565b610d01565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ced57610ce083611d1d565b610ce8611d70565b610d00565b610cf683611d1d565b610cff82611d1d565b5b5b505050565b505050565b600081600001549050919050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610d90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8790612c61565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610dff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df690612cf3565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610edd9190612692565b60405180910390a3505050565b6000610ef68484610b04565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610f705781811015610f62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5990612d5f565b60405180910390fd5b610f6f8484848403610d21565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610fe5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdc90612df1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611054576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104b90612e83565b60405180910390fd5b61105f838383611d84565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156110e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110dc90612f15565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546111789190612a97565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516111dc9190612692565b60405180910390a36111ef848484611d9c565b50505050565b6111fd610d19565b73ffffffffffffffffffffffffffffffffffffffff1661121b610952565b73ffffffffffffffffffffffffffffffffffffffff1614611271576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126890612f81565b60405180910390fd5b565b61127b611da1565b6000600960146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6112bf610d19565b6040516112cc9190612831565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611345576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133c90612fed565b60405180910390fd5b61135160008383611d84565b80600260008282546113639190612a97565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546113b89190612a97565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161141d9190612692565b60405180910390a361143160008383611d9c565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036114a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149b9061307f565b60405180910390fd5b6114b082600083611d84565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611536576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152d90613111565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816002600082825461158d9190613131565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516115f29190612692565b60405180910390a361160683600084611d9c565b505050565b60008060008411611651576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611648906131b1565b60405180910390fd5b611659611dea565b84111561169b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116929061321d565b60405180910390fd5b60006116b38585600001611dfb90919063ffffffff16565b9050836000018054905081036116d05760008092509250506116f9565b60018460010182815481106116e8576116e761323d565b5b906000526020600020015492509250505b9250929050565b60008373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161173b9190612831565b602060405180830381865afa158015611758573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177c9190613281565b9050600081036117c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b890613320565b60405180910390fd5b81811015611804576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fb906133b2565b60405180910390fd5b61180f848484611ed4565b8373ffffffffffffffffffffffffffffffffffffffff167f9b387ce8bb501791bb431ae90f86364d0a652da267fb6f5f7990330590474bf984846040516118579291906133d2565b60405180910390a250505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611933611f5a565b6001600960146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611977610d19565b6040516119849190612831565b60405180910390a1565b600061199a6008611fa4565b60006119a4611dea565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb67816040516119d59190612692565b60405180910390a18091505090565b60008373ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401611a1f9190612692565b602060405180830381865afa158015611a3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a609190613410565b90503073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611ad0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac7906134af565b60405180910390fd5b611b53846323b872dd60e01b308686604051602401611af1939291906134cf565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611fba565b8373ffffffffffffffffffffffffffffffffffffffff167fd9bc2a81df2d955f059e8d82947f54b56ec95d97247b11dfc6baf27a4639dc6e8484604051611b9b9291906133d2565b60405180910390a250505050565b600047905060008103611bf1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be890613578565b60405180910390fd5b81811015611c34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2b9061360a565b60405180910390fd5b611c3e8383612064565b7fd16d88c9aab426dbbc3724268d2bc42d44e35ab4274f7284beb61fa8dfbc432a8383604051611c6f929190613689565b60405180910390a1505050565b6000479050611c8b8282611ba9565b5050565b60008273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611cca9190612831565b602060405180830381865afa158015611ce7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d0b9190613281565b9050611d18838383611700565b505050565b611d6d600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611d68836108c4565b612158565b50565b611d826006611d7d610770565b612158565b565b611d8c611f5a565b611d97838383610c4e565b505050565b505050565b611da9610895565b611de8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ddf906136fe565b60405180910390fd5b565b6000611df66008610d0b565b905090565b600080838054905003611e115760009050611ece565b600080848054905090505b80821015611e75576000611e3083836121d3565b905084868281548110611e4657611e4561323d565b5b90600052602060002001541115611e5f57809150611e6f565b600181611e6c9190612a97565b92505b50611e1c565b600082118015611ead57508385600184611e8f9190613131565b81548110611ea057611e9f61323d565b5b9060005260206000200154145b15611ec857600182611ebf9190613131565b92505050611ece565b81925050505b92915050565b611f558363a9059cbb60e01b8484604051602401611ef39291906133d2565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506121f9565b505050565b611f62610895565b15611fa2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f999061376a565b60405180910390fd5b565b6001816000016000828254019250508190555050565b6000611fff82604051806060016040528060218152602001613bfd602191398573ffffffffffffffffffffffffffffffffffffffff166122c09092919063ffffffff16565b905060008151111561205f578080602001905181019061201f91906137b6565b61205e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205590613855565b60405180910390fd5b5b505050565b804710156120a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209e906138c1565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516120cd90613912565b60006040518083038185875af1925050503d806000811461210a576040519150601f19603f3d011682016040523d82523d6000602084013e61210f565b606091505b5050905080612153576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214a90613999565b60405180910390fd5b505050565b6000612162611dea565b905080612171846000016122d8565b10156121ce5782600001819080600181540180825580915050600190039060005260206000200160009091909190915055826001018290806001815401808255809150506001900390600052602060002001600090919091909150555b505050565b600060028284186121e491906139e8565b8284166121f19190612a97565b905092915050565b600061225b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166122c09092919063ffffffff16565b90506000815111156122bb578080602001905181019061227b91906137b6565b6122ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b190613a8b565b60405180910390fd5b5b505050565b60606122cf8484600085612324565b90509392505050565b6000808280549050036122ee576000905061231f565b81600183805490506123009190613131565b815481106123115761231061323d565b5b906000526020600020015490505b919050565b606082471015612369576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236090613b1d565b60405180910390fd5b61237285612438565b6123b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a890613b89565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516123da9190613be5565b60006040518083038185875af1925050503d8060008114612417576040519150601f19603f3d011682016040523d82523d6000602084013e61241c565b606091505b509150915061242c82828661245b565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561246b578290506124bb565b60008351111561247e5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b29190612552565b60405180910390fd5b9392505050565b600081519050919050565b600082825260208201905092915050565b60005b838110156124fc5780820151818401526020810190506124e1565b60008484015250505050565b6000601f19601f8301169050919050565b6000612524826124c2565b61252e81856124cd565b935061253e8185602086016124de565b61254781612508565b840191505092915050565b6000602082019050818103600083015261256c8184612519565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006125a482612579565b9050919050565b6125b481612599565b81146125bf57600080fd5b50565b6000813590506125d1816125ab565b92915050565b6000819050919050565b6125ea816125d7565b81146125f557600080fd5b50565b600081359050612607816125e1565b92915050565b6000806040838503121561262457612623612574565b5b6000612632858286016125c2565b9250506020612643858286016125f8565b9150509250929050565b60008115159050919050565b6126628161264d565b82525050565b600060208201905061267d6000830184612659565b92915050565b61268c816125d7565b82525050565b60006020820190506126a76000830184612683565b92915050565b6000806000606084860312156126c6576126c5612574565b5b60006126d4868287016125c2565b93505060206126e5868287016125c2565b92505060406126f6868287016125f8565b9150509250925092565b600060ff82169050919050565b61271681612700565b82525050565b6000602082019050612731600083018461270d565b92915050565b60006020828403121561274d5761274c612574565b5b600061275b848285016125f8565b91505092915050565b600061276f82612599565b9050919050565b61277f81612764565b811461278a57600080fd5b50565b60008135905061279c81612776565b92915050565b6000806000606084860312156127bb576127ba612574565b5b60006127c98682870161278d565b93505060206127da868287016125c2565b92505060406127eb868287016125f8565b9150509250925092565b60006020828403121561280b5761280a612574565b5b6000612819848285016125c2565b91505092915050565b61282b81612599565b82525050565b60006020820190506128466000830184612822565b92915050565b600061285782612599565b9050919050565b6128678161284c565b811461287257600080fd5b50565b6000813590506128848161285e565b92915050565b6000806000606084860312156128a3576128a2612574565b5b60006128b186828701612875565b93505060206128c2868287016125c2565b92505060406128d3868287016125f8565b9150509250925092565b600080604083850312156128f4576128f3612574565b5b6000612902858286016125c2565b9250506020612913858286016125c2565b9150509250929050565b600061292882612579565b9050919050565b6129388161291d565b811461294357600080fd5b50565b6000813590506129558161292f565b92915050565b6000806040838503121561297257612971612574565b5b600061298085828601612946565b9250506020612991858286016125f8565b9150509250929050565b6000602082840312156129b1576129b0612574565b5b60006129bf84828501612946565b91505092915050565b600080604083850312156129df576129de612574565b5b60006129ed8582860161278d565b92505060206129fe858286016125c2565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612a4f57607f821691505b602082108103612a6257612a61612a08565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612aa2826125d7565b9150612aad836125d7565b9250828201905080821115612ac557612ac4612a68565b5b92915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000612b276025836124cd565b9150612b3282612acb565b604082019050919050565b60006020820190508181036000830152612b5681612b1a565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612bb96026836124cd565b9150612bc482612b5d565b604082019050919050565b60006020820190508181036000830152612be881612bac565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000612c4b6024836124cd565b9150612c5682612bef565b604082019050919050565b60006020820190508181036000830152612c7a81612c3e565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000612cdd6022836124cd565b9150612ce882612c81565b604082019050919050565b60006020820190508181036000830152612d0c81612cd0565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000612d49601d836124cd565b9150612d5482612d13565b602082019050919050565b60006020820190508181036000830152612d7881612d3c565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000612ddb6025836124cd565b9150612de682612d7f565b604082019050919050565b60006020820190508181036000830152612e0a81612dce565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000612e6d6023836124cd565b9150612e7882612e11565b604082019050919050565b60006020820190508181036000830152612e9c81612e60565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000612eff6026836124cd565b9150612f0a82612ea3565b604082019050919050565b60006020820190508181036000830152612f2e81612ef2565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612f6b6020836124cd565b9150612f7682612f35565b602082019050919050565b60006020820190508181036000830152612f9a81612f5e565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6000612fd7601f836124cd565b9150612fe282612fa1565b602082019050919050565b6000602082019050818103600083015261300681612fca565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006130696021836124cd565b91506130748261300d565b604082019050919050565b600060208201905081810360008301526130988161305c565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b60006130fb6022836124cd565b91506131068261309f565b604082019050919050565b6000602082019050818103600083015261312a816130ee565b9050919050565b600061313c826125d7565b9150613147836125d7565b925082820390508181111561315f5761315e612a68565b5b92915050565b7f4552433230536e617073686f743a206964206973203000000000000000000000600082015250565b600061319b6016836124cd565b91506131a682613165565b602082019050919050565b600060208201905081810360008301526131ca8161318e565b9050919050565b7f4552433230536e617073686f743a206e6f6e6578697374656e74206964000000600082015250565b6000613207601d836124cd565b9150613212826131d1565b602082019050919050565b60006020820190508181036000830152613236816131fa565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008151905061327b816125e1565b92915050565b60006020828403121561329757613296612574565b5b60006132a58482850161326c565b91505092915050565b7f52656c65617361626c653a206e6f20455243323020746f6b656e7320746f207260008201527f656c656173650000000000000000000000000000000000000000000000000000602082015250565b600061330a6026836124cd565b9150613315826132ae565b604082019050919050565b60006020820190508181036000830152613339816132fd565b9050919050565b7f52656c65617361626c653a206e6f7420656e6f75676820455243323020746f6b60008201527f656e7320746f2072656c65617365000000000000000000000000000000000000602082015250565b600061339c602e836124cd565b91506133a782613340565b604082019050919050565b600060208201905081810360008301526133cb8161338f565b9050919050565b60006040820190506133e76000830185612822565b6133f46020830184612683565b9392505050565b60008151905061340a816125ab565b92915050565b60006020828403121561342657613425612574565b5b6000613434848285016133fb565b91505092915050565b7f52656c65617361626c653a20636f6e7472616374206973206e6f74206f776e6560008201527f72206f6620455243373231204e46540000000000000000000000000000000000602082015250565b6000613499602f836124cd565b91506134a48261343d565b604082019050919050565b600060208201905081810360008301526134c88161348c565b9050919050565b60006060820190506134e46000830186612822565b6134f16020830185612822565b6134fe6040830184612683565b949350505050565b7f52656c65617361626c653a206e6f206e6574776f726b20746f6b656e7320746f60008201527f2072656c65617365000000000000000000000000000000000000000000000000602082015250565b60006135626028836124cd565b915061356d82613506565b604082019050919050565b6000602082019050818103600083015261359181613555565b9050919050565b7f52656c65617361626c653a206e6f7420656e6f756768206e6574776f726b207460008201527f6f6b656e7320746f2072656c6561736500000000000000000000000000000000602082015250565b60006135f46030836124cd565b91506135ff82613598565b604082019050919050565b60006020820190508181036000830152613623816135e7565b9050919050565b6000819050919050565b600061364f61364a61364584612579565b61362a565b612579565b9050919050565b600061366182613634565b9050919050565b600061367382613656565b9050919050565b61368381613668565b82525050565b600060408201905061369e600083018561367a565b6136ab6020830184612683565b9392505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006136e86014836124cd565b91506136f3826136b2565b602082019050919050565b60006020820190508181036000830152613717816136db565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006137546010836124cd565b915061375f8261371e565b602082019050919050565b6000602082019050818103600083015261378381613747565b9050919050565b6137938161264d565b811461379e57600080fd5b50565b6000815190506137b08161378a565b92915050565b6000602082840312156137cc576137cb612574565b5b60006137da848285016137a1565b91505092915050565b7f52656c65617361626c653a20455243373231206f7065726174696f6e2064696460008201527f206e6f7420737563636565640000000000000000000000000000000000000000602082015250565b600061383f602c836124cd565b915061384a826137e3565b604082019050919050565b6000602082019050818103600083015261386e81613832565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b60006138ab601d836124cd565b91506138b682613875565b602082019050919050565b600060208201905081810360008301526138da8161389e565b9050919050565b600081905092915050565b50565b60006138fc6000836138e1565b9150613907826138ec565b600082019050919050565b600061391d826138ef565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000613983603a836124cd565b915061398e82613927565b604082019050919050565b600060208201905081810360008301526139b281613976565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006139f3826125d7565b91506139fe836125d7565b925082613a0e57613a0d6139b9565b5b828204905092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000613a75602a836124cd565b9150613a8082613a19565b604082019050919050565b60006020820190508181036000830152613aa481613a68565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000613b076026836124cd565b9150613b1282613aab565b604082019050919050565b60006020820190508181036000830152613b3681613afa565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613b73601d836124cd565b9150613b7e82613b3d565b602082019050919050565b60006020820190508181036000830152613ba281613b66565b9050919050565b600081519050919050565b6000613bbf82613ba9565b613bc981856138e1565b9350613bd98185602086016124de565b80840191505092915050565b6000613bf18284613bb4565b91508190509291505056fe52656c65617361626c653a206c6f772d6c6576656c2063616c6c206661696c6564a264697066735822122042490ecbbdb1f28ea26d15baea82126c19f592228dfba5a8fd7074b7b614795564736f6c63430008110033
Deployed Bytecode
0x6080604052600436106101bb5760003560e01c806379cc6790116100ec578063a9059cbb1161008a578063e8e71f0c11610064578063e8e71f0c14610617578063f2fde38b14610640578063f3b4604c14610669578063f9a5155614610692576101c2565b8063a9059cbb14610574578063d8265846146105b1578063dd62ed3e146105da576101c2565b806395d89b41116100c657806395d89b41146104b85780639711715a146104e3578063981b24d0146104fa578063a457c2d714610537576101c2565b806379cc67901461044d5780638456cb59146104765780638da5cb5b1461048d576101c2565b806340c10f19116101595780635c975abb116101335780635c975abb146103a55780636cd533d8146103d057806370a08231146103f9578063715018a614610436576101c2565b806340c10f191461031657806342966c681461033f5780634ee2cd7e14610368576101c2565b806323b872dd1161019557806323b872dd1461025a578063313ce5671461029757806339509351146102c25780633f4ba83a146102ff576101c2565b806306fdde03146101c7578063095ea7b3146101f257806318160ddd1461022f576101c2565b366101c257005b600080fd5b3480156101d357600080fd5b506101dc6106bb565b6040516101e99190612552565b60405180910390f35b3480156101fe57600080fd5b506102196004803603810190610214919061260d565b61074d565b6040516102269190612668565b60405180910390f35b34801561023b57600080fd5b50610244610770565b6040516102519190612692565b60405180910390f35b34801561026657600080fd5b50610281600480360381019061027c91906126ad565b61077a565b60405161028e9190612668565b60405180910390f35b3480156102a357600080fd5b506102ac6107a9565b6040516102b9919061271c565b60405180910390f35b3480156102ce57600080fd5b506102e960048036038101906102e4919061260d565b6107b2565b6040516102f69190612668565b60405180910390f35b34801561030b57600080fd5b506103146107e9565b005b34801561032257600080fd5b5061033d6004803603810190610338919061260d565b6107fb565b005b34801561034b57600080fd5b5061036660048036038101906103619190612737565b610811565b005b34801561037457600080fd5b5061038f600480360381019061038a919061260d565b610825565b60405161039c9190612692565b60405180910390f35b3480156103b157600080fd5b506103ba610895565b6040516103c79190612668565b60405180910390f35b3480156103dc57600080fd5b506103f760048036038101906103f291906127a2565b6108ac565b005b34801561040557600080fd5b50610420600480360381019061041b91906127f5565b6108c4565b60405161042d9190612692565b60405180910390f35b34801561044257600080fd5b5061044b61090c565b005b34801561045957600080fd5b50610474600480360381019061046f919061260d565b610920565b005b34801561048257600080fd5b5061048b610940565b005b34801561049957600080fd5b506104a2610952565b6040516104af9190612831565b60405180910390f35b3480156104c457600080fd5b506104cd61097c565b6040516104da9190612552565b60405180910390f35b3480156104ef57600080fd5b506104f8610a0e565b005b34801561050657600080fd5b50610521600480360381019061051c9190612737565b610a21565b60405161052e9190612692565b60405180910390f35b34801561054357600080fd5b5061055e6004803603810190610559919061260d565b610a52565b60405161056b9190612668565b60405180910390f35b34801561058057600080fd5b5061059b6004803603810190610596919061260d565b610ac9565b6040516105a89190612668565b60405180910390f35b3480156105bd57600080fd5b506105d860048036038101906105d3919061288a565b610aec565b005b3480156105e657600080fd5b5061060160048036038101906105fc91906128dd565b610b04565b60405161060e9190612692565b60405180910390f35b34801561062357600080fd5b5061063e6004803603810190610639919061295b565b610b8b565b005b34801561064c57600080fd5b50610667600480360381019061066291906127f5565b610ba1565b005b34801561067557600080fd5b50610690600480360381019061068b919061299b565b610c24565b005b34801561069e57600080fd5b506106b960048036038101906106b491906129c8565b610c38565b005b6060600380546106ca90612a37565b80601f01602080910402602001604051908101604052809291908181526020018280546106f690612a37565b80156107435780601f1061071857610100808354040283529160200191610743565b820191906000526020600020905b81548152906001019060200180831161072657829003601f168201915b5050505050905090565b600080610758610d19565b9050610765818585610d21565b600191505092915050565b6000600254905090565b600080610785610d19565b9050610792858285610eea565b61079d858585610f76565b60019150509392505050565b60006006905090565b6000806107bd610d19565b90506107de8185856107cf8589610b04565b6107d99190612a97565b610d21565b600191505092915050565b6107f16111f5565b6107f9611273565b565b6108036111f5565b61080d82826112d6565b5050565b61082261081c610d19565b82611435565b50565b600080600061087284600560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061160b565b915091508161088957610884856108c4565b61088b565b805b9250505092915050565b6000600960149054906101000a900460ff16905090565b6108b46111f5565b6108bf838383611700565b505050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6109146111f5565b61091e6000611865565b565b6109328261092c610d19565b83610eea565b61093c8282611435565b5050565b6109486111f5565b61095061192b565b565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461098b90612a37565b80601f01602080910402602001604051908101604052809291908181526020018280546109b790612a37565b8015610a045780601f106109d957610100808354040283529160200191610a04565b820191906000526020600020905b8154815290600101906020018083116109e757829003601f168201915b5050505050905090565b610a166111f5565b610a1e61198e565b50565b6000806000610a3184600661160b565b9150915081610a4757610a42610770565b610a49565b805b92505050919050565b600080610a5d610d19565b90506000610a6b8286610b04565b905083811015610ab0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa790612b3d565b60405180910390fd5b610abd8286868403610d21565b60019250505092915050565b600080610ad4610d19565b9050610ae1818585610f76565b600191505092915050565b610af46111f5565b610aff8383836119e4565b505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610b936111f5565b610b9d8282611ba9565b5050565b610ba96111f5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610c18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0f90612bcf565b60405180910390fd5b610c2181611865565b50565b610c2c6111f5565b610c3581611c7c565b50565b610c406111f5565b610c4a8282611c8f565b5050565b610c59838383610d06565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ca357610c9682611d1d565b610c9e611d70565b610d01565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ced57610ce083611d1d565b610ce8611d70565b610d00565b610cf683611d1d565b610cff82611d1d565b5b5b505050565b505050565b600081600001549050919050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610d90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8790612c61565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610dff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df690612cf3565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610edd9190612692565b60405180910390a3505050565b6000610ef68484610b04565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610f705781811015610f62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5990612d5f565b60405180910390fd5b610f6f8484848403610d21565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610fe5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdc90612df1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611054576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104b90612e83565b60405180910390fd5b61105f838383611d84565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156110e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110dc90612f15565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546111789190612a97565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516111dc9190612692565b60405180910390a36111ef848484611d9c565b50505050565b6111fd610d19565b73ffffffffffffffffffffffffffffffffffffffff1661121b610952565b73ffffffffffffffffffffffffffffffffffffffff1614611271576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126890612f81565b60405180910390fd5b565b61127b611da1565b6000600960146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6112bf610d19565b6040516112cc9190612831565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611345576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133c90612fed565b60405180910390fd5b61135160008383611d84565b80600260008282546113639190612a97565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546113b89190612a97565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161141d9190612692565b60405180910390a361143160008383611d9c565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036114a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149b9061307f565b60405180910390fd5b6114b082600083611d84565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611536576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152d90613111565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816002600082825461158d9190613131565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516115f29190612692565b60405180910390a361160683600084611d9c565b505050565b60008060008411611651576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611648906131b1565b60405180910390fd5b611659611dea565b84111561169b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116929061321d565b60405180910390fd5b60006116b38585600001611dfb90919063ffffffff16565b9050836000018054905081036116d05760008092509250506116f9565b60018460010182815481106116e8576116e761323d565b5b906000526020600020015492509250505b9250929050565b60008373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161173b9190612831565b602060405180830381865afa158015611758573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177c9190613281565b9050600081036117c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b890613320565b60405180910390fd5b81811015611804576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fb906133b2565b60405180910390fd5b61180f848484611ed4565b8373ffffffffffffffffffffffffffffffffffffffff167f9b387ce8bb501791bb431ae90f86364d0a652da267fb6f5f7990330590474bf984846040516118579291906133d2565b60405180910390a250505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611933611f5a565b6001600960146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611977610d19565b6040516119849190612831565b60405180910390a1565b600061199a6008611fa4565b60006119a4611dea565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb67816040516119d59190612692565b60405180910390a18091505090565b60008373ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401611a1f9190612692565b602060405180830381865afa158015611a3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a609190613410565b90503073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611ad0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac7906134af565b60405180910390fd5b611b53846323b872dd60e01b308686604051602401611af1939291906134cf565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611fba565b8373ffffffffffffffffffffffffffffffffffffffff167fd9bc2a81df2d955f059e8d82947f54b56ec95d97247b11dfc6baf27a4639dc6e8484604051611b9b9291906133d2565b60405180910390a250505050565b600047905060008103611bf1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be890613578565b60405180910390fd5b81811015611c34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2b9061360a565b60405180910390fd5b611c3e8383612064565b7fd16d88c9aab426dbbc3724268d2bc42d44e35ab4274f7284beb61fa8dfbc432a8383604051611c6f929190613689565b60405180910390a1505050565b6000479050611c8b8282611ba9565b5050565b60008273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611cca9190612831565b602060405180830381865afa158015611ce7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d0b9190613281565b9050611d18838383611700565b505050565b611d6d600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611d68836108c4565b612158565b50565b611d826006611d7d610770565b612158565b565b611d8c611f5a565b611d97838383610c4e565b505050565b505050565b611da9610895565b611de8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ddf906136fe565b60405180910390fd5b565b6000611df66008610d0b565b905090565b600080838054905003611e115760009050611ece565b600080848054905090505b80821015611e75576000611e3083836121d3565b905084868281548110611e4657611e4561323d565b5b90600052602060002001541115611e5f57809150611e6f565b600181611e6c9190612a97565b92505b50611e1c565b600082118015611ead57508385600184611e8f9190613131565b81548110611ea057611e9f61323d565b5b9060005260206000200154145b15611ec857600182611ebf9190613131565b92505050611ece565b81925050505b92915050565b611f558363a9059cbb60e01b8484604051602401611ef39291906133d2565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506121f9565b505050565b611f62610895565b15611fa2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f999061376a565b60405180910390fd5b565b6001816000016000828254019250508190555050565b6000611fff82604051806060016040528060218152602001613bfd602191398573ffffffffffffffffffffffffffffffffffffffff166122c09092919063ffffffff16565b905060008151111561205f578080602001905181019061201f91906137b6565b61205e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205590613855565b60405180910390fd5b5b505050565b804710156120a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209e906138c1565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516120cd90613912565b60006040518083038185875af1925050503d806000811461210a576040519150601f19603f3d011682016040523d82523d6000602084013e61210f565b606091505b5050905080612153576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214a90613999565b60405180910390fd5b505050565b6000612162611dea565b905080612171846000016122d8565b10156121ce5782600001819080600181540180825580915050600190039060005260206000200160009091909190915055826001018290806001815401808255809150506001900390600052602060002001600090919091909150555b505050565b600060028284186121e491906139e8565b8284166121f19190612a97565b905092915050565b600061225b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166122c09092919063ffffffff16565b90506000815111156122bb578080602001905181019061227b91906137b6565b6122ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b190613a8b565b60405180910390fd5b5b505050565b60606122cf8484600085612324565b90509392505050565b6000808280549050036122ee576000905061231f565b81600183805490506123009190613131565b815481106123115761231061323d565b5b906000526020600020015490505b919050565b606082471015612369576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236090613b1d565b60405180910390fd5b61237285612438565b6123b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a890613b89565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516123da9190613be5565b60006040518083038185875af1925050503d8060008114612417576040519150601f19603f3d011682016040523d82523d6000602084013e61241c565b606091505b509150915061242c82828661245b565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561246b578290506124bb565b60008351111561247e5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b29190612552565b60405180910390fd5b9392505050565b600081519050919050565b600082825260208201905092915050565b60005b838110156124fc5780820151818401526020810190506124e1565b60008484015250505050565b6000601f19601f8301169050919050565b6000612524826124c2565b61252e81856124cd565b935061253e8185602086016124de565b61254781612508565b840191505092915050565b6000602082019050818103600083015261256c8184612519565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006125a482612579565b9050919050565b6125b481612599565b81146125bf57600080fd5b50565b6000813590506125d1816125ab565b92915050565b6000819050919050565b6125ea816125d7565b81146125f557600080fd5b50565b600081359050612607816125e1565b92915050565b6000806040838503121561262457612623612574565b5b6000612632858286016125c2565b9250506020612643858286016125f8565b9150509250929050565b60008115159050919050565b6126628161264d565b82525050565b600060208201905061267d6000830184612659565b92915050565b61268c816125d7565b82525050565b60006020820190506126a76000830184612683565b92915050565b6000806000606084860312156126c6576126c5612574565b5b60006126d4868287016125c2565b93505060206126e5868287016125c2565b92505060406126f6868287016125f8565b9150509250925092565b600060ff82169050919050565b61271681612700565b82525050565b6000602082019050612731600083018461270d565b92915050565b60006020828403121561274d5761274c612574565b5b600061275b848285016125f8565b91505092915050565b600061276f82612599565b9050919050565b61277f81612764565b811461278a57600080fd5b50565b60008135905061279c81612776565b92915050565b6000806000606084860312156127bb576127ba612574565b5b60006127c98682870161278d565b93505060206127da868287016125c2565b92505060406127eb868287016125f8565b9150509250925092565b60006020828403121561280b5761280a612574565b5b6000612819848285016125c2565b91505092915050565b61282b81612599565b82525050565b60006020820190506128466000830184612822565b92915050565b600061285782612599565b9050919050565b6128678161284c565b811461287257600080fd5b50565b6000813590506128848161285e565b92915050565b6000806000606084860312156128a3576128a2612574565b5b60006128b186828701612875565b93505060206128c2868287016125c2565b92505060406128d3868287016125f8565b9150509250925092565b600080604083850312156128f4576128f3612574565b5b6000612902858286016125c2565b9250506020612913858286016125c2565b9150509250929050565b600061292882612579565b9050919050565b6129388161291d565b811461294357600080fd5b50565b6000813590506129558161292f565b92915050565b6000806040838503121561297257612971612574565b5b600061298085828601612946565b9250506020612991858286016125f8565b9150509250929050565b6000602082840312156129b1576129b0612574565b5b60006129bf84828501612946565b91505092915050565b600080604083850312156129df576129de612574565b5b60006129ed8582860161278d565b92505060206129fe858286016125c2565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612a4f57607f821691505b602082108103612a6257612a61612a08565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612aa2826125d7565b9150612aad836125d7565b9250828201905080821115612ac557612ac4612a68565b5b92915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000612b276025836124cd565b9150612b3282612acb565b604082019050919050565b60006020820190508181036000830152612b5681612b1a565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612bb96026836124cd565b9150612bc482612b5d565b604082019050919050565b60006020820190508181036000830152612be881612bac565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000612c4b6024836124cd565b9150612c5682612bef565b604082019050919050565b60006020820190508181036000830152612c7a81612c3e565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000612cdd6022836124cd565b9150612ce882612c81565b604082019050919050565b60006020820190508181036000830152612d0c81612cd0565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000612d49601d836124cd565b9150612d5482612d13565b602082019050919050565b60006020820190508181036000830152612d7881612d3c565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000612ddb6025836124cd565b9150612de682612d7f565b604082019050919050565b60006020820190508181036000830152612e0a81612dce565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000612e6d6023836124cd565b9150612e7882612e11565b604082019050919050565b60006020820190508181036000830152612e9c81612e60565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000612eff6026836124cd565b9150612f0a82612ea3565b604082019050919050565b60006020820190508181036000830152612f2e81612ef2565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612f6b6020836124cd565b9150612f7682612f35565b602082019050919050565b60006020820190508181036000830152612f9a81612f5e565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6000612fd7601f836124cd565b9150612fe282612fa1565b602082019050919050565b6000602082019050818103600083015261300681612fca565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006130696021836124cd565b91506130748261300d565b604082019050919050565b600060208201905081810360008301526130988161305c565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b60006130fb6022836124cd565b91506131068261309f565b604082019050919050565b6000602082019050818103600083015261312a816130ee565b9050919050565b600061313c826125d7565b9150613147836125d7565b925082820390508181111561315f5761315e612a68565b5b92915050565b7f4552433230536e617073686f743a206964206973203000000000000000000000600082015250565b600061319b6016836124cd565b91506131a682613165565b602082019050919050565b600060208201905081810360008301526131ca8161318e565b9050919050565b7f4552433230536e617073686f743a206e6f6e6578697374656e74206964000000600082015250565b6000613207601d836124cd565b9150613212826131d1565b602082019050919050565b60006020820190508181036000830152613236816131fa565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008151905061327b816125e1565b92915050565b60006020828403121561329757613296612574565b5b60006132a58482850161326c565b91505092915050565b7f52656c65617361626c653a206e6f20455243323020746f6b656e7320746f207260008201527f656c656173650000000000000000000000000000000000000000000000000000602082015250565b600061330a6026836124cd565b9150613315826132ae565b604082019050919050565b60006020820190508181036000830152613339816132fd565b9050919050565b7f52656c65617361626c653a206e6f7420656e6f75676820455243323020746f6b60008201527f656e7320746f2072656c65617365000000000000000000000000000000000000602082015250565b600061339c602e836124cd565b91506133a782613340565b604082019050919050565b600060208201905081810360008301526133cb8161338f565b9050919050565b60006040820190506133e76000830185612822565b6133f46020830184612683565b9392505050565b60008151905061340a816125ab565b92915050565b60006020828403121561342657613425612574565b5b6000613434848285016133fb565b91505092915050565b7f52656c65617361626c653a20636f6e7472616374206973206e6f74206f776e6560008201527f72206f6620455243373231204e46540000000000000000000000000000000000602082015250565b6000613499602f836124cd565b91506134a48261343d565b604082019050919050565b600060208201905081810360008301526134c88161348c565b9050919050565b60006060820190506134e46000830186612822565b6134f16020830185612822565b6134fe6040830184612683565b949350505050565b7f52656c65617361626c653a206e6f206e6574776f726b20746f6b656e7320746f60008201527f2072656c65617365000000000000000000000000000000000000000000000000602082015250565b60006135626028836124cd565b915061356d82613506565b604082019050919050565b6000602082019050818103600083015261359181613555565b9050919050565b7f52656c65617361626c653a206e6f7420656e6f756768206e6574776f726b207460008201527f6f6b656e7320746f2072656c6561736500000000000000000000000000000000602082015250565b60006135f46030836124cd565b91506135ff82613598565b604082019050919050565b60006020820190508181036000830152613623816135e7565b9050919050565b6000819050919050565b600061364f61364a61364584612579565b61362a565b612579565b9050919050565b600061366182613634565b9050919050565b600061367382613656565b9050919050565b61368381613668565b82525050565b600060408201905061369e600083018561367a565b6136ab6020830184612683565b9392505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006136e86014836124cd565b91506136f3826136b2565b602082019050919050565b60006020820190508181036000830152613717816136db565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006137546010836124cd565b915061375f8261371e565b602082019050919050565b6000602082019050818103600083015261378381613747565b9050919050565b6137938161264d565b811461379e57600080fd5b50565b6000815190506137b08161378a565b92915050565b6000602082840312156137cc576137cb612574565b5b60006137da848285016137a1565b91505092915050565b7f52656c65617361626c653a20455243373231206f7065726174696f6e2064696460008201527f206e6f7420737563636565640000000000000000000000000000000000000000602082015250565b600061383f602c836124cd565b915061384a826137e3565b604082019050919050565b6000602082019050818103600083015261386e81613832565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b60006138ab601d836124cd565b91506138b682613875565b602082019050919050565b600060208201905081810360008301526138da8161389e565b9050919050565b600081905092915050565b50565b60006138fc6000836138e1565b9150613907826138ec565b600082019050919050565b600061391d826138ef565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000613983603a836124cd565b915061398e82613927565b604082019050919050565b600060208201905081810360008301526139b281613976565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006139f3826125d7565b91506139fe836125d7565b925082613a0e57613a0d6139b9565b5b828204905092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000613a75602a836124cd565b9150613a8082613a19565b604082019050919050565b60006020820190508181036000830152613aa481613a68565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000613b076026836124cd565b9150613b1282613aab565b604082019050919050565b60006020820190508181036000830152613b3681613afa565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613b73601d836124cd565b9150613b7e82613b3d565b602082019050919050565b60006020820190508181036000830152613ba281613b66565b9050919050565b600081519050919050565b6000613bbf82613ba9565b613bc981856138e1565b9350613bd98185602086016124de565b80840191505092915050565b6000613bf18284613bb4565b91508190509291505056fe52656c65617361626c653a206c6f772d6c6576656c2063616c6c206661696c6564a264697066735822122042490ecbbdb1f28ea26d15baea82126c19f592228dfba5a8fd7074b7b614795564736f6c63430008110033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.