Address Details
contract
0x23B445c576f4d2F7e065Db87d68Ac38cbDc67B0d
- Contract Name
- FactoryNSCBCrowdsale
- Creator
- 0x067b6e–041cd7 at 0x888c2a–de534e
- 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
- 12976019
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- FactoryNSCBCrowdsale
- Optimization enabled
- true
- Compiler version
- v0.8.10+commit.fc410830
- Optimization runs
- 25000
- EVM Version
- london
- Verified at
- 2022-08-19T15:50:29.537225Z
project:/contracts/crowdsale/FactoryNSCBCrowdsale.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "./NSCCrowdsale/NSCBonusableCrowdsale.sol"; import "./NSCCrowdsale/NSCBonusableDatesChangeableCrowdsale.sol"; import "../IController.sol"; contract FactoryNSCBCrowdsale 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 deployNonSoftCappableBonusableCrowdsale( address[2] calldata tokenToPayAndOwner, address _token, uint256 _tokenDecimals, uint256 _duration, address[] calldata _tokens, uint256[] calldata _rates, uint256[2] calldata _limits, uint256[2] calldata _bonus ) 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"); NonSoftCappableBonusableCrowdsale crowdsale = new NonSoftCappableBonusableCrowdsale(_token, _tokenDecimals, _duration); crowdsale.setLimits(_limits[0], _limits[1]); crowdsale.setBonus(_bonus[0], _bonus[1]); for (uint256 i; i < _tokens.length; i++) { crowdsale.addPaymentMethod(_tokens[i], _rates[i]); } crowdsale.transferOwnership(tokenToPayAndOwner[1]); emit NewContract(address(crowdsale), 0); } function deployNonSoftCappableBonusableDatesChangeableCrowdsale( address[2] calldata tokenToPayAndOwner, address _token, uint256 _tokenDecimals, uint256 _duration, address[] calldata _tokens, uint256[] calldata _rates, uint256[2] calldata _limits, uint256[2] calldata _bonus ) 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"); NonSoftCappableBonusableDatesChangeableCrowdsale crowdsale = new NonSoftCappableBonusableDatesChangeableCrowdsale(_token, _tokenDecimals, _duration); crowdsale.setLimits(_limits[0], _limits[1]); crowdsale.setBonus(_bonus[0], _bonus[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/Bonusable.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "./CrowdsaleBase.sol"; abstract contract BonusableCrowdsale is CrowdsaleBase { uint256 public bonusBreakpoint; uint256 public bonusPercentage; function setBonus(uint256 _bonusBreakpoint, uint256 _bonusPercentage) external onlyOwner { bonusBreakpoint = _bonusBreakpoint; bonusPercentage = _bonusPercentage; } function _calculate(uint256 amountToPay, uint256 _rate) internal virtual override returns(uint256) { uint256 initAmount = super._calculate(amountToPay, _rate); if (initAmount >= bonusBreakpoint) { uint256 finalAmount = initAmount + ((initAmount * bonusPercentage) / 1000); if (finalAmount <= tokenToSell.balanceOf(address(this))) { return finalAmount; } } return initAmount; } }
/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/NSCBonusableCrowdsale.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "../Bonusable.sol"; contract NonSoftCappableBonusableCrowdsale is BonusableCrowdsale { 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/NSCBonusableDatesChangeableCrowdsale.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "../Bonusable.sol"; import "../DatesChangeable.sol"; contract NonSoftCappableBonusableDatesChangeableCrowdsale is BonusableCrowdsale, 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))); } function _calculate(uint256 amountToPay, uint256 _rate) internal override(CrowdsaleBase, BonusableCrowdsale) returns(uint256) { return BonusableCrowdsale._calculate(amountToPay, _rate); } }
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":"deployNonSoftCappableBonusableCrowdsale","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":"uint256[2]","name":"_bonus","internalType":"uint256[2]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deployNonSoftCappableBonusableDatesChangeableCrowdsale","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":"uint256[2]","name":"_bonus","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
0x60a060405234801561001057600080fd5b506040516147f93803806147f983398101604081905261002f91610045565b60016000556001600160a01b0316608052610075565b60006020828403121561005757600080fd5b81516001600160a01b038116811461006e57600080fd5b9392505050565b6080516147556100a46000396000818160d20152818161014701528181610388015261097501526147556000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c8063ad9b802411610050578063ad9b802414610094578063b809ae87146100ba578063ee0fc121146100cd57600080fd5b806319cfe1e71461006c5780636ce4e2c314610081575b600080fd5b61007f61007a3660046111f1565b610119565b005b61007f61008f366004611273565b610268565b6100a76100a236600461133f565b610836565b6040519081526020015b60405180910390f35b61007f6100c8366004611273565b61085b565b6100f47f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100b1565b6040517fa386c7360000000000000000000000000000000000000000000000000000000081523360048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063a386c73690602401602060405180830381865afa1580156101a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101c7919061136b565b610232576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f43616e6e6f74207365742070726963650000000000000000000000000000000060448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216600090815260016020526040902061026390826002611146565b505050565b600260005414156102d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610229565b600260009081556001816102ec60208e018e6113bc565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002060010154905060008111610382576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f57726f6e67207061796d656e74206d6574686f640000000000000000000000006044820152606401610229565b61044a337f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663b3f006746040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103f1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041591906113d9565b838e600060200201602081019061042c91906113bc565b73ffffffffffffffffffffffffffffffffffffffff16929190610db3565b8584146104b3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e76616c696420706172616d657465727300000000000000000000000000006044820152606401610229565b60008a8a8a6040516104c490611184565b73ffffffffffffffffffffffffffffffffffffffff909316835260208301919091526040820152606001604051809103906000f08015801561050a573d6000803e3d6000fd5b506040517fc4590d3f000000000000000000000000000000000000000000000000000000008152853560048201526020860135602482015290915073ffffffffffffffffffffffffffffffffffffffff82169063c4590d3f90604401600060405180830381600087803b15801561058057600080fd5b505af1158015610594573d6000803e3d6000fd5b50506040517f037c99b0000000000000000000000000000000000000000000000000000000008152853560048201526020860135602482015273ffffffffffffffffffffffffffffffffffffffff8416925063037c99b09150604401600060405180830381600087803b15801561060a57600080fd5b505af115801561061e573d6000803e3d6000fd5b5050505060005b87811015610721578173ffffffffffffffffffffffffffffffffffffffff1663539270bc8a8a8481811061065b5761065b61138d565b905060200201602081019061067091906113bc565b8989858181106106825761068261138d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16815273ffffffffffffffffffffffffffffffffffffffff90941660048501526020029190910135602483015250604401600060405180830381600087803b1580156106f657600080fd5b505af115801561070a573d6000803e3d6000fd5b505050508080610719906113f6565b915050610625565b5073ffffffffffffffffffffffffffffffffffffffff811663f2fde38b8d600160200201602081019061075491906113bc565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401600060405180830381600087803b1580156107ba57600080fd5b505af11580156107ce573d6000803e3d6000fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff85168152600160208201527f6a52a393150c061e1a1d151cdb19dda10b47bde43e6dca17727226d75861a2db93500190505b60405180910390a15050600160005550505050505050505050565b6001602052816000526040600020816002811061085257600080fd5b01549150829050565b600260005414156108c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610229565b600260009081556001816108df60208e018e6113bc565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205490508061096f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f57726f6e67207061796d656e74206d6574686f640000000000000000000000006044820152606401610229565b6109de337f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663b3f006746040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103f1573d6000803e3d6000fd5b858414610a47576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e76616c696420706172616d657465727300000000000000000000000000006044820152606401610229565b60008a8a8a604051610a5890611192565b73ffffffffffffffffffffffffffffffffffffffff909316835260208301919091526040820152606001604051809103906000f080158015610a9e573d6000803e3d6000fd5b506040517fc4590d3f000000000000000000000000000000000000000000000000000000008152853560048201526020860135602482015290915073ffffffffffffffffffffffffffffffffffffffff82169063c4590d3f90604401600060405180830381600087803b158015610b1457600080fd5b505af1158015610b28573d6000803e3d6000fd5b50506040517f037c99b0000000000000000000000000000000000000000000000000000000008152853560048201526020860135602482015273ffffffffffffffffffffffffffffffffffffffff8416925063037c99b09150604401600060405180830381600087803b158015610b9e57600080fd5b505af1158015610bb2573d6000803e3d6000fd5b5050505060005b87811015610cb5578173ffffffffffffffffffffffffffffffffffffffff1663539270bc8a8a84818110610bef57610bef61138d565b9050602002016020810190610c0491906113bc565b898985818110610c1657610c1661138d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16815273ffffffffffffffffffffffffffffffffffffffff90941660048501526020029190910135602483015250604401600060405180830381600087803b158015610c8a57600080fd5b505af1158015610c9e573d6000803e3d6000fd5b505050508080610cad906113f6565b915050610bb9565b5073ffffffffffffffffffffffffffffffffffffffff811663f2fde38b8d6001602002016020810190610ce891906113bc565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401600060405180830381600087803b158015610d4e57600080fd5b505af1158015610d62573d6000803e3d6000fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff85168152600060208201527f6a52a393150c061e1a1d151cdb19dda10b47bde43e6dca17727226d75861a2db935001905061081b565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610e48908590610e4e565b50505050565b6000610eb0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610f5a9092919063ffffffff16565b8051909150156102635780806020019051810190610ece919061136b565b610263576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610229565b6060610f698484600085610f73565b90505b9392505050565b606082471015611005576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610229565b843b61106d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610229565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516110969190611482565b60006040518083038185875af1925050503d80600081146110d3576040519150601f19603f3d011682016040523d82523d6000602084013e6110d8565b606091505b50915091506110e88282866110f3565b979650505050505050565b60608315611102575081610f6c565b8251156111125782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610229919061149e565b8260028101928215611174579160200282015b82811115611174578235825591602001919060010190611159565b506111809291506111a0565b5090565b611a3f80620014f083390190565b6117f18062002f2f83390190565b5b8082111561118057600081556001016111a1565b73ffffffffffffffffffffffffffffffffffffffff811681146111d757600080fd5b50565b80604081018310156111eb57600080fd5b92915050565b6000806060838503121561120457600080fd5b823561120f816111b5565b915061121e84602085016111da565b90509250929050565b60008083601f84011261123957600080fd5b50813567ffffffffffffffff81111561125157600080fd5b6020830191508360208260051b850101111561126c57600080fd5b9250929050565b6000806000806000806000806000806101608b8d03121561129357600080fd5b61129d8c8c6111da565b995060408b01356112ad816111b5565b985060608b0135975060808b0135965060a08b013567ffffffffffffffff808211156112d857600080fd5b6112e48e838f01611227565b909850965060c08d01359150808211156112fd57600080fd5b5061130a8d828e01611227565b909550935061131e90508c60e08d016111da565b915061132e8c6101208d016111da565b90509295989b9194979a5092959850565b6000806040838503121561135257600080fd5b823561135d816111b5565b946020939093013593505050565b60006020828403121561137d57600080fd5b81518015158114610f6c57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000602082840312156113ce57600080fd5b8135610f6c816111b5565b6000602082840312156113eb57600080fd5b8151610f6c816111b5565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561144f577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b5060010190565b60005b83811015611471578181015183820152602001611459565b83811115610e485750506000910152565b60008251611494818460208701611456565b9190910192915050565b60208152600082518060208401526114bd816040850160208701611456565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe608060405234801561001057600080fd5b50604051611a3f380380611a3f83398101604081905261002f916100bf565b82828261003b3361006f565b60018055600280546001600160a01b0319166001600160a01b03949094169390931790925560035560045550610102915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806000606084860312156100d457600080fd5b83516001600160a01b03811681146100eb57600080fd5b602085015160409095015190969495509392505050565b61192e806101116000396000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c8063715018a6116100d8578063af0f325c1161008c578063cce7ec1311610066578063cce7ec13146102de578063df0f1f07146102f1578063f2fde38b1461031157600080fd5b8063af0f325c146102ba578063be9a6555146102c3578063c4590d3f146102cb57600080fd5b80638da5cb5b116100bd5780638da5cb5b1461028a5780639106d7ba146102a85780639731d9f6146102b157600080fd5b8063715018a614610279578063813d6c9a1461028157600080fd5b806338392c401161013a57806359770438116101145780635977043814610201578063667022fd146102145780636cd071541461023457600080fd5b806338392c40146101dc5780633b97e856146101e5578063539270bc146101ee57600080fd5b80631d412dcb1161016b5780631d412dcb146101b85780632095f2d4146101cb5780633197cbb6146101d357600080fd5b8063037c99b0146101875780631be052891461019c575b600080fd5b61019a610195366004611590565b610324565b005b6101a560045481565b6040519081526020015b60405180910390f35b61019a6101c63660046115b2565b6103b5565b61019a6104b5565b6101a560065481565b6101a560085481565b6101a560035481565b61019a6101fc3660046115f4565b6105a7565b61019a61020f36600461161e565b6106fc565b6101a561022236600461161e565b60096020526000908152604090205481565b6002546102549073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101af565b61019a610934565b6101a5600b5481565b60005473ffffffffffffffffffffffffffffffffffffffff16610254565b6101a560055481565b6101a560075481565b6101a5600a5481565b61019a6109c1565b61019a6102d9366004611590565b610abe565b61019a6102ec3660046115f4565b610b4a565b6101a56102ff36600461161e565b600c6020526000908152604090205481565b61019a61031f36600461161e565b610d32565b60005473ffffffffffffffffffffffffffffffffffffffff1633146103aa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600a91909155600b55565b60005473ffffffffffffffffffffffffffffffffffffffff163314610436576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103a1565b42600654116104a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f416c726561647920656e646564206f72206e6f7420737461727465640000000060448201526064016103a1565b806006546104af9190611668565b60065550565b60005473ffffffffffffffffffffffffffffffffffffffff163314610536576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103a1565b42600654116105a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f416c726561647920656e646564206f72206e6f7420737461727465640000000060448201526064016103a1565b42600655565b60005473ffffffffffffffffffffffffffffffffffffffff163314610628576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103a1565b60025473ffffffffffffffffffffffffffffffffffffffff838116911614156106d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f43616e6e6f74206164642073656c6c61626c6520746f6b656e2061732070617960448201527f6d656e74206d6574686f6400000000000000000000000000000000000000000060648201526084016103a1565b73ffffffffffffffffffffffffffffffffffffffff9091166000908152600c6020526040902055565b60005473ffffffffffffffffffffffffffffffffffffffff16331461077d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103a1565b600260015414156107ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103a1565b600260018190555473ffffffffffffffffffffffffffffffffffffffff8281169116141561087d57600654421161087d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f7420656e646564207965740000000000000000000000000000000000000060448201526064016103a1565b61092d336040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381865afa1580156108eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090f9190611680565b73ffffffffffffffffffffffffffffffffffffffff84169190610e62565b5060018055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146109b5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103a1565b6109bf6000610f3b565b565b60005473ffffffffffffffffffffffffffffffffffffffff163314610a42576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103a1565b60065415610aac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f416c72656164792073746172746564000000000000000000000000000000000060448201526064016103a1565b600454610ab99042611668565b600655565b60005473ffffffffffffffffffffffffffffffffffffffff163314610b3f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103a1565b600791909155600855565b4260065411610bb5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f416c726561647920656e646564206f72206e6f7420737461727465640000000060448201526064016103a1565b60026001541415610c22576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103a1565b600260015573ffffffffffffffffffffffffffffffffffffffff82166000908152600c602052604090205480610cb4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f496e76616c6964207061796d656e74206d6574686f640000000000000000000060448201526064016103a1565b610cd673ffffffffffffffffffffffffffffffffffffffff8416333085610fb0565b6000610ce28383611014565b9050610ced81611029565b8060056000828254610cff9190611668565b9091555050600254610d289073ffffffffffffffffffffffffffffffffffffffff163383610e62565b5050600180555050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610db3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103a1565b73ffffffffffffffffffffffffffffffffffffffff8116610e56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016103a1565b610e5f81610f3b565b50565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610f369084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611189565b505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60405173ffffffffffffffffffffffffffffffffffffffff8085166024830152831660448201526064810182905261100e9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401610eb4565b50505050565b60006110208383611295565b90505b92915050565b6007548110156110ba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f43616e6e6f742072656365697665206c657373207468616e206c6f776572206c60448201527f696d69740000000000000000000000000000000000000000000000000000000060648201526084016103a1565b33600090815260096020526040812080548392906110d9908490611668565b909155505060085415806110fe57506008543360009081526009602052604090205411155b610e5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f43616e6e6f742072656365697665206d6f7265207468616e207570706572206c60448201527f696d69740000000000000000000000000000000000000000000000000000000060648201526084016103a1565b60006111eb826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661137e9092919063ffffffff16565b805190915015610f3657808060200190518101906112099190611699565b610f36576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016103a1565b6000806112a28484611397565b9050600a5481106110205760006103e8600b54836112c091906116bb565b6112ca91906116f8565b6112d49083611668565b6002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015291925073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015611343573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113679190611680565b81116113765791506110239050565b509392505050565b606061138d84846000856113bd565b90505b9392505050565b600081600354600a6113a99190611853565b6113b390856116bb565b61102091906116f8565b60608247101561144f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016103a1565b843b6114b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103a1565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516114e0919061188b565b60006040518083038185875af1925050503d806000811461151d576040519150601f19603f3d011682016040523d82523d6000602084013e611522565b606091505b509150915061153282828661153d565b979650505050505050565b6060831561154c575081611390565b82511561155c5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103a191906118a7565b600080604083850312156115a357600080fd5b50508035926020909101359150565b6000602082840312156115c457600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff811681146115ef57600080fd5b919050565b6000806040838503121561160757600080fd5b611610836115cb565b946020939093013593505050565b60006020828403121561163057600080fd5b611020826115cb565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000821982111561167b5761167b611639565b500190565b60006020828403121561169257600080fd5b5051919050565b6000602082840312156116ab57600080fd5b8151801515811461102057600080fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156116f3576116f3611639565b500290565b60008261172e577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600181815b8085111561178c57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561177257611772611639565b8085161561177f57918102915b93841c9390800290611738565b509250929050565b6000826117a357506001611023565b816117b057506000611023565b81600181146117c657600281146117d0576117ec565b6001915050611023565b60ff8411156117e1576117e1611639565b50506001821b611023565b5060208310610133831016604e8410600b841016171561180f575081810a611023565b6118198383611733565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561184b5761184b611639565b029392505050565b60006110208383611794565b60005b8381101561187a578181015183820152602001611862565b8381111561100e5750506000910152565b6000825161189d81846020870161185f565b9190910192915050565b60208152600082518060208401526118c681604085016020870161185f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220eca0bb1d71eee1fe899098ff8d90089b32891c9e75ef4d92d3c1e314a1d158d064736f6c634300080a0033608060405234801561001057600080fd5b506040516117f13803806117f183398101604081905261002f916100bf565b82828261003b3361006f565b60018055600280546001600160a01b0319166001600160a01b03949094169390931790925560035560045550610102915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806000606084860312156100d457600080fd5b83516001600160a01b03811681146100eb57600080fd5b602085015160409095015190969495509392505050565b6116e0806101116000396000f3fe608060405234801561001057600080fd5b506004361061016c5760003560e01c8063813d6c9a116100cd578063be9a655511610081578063cce7ec1311610066578063cce7ec13146102ad578063df0f1f07146102c0578063f2fde38b146102e057600080fd5b8063be9a655514610292578063c4590d3f1461029a57600080fd5b80639106d7ba116100b25780639106d7ba146102775780639731d9f614610280578063af0f325c1461028957600080fd5b8063813d6c9a146102505780638da5cb5b1461025957600080fd5b8063539270bc11610124578063667022fd11610109578063667022fd146101e35780636cd0715414610203578063715018a61461024857600080fd5b8063539270bc146101bd57806359770438146101d057600080fd5b80633197cbb6116101555780633197cbb6146101a257806338392c40146101ab5780633b97e856146101b457600080fd5b8063037c99b0146101715780631be0528914610186575b600080fd5b61018461017f36600461135b565b6102f3565b005b61018f60045481565b6040519081526020015b60405180910390f35b61018f60065481565b61018f60085481565b61018f60035481565b6101846101cb3660046113a6565b610384565b6101846101de3660046113d0565b6104d9565b61018f6101f13660046113d0565b60096020526000908152604090205481565b6002546102239073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610199565b610184610711565b61018f600b5481565b60005473ffffffffffffffffffffffffffffffffffffffff16610223565b61018f60055481565b61018f60075481565b61018f600a5481565b61018461079e565b6101846102a836600461135b565b61089b565b6101846102bb3660046113a6565b610927565b61018f6102ce3660046113d0565b600c6020526000908152604090205481565b6101846102ee3660046113d0565b610b0f565b60005473ffffffffffffffffffffffffffffffffffffffff163314610379576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600a91909155600b55565b60005473ffffffffffffffffffffffffffffffffffffffff163314610405576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610370565b60025473ffffffffffffffffffffffffffffffffffffffff838116911614156104b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f43616e6e6f74206164642073656c6c61626c6520746f6b656e2061732070617960448201527f6d656e74206d6574686f640000000000000000000000000000000000000000006064820152608401610370565b73ffffffffffffffffffffffffffffffffffffffff9091166000908152600c6020526040902055565b60005473ffffffffffffffffffffffffffffffffffffffff16331461055a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610370565b600260015414156105c7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610370565b600260018190555473ffffffffffffffffffffffffffffffffffffffff8281169116141561065a57600654421161065a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f7420656e64656420796574000000000000000000000000000000000000006044820152606401610370565b61070a336040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381865afa1580156106c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ec91906113eb565b73ffffffffffffffffffffffffffffffffffffffff84169190610c3f565b5060018055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610792576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610370565b61079c6000610d18565b565b60005473ffffffffffffffffffffffffffffffffffffffff16331461081f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610370565b60065415610889576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f416c7265616479207374617274656400000000000000000000000000000000006044820152606401610370565b6004546108969042611433565b600655565b60005473ffffffffffffffffffffffffffffffffffffffff16331461091c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610370565b600791909155600855565b4260065411610992576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f416c726561647920656e646564206f72206e6f742073746172746564000000006044820152606401610370565b600260015414156109ff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610370565b600260015573ffffffffffffffffffffffffffffffffffffffff82166000908152600c602052604090205480610a91576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f496e76616c6964207061796d656e74206d6574686f64000000000000000000006044820152606401610370565b610ab373ffffffffffffffffffffffffffffffffffffffff8416333085610d8d565b6000610abf8383610df1565b9050610aca81610edd565b8060056000828254610adc9190611433565b9091555050600254610b059073ffffffffffffffffffffffffffffffffffffffff163383610c3f565b5050600180555050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610b90576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610370565b73ffffffffffffffffffffffffffffffffffffffff8116610c33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610370565b610c3c81610d18565b50565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610d139084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261103d565b505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610deb9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401610c91565b50505050565b600080610dfe8484611149565b9050600a548110610ed45760006103e8600b5483610e1c919061144b565b610e269190611488565b610e309083611433565b6002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015291925073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610e9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec391906113eb565b8111610ed2579150610ed79050565b505b90505b92915050565b600754811015610f6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f43616e6e6f742072656365697665206c657373207468616e206c6f776572206c60448201527f696d6974000000000000000000000000000000000000000000000000000000006064820152608401610370565b3360009081526009602052604081208054839290610f8d908490611433565b90915550506008541580610fb257506008543360009081526009602052604090205411155b610c3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f43616e6e6f742072656365697665206d6f7265207468616e207570706572206c60448201527f696d6974000000000000000000000000000000000000000000000000000000006064820152608401610370565b600061109f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661116f9092919063ffffffff16565b805190915015610d1357808060200190518101906110bd91906114c3565b610d13576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610370565b600081600354600a61115b9190611605565b611165908561144b565b610ed49190611488565b606061117e8484600085611188565b90505b9392505050565b60608247101561121a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610370565b843b611282576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610370565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516112ab919061163d565b60006040518083038185875af1925050503d80600081146112e8576040519150601f19603f3d011682016040523d82523d6000602084013e6112ed565b606091505b50915091506112fd828286611308565b979650505050505050565b60608315611317575081611181565b8251156113275782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103709190611659565b6000806040838503121561136e57600080fd5b50508035926020909101359150565b803573ffffffffffffffffffffffffffffffffffffffff811681146113a157600080fd5b919050565b600080604083850312156113b957600080fd5b6113c28361137d565b946020939093013593505050565b6000602082840312156113e257600080fd5b610ed48261137d565b6000602082840312156113fd57600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000821982111561144657611446611404565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561148357611483611404565b500290565b6000826114be577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000602082840312156114d557600080fd5b81518015158114610ed457600080fd5b600181815b8085111561153e57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561152457611524611404565b8085161561153157918102915b93841c93908002906114ea565b509250929050565b60008261155557506001610ed7565b8161156257506000610ed7565b816001811461157857600281146115825761159e565b6001915050610ed7565b60ff84111561159357611593611404565b50506001821b610ed7565b5060208310610133831016604e8410600b84101617156115c1575081810a610ed7565b6115cb83836114e5565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156115fd576115fd611404565b029392505050565b6000610ed48383611546565b60005b8381101561162c578181015183820152602001611614565b83811115610deb5750506000910152565b6000825161164f818460208701611611565b9190910192915050565b6020815260008251806020840152611678816040850160208701611611565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220bf850be8b5b427226e9e80b32d46e07afa7b4ab3be89f91388c416bd49588ea964736f6c634300080a0033a2646970667358221220ff2399e020906d499f2fddea62eb9519c3e6ff003a16fd83265a81cda76f21dd64736f6c634300080a0033000000000000000000000000d584e695d6bc250084d1fc472792a2e0e1303d4c
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106100675760003560e01c8063ad9b802411610050578063ad9b802414610094578063b809ae87146100ba578063ee0fc121146100cd57600080fd5b806319cfe1e71461006c5780636ce4e2c314610081575b600080fd5b61007f61007a3660046111f1565b610119565b005b61007f61008f366004611273565b610268565b6100a76100a236600461133f565b610836565b6040519081526020015b60405180910390f35b61007f6100c8366004611273565b61085b565b6100f47f000000000000000000000000d584e695d6bc250084d1fc472792a2e0e1303d4c81565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100b1565b6040517fa386c7360000000000000000000000000000000000000000000000000000000081523360048201527f000000000000000000000000d584e695d6bc250084d1fc472792a2e0e1303d4c73ffffffffffffffffffffffffffffffffffffffff169063a386c73690602401602060405180830381865afa1580156101a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101c7919061136b565b610232576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f43616e6e6f74207365742070726963650000000000000000000000000000000060448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216600090815260016020526040902061026390826002611146565b505050565b600260005414156102d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610229565b600260009081556001816102ec60208e018e6113bc565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002060010154905060008111610382576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f57726f6e67207061796d656e74206d6574686f640000000000000000000000006044820152606401610229565b61044a337f000000000000000000000000d584e695d6bc250084d1fc472792a2e0e1303d4c73ffffffffffffffffffffffffffffffffffffffff1663b3f006746040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103f1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041591906113d9565b838e600060200201602081019061042c91906113bc565b73ffffffffffffffffffffffffffffffffffffffff16929190610db3565b8584146104b3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e76616c696420706172616d657465727300000000000000000000000000006044820152606401610229565b60008a8a8a6040516104c490611184565b73ffffffffffffffffffffffffffffffffffffffff909316835260208301919091526040820152606001604051809103906000f08015801561050a573d6000803e3d6000fd5b506040517fc4590d3f000000000000000000000000000000000000000000000000000000008152853560048201526020860135602482015290915073ffffffffffffffffffffffffffffffffffffffff82169063c4590d3f90604401600060405180830381600087803b15801561058057600080fd5b505af1158015610594573d6000803e3d6000fd5b50506040517f037c99b0000000000000000000000000000000000000000000000000000000008152853560048201526020860135602482015273ffffffffffffffffffffffffffffffffffffffff8416925063037c99b09150604401600060405180830381600087803b15801561060a57600080fd5b505af115801561061e573d6000803e3d6000fd5b5050505060005b87811015610721578173ffffffffffffffffffffffffffffffffffffffff1663539270bc8a8a8481811061065b5761065b61138d565b905060200201602081019061067091906113bc565b8989858181106106825761068261138d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16815273ffffffffffffffffffffffffffffffffffffffff90941660048501526020029190910135602483015250604401600060405180830381600087803b1580156106f657600080fd5b505af115801561070a573d6000803e3d6000fd5b505050508080610719906113f6565b915050610625565b5073ffffffffffffffffffffffffffffffffffffffff811663f2fde38b8d600160200201602081019061075491906113bc565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401600060405180830381600087803b1580156107ba57600080fd5b505af11580156107ce573d6000803e3d6000fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff85168152600160208201527f6a52a393150c061e1a1d151cdb19dda10b47bde43e6dca17727226d75861a2db93500190505b60405180910390a15050600160005550505050505050505050565b6001602052816000526040600020816002811061085257600080fd5b01549150829050565b600260005414156108c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610229565b600260009081556001816108df60208e018e6113bc565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205490508061096f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f57726f6e67207061796d656e74206d6574686f640000000000000000000000006044820152606401610229565b6109de337f000000000000000000000000d584e695d6bc250084d1fc472792a2e0e1303d4c73ffffffffffffffffffffffffffffffffffffffff1663b3f006746040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103f1573d6000803e3d6000fd5b858414610a47576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e76616c696420706172616d657465727300000000000000000000000000006044820152606401610229565b60008a8a8a604051610a5890611192565b73ffffffffffffffffffffffffffffffffffffffff909316835260208301919091526040820152606001604051809103906000f080158015610a9e573d6000803e3d6000fd5b506040517fc4590d3f000000000000000000000000000000000000000000000000000000008152853560048201526020860135602482015290915073ffffffffffffffffffffffffffffffffffffffff82169063c4590d3f90604401600060405180830381600087803b158015610b1457600080fd5b505af1158015610b28573d6000803e3d6000fd5b50506040517f037c99b0000000000000000000000000000000000000000000000000000000008152853560048201526020860135602482015273ffffffffffffffffffffffffffffffffffffffff8416925063037c99b09150604401600060405180830381600087803b158015610b9e57600080fd5b505af1158015610bb2573d6000803e3d6000fd5b5050505060005b87811015610cb5578173ffffffffffffffffffffffffffffffffffffffff1663539270bc8a8a84818110610bef57610bef61138d565b9050602002016020810190610c0491906113bc565b898985818110610c1657610c1661138d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16815273ffffffffffffffffffffffffffffffffffffffff90941660048501526020029190910135602483015250604401600060405180830381600087803b158015610c8a57600080fd5b505af1158015610c9e573d6000803e3d6000fd5b505050508080610cad906113f6565b915050610bb9565b5073ffffffffffffffffffffffffffffffffffffffff811663f2fde38b8d6001602002016020810190610ce891906113bc565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401600060405180830381600087803b158015610d4e57600080fd5b505af1158015610d62573d6000803e3d6000fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff85168152600060208201527f6a52a393150c061e1a1d151cdb19dda10b47bde43e6dca17727226d75861a2db935001905061081b565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610e48908590610e4e565b50505050565b6000610eb0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610f5a9092919063ffffffff16565b8051909150156102635780806020019051810190610ece919061136b565b610263576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610229565b6060610f698484600085610f73565b90505b9392505050565b606082471015611005576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610229565b843b61106d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610229565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516110969190611482565b60006040518083038185875af1925050503d80600081146110d3576040519150601f19603f3d011682016040523d82523d6000602084013e6110d8565b606091505b50915091506110e88282866110f3565b979650505050505050565b60608315611102575081610f6c565b8251156111125782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610229919061149e565b8260028101928215611174579160200282015b82811115611174578235825591602001919060010190611159565b506111809291506111a0565b5090565b611a3f80620014f083390190565b6117f18062002f2f83390190565b5b8082111561118057600081556001016111a1565b73ffffffffffffffffffffffffffffffffffffffff811681146111d757600080fd5b50565b80604081018310156111eb57600080fd5b92915050565b6000806060838503121561120457600080fd5b823561120f816111b5565b915061121e84602085016111da565b90509250929050565b60008083601f84011261123957600080fd5b50813567ffffffffffffffff81111561125157600080fd5b6020830191508360208260051b850101111561126c57600080fd5b9250929050565b6000806000806000806000806000806101608b8d03121561129357600080fd5b61129d8c8c6111da565b995060408b01356112ad816111b5565b985060608b0135975060808b0135965060a08b013567ffffffffffffffff808211156112d857600080fd5b6112e48e838f01611227565b909850965060c08d01359150808211156112fd57600080fd5b5061130a8d828e01611227565b909550935061131e90508c60e08d016111da565b915061132e8c6101208d016111da565b90509295989b9194979a5092959850565b6000806040838503121561135257600080fd5b823561135d816111b5565b946020939093013593505050565b60006020828403121561137d57600080fd5b81518015158114610f6c57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000602082840312156113ce57600080fd5b8135610f6c816111b5565b6000602082840312156113eb57600080fd5b8151610f6c816111b5565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561144f577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b5060010190565b60005b83811015611471578181015183820152602001611459565b83811115610e485750506000910152565b60008251611494818460208701611456565b9190910192915050565b60208152600082518060208401526114bd816040850160208701611456565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe608060405234801561001057600080fd5b50604051611a3f380380611a3f83398101604081905261002f916100bf565b82828261003b3361006f565b60018055600280546001600160a01b0319166001600160a01b03949094169390931790925560035560045550610102915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806000606084860312156100d457600080fd5b83516001600160a01b03811681146100eb57600080fd5b602085015160409095015190969495509392505050565b61192e806101116000396000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c8063715018a6116100d8578063af0f325c1161008c578063cce7ec1311610066578063cce7ec13146102de578063df0f1f07146102f1578063f2fde38b1461031157600080fd5b8063af0f325c146102ba578063be9a6555146102c3578063c4590d3f146102cb57600080fd5b80638da5cb5b116100bd5780638da5cb5b1461028a5780639106d7ba146102a85780639731d9f6146102b157600080fd5b8063715018a614610279578063813d6c9a1461028157600080fd5b806338392c401161013a57806359770438116101145780635977043814610201578063667022fd146102145780636cd071541461023457600080fd5b806338392c40146101dc5780633b97e856146101e5578063539270bc146101ee57600080fd5b80631d412dcb1161016b5780631d412dcb146101b85780632095f2d4146101cb5780633197cbb6146101d357600080fd5b8063037c99b0146101875780631be052891461019c575b600080fd5b61019a610195366004611590565b610324565b005b6101a560045481565b6040519081526020015b60405180910390f35b61019a6101c63660046115b2565b6103b5565b61019a6104b5565b6101a560065481565b6101a560085481565b6101a560035481565b61019a6101fc3660046115f4565b6105a7565b61019a61020f36600461161e565b6106fc565b6101a561022236600461161e565b60096020526000908152604090205481565b6002546102549073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101af565b61019a610934565b6101a5600b5481565b60005473ffffffffffffffffffffffffffffffffffffffff16610254565b6101a560055481565b6101a560075481565b6101a5600a5481565b61019a6109c1565b61019a6102d9366004611590565b610abe565b61019a6102ec3660046115f4565b610b4a565b6101a56102ff36600461161e565b600c6020526000908152604090205481565b61019a61031f36600461161e565b610d32565b60005473ffffffffffffffffffffffffffffffffffffffff1633146103aa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600a91909155600b55565b60005473ffffffffffffffffffffffffffffffffffffffff163314610436576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103a1565b42600654116104a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f416c726561647920656e646564206f72206e6f7420737461727465640000000060448201526064016103a1565b806006546104af9190611668565b60065550565b60005473ffffffffffffffffffffffffffffffffffffffff163314610536576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103a1565b42600654116105a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f416c726561647920656e646564206f72206e6f7420737461727465640000000060448201526064016103a1565b42600655565b60005473ffffffffffffffffffffffffffffffffffffffff163314610628576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103a1565b60025473ffffffffffffffffffffffffffffffffffffffff838116911614156106d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f43616e6e6f74206164642073656c6c61626c6520746f6b656e2061732070617960448201527f6d656e74206d6574686f6400000000000000000000000000000000000000000060648201526084016103a1565b73ffffffffffffffffffffffffffffffffffffffff9091166000908152600c6020526040902055565b60005473ffffffffffffffffffffffffffffffffffffffff16331461077d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103a1565b600260015414156107ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103a1565b600260018190555473ffffffffffffffffffffffffffffffffffffffff8281169116141561087d57600654421161087d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f7420656e646564207965740000000000000000000000000000000000000060448201526064016103a1565b61092d336040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381865afa1580156108eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090f9190611680565b73ffffffffffffffffffffffffffffffffffffffff84169190610e62565b5060018055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146109b5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103a1565b6109bf6000610f3b565b565b60005473ffffffffffffffffffffffffffffffffffffffff163314610a42576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103a1565b60065415610aac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f416c72656164792073746172746564000000000000000000000000000000000060448201526064016103a1565b600454610ab99042611668565b600655565b60005473ffffffffffffffffffffffffffffffffffffffff163314610b3f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103a1565b600791909155600855565b4260065411610bb5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f416c726561647920656e646564206f72206e6f7420737461727465640000000060448201526064016103a1565b60026001541415610c22576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103a1565b600260015573ffffffffffffffffffffffffffffffffffffffff82166000908152600c602052604090205480610cb4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f496e76616c6964207061796d656e74206d6574686f640000000000000000000060448201526064016103a1565b610cd673ffffffffffffffffffffffffffffffffffffffff8416333085610fb0565b6000610ce28383611014565b9050610ced81611029565b8060056000828254610cff9190611668565b9091555050600254610d289073ffffffffffffffffffffffffffffffffffffffff163383610e62565b5050600180555050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610db3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103a1565b73ffffffffffffffffffffffffffffffffffffffff8116610e56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016103a1565b610e5f81610f3b565b50565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610f369084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611189565b505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60405173ffffffffffffffffffffffffffffffffffffffff8085166024830152831660448201526064810182905261100e9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401610eb4565b50505050565b60006110208383611295565b90505b92915050565b6007548110156110ba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f43616e6e6f742072656365697665206c657373207468616e206c6f776572206c60448201527f696d69740000000000000000000000000000000000000000000000000000000060648201526084016103a1565b33600090815260096020526040812080548392906110d9908490611668565b909155505060085415806110fe57506008543360009081526009602052604090205411155b610e5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f43616e6e6f742072656365697665206d6f7265207468616e207570706572206c60448201527f696d69740000000000000000000000000000000000000000000000000000000060648201526084016103a1565b60006111eb826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661137e9092919063ffffffff16565b805190915015610f3657808060200190518101906112099190611699565b610f36576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016103a1565b6000806112a28484611397565b9050600a5481106110205760006103e8600b54836112c091906116bb565b6112ca91906116f8565b6112d49083611668565b6002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015291925073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015611343573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113679190611680565b81116113765791506110239050565b509392505050565b606061138d84846000856113bd565b90505b9392505050565b600081600354600a6113a99190611853565b6113b390856116bb565b61102091906116f8565b60608247101561144f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016103a1565b843b6114b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103a1565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516114e0919061188b565b60006040518083038185875af1925050503d806000811461151d576040519150601f19603f3d011682016040523d82523d6000602084013e611522565b606091505b509150915061153282828661153d565b979650505050505050565b6060831561154c575081611390565b82511561155c5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103a191906118a7565b600080604083850312156115a357600080fd5b50508035926020909101359150565b6000602082840312156115c457600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff811681146115ef57600080fd5b919050565b6000806040838503121561160757600080fd5b611610836115cb565b946020939093013593505050565b60006020828403121561163057600080fd5b611020826115cb565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000821982111561167b5761167b611639565b500190565b60006020828403121561169257600080fd5b5051919050565b6000602082840312156116ab57600080fd5b8151801515811461102057600080fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156116f3576116f3611639565b500290565b60008261172e577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600181815b8085111561178c57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561177257611772611639565b8085161561177f57918102915b93841c9390800290611738565b509250929050565b6000826117a357506001611023565b816117b057506000611023565b81600181146117c657600281146117d0576117ec565b6001915050611023565b60ff8411156117e1576117e1611639565b50506001821b611023565b5060208310610133831016604e8410600b841016171561180f575081810a611023565b6118198383611733565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561184b5761184b611639565b029392505050565b60006110208383611794565b60005b8381101561187a578181015183820152602001611862565b8381111561100e5750506000910152565b6000825161189d81846020870161185f565b9190910192915050565b60208152600082518060208401526118c681604085016020870161185f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220eca0bb1d71eee1fe899098ff8d90089b32891c9e75ef4d92d3c1e314a1d158d064736f6c634300080a0033608060405234801561001057600080fd5b506040516117f13803806117f183398101604081905261002f916100bf565b82828261003b3361006f565b60018055600280546001600160a01b0319166001600160a01b03949094169390931790925560035560045550610102915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806000606084860312156100d457600080fd5b83516001600160a01b03811681146100eb57600080fd5b602085015160409095015190969495509392505050565b6116e0806101116000396000f3fe608060405234801561001057600080fd5b506004361061016c5760003560e01c8063813d6c9a116100cd578063be9a655511610081578063cce7ec1311610066578063cce7ec13146102ad578063df0f1f07146102c0578063f2fde38b146102e057600080fd5b8063be9a655514610292578063c4590d3f1461029a57600080fd5b80639106d7ba116100b25780639106d7ba146102775780639731d9f614610280578063af0f325c1461028957600080fd5b8063813d6c9a146102505780638da5cb5b1461025957600080fd5b8063539270bc11610124578063667022fd11610109578063667022fd146101e35780636cd0715414610203578063715018a61461024857600080fd5b8063539270bc146101bd57806359770438146101d057600080fd5b80633197cbb6116101555780633197cbb6146101a257806338392c40146101ab5780633b97e856146101b457600080fd5b8063037c99b0146101715780631be0528914610186575b600080fd5b61018461017f36600461135b565b6102f3565b005b61018f60045481565b6040519081526020015b60405180910390f35b61018f60065481565b61018f60085481565b61018f60035481565b6101846101cb3660046113a6565b610384565b6101846101de3660046113d0565b6104d9565b61018f6101f13660046113d0565b60096020526000908152604090205481565b6002546102239073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610199565b610184610711565b61018f600b5481565b60005473ffffffffffffffffffffffffffffffffffffffff16610223565b61018f60055481565b61018f60075481565b61018f600a5481565b61018461079e565b6101846102a836600461135b565b61089b565b6101846102bb3660046113a6565b610927565b61018f6102ce3660046113d0565b600c6020526000908152604090205481565b6101846102ee3660046113d0565b610b0f565b60005473ffffffffffffffffffffffffffffffffffffffff163314610379576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600a91909155600b55565b60005473ffffffffffffffffffffffffffffffffffffffff163314610405576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610370565b60025473ffffffffffffffffffffffffffffffffffffffff838116911614156104b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f43616e6e6f74206164642073656c6c61626c6520746f6b656e2061732070617960448201527f6d656e74206d6574686f640000000000000000000000000000000000000000006064820152608401610370565b73ffffffffffffffffffffffffffffffffffffffff9091166000908152600c6020526040902055565b60005473ffffffffffffffffffffffffffffffffffffffff16331461055a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610370565b600260015414156105c7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610370565b600260018190555473ffffffffffffffffffffffffffffffffffffffff8281169116141561065a57600654421161065a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f7420656e64656420796574000000000000000000000000000000000000006044820152606401610370565b61070a336040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381865afa1580156106c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ec91906113eb565b73ffffffffffffffffffffffffffffffffffffffff84169190610c3f565b5060018055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610792576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610370565b61079c6000610d18565b565b60005473ffffffffffffffffffffffffffffffffffffffff16331461081f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610370565b60065415610889576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f416c7265616479207374617274656400000000000000000000000000000000006044820152606401610370565b6004546108969042611433565b600655565b60005473ffffffffffffffffffffffffffffffffffffffff16331461091c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610370565b600791909155600855565b4260065411610992576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f416c726561647920656e646564206f72206e6f742073746172746564000000006044820152606401610370565b600260015414156109ff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610370565b600260015573ffffffffffffffffffffffffffffffffffffffff82166000908152600c602052604090205480610a91576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f496e76616c6964207061796d656e74206d6574686f64000000000000000000006044820152606401610370565b610ab373ffffffffffffffffffffffffffffffffffffffff8416333085610d8d565b6000610abf8383610df1565b9050610aca81610edd565b8060056000828254610adc9190611433565b9091555050600254610b059073ffffffffffffffffffffffffffffffffffffffff163383610c3f565b5050600180555050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610b90576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610370565b73ffffffffffffffffffffffffffffffffffffffff8116610c33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610370565b610c3c81610d18565b50565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610d139084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261103d565b505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610deb9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401610c91565b50505050565b600080610dfe8484611149565b9050600a548110610ed45760006103e8600b5483610e1c919061144b565b610e269190611488565b610e309083611433565b6002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015291925073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610e9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec391906113eb565b8111610ed2579150610ed79050565b505b90505b92915050565b600754811015610f6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f43616e6e6f742072656365697665206c657373207468616e206c6f776572206c60448201527f696d6974000000000000000000000000000000000000000000000000000000006064820152608401610370565b3360009081526009602052604081208054839290610f8d908490611433565b90915550506008541580610fb257506008543360009081526009602052604090205411155b610c3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f43616e6e6f742072656365697665206d6f7265207468616e207570706572206c60448201527f696d6974000000000000000000000000000000000000000000000000000000006064820152608401610370565b600061109f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661116f9092919063ffffffff16565b805190915015610d1357808060200190518101906110bd91906114c3565b610d13576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610370565b600081600354600a61115b9190611605565b611165908561144b565b610ed49190611488565b606061117e8484600085611188565b90505b9392505050565b60608247101561121a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610370565b843b611282576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610370565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516112ab919061163d565b60006040518083038185875af1925050503d80600081146112e8576040519150601f19603f3d011682016040523d82523d6000602084013e6112ed565b606091505b50915091506112fd828286611308565b979650505050505050565b60608315611317575081611181565b8251156113275782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103709190611659565b6000806040838503121561136e57600080fd5b50508035926020909101359150565b803573ffffffffffffffffffffffffffffffffffffffff811681146113a157600080fd5b919050565b600080604083850312156113b957600080fd5b6113c28361137d565b946020939093013593505050565b6000602082840312156113e257600080fd5b610ed48261137d565b6000602082840312156113fd57600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000821982111561144657611446611404565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561148357611483611404565b500290565b6000826114be577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000602082840312156114d557600080fd5b81518015158114610ed457600080fd5b600181815b8085111561153e57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561152457611524611404565b8085161561153157918102915b93841c93908002906114ea565b509250929050565b60008261155557506001610ed7565b8161156257506000610ed7565b816001811461157857600281146115825761159e565b6001915050610ed7565b60ff84111561159357611593611404565b50506001821b610ed7565b5060208310610133831016604e8410600b84101617156115c1575081810a610ed7565b6115cb83836114e5565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156115fd576115fd611404565b029392505050565b6000610ed48383611546565b60005b8381101561162c578181015183820152602001611614565b83811115610deb5750506000910152565b6000825161164f818460208701611611565b9190910192915050565b6020815260008251806020840152611678816040850160208701611611565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220bf850be8b5b427226e9e80b32d46e07afa7b4ab3be89f91388c416bd49588ea964736f6c634300080a0033a2646970667358221220ff2399e020906d499f2fddea62eb9519c3e6ff003a16fd83265a81cda76f21dd64736f6c634300080a0033