Address Details
contract
0x505fe0D1008B691290bB57a4F0dA2e85146cb171
- Contract Name
- FactoryLastWill
- Creator
- 0x067b6e–041cd7 at 0x4beadb–cb37f0
- Balance
- 0 CELO ( )
- Locked CELO Balance
- 0.00 CELO
- Voting CELO Balance
- 0.00 CELO
- Pending Unlocked Gold
- 0.00 CELO
- Tokens
-
Fetching tokens...
- Transactions
- 4 Transactions
- Transfers
- 0 Transfers
- Gas Used
- 149,484
- Last Balance Update
- 12976097
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- FactoryLastWill
- Optimization enabled
- true
- Compiler version
- v0.8.10+commit.fc410830
- Optimization runs
- 25000
- EVM Version
- london
- Verified at
- 2022-08-19T15:50:29.637086Z
project:/contracts/lastwill/FactoryLastWill.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "./LastWill.sol"; import "../IController.sol"; contract FactoryLastWill is ReentrancyGuard { using SafeERC20 for IERC20; IERC20 public immutable NATIVE; IController public immutable CONTROLLER; mapping (address => uint256) public price; event NewContract(address contractAddress); modifier canSetPrice { require(CONTROLLER.canSetPrice(msg.sender), "Cannot set price"); _; } constructor(IERC20 _native, IController _controller) { NATIVE = _native; CONTROLLER = _controller; } function setPrice(address _token, uint256 _price) external canSetPrice { price[_token] = _price; } function deployLastWill( address tokenToPay, address[] calldata _backupAddresses, uint256[] calldata _shares, uint256 _confirmationPeriod, uint256 distributionReward ) external nonReentrant { uint256 _price = price[tokenToPay]; require(_price > 0, "Wrong payment method"); IERC20(tokenToPay).safeTransferFrom(msg.sender, CONTROLLER.feeReceiver(), _price); LastWill _lastWill = new LastWill(_backupAddresses, _shares, _confirmationPeriod); NATIVE.safeTransferFrom(msg.sender, address(_lastWill), distributionReward); _lastWill.transferOwnership(msg.sender); emit NewContract(address(_lastWill)); } }
/_openzeppelin/contracts/access/Ownable.sol
// SPDX-License-Identifier: MIT 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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
/_openzeppelin/contracts/security/ReentrancyGuard.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
/_openzeppelin/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
/_openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.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)); } } /** * @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"); } } }
/_openzeppelin/contracts/utils/Address.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
/_openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT 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; } }
/project_/contracts/IController.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; interface IController { function feeReceiver() external view returns(address); function canSetPrice(address) external view returns(bool); }
/project_/contracts/lastwill/LastWill.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract LastWill is Ownable, ReentrancyGuard { using SafeERC20 for IERC20; uint256 public CONFIRMATION_PERIOD; uint256 public lastRecordedTime; address[] public backupAddresses; uint256[] public shares; IERC20[] public tokensToSend; bool public terminated; mapping (address => bool) private _tokenIncluded; event FundsDistributed(address[] backupAddresses); modifier notTerminated() { require(!terminated, "Contract already terminated"); _; } modifier notLostKey() { require(!isLostKey(), "Key lost"); _; } constructor(address[] memory _backupAddresses, uint256[] memory _shares, uint256 _confirmationPeriod) { require(_backupAddresses.length < 5, "Cannot have more than four backup addresses"); require(_backupAddresses.length == _shares.length, "Invalid parameters"); uint256 sumOfShares; for (uint256 i; i < _backupAddresses.length; i++) { sumOfShares += _shares[i]; } require(sumOfShares == 100, "Invalid shares sum"); backupAddresses = _backupAddresses; shares = _shares; CONFIRMATION_PERIOD = _confirmationPeriod; lastRecordedTime = block.timestamp; } function isLostKey() public view returns(bool) { return (lastRecordedTime + CONFIRMATION_PERIOD < block.timestamp); } function confirm() external notTerminated notLostKey onlyOwner { lastRecordedTime = block.timestamp; } function addToken(address[] calldata _token) external notTerminated notLostKey onlyOwner { require(tokensToSend.length + _token.length < 5, "Only four tokens allowed"); for (uint256 i; i < _token.length; i++) { address currentToken = _token[i]; require(!_tokenIncluded[currentToken], "Cannot include token twice"); tokensToSend.push(IERC20(currentToken)); _tokenIncluded[currentToken] = true; } } function distribute() external notTerminated nonReentrant { require(isLostKey(), "Key is not lost"); for (uint256 i; i < tokensToSend.length; i++) { IERC20 currentToken = tokensToSend[i]; uint256 _allowance = currentToken.allowance(owner(), address(this)); uint256 _balance = currentToken.balanceOf(owner()); uint256 totalToken; if (_allowance > _balance) { totalToken = _balance; } else { totalToken = _allowance; } for (uint256 j; j < backupAddresses.length; j++) { uint256 toTransfer = (totalToken * shares[j]) / 100; if (toTransfer > 0) { try currentToken.transferFrom(owner(), backupAddresses[j], toTransfer) {} catch {} } } } payable(_msgSender()).transfer(address(this).balance); terminated = true; emit FundsDistributed(backupAddresses); } function terminateContract() external notTerminated notLostKey onlyOwner { payable(_msgSender()).transfer(address(this).balance); terminated = true; } }
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_native","internalType":"contract IERC20"},{"type":"address","name":"_controller","internalType":"contract IController"}]},{"type":"event","name":"NewContract","inputs":[{"type":"address","name":"contractAddress","internalType":"address","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IController"}],"name":"CONTROLLER","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"NATIVE","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deployLastWill","inputs":[{"type":"address","name":"tokenToPay","internalType":"address"},{"type":"address[]","name":"_backupAddresses","internalType":"address[]"},{"type":"uint256[]","name":"_shares","internalType":"uint256[]"},{"type":"uint256","name":"_confirmationPeriod","internalType":"uint256"},{"type":"uint256","name":"distributionReward","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"price","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPrice","inputs":[{"type":"address","name":"_token","internalType":"address"},{"type":"uint256","name":"_price","internalType":"uint256"}]}]
Contract Creation Code
0x60c060405234801561001057600080fd5b506040516125cc3803806125cc83398101604081905261002f91610063565b60016000556001600160a01b039182166080521660a05261009d565b6001600160a01b038116811461006057600080fd5b50565b6000806040838503121561007657600080fd5b82516100818161004b565b60208401519092506100928161004b565b809150509250929050565b60805160a0516124f66100d66000396000818161012d0152818161017d015261039e01526000818160a901526104ae01526124f66000f3fe60806040523480156200001157600080fd5b50600436106200006e5760003560e01c8063a0cf0aea1162000056578063a0cf0aea14620000a3578063aea9107814620000f5578063ee0fc121146200012757600080fd5b8062e4768b146200007357806374d25690146200008c575b600080fd5b6200008a6200008436600462000998565b6200014f565b005b6200008a6200009d36600462000a16565b62000295565b620000cb7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b620001186200010636600462000ab1565b60016020526000908152604090205481565b604051908152602001620000ec565b620000cb7f000000000000000000000000000000000000000000000000000000000000000081565b6040517fa386c7360000000000000000000000000000000000000000000000000000000081523360048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063a386c73690602401602060405180830381865afa158015620001da573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000200919062000ad1565b6200026c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f43616e6e6f74207365742070726963650000000000000000000000000000000060448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff909116600090815260016020526040902055565b6002600054141562000304576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640162000263565b6002600090815573ffffffffffffffffffffffffffffffffffffffff88168152600160205260409020548062000397576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f57726f6e67207061796d656e74206d6574686f64000000000000000000000000604482015260640162000263565b6200044e337f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663b3f006746040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000408573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200042e919062000af5565b73ffffffffffffffffffffffffffffffffffffffff8b16919084620005b2565b60008787878787604051620004639062000964565b6200047395949392919062000b15565b604051809103906000f08015801562000490573d6000803e3d6000fd5b509050620004d773ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016338386620005b2565b6040517ff2fde38b00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff82169063f2fde38b90602401600060405180830381600087803b1580156200053f57600080fd5b505af115801562000554573d6000803e3d6000fd5b505060405173ffffffffffffffffffffffffffffffffffffffff841681527f387ea218537e939551af33bbc2dd6c53b1fee55d377a0dce288258f972cb3a9c9250602001905060405180910390a15050600160005550505050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052620006499085906200064f565b50505050565b6000620006b3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16620007679092919063ffffffff16565b805190915015620007625780806020019051810190620006d4919062000ad1565b62000762576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840162000263565b505050565b606062000778848460008562000782565b90505b9392505050565b60608247101562000816576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840162000263565b843b62000880576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640162000263565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051620008ab919062000bfc565b60006040518083038185875af1925050503d8060008114620008ea576040519150601f19603f3d011682016040523d82523d6000602084013e620008ef565b606091505b5091509150620009018282866200090c565b979650505050505050565b606083156200091d5750816200077b565b8251156200092e5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000263919062000c1a565b6118538062000c6e83390190565b73ffffffffffffffffffffffffffffffffffffffff811681146200099557600080fd5b50565b60008060408385031215620009ac57600080fd5b8235620009b98162000972565b946020939093013593505050565b60008083601f840112620009da57600080fd5b50813567ffffffffffffffff811115620009f357600080fd5b6020830191508360208260051b850101111562000a0f57600080fd5b9250929050565b600080600080600080600060a0888a03121562000a3257600080fd5b873562000a3f8162000972565b9650602088013567ffffffffffffffff8082111562000a5d57600080fd5b62000a6b8b838c01620009c7565b909850965060408a013591508082111562000a8557600080fd5b5062000a948a828b01620009c7565b989b979a5095989597966060870135966080013595509350505050565b60006020828403121562000ac457600080fd5b81356200077b8162000972565b60006020828403121562000ae457600080fd5b815180151581146200077b57600080fd5b60006020828403121562000b0857600080fd5b81516200077b8162000972565b6060808252810185905260008660808301825b8881101562000b6957823562000b3e8162000972565b73ffffffffffffffffffffffffffffffffffffffff1682526020928301929091019060010162000b28565b5083810360208501528581527f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff86111562000ba357600080fd5b8560051b915081876020830137600091016020019081526040929092019290925295945050505050565b60005b8381101562000bea57818101518382015260200162000bd0565b83811115620006495750506000910152565b6000825162000c1081846020870162000bcd565b9190910192915050565b602081526000825180602084015262000c3b81604085016020870162000bcd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe60806040523480156200001157600080fd5b5060405162001853380380620018538339810160408190526200003491620003ba565b6200003f33620001c9565b600180558251600511620000ae5760405162461bcd60e51b815260206004820152602b60248201527f43616e6e6f742068617665206d6f7265207468616e20666f7572206261636b7560448201526a702061646472657373657360a81b60648201526084015b60405180910390fd5b8151835114620000f65760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b6044820152606401620000a5565b6000805b84518110156200014557838181518110620001195762000119620004a1565b6020026020010151826200012e9190620004cd565b9150806200013c81620004e8565b915050620000fa565b50806064146200018d5760405162461bcd60e51b8152602060048201526012602482015271496e76616c6964207368617265732073756d60701b6044820152606401620000a5565b8351620001a290600490602087019062000219565b508251620001b890600590602086019062000283565b505060025550504260035562000506565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805482825590600052602060002090810192821562000271579160200282015b828111156200027157825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200023a565b506200027f929150620002c1565b5090565b82805482825590600052602060002090810192821562000271579160200282015b8281111562000271578251825591602001919060010190620002a4565b5b808211156200027f5760008155600101620002c2565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620003195762000319620002d8565b604052919050565b60006001600160401b038211156200033d576200033d620002d8565b5060051b60200190565b600082601f8301126200035957600080fd5b81516020620003726200036c8362000321565b620002ee565b82815260059290921b840181019181810190868411156200039257600080fd5b8286015b84811015620003af578051835291830191830162000396565b509695505050505050565b600080600060608486031215620003d057600080fd5b83516001600160401b0380821115620003e857600080fd5b818601915086601f830112620003fd57600080fd5b81516020620004106200036c8362000321565b82815260059290921b8401810191818101908a8411156200043057600080fd5b948201945b83861015620004675785516001600160a01b0381168114620004575760008081fd5b8252948201949082019062000435565b918901519197509093505050808211156200048157600080fd5b50620004908682870162000347565b925050604084015190509250925092565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115620004e357620004e3620004b7565b500190565b6000600019821415620004ff57620004ff620004b7565b5060010190565b61133d80620005166000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c80637022b58e1161008c578063a4b42db211610066578063a4b42db2146101c6578063e4fc6b6d146101cf578063f2fde38b146101d7578063f51a7315146101ea57600080fd5b80637022b58e14610198578063715018a6146101a05780638da5cb5b146101a857600080fd5b80632629303e116100c85780632629303e1461013d5780632fd949ca146101455780633e7939111461014d57806357a858fc1461018557600080fd5b806301037d8a146100ef578063108811661461010b578063194307bf14610120575b600080fd5b6100f860025481565b6040519081526020015b60405180910390f35b61011e61011936600461107d565b6101fd565b005b60075461012d9060ff1681565b6040519015158152602001610102565b61012d61055d565b61011e610576565b61016061015b3660046110f2565b61072d565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610102565b6100f86101933660046110f2565b610764565b61011e610785565b61011e6108e8565b60005473ffffffffffffffffffffffffffffffffffffffff16610160565b6100f860035481565b61011e610975565b61011e6101e536600461110b565b610ec8565b6101606101f83660046110f2565b610ff8565b60075460ff161561026f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f436f6e747261637420616c7265616479207465726d696e61746564000000000060448201526064015b60405180910390fd5b61027761055d565b156102de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f4b6579206c6f73740000000000000000000000000000000000000000000000006044820152606401610266565b60005473ffffffffffffffffffffffffffffffffffffffff16331461035f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610266565b600654600590610370908390611177565b106103d7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4f6e6c7920666f757220746f6b656e7320616c6c6f77656400000000000000006044820152606401610266565b60005b818110156105585760008383838181106103f6576103f661118f565b905060200201602081019061040b919061110b565b73ffffffffffffffffffffffffffffffffffffffff811660009081526008602052604090205490915060ff161561049e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f43616e6e6f7420696e636c75646520746f6b656e2074776963650000000000006044820152606401610266565b6006805460018181019092557ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f01805473ffffffffffffffffffffffffffffffffffffffff9093167fffffffffffffffffffffffff00000000000000000000000000000000000000009093168317905560009182526008602052604090912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016909117905580610550816111be565b9150506103da565b505050565b6000426002546003546105709190611177565b10905090565b60075460ff16156105e3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f436f6e747261637420616c7265616479207465726d696e6174656400000000006044820152606401610266565b6105eb61055d565b15610652576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f4b6579206c6f73740000000000000000000000000000000000000000000000006044820152606401610266565b60005473ffffffffffffffffffffffffffffffffffffffff1633146106d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610266565b60405133904780156108fc02916000818181858888f193505050501580156106ff573d6000803e3d6000fd5b50600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6004818154811061073d57600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b6005818154811061077457600080fd5b600091825260209091200154905081565b60075460ff16156107f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f436f6e747261637420616c7265616479207465726d696e6174656400000000006044820152606401610266565b6107fa61055d565b15610861576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f4b6579206c6f73740000000000000000000000000000000000000000000000006044820152606401610266565b60005473ffffffffffffffffffffffffffffffffffffffff1633146108e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610266565b42600355565b60005473ffffffffffffffffffffffffffffffffffffffff163314610969576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610266565b6109736000611008565b565b60075460ff16156109e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f436f6e747261637420616c7265616479207465726d696e6174656400000000006044820152606401610266565b60026001541415610a4f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610266565b6002600155610a5c61055d565b610ac2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4b6579206973206e6f74206c6f737400000000000000000000000000000000006044820152606401610266565b60005b600654811015610e3057600060068281548110610ae457610ae461118f565b600091825260208220015473ffffffffffffffffffffffffffffffffffffffff1691508163dd62ed3e610b2c60005473ffffffffffffffffffffffffffffffffffffffff1690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152306024820152604401602060405180830381865afa158015610b9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bbf91906111f7565b905060008273ffffffffffffffffffffffffffffffffffffffff166370a08231610bfe60005473ffffffffffffffffffffffffffffffffffffffff1690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401602060405180830381865afa158015610c67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8b91906111f7565b9050600081831115610c9e575080610ca1565b50815b60005b600454811015610e18576000606460058381548110610cc557610cc561118f565b906000526020600020015484610cdb9190611210565b610ce5919061124d565b90508015610e05578573ffffffffffffffffffffffffffffffffffffffff166323b872dd610d2860005473ffffffffffffffffffffffffffffffffffffffff1690565b60048581548110610d3b57610d3b61118f565b60009182526020909120015460405160e084901b7fffffffff0000000000000000000000000000000000000000000000000000000016815273ffffffffffffffffffffffffffffffffffffffff928316600482015291166024820152604481018490526064016020604051808303816000875af1925050508015610dfa575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610df791810190611288565b60015b610e0357610e05565b505b5080610e10816111be565b915050610ca4565b50505050508080610e28906111be565b915050610ac5565b5060405133904780156108fc02916000818181858888f19350505050158015610e5d573d6000803e3d6000fd5b50600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556040517faf892e6fce881e0f5337e6c1fe110d73f9f0081a35dbc1fa8a6a73dc22075bf190610eba906004906112aa565b60405180910390a160018055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610f49576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610266565b73ffffffffffffffffffffffffffffffffffffffff8116610fec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610266565b610ff581611008565b50565b6006818154811061073d57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806020838503121561109057600080fd5b823567ffffffffffffffff808211156110a857600080fd5b818501915085601f8301126110bc57600080fd5b8135818111156110cb57600080fd5b8660208260051b85010111156110e057600080fd5b60209290920196919550909350505050565b60006020828403121561110457600080fd5b5035919050565b60006020828403121561111d57600080fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461114157600080fd5b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000821982111561118a5761118a611148565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156111f0576111f0611148565b5060010190565b60006020828403121561120957600080fd5b5051919050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561124857611248611148565b500290565b600082611283577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60006020828403121561129a57600080fd5b8151801515811461114157600080fd5b6020808252825482820181905260008481528281209092916040850190845b818110156112fb57835473ffffffffffffffffffffffffffffffffffffffff16835260019384019392850192016112c9565b5090969550505050505056fea2646970667358221220e30003c2c256cbac94946d4650aca48f79799826953d8e8d7c6efe2945360f9564736f6c634300080a0033a2646970667358221220b1f0506b78db84fa2184cef66f7691c4981c699a8c14741bbc75b343fba0978e64736f6c634300080a0033000000000000000000000000f194afdf50b03e69bd7d057c1aa9e10c9954e4c9000000000000000000000000d584e695d6bc250084d1fc472792a2e0e1303d4c
Deployed ByteCode
0x60806040523480156200001157600080fd5b50600436106200006e5760003560e01c8063a0cf0aea1162000056578063a0cf0aea14620000a3578063aea9107814620000f5578063ee0fc121146200012757600080fd5b8062e4768b146200007357806374d25690146200008c575b600080fd5b6200008a6200008436600462000998565b6200014f565b005b6200008a6200009d36600462000a16565b62000295565b620000cb7f000000000000000000000000f194afdf50b03e69bd7d057c1aa9e10c9954e4c981565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b620001186200010636600462000ab1565b60016020526000908152604090205481565b604051908152602001620000ec565b620000cb7f000000000000000000000000d584e695d6bc250084d1fc472792a2e0e1303d4c81565b6040517fa386c7360000000000000000000000000000000000000000000000000000000081523360048201527f000000000000000000000000d584e695d6bc250084d1fc472792a2e0e1303d4c73ffffffffffffffffffffffffffffffffffffffff169063a386c73690602401602060405180830381865afa158015620001da573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000200919062000ad1565b6200026c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f43616e6e6f74207365742070726963650000000000000000000000000000000060448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff909116600090815260016020526040902055565b6002600054141562000304576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640162000263565b6002600090815573ffffffffffffffffffffffffffffffffffffffff88168152600160205260409020548062000397576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f57726f6e67207061796d656e74206d6574686f64000000000000000000000000604482015260640162000263565b6200044e337f000000000000000000000000d584e695d6bc250084d1fc472792a2e0e1303d4c73ffffffffffffffffffffffffffffffffffffffff1663b3f006746040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000408573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200042e919062000af5565b73ffffffffffffffffffffffffffffffffffffffff8b16919084620005b2565b60008787878787604051620004639062000964565b6200047395949392919062000b15565b604051809103906000f08015801562000490573d6000803e3d6000fd5b509050620004d773ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000f194afdf50b03e69bd7d057c1aa9e10c9954e4c916338386620005b2565b6040517ff2fde38b00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff82169063f2fde38b90602401600060405180830381600087803b1580156200053f57600080fd5b505af115801562000554573d6000803e3d6000fd5b505060405173ffffffffffffffffffffffffffffffffffffffff841681527f387ea218537e939551af33bbc2dd6c53b1fee55d377a0dce288258f972cb3a9c9250602001905060405180910390a15050600160005550505050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052620006499085906200064f565b50505050565b6000620006b3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16620007679092919063ffffffff16565b805190915015620007625780806020019051810190620006d4919062000ad1565b62000762576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840162000263565b505050565b606062000778848460008562000782565b90505b9392505050565b60608247101562000816576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840162000263565b843b62000880576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640162000263565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051620008ab919062000bfc565b60006040518083038185875af1925050503d8060008114620008ea576040519150601f19603f3d011682016040523d82523d6000602084013e620008ef565b606091505b5091509150620009018282866200090c565b979650505050505050565b606083156200091d5750816200077b565b8251156200092e5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000263919062000c1a565b6118538062000c6e83390190565b73ffffffffffffffffffffffffffffffffffffffff811681146200099557600080fd5b50565b60008060408385031215620009ac57600080fd5b8235620009b98162000972565b946020939093013593505050565b60008083601f840112620009da57600080fd5b50813567ffffffffffffffff811115620009f357600080fd5b6020830191508360208260051b850101111562000a0f57600080fd5b9250929050565b600080600080600080600060a0888a03121562000a3257600080fd5b873562000a3f8162000972565b9650602088013567ffffffffffffffff8082111562000a5d57600080fd5b62000a6b8b838c01620009c7565b909850965060408a013591508082111562000a8557600080fd5b5062000a948a828b01620009c7565b989b979a5095989597966060870135966080013595509350505050565b60006020828403121562000ac457600080fd5b81356200077b8162000972565b60006020828403121562000ae457600080fd5b815180151581146200077b57600080fd5b60006020828403121562000b0857600080fd5b81516200077b8162000972565b6060808252810185905260008660808301825b8881101562000b6957823562000b3e8162000972565b73ffffffffffffffffffffffffffffffffffffffff1682526020928301929091019060010162000b28565b5083810360208501528581527f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff86111562000ba357600080fd5b8560051b915081876020830137600091016020019081526040929092019290925295945050505050565b60005b8381101562000bea57818101518382015260200162000bd0565b83811115620006495750506000910152565b6000825162000c1081846020870162000bcd565b9190910192915050565b602081526000825180602084015262000c3b81604085016020870162000bcd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe60806040523480156200001157600080fd5b5060405162001853380380620018538339810160408190526200003491620003ba565b6200003f33620001c9565b600180558251600511620000ae5760405162461bcd60e51b815260206004820152602b60248201527f43616e6e6f742068617665206d6f7265207468616e20666f7572206261636b7560448201526a702061646472657373657360a81b60648201526084015b60405180910390fd5b8151835114620000f65760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b6044820152606401620000a5565b6000805b84518110156200014557838181518110620001195762000119620004a1565b6020026020010151826200012e9190620004cd565b9150806200013c81620004e8565b915050620000fa565b50806064146200018d5760405162461bcd60e51b8152602060048201526012602482015271496e76616c6964207368617265732073756d60701b6044820152606401620000a5565b8351620001a290600490602087019062000219565b508251620001b890600590602086019062000283565b505060025550504260035562000506565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805482825590600052602060002090810192821562000271579160200282015b828111156200027157825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200023a565b506200027f929150620002c1565b5090565b82805482825590600052602060002090810192821562000271579160200282015b8281111562000271578251825591602001919060010190620002a4565b5b808211156200027f5760008155600101620002c2565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620003195762000319620002d8565b604052919050565b60006001600160401b038211156200033d576200033d620002d8565b5060051b60200190565b600082601f8301126200035957600080fd5b81516020620003726200036c8362000321565b620002ee565b82815260059290921b840181019181810190868411156200039257600080fd5b8286015b84811015620003af578051835291830191830162000396565b509695505050505050565b600080600060608486031215620003d057600080fd5b83516001600160401b0380821115620003e857600080fd5b818601915086601f830112620003fd57600080fd5b81516020620004106200036c8362000321565b82815260059290921b8401810191818101908a8411156200043057600080fd5b948201945b83861015620004675785516001600160a01b0381168114620004575760008081fd5b8252948201949082019062000435565b918901519197509093505050808211156200048157600080fd5b50620004908682870162000347565b925050604084015190509250925092565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115620004e357620004e3620004b7565b500190565b6000600019821415620004ff57620004ff620004b7565b5060010190565b61133d80620005166000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c80637022b58e1161008c578063a4b42db211610066578063a4b42db2146101c6578063e4fc6b6d146101cf578063f2fde38b146101d7578063f51a7315146101ea57600080fd5b80637022b58e14610198578063715018a6146101a05780638da5cb5b146101a857600080fd5b80632629303e116100c85780632629303e1461013d5780632fd949ca146101455780633e7939111461014d57806357a858fc1461018557600080fd5b806301037d8a146100ef578063108811661461010b578063194307bf14610120575b600080fd5b6100f860025481565b6040519081526020015b60405180910390f35b61011e61011936600461107d565b6101fd565b005b60075461012d9060ff1681565b6040519015158152602001610102565b61012d61055d565b61011e610576565b61016061015b3660046110f2565b61072d565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610102565b6100f86101933660046110f2565b610764565b61011e610785565b61011e6108e8565b60005473ffffffffffffffffffffffffffffffffffffffff16610160565b6100f860035481565b61011e610975565b61011e6101e536600461110b565b610ec8565b6101606101f83660046110f2565b610ff8565b60075460ff161561026f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f436f6e747261637420616c7265616479207465726d696e61746564000000000060448201526064015b60405180910390fd5b61027761055d565b156102de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f4b6579206c6f73740000000000000000000000000000000000000000000000006044820152606401610266565b60005473ffffffffffffffffffffffffffffffffffffffff16331461035f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610266565b600654600590610370908390611177565b106103d7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4f6e6c7920666f757220746f6b656e7320616c6c6f77656400000000000000006044820152606401610266565b60005b818110156105585760008383838181106103f6576103f661118f565b905060200201602081019061040b919061110b565b73ffffffffffffffffffffffffffffffffffffffff811660009081526008602052604090205490915060ff161561049e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f43616e6e6f7420696e636c75646520746f6b656e2074776963650000000000006044820152606401610266565b6006805460018181019092557ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f01805473ffffffffffffffffffffffffffffffffffffffff9093167fffffffffffffffffffffffff00000000000000000000000000000000000000009093168317905560009182526008602052604090912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016909117905580610550816111be565b9150506103da565b505050565b6000426002546003546105709190611177565b10905090565b60075460ff16156105e3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f436f6e747261637420616c7265616479207465726d696e6174656400000000006044820152606401610266565b6105eb61055d565b15610652576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f4b6579206c6f73740000000000000000000000000000000000000000000000006044820152606401610266565b60005473ffffffffffffffffffffffffffffffffffffffff1633146106d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610266565b60405133904780156108fc02916000818181858888f193505050501580156106ff573d6000803e3d6000fd5b50600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6004818154811061073d57600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b6005818154811061077457600080fd5b600091825260209091200154905081565b60075460ff16156107f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f436f6e747261637420616c7265616479207465726d696e6174656400000000006044820152606401610266565b6107fa61055d565b15610861576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f4b6579206c6f73740000000000000000000000000000000000000000000000006044820152606401610266565b60005473ffffffffffffffffffffffffffffffffffffffff1633146108e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610266565b42600355565b60005473ffffffffffffffffffffffffffffffffffffffff163314610969576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610266565b6109736000611008565b565b60075460ff16156109e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f436f6e747261637420616c7265616479207465726d696e6174656400000000006044820152606401610266565b60026001541415610a4f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610266565b6002600155610a5c61055d565b610ac2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4b6579206973206e6f74206c6f737400000000000000000000000000000000006044820152606401610266565b60005b600654811015610e3057600060068281548110610ae457610ae461118f565b600091825260208220015473ffffffffffffffffffffffffffffffffffffffff1691508163dd62ed3e610b2c60005473ffffffffffffffffffffffffffffffffffffffff1690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152306024820152604401602060405180830381865afa158015610b9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bbf91906111f7565b905060008273ffffffffffffffffffffffffffffffffffffffff166370a08231610bfe60005473ffffffffffffffffffffffffffffffffffffffff1690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401602060405180830381865afa158015610c67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8b91906111f7565b9050600081831115610c9e575080610ca1565b50815b60005b600454811015610e18576000606460058381548110610cc557610cc561118f565b906000526020600020015484610cdb9190611210565b610ce5919061124d565b90508015610e05578573ffffffffffffffffffffffffffffffffffffffff166323b872dd610d2860005473ffffffffffffffffffffffffffffffffffffffff1690565b60048581548110610d3b57610d3b61118f565b60009182526020909120015460405160e084901b7fffffffff0000000000000000000000000000000000000000000000000000000016815273ffffffffffffffffffffffffffffffffffffffff928316600482015291166024820152604481018490526064016020604051808303816000875af1925050508015610dfa575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610df791810190611288565b60015b610e0357610e05565b505b5080610e10816111be565b915050610ca4565b50505050508080610e28906111be565b915050610ac5565b5060405133904780156108fc02916000818181858888f19350505050158015610e5d573d6000803e3d6000fd5b50600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556040517faf892e6fce881e0f5337e6c1fe110d73f9f0081a35dbc1fa8a6a73dc22075bf190610eba906004906112aa565b60405180910390a160018055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610f49576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610266565b73ffffffffffffffffffffffffffffffffffffffff8116610fec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610266565b610ff581611008565b50565b6006818154811061073d57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806020838503121561109057600080fd5b823567ffffffffffffffff808211156110a857600080fd5b818501915085601f8301126110bc57600080fd5b8135818111156110cb57600080fd5b8660208260051b85010111156110e057600080fd5b60209290920196919550909350505050565b60006020828403121561110457600080fd5b5035919050565b60006020828403121561111d57600080fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461114157600080fd5b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000821982111561118a5761118a611148565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156111f0576111f0611148565b5060010190565b60006020828403121561120957600080fd5b5051919050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561124857611248611148565b500290565b600082611283577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60006020828403121561129a57600080fd5b8151801515811461114157600080fd5b6020808252825482820181905260008481528281209092916040850190845b818110156112fb57835473ffffffffffffffffffffffffffffffffffffffff16835260019384019392850192016112c9565b5090969550505050505056fea2646970667358221220e30003c2c256cbac94946d4650aca48f79799826953d8e8d7c6efe2945360f9564736f6c634300080a0033a2646970667358221220b1f0506b78db84fa2184cef66f7691c4981c699a8c14741bbc75b343fba0978e64736f6c634300080a0033