Address Details
contract
0x095307Ec1D3fb984FFfc35F347F8A74f93268FB1
- Contract Name
- FactoryNSCNBCrowdsale
- Creator
- 0x8765d1–4e1a78 at 0x25baa3–9c59b6
- 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
- Fetching transactions...
- Transfers
- Fetching transfers...
- Gas Used
- Fetching gas used...
- Last Balance Update
- 16332022
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- FactoryNSCNBCrowdsale
- Optimization enabled
- true
- Compiler version
- v0.8.10+commit.fc410830
- Optimization runs
- 25000
- EVM Version
- london
- Verified at
- 2022-08-09T03:17:12.839640Z
project:/contracts/crowdsale/FactoryNSCNBCrowdsale.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "./NSCCrowdsale/NSCCrowdsale.sol"; import "./NSCCrowdsale/NSCDatesChangeableCrowdsale.sol"; import "../IController.sol"; contract FactoryNSCNBCrowdsale is ReentrancyGuard { using SafeERC20 for IERC20; IController public immutable CONTROLLER; mapping (address => uint256[2]) public price; event NewContract(address contractAddress, uint8 contractType); modifier canSetPrice { require(CONTROLLER.canSetPrice(msg.sender), "Cannot set price"); _; } constructor(IController _controller) { CONTROLLER = _controller; } function setPrice(address _token, uint256[2] calldata _price) external canSetPrice { price[_token] = _price; } function deployNonSoftCappableCrowdsale( address[2] calldata tokenToPayAndOwner, address _token, uint256 _tokenDecimals, uint256 _duration, address[] calldata _tokens, uint256[] calldata _rates, uint256[2] calldata _limits ) external nonReentrant { uint256 _price = price[tokenToPayAndOwner[0]][0]; require(_price > 0, "Wrong payment method"); IERC20(tokenToPayAndOwner[0]).safeTransferFrom(msg.sender, CONTROLLER.feeReceiver(), _price); require(_tokens.length == _rates.length, "Invalid parameters"); NonSoftCappableCrowdsale crowdsale = new NonSoftCappableCrowdsale(_token, _tokenDecimals, _duration); crowdsale.setLimits(_limits[0], _limits[1]); for (uint256 i; i < _tokens.length; i++) { crowdsale.addPaymentMethod(_tokens[i], _rates[i]); } crowdsale.transferOwnership(tokenToPayAndOwner[1]); emit NewContract(address(crowdsale), 0); } function deployNonSoftCappableDatesChangeableCrowdsale( address[2] calldata tokenToPayAndOwner, address _token, uint256 _tokenDecimals, uint256 _duration, address[] calldata _tokens, uint256[] calldata _rates, uint256[2] calldata _limits ) external nonReentrant { uint256 _price = price[tokenToPayAndOwner[0]][1]; require(_price > 0, "Wrong payment method"); IERC20(tokenToPayAndOwner[0]).safeTransferFrom(msg.sender, CONTROLLER.feeReceiver(), _price); require(_tokens.length == _rates.length, "Invalid parameters"); NonSoftCappableDatesChangeableCrowdsale crowdsale = new NonSoftCappableDatesChangeableCrowdsale(_token, _tokenDecimals, _duration); crowdsale.setLimits(_limits[0], _limits[1]); for (uint256 i; i < _tokens.length; i++) { crowdsale.addPaymentMethod(_tokens[i], _rates[i]); } crowdsale.transferOwnership(tokenToPayAndOwner[1]); emit NewContract(address(crowdsale), 1); } }
/_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/crowdsale/CrowdsaleBase.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"; abstract contract CrowdsaleBase is Ownable, ReentrancyGuard { IERC20 public tokenToSell; uint256 public tokenDecimals; uint256 public DURATION; uint256 public totalSold; uint256 public endTime; uint256 public lowerLimit; uint256 public upperLimit; mapping(address => uint256) public bought; modifier afterStartAndBeforeEnd() { require(endTime > block.timestamp, "Already ended or not started"); _; } constructor(address _token, uint256 _tokenDecimals, uint256 _duration) { tokenToSell = IERC20(_token); tokenDecimals = _tokenDecimals; DURATION = _duration; } function setLimits(uint256 _lowerLimit, uint256 _upperLimit) external onlyOwner { lowerLimit = _lowerLimit; upperLimit = _upperLimit; } function _calculate(uint256 amountToPay, uint256 _rate) internal virtual returns(uint256) { return ((amountToPay * (10 ** tokenDecimals)) / _rate); } function _beforeSending(uint256 _toGet) internal virtual { require(_toGet >= lowerLimit, "Cannot receive less than lower limit"); bought[_msgSender()] += _toGet; require(upperLimit == 0 || bought[_msgSender()] <= upperLimit, "Cannot receive more than upper limit"); } }
/project_/contracts/crowdsale/DatesChangeable.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "./CrowdsaleBase.sol"; abstract contract DatesChangeableCrowdsale is CrowdsaleBase { function endCrowdsale() external onlyOwner afterStartAndBeforeEnd { endTime = block.timestamp; } }
/project_/contracts/crowdsale/NSCCrowdsale/NSCCrowdsale.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "../CrowdsaleBase.sol"; contract NonSoftCappableCrowdsale is CrowdsaleBase { using SafeERC20 for IERC20; mapping (address => uint256) public ratePerFullToken; constructor(address _token, uint256 _tokenDecimals, uint256 _duration) CrowdsaleBase(_token, _tokenDecimals, _duration) { } function start() external onlyOwner { require(endTime == 0, "Already started"); endTime = block.timestamp + DURATION; } function addPaymentMethod(address token, uint256 rate) external onlyOwner { require(token != address(tokenToSell), "Cannot add sellable token as payment method"); ratePerFullToken[token] = rate; } function buy(address tokenToPay, uint256 amountToPay) external afterStartAndBeforeEnd nonReentrant { uint256 _rate = ratePerFullToken[tokenToPay]; require(_rate > 0, "Invalid payment method"); IERC20(tokenToPay).safeTransferFrom(_msgSender(), address(this), amountToPay); uint256 toGet = _calculate(amountToPay, _rate); _beforeSending(toGet); totalSold += toGet; tokenToSell.safeTransfer(_msgSender(), toGet); } function getToken(address token) external onlyOwner nonReentrant { if (token == address(tokenToSell)) { require(block.timestamp > endTime, "Not ended yet"); } IERC20(token).safeTransfer(_msgSender(), IERC20(token).balanceOf(address(this))); } }
/project_/contracts/crowdsale/NSCCrowdsale/NSCDatesChangeableCrowdsale.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "../DatesChangeable.sol"; contract NonSoftCappableDatesChangeableCrowdsale is DatesChangeableCrowdsale { using SafeERC20 for IERC20; mapping (address => uint256) public ratePerFullToken; constructor(address _token, uint256 _tokenDecimals, uint256 _duration) CrowdsaleBase(_token, _tokenDecimals, _duration) { } function start() external onlyOwner { require(endTime == 0, "Already started"); endTime = block.timestamp + DURATION; } function addPaymentMethod(address token, uint256 rate) external onlyOwner { require(token != address(tokenToSell), "Cannot add sellable token as payment method"); ratePerFullToken[token] = rate; } function increaseEndTime(uint256 toIncrease) external onlyOwner afterStartAndBeforeEnd { endTime = endTime + toIncrease; } function buy(address tokenToPay, uint256 amountToPay) external afterStartAndBeforeEnd nonReentrant { uint256 _rate = ratePerFullToken[tokenToPay]; require(_rate > 0, "Invalid payment method"); IERC20(tokenToPay).safeTransferFrom(_msgSender(), address(this), amountToPay); uint256 toGet = _calculate(amountToPay, _rate); _beforeSending(toGet); totalSold += toGet; tokenToSell.safeTransfer(_msgSender(), toGet); } function getToken(address token) external onlyOwner nonReentrant { if (token == address(tokenToSell)) { require(block.timestamp > endTime, "Not ended yet"); } IERC20(token).safeTransfer(_msgSender(), IERC20(token).balanceOf(address(this))); } }
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_controller","internalType":"contract IController"}]},{"type":"event","name":"NewContract","inputs":[{"type":"address","name":"contractAddress","internalType":"address","indexed":false},{"type":"uint8","name":"contractType","internalType":"uint8","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IController"}],"name":"CONTROLLER","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deployNonSoftCappableCrowdsale","inputs":[{"type":"address[2]","name":"tokenToPayAndOwner","internalType":"address[2]"},{"type":"address","name":"_token","internalType":"address"},{"type":"uint256","name":"_tokenDecimals","internalType":"uint256"},{"type":"uint256","name":"_duration","internalType":"uint256"},{"type":"address[]","name":"_tokens","internalType":"address[]"},{"type":"uint256[]","name":"_rates","internalType":"uint256[]"},{"type":"uint256[2]","name":"_limits","internalType":"uint256[2]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deployNonSoftCappableDatesChangeableCrowdsale","inputs":[{"type":"address[2]","name":"tokenToPayAndOwner","internalType":"address[2]"},{"type":"address","name":"_token","internalType":"address"},{"type":"uint256","name":"_tokenDecimals","internalType":"uint256"},{"type":"uint256","name":"_duration","internalType":"uint256"},{"type":"address[]","name":"_tokens","internalType":"address[]"},{"type":"uint256[]","name":"_rates","internalType":"uint256[]"},{"type":"uint256[2]","name":"_limits","internalType":"uint256[2]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"price","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPrice","inputs":[{"type":"address","name":"_token","internalType":"address"},{"type":"uint256[2]","name":"_price","internalType":"uint256[2]"}]}]
Contract Creation Code
0x60a060405234801561001057600080fd5b506040516142fe3803806142fe83398101604081905261002f91610045565b60016000556001600160a01b0316608052610075565b60006020828403121561005757600080fd5b81516001600160a01b038116811461006e57600080fd5b9392505050565b60805161425a6100a46000396000818160d2015281816101470152818161038801526108b6015261425a6000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c80637a58664a116100505780637a58664a14610094578063ad9b8024146100a7578063ee0fc121146100cd57600080fd5b806319cfe1e71461006c5780632282080514610081575b600080fd5b61007f61007a3660046110c5565b610119565b005b61007f61008f366004611147565b610268565b61007f6100a2366004611147565b61079c565b6100ba6100b5366004611200565b610c64565b6040519081526020015b60405180910390f35b6100f47f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100c4565b6040517fa386c7360000000000000000000000000000000000000000000000000000000081523360048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063a386c73690602401602060405180830381865afa1580156101a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101c7919061122c565b610232576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f43616e6e6f74207365742070726963650000000000000000000000000000000060448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090206102639082600261101c565b505050565b600260005414156102d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610229565b600260009081556001816102ec60208d018d61127d565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002060010154905060008111610382576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f57726f6e67207061796d656e74206d6574686f640000000000000000000000006044820152606401610229565b610441337f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663b3f006746040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103f1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610415919061129a565b8361042360208f018f61127d565b73ffffffffffffffffffffffffffffffffffffffff16929190610c89565b8483146104aa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e76616c696420706172616d657465727300000000000000000000000000006044820152606401610229565b60008989896040516104bb9061105a565b73ffffffffffffffffffffffffffffffffffffffff909316835260208301919091526040820152606001604051809103906000f080158015610501573d6000803e3d6000fd5b506040517fc4590d3f000000000000000000000000000000000000000000000000000000008152843560048201526020850135602482015290915073ffffffffffffffffffffffffffffffffffffffff82169063c4590d3f90604401600060405180830381600087803b15801561057757600080fd5b505af115801561058b573d6000803e3d6000fd5b5050505060005b8681101561068e578173ffffffffffffffffffffffffffffffffffffffff1663539270bc8989848181106105c8576105c861124e565b90506020020160208101906105dd919061127d565b8888858181106105ef576105ef61124e565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16815273ffffffffffffffffffffffffffffffffffffffff90941660048501526020029190910135602483015250604401600060405180830381600087803b15801561066357600080fd5b505af1158015610677573d6000803e3d6000fd5b505050508080610686906112b7565b915050610592565b5073ffffffffffffffffffffffffffffffffffffffff811663f2fde38b6106bb60408e0160208f0161127d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401600060405180830381600087803b15801561072157600080fd5b505af1158015610735573d6000803e3d6000fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff85168152600160208201527f6a52a393150c061e1a1d151cdb19dda10b47bde43e6dca17727226d75861a2db93500190505b60405180910390a150506001600055505050505050505050565b60026000541415610809576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610229565b6002600090815560018161082060208d018d61127d565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020549050806108b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f57726f6e67207061796d656e74206d6574686f640000000000000000000000006044820152606401610229565b61091f337f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663b3f006746040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103f1573d6000803e3d6000fd5b848314610988576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e76616c696420706172616d657465727300000000000000000000000000006044820152606401610229565b600089898960405161099990611067565b73ffffffffffffffffffffffffffffffffffffffff909316835260208301919091526040820152606001604051809103906000f0801580156109df573d6000803e3d6000fd5b506040517fc4590d3f000000000000000000000000000000000000000000000000000000008152843560048201526020850135602482015290915073ffffffffffffffffffffffffffffffffffffffff82169063c4590d3f90604401600060405180830381600087803b158015610a5557600080fd5b505af1158015610a69573d6000803e3d6000fd5b5050505060005b86811015610b6c578173ffffffffffffffffffffffffffffffffffffffff1663539270bc898984818110610aa657610aa661124e565b9050602002016020810190610abb919061127d565b888885818110610acd57610acd61124e565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16815273ffffffffffffffffffffffffffffffffffffffff90941660048501526020029190910135602483015250604401600060405180830381600087803b158015610b4157600080fd5b505af1158015610b55573d6000803e3d6000fd5b505050508080610b64906112b7565b915050610a70565b5073ffffffffffffffffffffffffffffffffffffffff811663f2fde38b610b9960408e0160208f0161127d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401600060405180830381600087803b158015610bff57600080fd5b505af1158015610c13573d6000803e3d6000fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff85168152600060208201527f6a52a393150c061e1a1d151cdb19dda10b47bde43e6dca17727226d75861a2db9350019050610782565b60016020528160005260406000208160028110610c8057600080fd5b01549150829050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610d1e908590610d24565b50505050565b6000610d86826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610e309092919063ffffffff16565b8051909150156102635780806020019051810190610da4919061122c565b610263576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610229565b6060610e3f8484600085610e49565b90505b9392505050565b606082471015610edb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610229565b843b610f43576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610229565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610f6c9190611343565b60006040518083038185875af1925050503d8060008114610fa9576040519150601f19603f3d011682016040523d82523d6000602084013e610fae565b606091505b5091509150610fbe828286610fc9565b979650505050505050565b60608315610fd8575081610e42565b825115610fe85782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610229919061135f565b826002810192821561104a579160200282015b8281111561104a57823582559160200191906001019061102f565b50611056929150611074565b5090565b611868806113b183390190565b61160c80612c1983390190565b5b808211156110565760008155600101611075565b73ffffffffffffffffffffffffffffffffffffffff811681146110ab57600080fd5b50565b80604081018310156110bf57600080fd5b92915050565b600080606083850312156110d857600080fd5b82356110e381611089565b91506110f284602085016110ae565b90509250929050565b60008083601f84011261110d57600080fd5b50813567ffffffffffffffff81111561112557600080fd5b6020830191508360208260051b850101111561114057600080fd5b9250929050565b60008060008060008060008060006101208a8c03121561116657600080fd5b6111708b8b6110ae565b985060408a013561118081611089565b975060608a0135965060808a0135955060a08a013567ffffffffffffffff808211156111ab57600080fd5b6111b78d838e016110fb565b909750955060c08c01359150808211156111d057600080fd5b506111dd8c828d016110fb565b90945092506111f190508b60e08c016110ae565b90509295985092959850929598565b6000806040838503121561121357600080fd5b823561121e81611089565b946020939093013593505050565b60006020828403121561123e57600080fd5b81518015158114610e4257600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561128f57600080fd5b8135610e4281611089565b6000602082840312156112ac57600080fd5b8151610e4281611089565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611310577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b5060010190565b60005b8381101561133257818101518382015260200161131a565b83811115610d1e5750506000910152565b60008251611355818460208701611317565b9190910192915050565b602081526000825180602084015261137e816040850160208701611317565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe608060405234801561001057600080fd5b5060405161186838038061186883398101604081905261002f916100bf565b82828261003b3361006f565b60018055600280546001600160a01b0319166001600160a01b03949094169390931790925560035560045550610102915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806000606084860312156100d457600080fd5b83516001600160a01b03811681146100eb57600080fd5b602085015160409095015190969495509392505050565b611757806101116000396000f3fe608060405234801561001057600080fd5b50600436106101515760003560e01c80636cd07154116100cd578063be9a655511610081578063cce7ec1311610066578063cce7ec1314610288578063df0f1f071461029b578063f2fde38b146102bb57600080fd5b8063be9a65551461026d578063c4590d3f1461027557600080fd5b80638da5cb5b116100b25780638da5cb5b1461023d5780639106d7ba1461025b5780639731d9f61461026457600080fd5b80636cd07154146101f0578063715018a61461023557600080fd5b806338392c4011610124578063539270bc11610109578063539270bc146101aa57806359770438146101bd578063667022fd146101d057600080fd5b806338392c40146101985780633b97e856146101a157600080fd5b80631be05289146101565780631d412dcb146101725780632095f2d4146101875780633197cbb61461018f575b600080fd5b61015f60045481565b6040519081526020015b60405180910390f35b6101856101803660046113b9565b6102ce565b005b6101856103d3565b61015f60065481565b61015f60085481565b61015f60035481565b6101856101b83660046113fb565b6104c5565b6101856101cb366004611425565b61061a565b61015f6101de366004611425565b60096020526000908152604090205481565b6002546102109073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610169565b610185610852565b60005473ffffffffffffffffffffffffffffffffffffffff16610210565b61015f60055481565b61015f60075481565b6101856108df565b610185610283366004611440565b6109dc565b6101856102963660046113fb565b610a68565b61015f6102a9366004611425565b600a6020526000908152604090205481565b6101856102c9366004611425565b610c50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610354576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b42600654116103bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f416c726561647920656e646564206f72206e6f74207374617274656400000000604482015260640161034b565b806006546103cd9190611491565b60065550565b60005473ffffffffffffffffffffffffffffffffffffffff163314610454576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161034b565b42600654116104bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f416c726561647920656e646564206f72206e6f74207374617274656400000000604482015260640161034b565b42600655565b60005473ffffffffffffffffffffffffffffffffffffffff163314610546576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161034b565b60025473ffffffffffffffffffffffffffffffffffffffff838116911614156105f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f43616e6e6f74206164642073656c6c61626c6520746f6b656e2061732070617960448201527f6d656e74206d6574686f64000000000000000000000000000000000000000000606482015260840161034b565b73ffffffffffffffffffffffffffffffffffffffff9091166000908152600a6020526040902055565b60005473ffffffffffffffffffffffffffffffffffffffff16331461069b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161034b565b60026001541415610708576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161034b565b600260018190555473ffffffffffffffffffffffffffffffffffffffff8281169116141561079b57600654421161079b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f7420656e6465642079657400000000000000000000000000000000000000604482015260640161034b565b61084b336040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381865afa158015610809573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082d91906114a9565b73ffffffffffffffffffffffffffffffffffffffff84169190610d80565b5060018055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146108d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161034b565b6108dd6000610e59565b565b60005473ffffffffffffffffffffffffffffffffffffffff163314610960576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161034b565b600654156109ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f416c726561647920737461727465640000000000000000000000000000000000604482015260640161034b565b6004546109d79042611491565b600655565b60005473ffffffffffffffffffffffffffffffffffffffff163314610a5d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161034b565b600791909155600855565b4260065411610ad3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f416c726561647920656e646564206f72206e6f74207374617274656400000000604482015260640161034b565b60026001541415610b40576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161034b565b600260015573ffffffffffffffffffffffffffffffffffffffff82166000908152600a602052604090205480610bd2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f496e76616c6964207061796d656e74206d6574686f6400000000000000000000604482015260640161034b565b610bf473ffffffffffffffffffffffffffffffffffffffff8416333085610ece565b6000610c008383610f32565b9050610c0b81610f61565b8060056000828254610c1d9190611491565b9091555050600254610c469073ffffffffffffffffffffffffffffffffffffffff163383610d80565b5050600180555050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610cd1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161034b565b73ffffffffffffffffffffffffffffffffffffffff8116610d74576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161034b565b610d7d81610e59565b50565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610e549084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526110c1565b505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610f2c9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401610dd2565b50505050565b600081600354600a610f4491906115e2565b610f4e90856115ee565b610f58919061162b565b90505b92915050565b600754811015610ff2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f43616e6e6f742072656365697665206c657373207468616e206c6f776572206c60448201527f696d697400000000000000000000000000000000000000000000000000000000606482015260840161034b565b3360009081526009602052604081208054839290611011908490611491565b9091555050600854158061103657506008543360009081526009602052604090205411155b610d7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f43616e6e6f742072656365697665206d6f7265207468616e207570706572206c60448201527f696d697400000000000000000000000000000000000000000000000000000000606482015260840161034b565b6000611123826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166111cd9092919063ffffffff16565b805190915015610e5457808060200190518101906111419190611666565b610e54576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161034b565b60606111dc84846000856111e6565b90505b9392505050565b606082471015611278576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161034b565b843b6112e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161034b565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161130991906116b4565b60006040518083038185875af1925050503d8060008114611346576040519150601f19603f3d011682016040523d82523d6000602084013e61134b565b606091505b509150915061135b828286611366565b979650505050505050565b606083156113755750816111df565b8251156113855782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161034b91906116d0565b6000602082840312156113cb57600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff811681146113f657600080fd5b919050565b6000806040838503121561140e57600080fd5b611417836113d2565b946020939093013593505050565b60006020828403121561143757600080fd5b610f58826113d2565b6000806040838503121561145357600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082198211156114a4576114a4611462565b500190565b6000602082840312156114bb57600080fd5b5051919050565b600181815b8085111561151b57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561150157611501611462565b8085161561150e57918102915b93841c93908002906114c7565b509250929050565b60008261153257506001610f5b565b8161153f57506000610f5b565b8160018114611555576002811461155f5761157b565b6001915050610f5b565b60ff84111561157057611570611462565b50506001821b610f5b565b5060208310610133831016604e8410600b841016171561159e575081810a610f5b565b6115a883836114c2565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156115da576115da611462565b029392505050565b6000610f588383611523565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561162657611626611462565b500290565b600082611661577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60006020828403121561167857600080fd5b815180151581146111df57600080fd5b60005b838110156116a357818101518382015260200161168b565b83811115610f2c5750506000910152565b600082516116c6818460208701611688565b9190910192915050565b60208152600082518060208401526116ef816040850160208701611688565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea26469706673582212205a27c82f1054cb5b630709f44facc720adc7f2c638fcc4d95a12c251d62d473f64736f6c634300080a0033608060405234801561001057600080fd5b5060405161160c38038061160c83398101604081905261002f916100bf565b82828261003b3361006f565b60018055600280546001600160a01b0319166001600160a01b03949094169390931790925560035560045550610102915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806000606084860312156100d457600080fd5b83516001600160a01b03811681146100eb57600080fd5b602085015160409095015190969495509392505050565b6114fb806101116000396000f3fe608060405234801561001057600080fd5b506004361061011b5760003560e01c8063715018a6116100b2578063be9a655511610081578063cce7ec1311610066578063cce7ec1314610237578063df0f1f071461024a578063f2fde38b1461026a57600080fd5b8063be9a65551461021c578063c4590d3f1461022457600080fd5b8063715018a6146101e45780638da5cb5b146101ec5780639106d7ba1461020a5780639731d9f61461021357600080fd5b8063539270bc116100ee578063539270bc14610157578063597704381461016c578063667022fd1461017f5780636cd071541461019f57600080fd5b80631be05289146101205780633197cbb61461013c57806338392c40146101455780633b97e8561461014e575b600080fd5b61012960045481565b6040519081526020015b60405180910390f35b61012960065481565b61012960085481565b61012960035481565b61016a61016536600461119f565b61027d565b005b61016a61017a3660046111c9565b6103d7565b61012961018d3660046111c9565b60096020526000908152604090205481565b6002546101bf9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610133565b61016a61060f565b60005473ffffffffffffffffffffffffffffffffffffffff166101bf565b61012960055481565b61012960075481565b61016a61069c565b61016a6102323660046111e4565b610799565b61016a61024536600461119f565b610825565b6101296102583660046111c9565b600a6020526000908152604090205481565b61016a6102783660046111c9565b610a0d565b60005473ffffffffffffffffffffffffffffffffffffffff163314610303576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60025473ffffffffffffffffffffffffffffffffffffffff838116911614156103ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f43616e6e6f74206164642073656c6c61626c6520746f6b656e2061732070617960448201527f6d656e74206d6574686f6400000000000000000000000000000000000000000060648201526084016102fa565b73ffffffffffffffffffffffffffffffffffffffff9091166000908152600a6020526040902055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610458576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102fa565b600260015414156104c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102fa565b600260018190555473ffffffffffffffffffffffffffffffffffffffff82811691161415610558576006544211610558576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f7420656e646564207965740000000000000000000000000000000000000060448201526064016102fa565b610608336040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381865afa1580156105c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ea9190611206565b73ffffffffffffffffffffffffffffffffffffffff84169190610b3d565b5060018055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610690576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102fa565b61069a6000610c16565b565b60005473ffffffffffffffffffffffffffffffffffffffff16331461071d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102fa565b60065415610787576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f416c72656164792073746172746564000000000000000000000000000000000060448201526064016102fa565b600454610794904261124e565b600655565b60005473ffffffffffffffffffffffffffffffffffffffff16331461081a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102fa565b600791909155600855565b4260065411610890576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f416c726561647920656e646564206f72206e6f7420737461727465640000000060448201526064016102fa565b600260015414156108fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102fa565b600260015573ffffffffffffffffffffffffffffffffffffffff82166000908152600a60205260409020548061098f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f496e76616c6964207061796d656e74206d6574686f640000000000000000000060448201526064016102fa565b6109b173ffffffffffffffffffffffffffffffffffffffff8416333085610c8b565b60006109bd8383610cef565b90506109c881610d1e565b80600560008282546109da919061124e565b9091555050600254610a039073ffffffffffffffffffffffffffffffffffffffff163383610b3d565b5050600180555050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610a8e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102fa565b73ffffffffffffffffffffffffffffffffffffffff8116610b31576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102fa565b610b3a81610c16565b50565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610c119084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610e7e565b505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610ce99085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401610b8f565b50505050565b600081600354600a610d019190611386565b610d0b9085611392565b610d1591906113cf565b90505b92915050565b600754811015610daf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f43616e6e6f742072656365697665206c657373207468616e206c6f776572206c60448201527f696d69740000000000000000000000000000000000000000000000000000000060648201526084016102fa565b3360009081526009602052604081208054839290610dce90849061124e565b90915550506008541580610df357506008543360009081526009602052604090205411155b610b3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f43616e6e6f742072656365697665206d6f7265207468616e207570706572206c60448201527f696d69740000000000000000000000000000000000000000000000000000000060648201526084016102fa565b6000610ee0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610f8a9092919063ffffffff16565b805190915015610c115780806020019051810190610efe919061140a565b610c11576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016102fa565b6060610f998484600085610fa3565b90505b9392505050565b606082471015611035576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016102fa565b843b61109d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102fa565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516110c69190611458565b60006040518083038185875af1925050503d8060008114611103576040519150601f19603f3d011682016040523d82523d6000602084013e611108565b606091505b5091509150611118828286611123565b979650505050505050565b60608315611132575081610f9c565b8251156111425782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102fa9190611474565b803573ffffffffffffffffffffffffffffffffffffffff8116811461119a57600080fd5b919050565b600080604083850312156111b257600080fd5b6111bb83611176565b946020939093013593505050565b6000602082840312156111db57600080fd5b610d1582611176565b600080604083850312156111f757600080fd5b50508035926020909101359150565b60006020828403121561121857600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082198211156112615761126161121f565b500190565b600181815b808511156112bf57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156112a5576112a561121f565b808516156112b257918102915b93841c939080029061126b565b509250929050565b6000826112d657506001610d18565b816112e357506000610d18565b81600181146112f957600281146113035761131f565b6001915050610d18565b60ff8411156113145761131461121f565b50506001821b610d18565b5060208310610133831016604e8410600b8410161715611342575081810a610d18565b61134c8383611266565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561137e5761137e61121f565b029392505050565b6000610d1583836112c7565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156113ca576113ca61121f565b500290565b600082611405577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60006020828403121561141c57600080fd5b81518015158114610f9c57600080fd5b60005b8381101561144757818101518382015260200161142f565b83811115610ce95750506000910152565b6000825161146a81846020870161142c565b9190910192915050565b602081526000825180602084015261149381604085016020870161142c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220eecb52eaa11d6fd57964a72885a055fe912dd44caf76009dac26721ea2a4d51564736f6c634300080a0033a264697066735822122054dc773fccb04e8c930abeb36e6b987ea08eab8dcfb80e053e208e477533029e64736f6c634300080a003300000000000000000000000022b1741be6bf2be1a17d739cbd6321b44f52e905
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106100675760003560e01c80637a58664a116100505780637a58664a14610094578063ad9b8024146100a7578063ee0fc121146100cd57600080fd5b806319cfe1e71461006c5780632282080514610081575b600080fd5b61007f61007a3660046110c5565b610119565b005b61007f61008f366004611147565b610268565b61007f6100a2366004611147565b61079c565b6100ba6100b5366004611200565b610c64565b6040519081526020015b60405180910390f35b6100f47f00000000000000000000000022b1741be6bf2be1a17d739cbd6321b44f52e90581565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100c4565b6040517fa386c7360000000000000000000000000000000000000000000000000000000081523360048201527f00000000000000000000000022b1741be6bf2be1a17d739cbd6321b44f52e90573ffffffffffffffffffffffffffffffffffffffff169063a386c73690602401602060405180830381865afa1580156101a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101c7919061122c565b610232576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f43616e6e6f74207365742070726963650000000000000000000000000000000060448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090206102639082600261101c565b505050565b600260005414156102d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610229565b600260009081556001816102ec60208d018d61127d565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002060010154905060008111610382576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f57726f6e67207061796d656e74206d6574686f640000000000000000000000006044820152606401610229565b610441337f00000000000000000000000022b1741be6bf2be1a17d739cbd6321b44f52e90573ffffffffffffffffffffffffffffffffffffffff1663b3f006746040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103f1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610415919061129a565b8361042360208f018f61127d565b73ffffffffffffffffffffffffffffffffffffffff16929190610c89565b8483146104aa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e76616c696420706172616d657465727300000000000000000000000000006044820152606401610229565b60008989896040516104bb9061105a565b73ffffffffffffffffffffffffffffffffffffffff909316835260208301919091526040820152606001604051809103906000f080158015610501573d6000803e3d6000fd5b506040517fc4590d3f000000000000000000000000000000000000000000000000000000008152843560048201526020850135602482015290915073ffffffffffffffffffffffffffffffffffffffff82169063c4590d3f90604401600060405180830381600087803b15801561057757600080fd5b505af115801561058b573d6000803e3d6000fd5b5050505060005b8681101561068e578173ffffffffffffffffffffffffffffffffffffffff1663539270bc8989848181106105c8576105c861124e565b90506020020160208101906105dd919061127d565b8888858181106105ef576105ef61124e565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16815273ffffffffffffffffffffffffffffffffffffffff90941660048501526020029190910135602483015250604401600060405180830381600087803b15801561066357600080fd5b505af1158015610677573d6000803e3d6000fd5b505050508080610686906112b7565b915050610592565b5073ffffffffffffffffffffffffffffffffffffffff811663f2fde38b6106bb60408e0160208f0161127d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401600060405180830381600087803b15801561072157600080fd5b505af1158015610735573d6000803e3d6000fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff85168152600160208201527f6a52a393150c061e1a1d151cdb19dda10b47bde43e6dca17727226d75861a2db93500190505b60405180910390a150506001600055505050505050505050565b60026000541415610809576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610229565b6002600090815560018161082060208d018d61127d565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020549050806108b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f57726f6e67207061796d656e74206d6574686f640000000000000000000000006044820152606401610229565b61091f337f00000000000000000000000022b1741be6bf2be1a17d739cbd6321b44f52e90573ffffffffffffffffffffffffffffffffffffffff1663b3f006746040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103f1573d6000803e3d6000fd5b848314610988576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e76616c696420706172616d657465727300000000000000000000000000006044820152606401610229565b600089898960405161099990611067565b73ffffffffffffffffffffffffffffffffffffffff909316835260208301919091526040820152606001604051809103906000f0801580156109df573d6000803e3d6000fd5b506040517fc4590d3f000000000000000000000000000000000000000000000000000000008152843560048201526020850135602482015290915073ffffffffffffffffffffffffffffffffffffffff82169063c4590d3f90604401600060405180830381600087803b158015610a5557600080fd5b505af1158015610a69573d6000803e3d6000fd5b5050505060005b86811015610b6c578173ffffffffffffffffffffffffffffffffffffffff1663539270bc898984818110610aa657610aa661124e565b9050602002016020810190610abb919061127d565b888885818110610acd57610acd61124e565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16815273ffffffffffffffffffffffffffffffffffffffff90941660048501526020029190910135602483015250604401600060405180830381600087803b158015610b4157600080fd5b505af1158015610b55573d6000803e3d6000fd5b505050508080610b64906112b7565b915050610a70565b5073ffffffffffffffffffffffffffffffffffffffff811663f2fde38b610b9960408e0160208f0161127d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401600060405180830381600087803b158015610bff57600080fd5b505af1158015610c13573d6000803e3d6000fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff85168152600060208201527f6a52a393150c061e1a1d151cdb19dda10b47bde43e6dca17727226d75861a2db9350019050610782565b60016020528160005260406000208160028110610c8057600080fd5b01549150829050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610d1e908590610d24565b50505050565b6000610d86826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610e309092919063ffffffff16565b8051909150156102635780806020019051810190610da4919061122c565b610263576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610229565b6060610e3f8484600085610e49565b90505b9392505050565b606082471015610edb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610229565b843b610f43576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610229565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610f6c9190611343565b60006040518083038185875af1925050503d8060008114610fa9576040519150601f19603f3d011682016040523d82523d6000602084013e610fae565b606091505b5091509150610fbe828286610fc9565b979650505050505050565b60608315610fd8575081610e42565b825115610fe85782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610229919061135f565b826002810192821561104a579160200282015b8281111561104a57823582559160200191906001019061102f565b50611056929150611074565b5090565b611868806113b183390190565b61160c80612c1983390190565b5b808211156110565760008155600101611075565b73ffffffffffffffffffffffffffffffffffffffff811681146110ab57600080fd5b50565b80604081018310156110bf57600080fd5b92915050565b600080606083850312156110d857600080fd5b82356110e381611089565b91506110f284602085016110ae565b90509250929050565b60008083601f84011261110d57600080fd5b50813567ffffffffffffffff81111561112557600080fd5b6020830191508360208260051b850101111561114057600080fd5b9250929050565b60008060008060008060008060006101208a8c03121561116657600080fd5b6111708b8b6110ae565b985060408a013561118081611089565b975060608a0135965060808a0135955060a08a013567ffffffffffffffff808211156111ab57600080fd5b6111b78d838e016110fb565b909750955060c08c01359150808211156111d057600080fd5b506111dd8c828d016110fb565b90945092506111f190508b60e08c016110ae565b90509295985092959850929598565b6000806040838503121561121357600080fd5b823561121e81611089565b946020939093013593505050565b60006020828403121561123e57600080fd5b81518015158114610e4257600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561128f57600080fd5b8135610e4281611089565b6000602082840312156112ac57600080fd5b8151610e4281611089565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611310577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b5060010190565b60005b8381101561133257818101518382015260200161131a565b83811115610d1e5750506000910152565b60008251611355818460208701611317565b9190910192915050565b602081526000825180602084015261137e816040850160208701611317565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe608060405234801561001057600080fd5b5060405161186838038061186883398101604081905261002f916100bf565b82828261003b3361006f565b60018055600280546001600160a01b0319166001600160a01b03949094169390931790925560035560045550610102915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806000606084860312156100d457600080fd5b83516001600160a01b03811681146100eb57600080fd5b602085015160409095015190969495509392505050565b611757806101116000396000f3fe608060405234801561001057600080fd5b50600436106101515760003560e01c80636cd07154116100cd578063be9a655511610081578063cce7ec1311610066578063cce7ec1314610288578063df0f1f071461029b578063f2fde38b146102bb57600080fd5b8063be9a65551461026d578063c4590d3f1461027557600080fd5b80638da5cb5b116100b25780638da5cb5b1461023d5780639106d7ba1461025b5780639731d9f61461026457600080fd5b80636cd07154146101f0578063715018a61461023557600080fd5b806338392c4011610124578063539270bc11610109578063539270bc146101aa57806359770438146101bd578063667022fd146101d057600080fd5b806338392c40146101985780633b97e856146101a157600080fd5b80631be05289146101565780631d412dcb146101725780632095f2d4146101875780633197cbb61461018f575b600080fd5b61015f60045481565b6040519081526020015b60405180910390f35b6101856101803660046113b9565b6102ce565b005b6101856103d3565b61015f60065481565b61015f60085481565b61015f60035481565b6101856101b83660046113fb565b6104c5565b6101856101cb366004611425565b61061a565b61015f6101de366004611425565b60096020526000908152604090205481565b6002546102109073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610169565b610185610852565b60005473ffffffffffffffffffffffffffffffffffffffff16610210565b61015f60055481565b61015f60075481565b6101856108df565b610185610283366004611440565b6109dc565b6101856102963660046113fb565b610a68565b61015f6102a9366004611425565b600a6020526000908152604090205481565b6101856102c9366004611425565b610c50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610354576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b42600654116103bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f416c726561647920656e646564206f72206e6f74207374617274656400000000604482015260640161034b565b806006546103cd9190611491565b60065550565b60005473ffffffffffffffffffffffffffffffffffffffff163314610454576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161034b565b42600654116104bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f416c726561647920656e646564206f72206e6f74207374617274656400000000604482015260640161034b565b42600655565b60005473ffffffffffffffffffffffffffffffffffffffff163314610546576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161034b565b60025473ffffffffffffffffffffffffffffffffffffffff838116911614156105f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f43616e6e6f74206164642073656c6c61626c6520746f6b656e2061732070617960448201527f6d656e74206d6574686f64000000000000000000000000000000000000000000606482015260840161034b565b73ffffffffffffffffffffffffffffffffffffffff9091166000908152600a6020526040902055565b60005473ffffffffffffffffffffffffffffffffffffffff16331461069b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161034b565b60026001541415610708576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161034b565b600260018190555473ffffffffffffffffffffffffffffffffffffffff8281169116141561079b57600654421161079b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f7420656e6465642079657400000000000000000000000000000000000000604482015260640161034b565b61084b336040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381865afa158015610809573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082d91906114a9565b73ffffffffffffffffffffffffffffffffffffffff84169190610d80565b5060018055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146108d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161034b565b6108dd6000610e59565b565b60005473ffffffffffffffffffffffffffffffffffffffff163314610960576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161034b565b600654156109ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f416c726561647920737461727465640000000000000000000000000000000000604482015260640161034b565b6004546109d79042611491565b600655565b60005473ffffffffffffffffffffffffffffffffffffffff163314610a5d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161034b565b600791909155600855565b4260065411610ad3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f416c726561647920656e646564206f72206e6f74207374617274656400000000604482015260640161034b565b60026001541415610b40576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161034b565b600260015573ffffffffffffffffffffffffffffffffffffffff82166000908152600a602052604090205480610bd2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f496e76616c6964207061796d656e74206d6574686f6400000000000000000000604482015260640161034b565b610bf473ffffffffffffffffffffffffffffffffffffffff8416333085610ece565b6000610c008383610f32565b9050610c0b81610f61565b8060056000828254610c1d9190611491565b9091555050600254610c469073ffffffffffffffffffffffffffffffffffffffff163383610d80565b5050600180555050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610cd1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161034b565b73ffffffffffffffffffffffffffffffffffffffff8116610d74576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161034b565b610d7d81610e59565b50565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610e549084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526110c1565b505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610f2c9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401610dd2565b50505050565b600081600354600a610f4491906115e2565b610f4e90856115ee565b610f58919061162b565b90505b92915050565b600754811015610ff2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f43616e6e6f742072656365697665206c657373207468616e206c6f776572206c60448201527f696d697400000000000000000000000000000000000000000000000000000000606482015260840161034b565b3360009081526009602052604081208054839290611011908490611491565b9091555050600854158061103657506008543360009081526009602052604090205411155b610d7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f43616e6e6f742072656365697665206d6f7265207468616e207570706572206c60448201527f696d697400000000000000000000000000000000000000000000000000000000606482015260840161034b565b6000611123826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166111cd9092919063ffffffff16565b805190915015610e5457808060200190518101906111419190611666565b610e54576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161034b565b60606111dc84846000856111e6565b90505b9392505050565b606082471015611278576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161034b565b843b6112e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161034b565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161130991906116b4565b60006040518083038185875af1925050503d8060008114611346576040519150601f19603f3d011682016040523d82523d6000602084013e61134b565b606091505b509150915061135b828286611366565b979650505050505050565b606083156113755750816111df565b8251156113855782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161034b91906116d0565b6000602082840312156113cb57600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff811681146113f657600080fd5b919050565b6000806040838503121561140e57600080fd5b611417836113d2565b946020939093013593505050565b60006020828403121561143757600080fd5b610f58826113d2565b6000806040838503121561145357600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082198211156114a4576114a4611462565b500190565b6000602082840312156114bb57600080fd5b5051919050565b600181815b8085111561151b57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561150157611501611462565b8085161561150e57918102915b93841c93908002906114c7565b509250929050565b60008261153257506001610f5b565b8161153f57506000610f5b565b8160018114611555576002811461155f5761157b565b6001915050610f5b565b60ff84111561157057611570611462565b50506001821b610f5b565b5060208310610133831016604e8410600b841016171561159e575081810a610f5b565b6115a883836114c2565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156115da576115da611462565b029392505050565b6000610f588383611523565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561162657611626611462565b500290565b600082611661577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60006020828403121561167857600080fd5b815180151581146111df57600080fd5b60005b838110156116a357818101518382015260200161168b565b83811115610f2c5750506000910152565b600082516116c6818460208701611688565b9190910192915050565b60208152600082518060208401526116ef816040850160208701611688565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea26469706673582212205a27c82f1054cb5b630709f44facc720adc7f2c638fcc4d95a12c251d62d473f64736f6c634300080a0033608060405234801561001057600080fd5b5060405161160c38038061160c83398101604081905261002f916100bf565b82828261003b3361006f565b60018055600280546001600160a01b0319166001600160a01b03949094169390931790925560035560045550610102915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806000606084860312156100d457600080fd5b83516001600160a01b03811681146100eb57600080fd5b602085015160409095015190969495509392505050565b6114fb806101116000396000f3fe608060405234801561001057600080fd5b506004361061011b5760003560e01c8063715018a6116100b2578063be9a655511610081578063cce7ec1311610066578063cce7ec1314610237578063df0f1f071461024a578063f2fde38b1461026a57600080fd5b8063be9a65551461021c578063c4590d3f1461022457600080fd5b8063715018a6146101e45780638da5cb5b146101ec5780639106d7ba1461020a5780639731d9f61461021357600080fd5b8063539270bc116100ee578063539270bc14610157578063597704381461016c578063667022fd1461017f5780636cd071541461019f57600080fd5b80631be05289146101205780633197cbb61461013c57806338392c40146101455780633b97e8561461014e575b600080fd5b61012960045481565b6040519081526020015b60405180910390f35b61012960065481565b61012960085481565b61012960035481565b61016a61016536600461119f565b61027d565b005b61016a61017a3660046111c9565b6103d7565b61012961018d3660046111c9565b60096020526000908152604090205481565b6002546101bf9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610133565b61016a61060f565b60005473ffffffffffffffffffffffffffffffffffffffff166101bf565b61012960055481565b61012960075481565b61016a61069c565b61016a6102323660046111e4565b610799565b61016a61024536600461119f565b610825565b6101296102583660046111c9565b600a6020526000908152604090205481565b61016a6102783660046111c9565b610a0d565b60005473ffffffffffffffffffffffffffffffffffffffff163314610303576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60025473ffffffffffffffffffffffffffffffffffffffff838116911614156103ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f43616e6e6f74206164642073656c6c61626c6520746f6b656e2061732070617960448201527f6d656e74206d6574686f6400000000000000000000000000000000000000000060648201526084016102fa565b73ffffffffffffffffffffffffffffffffffffffff9091166000908152600a6020526040902055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610458576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102fa565b600260015414156104c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102fa565b600260018190555473ffffffffffffffffffffffffffffffffffffffff82811691161415610558576006544211610558576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f7420656e646564207965740000000000000000000000000000000000000060448201526064016102fa565b610608336040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381865afa1580156105c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ea9190611206565b73ffffffffffffffffffffffffffffffffffffffff84169190610b3d565b5060018055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610690576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102fa565b61069a6000610c16565b565b60005473ffffffffffffffffffffffffffffffffffffffff16331461071d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102fa565b60065415610787576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f416c72656164792073746172746564000000000000000000000000000000000060448201526064016102fa565b600454610794904261124e565b600655565b60005473ffffffffffffffffffffffffffffffffffffffff16331461081a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102fa565b600791909155600855565b4260065411610890576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f416c726561647920656e646564206f72206e6f7420737461727465640000000060448201526064016102fa565b600260015414156108fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102fa565b600260015573ffffffffffffffffffffffffffffffffffffffff82166000908152600a60205260409020548061098f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f496e76616c6964207061796d656e74206d6574686f640000000000000000000060448201526064016102fa565b6109b173ffffffffffffffffffffffffffffffffffffffff8416333085610c8b565b60006109bd8383610cef565b90506109c881610d1e565b80600560008282546109da919061124e565b9091555050600254610a039073ffffffffffffffffffffffffffffffffffffffff163383610b3d565b5050600180555050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610a8e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102fa565b73ffffffffffffffffffffffffffffffffffffffff8116610b31576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102fa565b610b3a81610c16565b50565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610c119084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610e7e565b505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610ce99085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401610b8f565b50505050565b600081600354600a610d019190611386565b610d0b9085611392565b610d1591906113cf565b90505b92915050565b600754811015610daf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f43616e6e6f742072656365697665206c657373207468616e206c6f776572206c60448201527f696d69740000000000000000000000000000000000000000000000000000000060648201526084016102fa565b3360009081526009602052604081208054839290610dce90849061124e565b90915550506008541580610df357506008543360009081526009602052604090205411155b610b3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f43616e6e6f742072656365697665206d6f7265207468616e207570706572206c60448201527f696d69740000000000000000000000000000000000000000000000000000000060648201526084016102fa565b6000610ee0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610f8a9092919063ffffffff16565b805190915015610c115780806020019051810190610efe919061140a565b610c11576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016102fa565b6060610f998484600085610fa3565b90505b9392505050565b606082471015611035576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016102fa565b843b61109d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102fa565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516110c69190611458565b60006040518083038185875af1925050503d8060008114611103576040519150601f19603f3d011682016040523d82523d6000602084013e611108565b606091505b5091509150611118828286611123565b979650505050505050565b60608315611132575081610f9c565b8251156111425782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102fa9190611474565b803573ffffffffffffffffffffffffffffffffffffffff8116811461119a57600080fd5b919050565b600080604083850312156111b257600080fd5b6111bb83611176565b946020939093013593505050565b6000602082840312156111db57600080fd5b610d1582611176565b600080604083850312156111f757600080fd5b50508035926020909101359150565b60006020828403121561121857600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082198211156112615761126161121f565b500190565b600181815b808511156112bf57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156112a5576112a561121f565b808516156112b257918102915b93841c939080029061126b565b509250929050565b6000826112d657506001610d18565b816112e357506000610d18565b81600181146112f957600281146113035761131f565b6001915050610d18565b60ff8411156113145761131461121f565b50506001821b610d18565b5060208310610133831016604e8410600b8410161715611342575081810a610d18565b61134c8383611266565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561137e5761137e61121f565b029392505050565b6000610d1583836112c7565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156113ca576113ca61121f565b500290565b600082611405577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60006020828403121561141c57600080fd5b81518015158114610f9c57600080fd5b60005b8381101561144757818101518382015260200161142f565b83811115610ce95750506000910152565b6000825161146a81846020870161142c565b9190910192915050565b602081526000825180602084015261149381604085016020870161142c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220eecb52eaa11d6fd57964a72885a055fe912dd44caf76009dac26721ea2a4d51564736f6c634300080a0033a264697066735822122054dc773fccb04e8c930abeb36e6b987ea08eab8dcfb80e053e208e477533029e64736f6c634300080a0033