Address Details
contract
0x9a7Ad9FBc46535112710f243c3549878Fe828b0f
- Contract Name
- ToshaFarm
- Creator
- 0xc98b48–837505 at 0xa1e0d4–a33c05
- 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
- 7651967
Transactions
Token Transfers
Tokens
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- ToshaFarm
- Optimization enabled
- false
- Compiler version
- v0.8.0+commit.c7dfd78e
- EVM Version
- istanbul
- Verified at
- 2023-02-05T07:23:15.341682Z
ToshaFarm_flat.sol
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; // For interacting with our own strategy interface IStrategy { // Total tosha tokens managed by strategy function toshaLockedTotal() external view returns (uint256); // Sum of all shares of users to wantLockedTotal function sharesTotal() external view returns (uint256); // Main tosha token compounding function function earn() external; // Transfer want tokens autoFarm -> strategy function deposit(address _userAddress, uint256 _wantAmt) external returns (uint256); // Transfer want tokens strategy -> autoFarm function withdraw(address _userAddress, uint256 _wantAmt) external returns (uint256); function inCaseTokensGetStuck(address _token, uint256 _amount, address _to) external; } /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } /** * @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) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } /** * @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"); } } } /** * @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); } /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } /** * @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; } } /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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 { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } abstract contract ToshaToken is ERC20 { function mint(address _to, uint256 _amount) public virtual; } contract ToshaFarm is Ownable, ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 shares; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // We do some fancy math here. Basically, any point in time, the amount of Token // entitled to a user but is pending to be distributed is: // // amount = user.shares / sharesTotal * toshaLockedTotal // pending reward = (amount * pool.accTokenPerShare) - user.rewardDebt // // Whenever a user deposits or withdraws tosha tokens to a pool. Here's what happens: // 1. The pool's `accTokenPerShare` (and `lastRewardBlock`) gets updated. // 2. User receives the pending reward sent to his/her address. // 3. User's `amount` gets updated. // 4. User's `rewardDebt` gets updated. } struct PoolInfo { IERC20 tosha; // Address of the tosha token. uint256 allocPoint; // How many allocation points assigned to this pool. Token to distribute per block. uint256 lastRewardBlock; // Last block number that Token distribution occurs. uint256 accTokenPerShare; // Accumulated Token per share, times 1e12. See below. address strat; // Strategy address that will auto compound tosha tokens } address public immutable TOSHA; address constant public burnAddress = 0x000000000000000000000000000000000000dEaD; uint256 constant public ownerTokenReward = 150; // 15% operations (dev/marketing) uint256 public maxSupply = 10000000e18; uint256 public tokenPerBlock = 5e17; // Token tokens created per block uint256 public immutable startBlock; // https://bscscan.com/block/countdown/7862758 PoolInfo[] public poolInfo; // Info of each pool. mapping(IERC20 => bool) public availableAssets; // Info of each pool. mapping(uint256 => mapping(address => UserInfo)) public userInfo; // Info of each user that stakes LP tokens. uint256 public totalAllocPoint = 0; // Total allocation points. Must be the sum of all allocation points in all pools. event Deposit(address indexed user, uint256 indexed pid, uint256 amount); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount); event SetAllocPoint(uint256 indexed _pid, uint256 _oldAllocPoint, uint256 _allocPoint); event SetMaxSupply(uint256 oldSupply, uint256 newSupply); event SetTokenPerBlock(uint256 oldTokenPerBlock, uint256 pacocaPerBlock); constructor(address _ToshaToken, uint256 _startBlock) { TOSHA = _ToshaToken; startBlock = _startBlock; } function poolLength() external view returns (uint256) { return poolInfo.length; } // Return reward multiplier over the given _from to _to block. function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) { if (IERC20(TOSHA).totalSupply() >= maxSupply) { return 0; } return _to.sub(_from); } // View function to see pending Token on frontend. function pendingToken(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accTokenPerShare = pool.accTokenPerShare; uint256 sharesTotal = IStrategy(pool.strat).sharesTotal(); if (block.number > pool.lastRewardBlock && sharesTotal != 0) { uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number); uint256 tokenReward = multiplier.mul(tokenPerBlock).mul(pool.allocPoint).div( totalAllocPoint ); accTokenPerShare = accTokenPerShare.add( tokenReward.mul(1e12).div(sharesTotal) ); } return user.shares.mul(accTokenPerShare).div(1e12).sub(user.rewardDebt); } // View function to see staked tokens on frontend. function stakedTokens(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 sharesTotal = IStrategy(pool.strat).sharesTotal(); uint256 toshaLockedTotal = IStrategy(poolInfo[_pid].strat).toshaLockedTotal(); if (sharesTotal == 0) { return 0; } return user.shares.mul(toshaLockedTotal).div(sharesTotal); } // Update reward variables for all pools. Be careful of gas spending! function massUpdatePools() public { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { updatePool(pid); } } // Update reward variables of the given pool to be up-to-date. function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.number <= pool.lastRewardBlock) { return; } uint256 sharesTotal = IStrategy(pool.strat).sharesTotal(); if (sharesTotal == 0) { pool.lastRewardBlock = block.number; return; } uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number); if (multiplier <= 0) { return; } uint256 tokenReward = multiplier.mul(tokenPerBlock).mul(pool.allocPoint).div( totalAllocPoint ); ToshaToken(TOSHA).mint( owner(), tokenReward.mul(ownerTokenReward).div(1000) ); ToshaToken(TOSHA).mint(address(this), tokenReward); pool.accTokenPerShare = pool.accTokenPerShare.add( tokenReward.mul(1e12).div(sharesTotal) ); pool.lastRewardBlock = block.number; } // Tosha tokens moved from user -> TokenFarm (Token allocation) -> Strat (compounding) function deposit(uint256 _pid, uint256 _toshaAmt) external nonReentrant { updatePool(_pid); PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; if (user.shares > 0) { uint256 pending = user.shares.mul(pool.accTokenPerShare).div(1e12).sub( user.rewardDebt ); if (pending > 0) { safeTokenTransfer(msg.sender, pending); } } if (_toshaAmt > 0) { pool.tosha.safeTransferFrom( address(msg.sender), address(this), _toshaAmt ); pool.tosha.safeIncreaseAllowance(pool.strat, _toshaAmt); uint256 sharesAdded = IStrategy(poolInfo[_pid].strat).deposit(msg.sender, _toshaAmt); user.shares = user.shares.add(sharesAdded); } user.rewardDebt = user.shares.mul(pool.accTokenPerShare).div(1e12); emit Deposit(msg.sender, _pid, _toshaAmt); } // Withdraw LP tokens from MasterChef. function withdraw(uint256 _pid, uint256 _toshaAmt) public nonReentrant { updatePool(_pid); PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; uint256 toshaLockedTotal = IStrategy(poolInfo[_pid].strat).toshaLockedTotal(); uint256 sharesTotal = IStrategy(poolInfo[_pid].strat).sharesTotal(); require(user.shares > 0, "user.shares is 0"); require(sharesTotal > 0, "sharesTotal is 0"); // Withdraw pending Token uint256 pending = user.shares.mul(pool.accTokenPerShare).div(1e12).sub( user.rewardDebt ); if (pending > 0) { safeTokenTransfer(msg.sender, pending); } // Withdraw tosha tokens uint256 amount = user.shares.mul(toshaLockedTotal).div(sharesTotal); if (_toshaAmt > amount) { _toshaAmt = amount; } if (_toshaAmt > 0) { uint256 sharesRemoved = IStrategy(poolInfo[_pid].strat).withdraw(msg.sender, _toshaAmt); if (sharesRemoved > user.shares) { user.shares = 0; } else { user.shares = user.shares.sub(sharesRemoved); } uint256 toshaBal = IERC20(pool.tosha).balanceOf(address(this)); if (toshaBal < _toshaAmt) { _toshaAmt = toshaBal; } pool.tosha.safeTransfer(address(msg.sender), _toshaAmt); } user.rewardDebt = user.shares.mul(pool.accTokenPerShare).div(1e12); emit Withdraw(msg.sender, _pid, _toshaAmt); } function withdrawAll(uint256 _pid) external nonReentrant { withdraw(_pid, type(uint256).max); } // Withdraw without caring about rewards. EMERGENCY ONLY. function emergencyWithdraw(uint256 _pid) external nonReentrant { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; uint256 toshaLockedTotal = IStrategy(poolInfo[_pid].strat).toshaLockedTotal(); uint256 sharesTotal = IStrategy(poolInfo[_pid].strat).sharesTotal(); uint256 amount = user.shares.mul(toshaLockedTotal).div(sharesTotal); IStrategy(poolInfo[_pid].strat).withdraw(msg.sender, amount); pool.tosha.safeTransfer(address(msg.sender), amount); emit EmergencyWithdraw(msg.sender, _pid, amount); user.shares = 0; user.rewardDebt = 0; } // Safe Token transfer function, just in case if rounding error causes pool to not have enough function safeTokenTransfer(address _to, uint256 _TokenAmt) internal { uint256 TokenBal = IERC20(TOSHA).balanceOf(address(this)); bool transferSuccess = false; if (_TokenAmt > TokenBal) { transferSuccess = IERC20(TOSHA).transfer(_to, TokenBal); } else { transferSuccess = IERC20(TOSHA).transfer(_to, _TokenAmt); } require(transferSuccess, "safeTokenTransfer: transfer failed"); } /* ------------------------------------ Governance functions ------------------------------------ */ // Add a new lp to the pool. Can only be called by the owner. // XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do. (Only if tosha tokens are stored here.) function addPool( uint256 _allocPoint, IERC20 _tosha, bool _withUpdate, address _strat ) external onlyOwner { require(!availableAssets[_tosha], "Can't add another pool of same asset"); if (_withUpdate) { massUpdatePools(); } uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock; totalAllocPoint = totalAllocPoint.add(_allocPoint); poolInfo.push( PoolInfo({ tosha: _tosha, allocPoint: _allocPoint, lastRewardBlock: lastRewardBlock, accTokenPerShare: 0, strat: _strat }) ); availableAssets[_tosha] = true; } // Update the given pool's Token allocation point. Can only be called by the owner. function set( uint256 _pid, uint256 _allocPoint, bool _withUpdate ) external onlyOwner { if (_withUpdate) { massUpdatePools(); } uint256 oldAllocPoint = poolInfo[_pid].allocPoint; totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add( _allocPoint ); poolInfo[_pid].allocPoint = _allocPoint; emit SetAllocPoint(_pid, oldAllocPoint, _allocPoint); } function setMaxSupply(uint256 _maxSupply) public onlyOwner { uint256 oldMaxSupply = maxSupply; maxSupply = _maxSupply; emit SetMaxSupply(oldMaxSupply, maxSupply); } function setTokenPerBlock(uint256 _tokenPerBlock) public onlyOwner { uint256 oldTokenPerBlock = tokenPerBlock; tokenPerBlock = _tokenPerBlock; emit SetTokenPerBlock(oldTokenPerBlock, tokenPerBlock); } function inCaseTokensGetStuck(address _token, uint256 _amount) external onlyOwner { require(_token != TOSHA, "!safe"); IERC20(_token).safeTransfer(msg.sender, _amount); } }
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_ToshaToken","internalType":"address"},{"type":"uint256","name":"_startBlock","internalType":"uint256"}]},{"type":"event","name":"Deposit","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"EmergencyWithdraw","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SetAllocPoint","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"_oldAllocPoint","internalType":"uint256","indexed":false},{"type":"uint256","name":"_allocPoint","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"SetMaxSupply","inputs":[{"type":"uint256","name":"oldSupply","internalType":"uint256","indexed":false},{"type":"uint256","name":"newSupply","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"SetTokenPerBlock","inputs":[{"type":"uint256","name":"oldTokenPerBlock","internalType":"uint256","indexed":false},{"type":"uint256","name":"pacocaPerBlock","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Withdraw","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"TOSHA","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addPool","inputs":[{"type":"uint256","name":"_allocPoint","internalType":"uint256"},{"type":"address","name":"_tosha","internalType":"contract IERC20"},{"type":"bool","name":"_withUpdate","internalType":"bool"},{"type":"address","name":"_strat","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"availableAssets","inputs":[{"type":"address","name":"","internalType":"contract IERC20"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"burnAddress","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deposit","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_toshaAmt","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"emergencyWithdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getMultiplier","inputs":[{"type":"uint256","name":"_from","internalType":"uint256"},{"type":"uint256","name":"_to","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"inCaseTokensGetStuck","inputs":[{"type":"address","name":"_token","internalType":"address"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"massUpdatePools","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxSupply","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"ownerTokenReward","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"pendingToken","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_user","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"tosha","internalType":"contract IERC20"},{"type":"uint256","name":"allocPoint","internalType":"uint256"},{"type":"uint256","name":"lastRewardBlock","internalType":"uint256"},{"type":"uint256","name":"accTokenPerShare","internalType":"uint256"},{"type":"address","name":"strat","internalType":"address"}],"name":"poolInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"poolLength","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"set","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_allocPoint","internalType":"uint256"},{"type":"bool","name":"_withUpdate","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMaxSupply","inputs":[{"type":"uint256","name":"_maxSupply","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setTokenPerBlock","inputs":[{"type":"uint256","name":"_tokenPerBlock","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"stakedTokens","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_user","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"startBlock","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenPerBlock","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalAllocPoint","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updatePool","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"shares","internalType":"uint256"},{"type":"uint256","name":"rewardDebt","internalType":"uint256"}],"name":"userInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_toshaAmt","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdrawAll","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]}]
Contract Creation Code
0x60c06040526a084595161401484a0000006002556706f05b59d3b2000060035560006007553480156200003157600080fd5b50604051620042f9380380620042f98339818101604052810190620000579190620001bf565b620000776200006b620000c560201b60201c565b620000cd60201b60201c565b600180819055508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250508060a08181525050505062000272565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050620001a2816200023e565b92915050565b600081519050620001b98162000258565b92915050565b60008060408385031215620001d357600080fd5b6000620001e38582860162000191565b9250506020620001f685828601620001a8565b9150509250929050565b60006200020d8262000214565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b620002498162000200565b81146200025557600080fd5b50565b620002638162000234565b81146200026f57600080fd5b50565b60805160601c60a05161401f620002da60003960008181610d8b01528181611b690152611b9001526000818161117f0152818161123a01528181611d610152818161212001528181612337015281816129f701528181612aac0152612b60015261401f6000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c806364482f79116100f957806393f1a40b11610097578063cd33598511610071578063cd335985146104d0578063d5abeb01146104ee578063e2bbb1581461050c578063f2fde38b14610528576101c4565b806393f1a40b14610467578063958e2d3114610498578063c6d758cb146104b4576101c4565b8063715018a6116100d3578063715018a6146103df5780638da5cb5b146103e95780638dbb1e3a1461040757806391135a5614610437576101c4565b806364482f79146103895780636f8b44b0146103a557806370d5ae05146103c1576101c4565b806348e43af41161016657806356eeafd91161014057806356eeafd9146103155780635e070c141461034557806361768a0614610361578063630b5ba11461037f576101c4565b806348e43af4146102ad57806351eb05a6146102dd5780635312ea8e146102f9576101c4565b8063411330bd116101a2578063411330bd146102395780634198709a14610255578063441a3e701461027357806348cd4cb11461028f576101c4565b8063081e3eda146101c95780631526fe27146101e757806317caf6f11461021b575b600080fd5b6101d1610544565b6040516101de9190613c99565b60405180910390f35b61020160048036038101906101fc91906133ee565b610551565b604051610212959493929190613aa4565b60405180910390f35b6102236105d7565b6040516102309190613c99565b60405180910390f35b610253600480360381019061024e91906133ee565b6105dd565b005b61025d6106a6565b60405161026a9190613c99565b60405180910390f35b61028d600480360381019061028891906134df565b6106ac565b005b610297610d89565b6040516102a49190613c99565b60405180910390f35b6102c760048036038101906102c29190613440565b610dad565b6040516102d49190613c99565b60405180910390f35b6102f760048036038101906102f291906133ee565b610ffc565b005b610313600480360381019061030e91906133ee565b61131e565b005b61032f600480360381019061032a9190613440565b6117cd565b60405161033c9190613c99565b60405180910390f35b61035f600480360381019061035a919061347c565b611a4d565b005b610369611d5f565b60405161037691906139e5565b60405180910390f35b610387611d83565b005b6103a3600480360381019061039e919061351b565b611db6565b005b6103bf60048036038101906103ba91906133ee565b611f99565b005b6103c9612062565b6040516103d691906139e5565b60405180910390f35b6103e7612068565b005b6103f16120f0565b6040516103fe91906139e5565b60405180910390f35b610421600480360381019061041c91906134df565b612119565b60405161042e9190613c99565b60405180910390f35b610451600480360381019061044c91906133c5565b6121e6565b60405161045e9190613a89565b60405180910390f35b610481600480360381019061047c9190613440565b612206565b60405161048f929190613cb4565b60405180910390f35b6104b260048036038101906104ad91906133ee565b612237565b005b6104ce60048036038101906104c99190613360565b6122b9565b005b6104d86123f3565b6040516104e59190613c99565b60405180910390f35b6104f66123f8565b6040516105039190613c99565b60405180910390f35b610526600480360381019061052191906134df565b6123fe565b005b610542600480360381019061053d9190613337565b6127e4565b005b6000600480549050905090565b6004818154811061056157600080fd5b90600052602060002090600502016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905085565b60075481565b6105e56128dc565b73ffffffffffffffffffffffffffffffffffffffff166106036120f0565b73ffffffffffffffffffffffffffffffffffffffff1614610659576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065090613bd9565b60405180910390fd5b60006003549050816003819055507fabd3af0ea1eee63be867263fbb2c718faac63f369b8c67437e985696a9d4c14a8160035460405161069a929190613cb4565b60405180910390a15050565b60035481565b600260015414156106f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e990613c59565b60405180910390fd5b600260018190555061070382610ffc565b60006004838154811061073f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201905060006006600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000600485815481106107df577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e0bdecbd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561085657600080fd5b505afa15801561086a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088e9190613417565b90506000600486815481106108cc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b15801561094357600080fd5b505afa158015610957573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097b9190613417565b905060008360000154116109c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109bb90613b79565b60405180910390fd5b60008111610a07576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109fe90613bf9565b60405180910390fd5b6000610a518460010154610a4364e8d4a51000610a35896003015489600001546128e490919063ffffffff16565b61295f90919063ffffffff16565b6129a990919063ffffffff16565b90506000811115610a6757610a6633826129f3565b5b6000610a9283610a848688600001546128e490919063ffffffff16565b61295f90919063ffffffff16565b905080871115610aa0578096505b6000871115610cef57600060048981548110610ae5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f3fef3a3338a6040518363ffffffff1660e01b8152600401610b51929190613a60565b602060405180830381600087803b158015610b6b57600080fd5b505af1158015610b7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba39190613417565b90508560000154811115610bc05760008660000181905550610be0565b610bd78187600001546129a990919063ffffffff16565b86600001819055505b60008760000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610c3f91906139e5565b60206040518083038186803b158015610c5757600080fd5b505afa158015610c6b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8f9190613417565b905088811015610c9d578098505b610cec338a8a60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612c549092919063ffffffff16565b50505b610d2164e8d4a51000610d13886003015488600001546128e490919063ffffffff16565b61295f90919063ffffffff16565b8560010181905550873373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56889604051610d709190613c99565b60405180910390a3505050505050600180819055505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008060048481548110610dea577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201905060006006600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260030154905060008360040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b158015610ec357600080fd5b505afa158015610ed7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efb9190613417565b9050836002015443118015610f11575060008114155b15610fac576000610f26856002015443612119565b90506000610f69600754610f5b8860010154610f4d600354876128e490919063ffffffff16565b6128e490919063ffffffff16565b61295f90919063ffffffff16565b9050610fa7610f9884610f8a64e8d4a51000856128e490919063ffffffff16565b61295f90919063ffffffff16565b85612cda90919063ffffffff16565b935050505b610ff08360010154610fe264e8d4a51000610fd48688600001546128e490919063ffffffff16565b61295f90919063ffffffff16565b6129a990919063ffffffff16565b94505050505092915050565b600060048281548110611038577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201905080600201544311611059575061131b565b60008160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b1580156110c557600080fd5b505afa1580156110d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110fd9190613417565b9050600081141561111857438260020181905550505061131b565b6000611128836002015443612119565b90506000811161113a5750505061131b565b600061117b60075461116d866001015461115f600354876128e490919063ffffffff16565b6128e490919063ffffffff16565b61295f90919063ffffffff16565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f196111c16120f0565b6111e96103e86111db6096876128e490919063ffffffff16565b61295f90919063ffffffff16565b6040518363ffffffff1660e01b8152600401611206929190613a60565b600060405180830381600087803b15801561122057600080fd5b505af1158015611234573d6000803e3d6000fd5b505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f1930836040518363ffffffff1660e01b8152600401611293929190613a60565b600060405180830381600087803b1580156112ad57600080fd5b505af11580156112c1573d6000803e3d6000fd5b505050506113056112f2846112e464e8d4a51000856128e490919063ffffffff16565b61295f90919063ffffffff16565b8560030154612cda90919063ffffffff16565b8460030181905550438460020181905550505050505b50565b60026001541415611364576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135b90613c59565b60405180910390fd5b60026001819055506000600482815481106113a8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201905060006006600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600060048481548110611448577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e0bdecbd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156114bf57600080fd5b505afa1580156114d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114f79190613417565b9050600060048581548110611535577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b1580156115ac57600080fd5b505afa1580156115c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e49190613417565b90506000611611826116038587600001546128e490919063ffffffff16565b61295f90919063ffffffff16565b90506004868154811061164d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f3fef3a333836040518363ffffffff1660e01b81526004016116b9929190613a60565b602060405180830381600087803b1580156116d357600080fd5b505af11580156116e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061170b9190613417565b5061175b33828760000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612c549092919063ffffffff16565b853373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595836040516117a29190613c99565b60405180910390a3600084600001819055506000846001018190555050505050506001808190555050565b6000806004848154811061180a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201905060006006600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b1580156118da57600080fd5b505afa1580156118ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119129190613417565b9050600060048781548110611950577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e0bdecbd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156119c757600080fd5b505afa1580156119db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ff9190613417565b90506000821415611a17576000945050505050611a47565b611a4082611a328386600001546128e490919063ffffffff16565b61295f90919063ffffffff16565b9450505050505b92915050565b611a556128dc565b73ffffffffffffffffffffffffffffffffffffffff16611a736120f0565b73ffffffffffffffffffffffffffffffffffffffff1614611ac9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac090613bd9565b60405180910390fd5b600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611b56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4d90613c79565b60405180910390fd5b8115611b6557611b64611d83565b5b60007f00000000000000000000000000000000000000000000000000000000000000004311611bb4577f0000000000000000000000000000000000000000000000000000000000000000611bb6565b435b9050611bcd85600754612cda90919063ffffffff16565b60078190555060046040518060a001604052808673ffffffffffffffffffffffffffffffffffffffff168152602001878152602001838152602001600081526020018473ffffffffffffffffffffffffffffffffffffffff16815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000600480549050905060005b81811015611db257611da181610ffc565b80611dab90613ed5565b9050611d90565b5050565b611dbe6128dc565b73ffffffffffffffffffffffffffffffffffffffff16611ddc6120f0565b73ffffffffffffffffffffffffffffffffffffffff1614611e32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2990613bd9565b60405180910390fd5b8015611e4157611e40611d83565b5b600060048481548110611e7d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201600101549050611f0383611ef560048781548110611ed2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201600101546007546129a990919063ffffffff16565b612cda90919063ffffffff16565b6007819055508260048581548110611f44577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906005020160010181905550837f7523fadbb3600b570fddee8765edffa27eec37801a6707dbe1383b0d70fd72bf8285604051611f8b929190613cb4565b60405180910390a250505050565b611fa16128dc565b73ffffffffffffffffffffffffffffffffffffffff16611fbf6120f0565b73ffffffffffffffffffffffffffffffffffffffff1614612015576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200c90613bd9565b60405180910390fd5b60006002549050816002819055507f4e4144d58c74765aab6b864c8cb807767198960f6ae6b4b135c56d41b639b7fe81600254604051612056929190613cb4565b60405180910390a15050565b61dead81565b6120706128dc565b73ffffffffffffffffffffffffffffffffffffffff1661208e6120f0565b73ffffffffffffffffffffffffffffffffffffffff16146120e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120db90613bd9565b60405180910390fd5b6120ee6000612d38565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006002547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561218457600080fd5b505afa158015612198573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121bc9190613417565b106121ca57600090506121e0565b6121dd83836129a990919063ffffffff16565b90505b92915050565b60056020528060005260406000206000915054906101000a900460ff1681565b6006602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b6002600154141561227d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227490613c59565b60405180910390fd5b60026001819055506122af817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6106ac565b6001808190555050565b6122c16128dc565b73ffffffffffffffffffffffffffffffffffffffff166122df6120f0565b73ffffffffffffffffffffffffffffffffffffffff1614612335576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232c90613bd9565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156123c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123bb90613b19565b60405180910390fd5b6123ef33828473ffffffffffffffffffffffffffffffffffffffff16612c549092919063ffffffff16565b5050565b609681565b60025481565b60026001541415612444576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243b90613c59565b60405180910390fd5b600260018190555061245582610ffc565b600060048381548110612491577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201905060006006600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154111561256457600061254c826001015461253e64e8d4a51000612530876003015487600001546128e490919063ffffffff16565b61295f90919063ffffffff16565b6129a990919063ffffffff16565b905060008111156125625761256133826129f3565b5b505b600083111561274e576125be3330858560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612dfc909392919063ffffffff16565b6126318260040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16848460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612e859092919063ffffffff16565b60006004858154811061266d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166347e7ef2433866040518363ffffffff1660e01b81526004016126d9929190613a60565b602060405180830381600087803b1580156126f357600080fd5b505af1158015612707573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061272b9190613417565b9050612744818360000154612cda90919063ffffffff16565b8260000181905550505b61278064e8d4a51000612772846003015484600001546128e490919063ffffffff16565b61295f90919063ffffffff16565b8160010181905550833373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15856040516127cf9190613c99565b60405180910390a35050600180819055505050565b6127ec6128dc565b73ffffffffffffffffffffffffffffffffffffffff1661280a6120f0565b73ffffffffffffffffffffffffffffffffffffffff1614612860576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285790613bd9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156128d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c790613b39565b60405180910390fd5b6128d981612d38565b50565b600033905090565b6000808314156128f75760009050612959565b600082846129059190613d96565b90508284826129149190613d65565b14612954576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161294b90613bb9565b60405180910390fd5b809150505b92915050565b60006129a183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612fa6565b905092915050565b60006129eb83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613009565b905092915050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401612a4e91906139e5565b60206040518083038186803b158015612a6657600080fd5b505afa158015612a7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a9e9190613417565b9050600081831115612b5e577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85846040518363ffffffff1660e01b8152600401612b05929190613a60565b602060405180830381600087803b158015612b1f57600080fd5b505af1158015612b33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b57919061339c565b9050612c0e565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040518363ffffffff1660e01b8152600401612bb9929190613a60565b602060405180830381600087803b158015612bd357600080fd5b505af1158015612be7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c0b919061339c565b90505b80612c4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c4590613b99565b60405180910390fd5b50505050565b612cd58363a9059cbb60e01b8484604051602401612c73929190613a60565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061306d565b505050565b6000808284612ce99190613d0f565b905083811015612d2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2590613b59565b60405180910390fd5b8091505092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612e7f846323b872dd60e01b858585604051602401612e1d93929190613a29565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061306d565b50505050565b6000818473ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30866040518363ffffffff1660e01b8152600401612ec3929190613a00565b60206040518083038186803b158015612edb57600080fd5b505afa158015612eef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f139190613417565b612f1d9190613d0f565b9050612fa08463095ea7b360e01b8584604051602401612f3e929190613a60565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061306d565b50505050565b60008083118290612fed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fe49190613af7565b60405180910390fd5b5060008385612ffc9190613d65565b9050809150509392505050565b6000838311158290613051576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130489190613af7565b60405180910390fd5b50600083856130609190613df0565b9050809150509392505050565b60006130cf826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166131349092919063ffffffff16565b905060008151111561312f57808060200190518101906130ef919061339c565b61312e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312590613c39565b60405180910390fd5b5b505050565b6060613143848460008561314c565b90509392505050565b60606131578561326e565b613196576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161318d90613c19565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516131bf91906139ce565b60006040518083038185875af1925050503d80600081146131fc576040519150601f19603f3d011682016040523d82523d6000602084013e613201565b606091505b50915091508115613216578092505050613266565b6000815111156132295780518082602001fd5b836040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161325d9190613af7565b60405180910390fd5b949350505050565b60008060007fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47060001b9050833f91508082141580156132b057506000801b8214155b92505050919050565b6000813590506132c881613f8d565b92915050565b6000813590506132dd81613fa4565b92915050565b6000815190506132f281613fa4565b92915050565b60008135905061330781613fbb565b92915050565b60008135905061331c81613fd2565b92915050565b60008151905061333181613fd2565b92915050565b60006020828403121561334957600080fd5b6000613357848285016132b9565b91505092915050565b6000806040838503121561337357600080fd5b6000613381858286016132b9565b92505060206133928582860161330d565b9150509250929050565b6000602082840312156133ae57600080fd5b60006133bc848285016132e3565b91505092915050565b6000602082840312156133d757600080fd5b60006133e5848285016132f8565b91505092915050565b60006020828403121561340057600080fd5b600061340e8482850161330d565b91505092915050565b60006020828403121561342957600080fd5b600061343784828501613322565b91505092915050565b6000806040838503121561345357600080fd5b60006134618582860161330d565b9250506020613472858286016132b9565b9150509250929050565b6000806000806080858703121561349257600080fd5b60006134a08782880161330d565b94505060206134b1878288016132f8565b93505060406134c2878288016132ce565b92505060606134d3878288016132b9565b91505092959194509250565b600080604083850312156134f257600080fd5b60006135008582860161330d565b92505060206135118582860161330d565b9150509250929050565b60008060006060848603121561353057600080fd5b600061353e8682870161330d565b935050602061354f8682870161330d565b9250506040613560868287016132ce565b9150509250925092565b61357381613e24565b82525050565b61358281613e36565b82525050565b600061359382613cdd565b61359d8185613cf3565b93506135ad818560208601613ea2565b80840191505092915050565b6135c281613e7e565b82525050565b60006135d382613ce8565b6135dd8185613cfe565b93506135ed818560208601613ea2565b6135f681613f7c565b840191505092915050565b600061360e600583613cfe565b91507f21736166650000000000000000000000000000000000000000000000000000006000830152602082019050919050565b600061364e602683613cfe565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006136b4601b83613cfe565b91507f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006000830152602082019050919050565b60006136f4601083613cfe565b91507f757365722e7368617265732069732030000000000000000000000000000000006000830152602082019050919050565b6000613734602283613cfe565b91507f73616665546f6b656e5472616e736665723a207472616e73666572206661696c60008301527f65640000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061379a602183613cfe565b91507f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60008301527f77000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613800602083613cfe565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000613840601083613cfe565b91507f736861726573546f74616c2069732030000000000000000000000000000000006000830152602082019050919050565b6000613880601d83613cfe565b91507f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006000830152602082019050919050565b60006138c0602a83613cfe565b91507f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008301527f6f742073756363656564000000000000000000000000000000000000000000006020830152604082019050919050565b6000613926601f83613cfe565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b6000613966602483613cfe565b91507f43616e27742061646420616e6f7468657220706f6f6c206f662073616d65206160008301527f73736574000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6139c881613e74565b82525050565b60006139da8284613588565b915081905092915050565b60006020820190506139fa600083018461356a565b92915050565b6000604082019050613a15600083018561356a565b613a22602083018461356a565b9392505050565b6000606082019050613a3e600083018661356a565b613a4b602083018561356a565b613a5860408301846139bf565b949350505050565b6000604082019050613a75600083018561356a565b613a8260208301846139bf565b9392505050565b6000602082019050613a9e6000830184613579565b92915050565b600060a082019050613ab960008301886135b9565b613ac660208301876139bf565b613ad360408301866139bf565b613ae060608301856139bf565b613aed608083018461356a565b9695505050505050565b60006020820190508181036000830152613b1181846135c8565b905092915050565b60006020820190508181036000830152613b3281613601565b9050919050565b60006020820190508181036000830152613b5281613641565b9050919050565b60006020820190508181036000830152613b72816136a7565b9050919050565b60006020820190508181036000830152613b92816136e7565b9050919050565b60006020820190508181036000830152613bb281613727565b9050919050565b60006020820190508181036000830152613bd28161378d565b9050919050565b60006020820190508181036000830152613bf2816137f3565b9050919050565b60006020820190508181036000830152613c1281613833565b9050919050565b60006020820190508181036000830152613c3281613873565b9050919050565b60006020820190508181036000830152613c52816138b3565b9050919050565b60006020820190508181036000830152613c7281613919565b9050919050565b60006020820190508181036000830152613c9281613959565b9050919050565b6000602082019050613cae60008301846139bf565b92915050565b6000604082019050613cc960008301856139bf565b613cd660208301846139bf565b9392505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b6000613d1a82613e74565b9150613d2583613e74565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613d5a57613d59613f1e565b5b828201905092915050565b6000613d7082613e74565b9150613d7b83613e74565b925082613d8b57613d8a613f4d565b5b828204905092915050565b6000613da182613e74565b9150613dac83613e74565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613de557613de4613f1e565b5b828202905092915050565b6000613dfb82613e74565b9150613e0683613e74565b925082821015613e1957613e18613f1e565b5b828203905092915050565b6000613e2f82613e54565b9050919050565b60008115159050919050565b6000613e4d82613e24565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000613e8982613e90565b9050919050565b6000613e9b82613e54565b9050919050565b60005b83811015613ec0578082015181840152602081019050613ea5565b83811115613ecf576000848401525b50505050565b6000613ee082613e74565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613f1357613f12613f1e565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b613f9681613e24565b8114613fa157600080fd5b50565b613fad81613e36565b8114613fb857600080fd5b50565b613fc481613e42565b8114613fcf57600080fd5b50565b613fdb81613e74565b8114613fe657600080fd5b5056fea26469706673582212200689581c0f1d7f9ab1540e8e3cfcca2e51667d8e5beacd5605b490d7d504d37064736f6c63430008000033000000000000000000000000ceddaa2cb6f36c238ddb5b31e469b48f898f4d130000000000000000000000000000000000000000000000000000000000000001
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c806364482f79116100f957806393f1a40b11610097578063cd33598511610071578063cd335985146104d0578063d5abeb01146104ee578063e2bbb1581461050c578063f2fde38b14610528576101c4565b806393f1a40b14610467578063958e2d3114610498578063c6d758cb146104b4576101c4565b8063715018a6116100d3578063715018a6146103df5780638da5cb5b146103e95780638dbb1e3a1461040757806391135a5614610437576101c4565b806364482f79146103895780636f8b44b0146103a557806370d5ae05146103c1576101c4565b806348e43af41161016657806356eeafd91161014057806356eeafd9146103155780635e070c141461034557806361768a0614610361578063630b5ba11461037f576101c4565b806348e43af4146102ad57806351eb05a6146102dd5780635312ea8e146102f9576101c4565b8063411330bd116101a2578063411330bd146102395780634198709a14610255578063441a3e701461027357806348cd4cb11461028f576101c4565b8063081e3eda146101c95780631526fe27146101e757806317caf6f11461021b575b600080fd5b6101d1610544565b6040516101de9190613c99565b60405180910390f35b61020160048036038101906101fc91906133ee565b610551565b604051610212959493929190613aa4565b60405180910390f35b6102236105d7565b6040516102309190613c99565b60405180910390f35b610253600480360381019061024e91906133ee565b6105dd565b005b61025d6106a6565b60405161026a9190613c99565b60405180910390f35b61028d600480360381019061028891906134df565b6106ac565b005b610297610d89565b6040516102a49190613c99565b60405180910390f35b6102c760048036038101906102c29190613440565b610dad565b6040516102d49190613c99565b60405180910390f35b6102f760048036038101906102f291906133ee565b610ffc565b005b610313600480360381019061030e91906133ee565b61131e565b005b61032f600480360381019061032a9190613440565b6117cd565b60405161033c9190613c99565b60405180910390f35b61035f600480360381019061035a919061347c565b611a4d565b005b610369611d5f565b60405161037691906139e5565b60405180910390f35b610387611d83565b005b6103a3600480360381019061039e919061351b565b611db6565b005b6103bf60048036038101906103ba91906133ee565b611f99565b005b6103c9612062565b6040516103d691906139e5565b60405180910390f35b6103e7612068565b005b6103f16120f0565b6040516103fe91906139e5565b60405180910390f35b610421600480360381019061041c91906134df565b612119565b60405161042e9190613c99565b60405180910390f35b610451600480360381019061044c91906133c5565b6121e6565b60405161045e9190613a89565b60405180910390f35b610481600480360381019061047c9190613440565b612206565b60405161048f929190613cb4565b60405180910390f35b6104b260048036038101906104ad91906133ee565b612237565b005b6104ce60048036038101906104c99190613360565b6122b9565b005b6104d86123f3565b6040516104e59190613c99565b60405180910390f35b6104f66123f8565b6040516105039190613c99565b60405180910390f35b610526600480360381019061052191906134df565b6123fe565b005b610542600480360381019061053d9190613337565b6127e4565b005b6000600480549050905090565b6004818154811061056157600080fd5b90600052602060002090600502016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905085565b60075481565b6105e56128dc565b73ffffffffffffffffffffffffffffffffffffffff166106036120f0565b73ffffffffffffffffffffffffffffffffffffffff1614610659576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065090613bd9565b60405180910390fd5b60006003549050816003819055507fabd3af0ea1eee63be867263fbb2c718faac63f369b8c67437e985696a9d4c14a8160035460405161069a929190613cb4565b60405180910390a15050565b60035481565b600260015414156106f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e990613c59565b60405180910390fd5b600260018190555061070382610ffc565b60006004838154811061073f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201905060006006600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000600485815481106107df577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e0bdecbd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561085657600080fd5b505afa15801561086a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088e9190613417565b90506000600486815481106108cc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b15801561094357600080fd5b505afa158015610957573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097b9190613417565b905060008360000154116109c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109bb90613b79565b60405180910390fd5b60008111610a07576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109fe90613bf9565b60405180910390fd5b6000610a518460010154610a4364e8d4a51000610a35896003015489600001546128e490919063ffffffff16565b61295f90919063ffffffff16565b6129a990919063ffffffff16565b90506000811115610a6757610a6633826129f3565b5b6000610a9283610a848688600001546128e490919063ffffffff16565b61295f90919063ffffffff16565b905080871115610aa0578096505b6000871115610cef57600060048981548110610ae5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f3fef3a3338a6040518363ffffffff1660e01b8152600401610b51929190613a60565b602060405180830381600087803b158015610b6b57600080fd5b505af1158015610b7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba39190613417565b90508560000154811115610bc05760008660000181905550610be0565b610bd78187600001546129a990919063ffffffff16565b86600001819055505b60008760000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610c3f91906139e5565b60206040518083038186803b158015610c5757600080fd5b505afa158015610c6b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8f9190613417565b905088811015610c9d578098505b610cec338a8a60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612c549092919063ffffffff16565b50505b610d2164e8d4a51000610d13886003015488600001546128e490919063ffffffff16565b61295f90919063ffffffff16565b8560010181905550873373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56889604051610d709190613c99565b60405180910390a3505050505050600180819055505050565b7f000000000000000000000000000000000000000000000000000000000000000181565b60008060048481548110610dea577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201905060006006600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260030154905060008360040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b158015610ec357600080fd5b505afa158015610ed7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efb9190613417565b9050836002015443118015610f11575060008114155b15610fac576000610f26856002015443612119565b90506000610f69600754610f5b8860010154610f4d600354876128e490919063ffffffff16565b6128e490919063ffffffff16565b61295f90919063ffffffff16565b9050610fa7610f9884610f8a64e8d4a51000856128e490919063ffffffff16565b61295f90919063ffffffff16565b85612cda90919063ffffffff16565b935050505b610ff08360010154610fe264e8d4a51000610fd48688600001546128e490919063ffffffff16565b61295f90919063ffffffff16565b6129a990919063ffffffff16565b94505050505092915050565b600060048281548110611038577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201905080600201544311611059575061131b565b60008160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b1580156110c557600080fd5b505afa1580156110d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110fd9190613417565b9050600081141561111857438260020181905550505061131b565b6000611128836002015443612119565b90506000811161113a5750505061131b565b600061117b60075461116d866001015461115f600354876128e490919063ffffffff16565b6128e490919063ffffffff16565b61295f90919063ffffffff16565b90507f000000000000000000000000ceddaa2cb6f36c238ddb5b31e469b48f898f4d1373ffffffffffffffffffffffffffffffffffffffff166340c10f196111c16120f0565b6111e96103e86111db6096876128e490919063ffffffff16565b61295f90919063ffffffff16565b6040518363ffffffff1660e01b8152600401611206929190613a60565b600060405180830381600087803b15801561122057600080fd5b505af1158015611234573d6000803e3d6000fd5b505050507f000000000000000000000000ceddaa2cb6f36c238ddb5b31e469b48f898f4d1373ffffffffffffffffffffffffffffffffffffffff166340c10f1930836040518363ffffffff1660e01b8152600401611293929190613a60565b600060405180830381600087803b1580156112ad57600080fd5b505af11580156112c1573d6000803e3d6000fd5b505050506113056112f2846112e464e8d4a51000856128e490919063ffffffff16565b61295f90919063ffffffff16565b8560030154612cda90919063ffffffff16565b8460030181905550438460020181905550505050505b50565b60026001541415611364576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135b90613c59565b60405180910390fd5b60026001819055506000600482815481106113a8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201905060006006600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600060048481548110611448577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e0bdecbd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156114bf57600080fd5b505afa1580156114d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114f79190613417565b9050600060048581548110611535577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b1580156115ac57600080fd5b505afa1580156115c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e49190613417565b90506000611611826116038587600001546128e490919063ffffffff16565b61295f90919063ffffffff16565b90506004868154811061164d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f3fef3a333836040518363ffffffff1660e01b81526004016116b9929190613a60565b602060405180830381600087803b1580156116d357600080fd5b505af11580156116e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061170b9190613417565b5061175b33828760000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612c549092919063ffffffff16565b853373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595836040516117a29190613c99565b60405180910390a3600084600001819055506000846001018190555050505050506001808190555050565b6000806004848154811061180a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201905060006006600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b1580156118da57600080fd5b505afa1580156118ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119129190613417565b9050600060048781548110611950577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e0bdecbd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156119c757600080fd5b505afa1580156119db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ff9190613417565b90506000821415611a17576000945050505050611a47565b611a4082611a328386600001546128e490919063ffffffff16565b61295f90919063ffffffff16565b9450505050505b92915050565b611a556128dc565b73ffffffffffffffffffffffffffffffffffffffff16611a736120f0565b73ffffffffffffffffffffffffffffffffffffffff1614611ac9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac090613bd9565b60405180910390fd5b600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611b56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4d90613c79565b60405180910390fd5b8115611b6557611b64611d83565b5b60007f00000000000000000000000000000000000000000000000000000000000000014311611bb4577f0000000000000000000000000000000000000000000000000000000000000001611bb6565b435b9050611bcd85600754612cda90919063ffffffff16565b60078190555060046040518060a001604052808673ffffffffffffffffffffffffffffffffffffffff168152602001878152602001838152602001600081526020018473ffffffffffffffffffffffffffffffffffffffff16815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050505050565b7f000000000000000000000000ceddaa2cb6f36c238ddb5b31e469b48f898f4d1381565b6000600480549050905060005b81811015611db257611da181610ffc565b80611dab90613ed5565b9050611d90565b5050565b611dbe6128dc565b73ffffffffffffffffffffffffffffffffffffffff16611ddc6120f0565b73ffffffffffffffffffffffffffffffffffffffff1614611e32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2990613bd9565b60405180910390fd5b8015611e4157611e40611d83565b5b600060048481548110611e7d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201600101549050611f0383611ef560048781548110611ed2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201600101546007546129a990919063ffffffff16565b612cda90919063ffffffff16565b6007819055508260048581548110611f44577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906005020160010181905550837f7523fadbb3600b570fddee8765edffa27eec37801a6707dbe1383b0d70fd72bf8285604051611f8b929190613cb4565b60405180910390a250505050565b611fa16128dc565b73ffffffffffffffffffffffffffffffffffffffff16611fbf6120f0565b73ffffffffffffffffffffffffffffffffffffffff1614612015576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200c90613bd9565b60405180910390fd5b60006002549050816002819055507f4e4144d58c74765aab6b864c8cb807767198960f6ae6b4b135c56d41b639b7fe81600254604051612056929190613cb4565b60405180910390a15050565b61dead81565b6120706128dc565b73ffffffffffffffffffffffffffffffffffffffff1661208e6120f0565b73ffffffffffffffffffffffffffffffffffffffff16146120e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120db90613bd9565b60405180910390fd5b6120ee6000612d38565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006002547f000000000000000000000000ceddaa2cb6f36c238ddb5b31e469b48f898f4d1373ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561218457600080fd5b505afa158015612198573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121bc9190613417565b106121ca57600090506121e0565b6121dd83836129a990919063ffffffff16565b90505b92915050565b60056020528060005260406000206000915054906101000a900460ff1681565b6006602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b6002600154141561227d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227490613c59565b60405180910390fd5b60026001819055506122af817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6106ac565b6001808190555050565b6122c16128dc565b73ffffffffffffffffffffffffffffffffffffffff166122df6120f0565b73ffffffffffffffffffffffffffffffffffffffff1614612335576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232c90613bd9565b60405180910390fd5b7f000000000000000000000000ceddaa2cb6f36c238ddb5b31e469b48f898f4d1373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156123c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123bb90613b19565b60405180910390fd5b6123ef33828473ffffffffffffffffffffffffffffffffffffffff16612c549092919063ffffffff16565b5050565b609681565b60025481565b60026001541415612444576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243b90613c59565b60405180910390fd5b600260018190555061245582610ffc565b600060048381548110612491577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201905060006006600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154111561256457600061254c826001015461253e64e8d4a51000612530876003015487600001546128e490919063ffffffff16565b61295f90919063ffffffff16565b6129a990919063ffffffff16565b905060008111156125625761256133826129f3565b5b505b600083111561274e576125be3330858560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612dfc909392919063ffffffff16565b6126318260040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16848460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612e859092919063ffffffff16565b60006004858154811061266d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166347e7ef2433866040518363ffffffff1660e01b81526004016126d9929190613a60565b602060405180830381600087803b1580156126f357600080fd5b505af1158015612707573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061272b9190613417565b9050612744818360000154612cda90919063ffffffff16565b8260000181905550505b61278064e8d4a51000612772846003015484600001546128e490919063ffffffff16565b61295f90919063ffffffff16565b8160010181905550833373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15856040516127cf9190613c99565b60405180910390a35050600180819055505050565b6127ec6128dc565b73ffffffffffffffffffffffffffffffffffffffff1661280a6120f0565b73ffffffffffffffffffffffffffffffffffffffff1614612860576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285790613bd9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156128d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c790613b39565b60405180910390fd5b6128d981612d38565b50565b600033905090565b6000808314156128f75760009050612959565b600082846129059190613d96565b90508284826129149190613d65565b14612954576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161294b90613bb9565b60405180910390fd5b809150505b92915050565b60006129a183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612fa6565b905092915050565b60006129eb83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613009565b905092915050565b60007f000000000000000000000000ceddaa2cb6f36c238ddb5b31e469b48f898f4d1373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401612a4e91906139e5565b60206040518083038186803b158015612a6657600080fd5b505afa158015612a7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a9e9190613417565b9050600081831115612b5e577f000000000000000000000000ceddaa2cb6f36c238ddb5b31e469b48f898f4d1373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85846040518363ffffffff1660e01b8152600401612b05929190613a60565b602060405180830381600087803b158015612b1f57600080fd5b505af1158015612b33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b57919061339c565b9050612c0e565b7f000000000000000000000000ceddaa2cb6f36c238ddb5b31e469b48f898f4d1373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040518363ffffffff1660e01b8152600401612bb9929190613a60565b602060405180830381600087803b158015612bd357600080fd5b505af1158015612be7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c0b919061339c565b90505b80612c4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c4590613b99565b60405180910390fd5b50505050565b612cd58363a9059cbb60e01b8484604051602401612c73929190613a60565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061306d565b505050565b6000808284612ce99190613d0f565b905083811015612d2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2590613b59565b60405180910390fd5b8091505092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612e7f846323b872dd60e01b858585604051602401612e1d93929190613a29565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061306d565b50505050565b6000818473ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30866040518363ffffffff1660e01b8152600401612ec3929190613a00565b60206040518083038186803b158015612edb57600080fd5b505afa158015612eef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f139190613417565b612f1d9190613d0f565b9050612fa08463095ea7b360e01b8584604051602401612f3e929190613a60565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061306d565b50505050565b60008083118290612fed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fe49190613af7565b60405180910390fd5b5060008385612ffc9190613d65565b9050809150509392505050565b6000838311158290613051576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130489190613af7565b60405180910390fd5b50600083856130609190613df0565b9050809150509392505050565b60006130cf826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166131349092919063ffffffff16565b905060008151111561312f57808060200190518101906130ef919061339c565b61312e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312590613c39565b60405180910390fd5b5b505050565b6060613143848460008561314c565b90509392505050565b60606131578561326e565b613196576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161318d90613c19565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516131bf91906139ce565b60006040518083038185875af1925050503d80600081146131fc576040519150601f19603f3d011682016040523d82523d6000602084013e613201565b606091505b50915091508115613216578092505050613266565b6000815111156132295780518082602001fd5b836040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161325d9190613af7565b60405180910390fd5b949350505050565b60008060007fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47060001b9050833f91508082141580156132b057506000801b8214155b92505050919050565b6000813590506132c881613f8d565b92915050565b6000813590506132dd81613fa4565b92915050565b6000815190506132f281613fa4565b92915050565b60008135905061330781613fbb565b92915050565b60008135905061331c81613fd2565b92915050565b60008151905061333181613fd2565b92915050565b60006020828403121561334957600080fd5b6000613357848285016132b9565b91505092915050565b6000806040838503121561337357600080fd5b6000613381858286016132b9565b92505060206133928582860161330d565b9150509250929050565b6000602082840312156133ae57600080fd5b60006133bc848285016132e3565b91505092915050565b6000602082840312156133d757600080fd5b60006133e5848285016132f8565b91505092915050565b60006020828403121561340057600080fd5b600061340e8482850161330d565b91505092915050565b60006020828403121561342957600080fd5b600061343784828501613322565b91505092915050565b6000806040838503121561345357600080fd5b60006134618582860161330d565b9250506020613472858286016132b9565b9150509250929050565b6000806000806080858703121561349257600080fd5b60006134a08782880161330d565b94505060206134b1878288016132f8565b93505060406134c2878288016132ce565b92505060606134d3878288016132b9565b91505092959194509250565b600080604083850312156134f257600080fd5b60006135008582860161330d565b92505060206135118582860161330d565b9150509250929050565b60008060006060848603121561353057600080fd5b600061353e8682870161330d565b935050602061354f8682870161330d565b9250506040613560868287016132ce565b9150509250925092565b61357381613e24565b82525050565b61358281613e36565b82525050565b600061359382613cdd565b61359d8185613cf3565b93506135ad818560208601613ea2565b80840191505092915050565b6135c281613e7e565b82525050565b60006135d382613ce8565b6135dd8185613cfe565b93506135ed818560208601613ea2565b6135f681613f7c565b840191505092915050565b600061360e600583613cfe565b91507f21736166650000000000000000000000000000000000000000000000000000006000830152602082019050919050565b600061364e602683613cfe565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006136b4601b83613cfe565b91507f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006000830152602082019050919050565b60006136f4601083613cfe565b91507f757365722e7368617265732069732030000000000000000000000000000000006000830152602082019050919050565b6000613734602283613cfe565b91507f73616665546f6b656e5472616e736665723a207472616e73666572206661696c60008301527f65640000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061379a602183613cfe565b91507f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60008301527f77000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613800602083613cfe565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000613840601083613cfe565b91507f736861726573546f74616c2069732030000000000000000000000000000000006000830152602082019050919050565b6000613880601d83613cfe565b91507f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006000830152602082019050919050565b60006138c0602a83613cfe565b91507f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008301527f6f742073756363656564000000000000000000000000000000000000000000006020830152604082019050919050565b6000613926601f83613cfe565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b6000613966602483613cfe565b91507f43616e27742061646420616e6f7468657220706f6f6c206f662073616d65206160008301527f73736574000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6139c881613e74565b82525050565b60006139da8284613588565b915081905092915050565b60006020820190506139fa600083018461356a565b92915050565b6000604082019050613a15600083018561356a565b613a22602083018461356a565b9392505050565b6000606082019050613a3e600083018661356a565b613a4b602083018561356a565b613a5860408301846139bf565b949350505050565b6000604082019050613a75600083018561356a565b613a8260208301846139bf565b9392505050565b6000602082019050613a9e6000830184613579565b92915050565b600060a082019050613ab960008301886135b9565b613ac660208301876139bf565b613ad360408301866139bf565b613ae060608301856139bf565b613aed608083018461356a565b9695505050505050565b60006020820190508181036000830152613b1181846135c8565b905092915050565b60006020820190508181036000830152613b3281613601565b9050919050565b60006020820190508181036000830152613b5281613641565b9050919050565b60006020820190508181036000830152613b72816136a7565b9050919050565b60006020820190508181036000830152613b92816136e7565b9050919050565b60006020820190508181036000830152613bb281613727565b9050919050565b60006020820190508181036000830152613bd28161378d565b9050919050565b60006020820190508181036000830152613bf2816137f3565b9050919050565b60006020820190508181036000830152613c1281613833565b9050919050565b60006020820190508181036000830152613c3281613873565b9050919050565b60006020820190508181036000830152613c52816138b3565b9050919050565b60006020820190508181036000830152613c7281613919565b9050919050565b60006020820190508181036000830152613c9281613959565b9050919050565b6000602082019050613cae60008301846139bf565b92915050565b6000604082019050613cc960008301856139bf565b613cd660208301846139bf565b9392505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b6000613d1a82613e74565b9150613d2583613e74565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613d5a57613d59613f1e565b5b828201905092915050565b6000613d7082613e74565b9150613d7b83613e74565b925082613d8b57613d8a613f4d565b5b828204905092915050565b6000613da182613e74565b9150613dac83613e74565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613de557613de4613f1e565b5b828202905092915050565b6000613dfb82613e74565b9150613e0683613e74565b925082821015613e1957613e18613f1e565b5b828203905092915050565b6000613e2f82613e54565b9050919050565b60008115159050919050565b6000613e4d82613e24565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000613e8982613e90565b9050919050565b6000613e9b82613e54565b9050919050565b60005b83811015613ec0578082015181840152602081019050613ea5565b83811115613ecf576000848401525b50505050565b6000613ee082613e74565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613f1357613f12613f1e565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b613f9681613e24565b8114613fa157600080fd5b50565b613fad81613e36565b8114613fb857600080fd5b50565b613fc481613e42565b8114613fcf57600080fd5b50565b613fdb81613e74565b8114613fe657600080fd5b5056fea26469706673582212200689581c0f1d7f9ab1540e8e3cfcca2e51667d8e5beacd5605b490d7d504d37064736f6c63430008000033