false
false

Contract Address Details

0x62974CE5d662f9045265716a3e64eaAfC258779F

Contract Name
MasterKUS
Creator
0x000000–48ffc3 at 0xc3649f–f85ec1
Balance
0 KCS
Tokens
Fetching tokens...
Transactions
139,632 Transactions
Transfers
585,833 Transfers
Gas Used
18,016,519,698
Last Balance Update
44722877
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
MasterKUS




Optimization enabled
true
Compiler version
v0.6.12+commit.27d51765




Optimization runs
999999
EVM Version
default




Verified at
2023-04-05T21:17:25.788357Z

Constructor Arguments

0000000000000000000000004a81704d8c16d9fb0d7f61b747d0b5a272badf14000000000000000000000000e8aa65434a734186f607c1e95efb11b31dbe17570000000000000000000000000000000007c96ad6c9835204303c8fb35e48ffc3000000000000000000000000f60cef30825d26774b33f860cb04ea1384b6db33000000000000000000000000475dedf4523f4bb2f7dafaa52b6fcdaf3c13b2d3000000000000000000000000000000000000000000000000008e1bc9bf04000000000000000000000000000000000000000000000000000000000000005b3ba600000000000000000000000000000000000000000000000000000000000d13a80000000000000000000000000000000000000000000000000000000000015f900000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000a7f8

Arg [0] (address) : 0x4a81704d8c16d9fb0d7f61b747d0b5a272badf14
Arg [1] (address) : 0xe8aa65434a734186f607c1e95efb11b31dbe1757
Arg [2] (address) : 0x0000000007c96ad6c9835204303c8fb35e48ffc3
Arg [3] (address) : 0xf60cef30825d26774b33f860cb04ea1384b6db33
Arg [4] (address) : 0x475dedf4523f4bb2f7dafaa52b6fcdaf3c13b2d3
Arg [5] (uint256) : 40000000000000000
Arg [6] (uint256) : 5979046
Arg [7] (uint256) : 857000
Arg [8] (uint256) : 90000
Arg [9] (uint256) : 10000
Arg [10] (uint256) : 43000

              

Contract source code

//SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

/**
 * @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].
 */
	contract ReentrancyGuard {
		bool private _notEntered;

		constructor () internal {
			// Storing an initial 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 percetange 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.
			_notEntered = true;
		}

		/**
		* @dev Prevents a contract from calling itself, directly or indirectly.
		* Calling a `nonReentrant` function from another `nonReentrant`
		* function is not supported. It is possible to prevent this from happening
		* by making the `nonReentrant` function external, and make it call a
		* `private` function that does the actual work.
		*/
		modifier nonReentrant() {
			// On the first call to nonReentrant, _notEntered will be true
			require(_notEntered, "ReentrancyGuard: reentrant call");

			// Any calls to nonReentrant after this point will fail
			_notEntered = false;

			_;

			// By storing the original value once again, a refund is triggered (see
			// https://eips.ethereum.org/EIPS/eip-2200)
			_notEntered = true;
		}
	}
	
	/**
	* @dev Standard math utilities missing in the Solidity language.
	*/
	library Math {
		/**
		* @dev Returns the largest of two numbers.
		*/
		function max(uint256 a, uint256 b) internal pure returns (uint256) {
			return a >= b ? a : b;
		}

		/**
		* @dev Returns the smallest of two numbers.
		*/
		function min(uint256 a, uint256 b) internal pure returns (uint256) {
			return a < b ? a : b;
		}

		/**
		* @dev Returns the average of two numbers. The result is rounded towards
		* zero.
		*/
		function average(uint256 a, uint256 b) internal pure returns (uint256) {
			// (a + b) / 2 can overflow, so we distribute
			return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
		}
	}
	library SafeKRC20 {
	    using SafeMath for uint256;
	    using Address for address;
	
	    function safeTransfer(
	        IKRC20 token,
	        address to,
	        uint256 value
	    ) internal {
	        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
	    }
	
	    function safeTransferFrom(
	        IKRC20 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
	     * {IKRC20-approve}, and its usage is discouraged.
	     *
	     * Whenever possible, use {safeIncreaseAllowance} and
	     * {safeDecreaseAllowance} instead.
	     */
	    function safeApprove(
	        IKRC20 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'
	        // solhint-disable-next-line max-line-length
	        require(
	            (value == 0) || (token.allowance(address(this), spender) == 0),
	            'SafeKRC20: approve from non-zero to non-zero allowance'
	        );
	        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
	    }
	
	    function safeIncreaseAllowance(
	        IKRC20 token,
	        address spender,
	        uint256 value
	    ) internal {
	        uint256 newAllowance = token.allowance(address(this), spender).add(value);
	        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
	    }
	
	    function safeDecreaseAllowance(
	        IKRC20 token,
	        address spender,
	        uint256 value
	    ) internal {
	        uint256 newAllowance = token.allowance(address(this), spender).sub(
	            value,
	            'SafeKRC20: decreased allowance below zero'
	        );
	        _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(IKRC20 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, 'SafeKRC20: low-level call failed');
	        if (returndata.length > 0) {
	            // Return data is optional
	            // solhint-disable-next-line max-line-length
	            require(abi.decode(returndata, (bool)), 'SafeKRC20: KRC20 operation did not succeed');
	        }
	    }
	}
	contract Context {
	    // Empty internal constructor, to prevent people from mistakenly deploying
	    // an instance of this contract, which should be used via inheritance.
	    constructor() internal {}
	
	    function _msgSender() internal view returns (address payable) {
	        return msg.sender;
	    }
	
	    function _msgData() internal view returns (bytes memory) {
	        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
	        return msg.data;
	    }
	}
	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() internal {
	        address msgSender = _msgSender();
	        _owner = msgSender;
	        emit OwnershipTransferred(address(0), msgSender);
	    }
	
	    /**
	     * @dev Returns the address of the current owner.
	     */
	    function owner() public view 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 onlyOwner {
	        emit OwnershipTransferred(_owner, address(0));
	        _owner = 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 onlyOwner {
	        _transferOwnership(newOwner);
	    }
	
	    /**
	     * @dev Transfers ownership of the contract to a new account (`newOwner`).
	     */
	    function _transferOwnership(address newOwner) internal {
	        require(newOwner != address(0), 'Ownable: new owner is the zero address');
	        emit OwnershipTransferred(_owner, newOwner);
	        _owner = newOwner;
	    }
	}
	interface IKRC20 {
	    /**
	     * @dev Returns the amount of tokens in existence.
	     */
	    function totalSupply() external view returns (uint256);
	
	    function preMineSupply() external view returns (uint256);
	
	    function maxSupply() external view returns (uint256);
	
	    /**
	     * @dev Returns the token decimals.
	     */
	    function decimals() external view returns (uint8);
	
	    /**
	     * @dev Returns the token symbol.
	     */
	    function symbol() external view returns (string memory);
	
	    /**
	     * @dev Returns the token name.
	     */
	    function name() external view returns (string memory);
	
	    /**
	     * @dev Returns the KRC token owner.
	     */
	    function getOwner() external view returns (address);
	
	    /**
	     * @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);
	}
	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;
	    }
	
	    function min(uint256 x, uint256 y) internal pure returns (uint256 z) {
	        z = x < y ? x : y;
	    }
	
	    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
	    function sqrt(uint256 y) internal pure returns (uint256 z) {
	        if (y > 3) {
	            z = y;
	            uint256 x = y / 2 + 1;
	            while (x < z) {
	                z = x;
	                x = (y / x + x) / 2;
	            }
	        } else if (y != 0) {
	            z = 1;
	        }
	    }
	}
	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);
	            }
	        }
	    }
	}
	
	contract KRC20 is Context, IKRC20, Ownable {
	    uint256 private constant _preMineSupply = 5000000 * 1e18;
	    uint256 private constant _maxSupply = 350000000 * 1e18; 
	
	    using SafeMath for uint256;
	    using Address for address;
	
	    mapping(address => uint256) private _balances;
	
	    mapping(address => mapping(address => uint256)) private _allowances;
	
	    uint256 private _totalSupply;
	
	    string private _name;
	    string private _symbol;
	    uint8 private _decimals;
	
	    /**
	     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
	     * a default value of 18.
	     *
	     * To select a different value for {decimals}, use {_setupDecimals}.
	     *
	     * All three of these values are immutable: they can only be set once during
	     * construction.
	     */
	    constructor(string memory name, string memory symbol) public {
	        _name = name;
	        _symbol = symbol;
	        _decimals = 18;
	
	        _mint(msg.sender, _preMineSupply);
	    }
	
	    /**
	     * @dev Returns the KRC token owner.
	     */
	    function getOwner() external override view returns (address) {
	        return owner();
	    }
	
	    /**
	     * @dev Returns the token name.
	     */
	    function name() public override view returns (string memory) {
	        return _name;
	    }
	
	    /**
	     * @dev Returns the token decimals.
	     */
	    function decimals() public override view returns (uint8) {
	        return _decimals;
	    }
	
	    /**
	     * @dev Returns the token symbol.
	     */
	    function symbol() public override view returns (string memory) {
	        return _symbol;
	    }
	
	    /**
	     * @dev See {KRC20-totalSupply}.
	     */
	    function totalSupply() public override view returns (uint256) {
	        return _totalSupply;
	    }
	
	    function preMineSupply() public override view returns (uint256) {
	        return _preMineSupply;
	    }
	
	    function maxSupply() public override view returns (uint256) {
	        return _maxSupply;
	    }
	
	    /**
	     * @dev See {KRC20-balanceOf}.
	     */
	    function balanceOf(address account) public override view returns (uint256) {
	        return _balances[account];
	    }
	
	    /**
	     * @dev See {KRC20-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 override returns (bool) {
	        _transfer(_msgSender(), recipient, amount);
	        return true;
	    }
	
	    /**
	     * @dev See {KRC20-allowance}.
	     */
	    function allowance(address owner, address spender) public override view returns (uint256) {
	        return _allowances[owner][spender];
	    }
	
	    /**
	     * @dev See {KRC20-approve}.
	     *
	     * Requirements:
	     *
	     * - `spender` cannot be the zero address.
	     */
	    function approve(address spender, uint256 amount) public override returns (bool) {
	        _approve(_msgSender(), spender, amount);
	        return true;
	    }
	
	    /**
	     * @dev See {KRC20-transferFrom}.
	     *
	     * Emits an {Approval} event indicating the updated allowance. This is not
	     * required by the EIP. See the note at the beginning of {KRC20};
	     *
	     * 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 override returns (bool) {
	        _transfer(sender, recipient, amount);
	        _approve(
	            sender,
	            _msgSender(),
	            _allowances[sender][_msgSender()].sub(amount, 'KRC20: transfer amount exceeds allowance')
	        );
	        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 {KRC20-approve}.
	     *
	     * Emits an {Approval} event indicating the updated allowance.
	     *
	     * Requirements:
	     *
	     * - `spender` cannot be the zero address.
	     */
	    function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
	        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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 {KRC20-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 returns (bool) {
	        _approve(
	            _msgSender(),
	            spender,
	            _allowances[_msgSender()][spender].sub(subtractedValue, 'KRC20: decreased allowance below zero')
	        );
	        return true;
	    }
	
	    /**
	     * @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing
	     * the total supply.
	     *
	     * Requirements
	     *
	     * - `msg.sender` must be the token owner
	     */
	    function mint(uint256 amount) public onlyOwner returns (bool) {
	        _mint(_msgSender(), amount);
	        return true;
	    }
	
	    /**
	     * @dev Moves tokens `amount` from `sender` to `recipient`.
	     *
	     * This is 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 {
	        require(sender != address(0), 'KRC20: transfer from the zero address');
	        require(recipient != address(0), 'KRC20: transfer to the zero address');
	
	        _balances[sender] = _balances[sender].sub(amount, 'KRC20: transfer amount exceeds balance');
	        _balances[recipient] = _balances[recipient].add(amount);
	        emit Transfer(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
	     *
	     * - `to` cannot be the zero address.
	     */
	    function _mint(address account, uint256 amount) internal returns(bool) {
	        require(account != address(0), 'KRC20: mint to the zero address');
            require(amount.add(_totalSupply) <= _maxSupply, 'KRC20: exceed _maxSupply');

	        _totalSupply = _totalSupply.add(amount);
	        _balances[account] = _balances[account].add(amount);
	        emit Transfer(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 {
	        require(account != address(0), 'KRC20: burn from the zero address');
	
	        _balances[account] = _balances[account].sub(amount, 'KRC20: burn amount exceeds balance');
	        _totalSupply = _totalSupply.sub(amount);
	        emit Transfer(account, address(0), amount);
	    }
	
	    /**
	     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
	     *
	     * This is 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 {
	        require(owner != address(0), 'KRC20: approve from the zero address');
	        require(spender != address(0), 'KRC20: approve to the zero address');
	
	        _allowances[owner][spender] = amount;
	        emit Approval(owner, spender, amount);
	    }
	
	    /**
	     * @dev Destroys `amount` tokens from `account`.`amount` is then deducted
	     * from the caller's allowance.
	     *
	     * See {_burn} and {_approve}.
	     */
	    function _burnFrom(address account, uint256 amount) internal {
	        _burn(account, amount);
	        _approve(
	            account,
	            _msgSender(),
	            _allowances[account][_msgSender()].sub(amount, 'KRC20: burn amount exceeds allowance')
	        );
	    }
	}
	
	library EnumerableSet {
	    // To implement this library for multiple types with as little code
	    // repetition as possible, we write it in terms of a generic Set type with
	    // bytes32 values.
	    // The Set implementation uses private functions, and user-facing
	    // implementations (such as AddressSet) are just wrappers around the
	    // underlying Set.
	    // This means that we can only create new EnumerableSets for types that fit
	    // in bytes32.
	
	    struct Set {
	        // Storage of set values
	        bytes32[] _values;
	        // Position of the value in the `values` array, plus 1 because index 0
	        // means a value is not in the set.
	        mapping(bytes32 => uint256) _indexes;
	    }
	
	    /**
	     * @dev Add a value to a set. O(1).
	     *
	     * Returns true if the value was added to the set, that is if it was not
	     * already present.
	     */
	    function _add(Set storage set, bytes32 value) private returns (bool) {
	        if (!_contains(set, value)) {
	            set._values.push(value);
	            // The value is stored at length-1, but we add 1 to all indexes
	            // and use 0 as a sentinel value
	            set._indexes[value] = set._values.length;
	            return true;
	        } else {
	            return false;
	        }
	    }
	
	    /**
	     * @dev Removes a value from a set. O(1).
	     *
	     * Returns true if the value was removed from the set, that is if it was
	     * present.
	     */
	    function _remove(Set storage set, bytes32 value) private returns (bool) {
	        // We read and store the value's index to prevent multiple reads from the same storage slot
	        uint256 valueIndex = set._indexes[value];
	
	        if (valueIndex != 0) {
	            // Equivalent to contains(set, value)
	            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
	            // the array, and then remove the last element (sometimes called as 'swap and pop').
	            // This modifies the order of the array, as noted in {at}.
	
	            uint256 toDeleteIndex = valueIndex - 1;
	            uint256 lastIndex = set._values.length - 1;
	
	            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
	            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.
	
	            bytes32 lastvalue = set._values[lastIndex];
	
	            // Move the last value to the index where the value to delete is
	            set._values[toDeleteIndex] = lastvalue;
	            // Update the index for the moved value
	            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based
	
	            // Delete the slot where the moved value was stored
	            set._values.pop();
	
	            // Delete the index for the deleted slot
	            delete set._indexes[value];
	
	            return true;
	        } else {
	            return false;
	        }
	    }
	
	    /**
	     * @dev Returns true if the value is in the set. O(1).
	     */
	    function _contains(Set storage set, bytes32 value) private view returns (bool) {
	        return set._indexes[value] != 0;
	    }
	
	    /**
	     * @dev Returns the number of values on the set. O(1).
	     */
	    function _length(Set storage set) private view returns (uint256) {
	        return set._values.length;
	    }
	
	    /**
	     * @dev Returns the value stored at position `index` in the set. O(1).
	     *
	     * Note that there are no guarantees on the ordering of values inside the
	     * array, and it may change when more values are added or removed.
	     *
	     * Requirements:
	     *
	     * - `index` must be strictly less than {length}.
	     */
	    function _at(Set storage set, uint256 index) private view returns (bytes32) {
	        require(set._values.length > index, 'EnumerableSet: index out of bounds');
	        return set._values[index];
	    }
	
	    // AddressSet
	
	    struct AddressSet {
	        Set _inner;
	    }
	
	    /**
	     * @dev Add a value to a set. O(1).
	     *
	     * Returns true if the value was added to the set, that is if it was not
	     * already present.
	     */
	    function add(AddressSet storage set, address value) internal returns (bool) {
	        return _add(set._inner, bytes32(uint256(value)));
	    }
	
	    /**
	     * @dev Removes a value from a set. O(1).
	     *
	     * Returns true if the value was removed from the set, that is if it was
	     * present.
	     */
	    function remove(AddressSet storage set, address value) internal returns (bool) {
	        return _remove(set._inner, bytes32(uint256(value)));
	    }
	
	    /**
	     * @dev Returns true if the value is in the set. O(1).
	     */
	    function contains(AddressSet storage set, address value) internal view returns (bool) {
	        return _contains(set._inner, bytes32(uint256(value)));
	    }
	
	    /**
	     * @dev Returns the number of values in the set. O(1).
	     */
	    function length(AddressSet storage set) internal view returns (uint256) {
	        return _length(set._inner);
	    }
	
	    /**
	     * @dev Returns the value stored at position `index` in the set. O(1).
	     *
	     * Note that there are no guarantees on the ordering of values inside the
	     * array, and it may change when more values are added or removed.
	     *
	     * Requirements:
	     *
	     * - `index` must be strictly less than {length}.
	     */
	    function at(AddressSet storage set, uint256 index) internal view returns (address) {
	        return address(uint256(_at(set._inner, index)));
	    }
	
	    // UintSet
	
	    struct UintSet {
	        Set _inner;
	    }
	
	    /**
	     * @dev Add a value to a set. O(1).
	     *
	     * Returns true if the value was added to the set, that is if it was not
	     * already present.
	     */
	    function add(UintSet storage set, uint256 value) internal returns (bool) {
	        return _add(set._inner, bytes32(value));
	    }
	
	    /**
	     * @dev Removes a value from a set. O(1).
	     *
	     * Returns true if the value was removed from the set, that is if it was
	     * present.
	     */
	    function remove(UintSet storage set, uint256 value) internal returns (bool) {
	        return _remove(set._inner, bytes32(value));
	    }
	
	    /**
	     * @dev Returns true if the value is in the set. O(1).
	     */
	    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
	        return _contains(set._inner, bytes32(value));
	    }
	
	    /**
	     * @dev Returns the number of values on the set. O(1).
	     */
	    function length(UintSet storage set) internal view returns (uint256) {
	        return _length(set._inner);
	    }
	
	    /**
	     * @dev Returns the value stored at position `index` in the set. O(1).
	     *
	     * Note that there are no guarantees on the ordering of values inside the
	     * array, and it may change when more values are added or removed.
	     *
	     * Requirements:
	     *
	     * - `index` must be strictly less than {length}.
	     */
	    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
	        return uint256(_at(set._inner, index));
	    }
	}


	// KuSwap token with Governance.
	contract KUSToken is KRC20('KuSwap', 'KUS') {
	    using EnumerableSet for EnumerableSet.AddressSet;
	    EnumerableSet.AddressSet private _minters;
	
	    /// @notice Creates `_amount` token to `_to`.
	    function mint(address _to, uint256 _amount) public onlyMinter returns(bool) {
	        _mint(_to, _amount);
	        _moveDelegates(address(0), _delegates[_to], _amount);
	        return true;
	    }
	
	    // Copied and modified from YAM code:
	    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol
	    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol
	    // Which is copied and modified from COMPOUND:
	    // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol
	
	    /// @dev A record of each accounts delegate
	    mapping (address => address) internal _delegates;
	
	    /// @notice A checkpoint for marking number of votes from a given block
	    struct Checkpoint {
	        uint32 fromBlock;
	        uint256 votes;
	    }
	
	    /// @notice A record of votes checkpoints for each account, by index
	    mapping (address => mapping (uint32 => Checkpoint)) public checkpoints;
	
	    /// @notice The number of checkpoints for each account
	    mapping (address => uint32) public numCheckpoints;
	
	    /// @notice The EIP-712 typehash for the contract's domain
	    bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");
	
	    /// @notice The EIP-712 typehash for the delegation struct used by the contract
	    bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");
	
	    /// @notice A record of states for signing / validating signatures
	    mapping (address => uint) public nonces;
	
	      /// @notice An event thats emitted when an account changes its delegate
	    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);
	
	    /// @notice An event thats emitted when a delegate account's vote balance changes
	    event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance);
	
	    /**
	     * @notice Delegate votes from `msg.sender` to `delegatee`
	     * @param delegator The address to get delegatee for
	     */
	    function delegates(address delegator)
	        external
	        view
	        returns (address)
	    {
	        return _delegates[delegator];
	    }
	
	   /**
	    * @notice Delegate votes from `msg.sender` to `delegatee`
	    * @param delegatee The address to delegate votes to
	    */
	    function delegate(address delegatee) external {
	        return _delegate(msg.sender, delegatee);
	    }
	
	    /**
	     * @notice Delegates votes from signatory to `delegatee`
	     * @param delegatee The address to delegate votes to
	     * @param nonce The contract state required to match the signature
	     * @param expiry The time at which to expire the signature
	     * @param v The recovery byte of the signature
	     * @param r Half of the ECDSA signature pair
	     * @param s Half of the ECDSA signature pair
	     */
	    function delegateBySig(
	        address delegatee,
	        uint nonce,
	        uint expiry,
	        uint8 v,
	        bytes32 r,
	        bytes32 s
	    )
	        external
	    {
	        bytes32 domainSeparator = keccak256(
	            abi.encode(
	                DOMAIN_TYPEHASH,
	                keccak256(bytes(name())),
	                getChainId(),
	                address(this)
	            )
	        );
	
	        bytes32 structHash = keccak256(
	            abi.encode(
	                DELEGATION_TYPEHASH,
	                delegatee,
	                nonce,
	                expiry
	            )
	        );
	
	        bytes32 digest = keccak256(
	            abi.encodePacked(
	                "\x19\x01",
	                domainSeparator,
	                structHash
	            )
	        );
	
	        address signatory = ecrecover(digest, v, r, s);
	        require(signatory != address(0), "KUS::delegateBySig: invalid signature");
	        require(nonce == nonces[signatory]++, "KUS::delegateBySig: invalid nonce");
	        require(now <= expiry, "KUS::delegateBySig: signature expired");
	        return _delegate(signatory, delegatee);
	    }
	
	    /**
	     * @notice Gets the current votes balance for `account`
	     * @param account The address to get votes balance
	     * @return The number of current votes for `account`
	     */
	    function getCurrentVotes(address account)
	        external
	        view
	        returns (uint256)
	    {
	        uint32 nCheckpoints = numCheckpoints[account];
	        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
	    }
	
	    /**
	     * @notice Determine the prior number of votes for an account as of a block number
	     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
	     * @param account The address of the account to check
	     * @param blockNumber The block number to get the vote balance at
	     * @return The number of votes the account had as of the given block
	     */
	    function getPriorVotes(address account, uint blockNumber)
	        external
	        view
	        returns (uint256)
	    {
	        require(blockNumber < block.number, "KUS::getPriorVotes: not yet determined");
	
	        uint32 nCheckpoints = numCheckpoints[account];
	        if (nCheckpoints == 0) {
	            return 0;
	        }
	
	        // First check most recent balance
	        if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
	            return checkpoints[account][nCheckpoints - 1].votes;
	        }
	
	        // Next check implicit zero balance
	        if (checkpoints[account][0].fromBlock > blockNumber) {
	            return 0;
	        }
	
	        uint32 lower = 0;
	        uint32 upper = nCheckpoints - 1;
	        while (upper > lower) {
	            uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
	            Checkpoint memory cp = checkpoints[account][center];
	            if (cp.fromBlock == blockNumber) {
	                return cp.votes;
	            } else if (cp.fromBlock < blockNumber) {
	                lower = center;
	            } else {
	                upper = center - 1;
	            }
	        }
	        return checkpoints[account][lower].votes;
	    }
	
	    function _delegate(address delegator, address delegatee)
	        internal
	    {
	        address currentDelegate = _delegates[delegator];
	        uint256 delegatorBalance = balanceOf(delegator); // balance of underlying KUSs (not scaled);
	        _delegates[delegator] = delegatee;
	
	        emit DelegateChanged(delegator, currentDelegate, delegatee);
	
	        _moveDelegates(currentDelegate, delegatee, delegatorBalance);
	    }
	
	    function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal {
	        if (srcRep != dstRep && amount > 0) {
	            if (srcRep != address(0)) {
	                // decrease old representative
	                uint32 srcRepNum = numCheckpoints[srcRep];
	                uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
	                uint256 srcRepNew = srcRepOld.sub(amount);
	                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
	            }
	
	            if (dstRep != address(0)) {
	                // increase new representative
	                uint32 dstRepNum = numCheckpoints[dstRep];
	                uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
	                uint256 dstRepNew = dstRepOld.add(amount);
	                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
	            }
	        }
	    }
	
	    function _writeCheckpoint(
	        address delegatee,
	        uint32 nCheckpoints,
	        uint256 oldVotes,
	        uint256 newVotes
	    )
	        internal
	    {
	        uint32 blockNumber = safe32(block.number, "KUS::_writeCheckpoint: block number exceeds 32 bits");
	
	        if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
	            checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
	        } else {
	            checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
	            numCheckpoints[delegatee] = nCheckpoints + 1;
	        }
	
	        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
	    }
	
	    function safe32(uint n, string memory errorMessage) internal pure returns (uint32) {
	        require(n < 2**32, errorMessage);
	        return uint32(n);
	    }
	
	    function getChainId() internal pure returns (uint) {
	        uint256 chainId;
	        assembly { chainId := chainid() }
	        return chainId;
	    }
	
	
	    function addMinter(address _addMinter) public onlyOwner returns (bool) {
	        require(_addMinter != address(0), "KUS: _addMinter is the zero address");
	        return EnumerableSet.add(_minters, _addMinter);
	    }
	
	    function delMinter(address _delMinter) public onlyOwner returns (bool) {
	        require(_delMinter != address(0), "KUS: _delMinter is the zero address");
	        return EnumerableSet.remove(_minters, _delMinter);
	    }
	
	    function getMinterLength() public view returns (uint256) {
	        return EnumerableSet.length(_minters);
	    }
	
	    function isMinter(address account) public view returns (bool) {
	        return EnumerableSet.contains(_minters, account);
	    }
	
	    function getMinter(uint256 _index) public view onlyOwner returns (address){
	        require(_index <= getMinterLength() - 1, "KUS: index out of bounds");
	        return EnumerableSet.at(_minters, _index);
	    }
	
	    // modifier for mint function
	    modifier onlyMinter() {
	        require(isMinter(msg.sender), "caller is not the minter");
	        _;
	    }
	}
	
	// MasterChef is the master of KUS. He can make KUS and he is a fair guy.
	// Note that it's ownable and the owner wields tremendous power. The ownership
	// will be transferred to a governance smart contract once KUS is sufficiently
	// distributed and the community can show to govern itself.
	// Have fun reading it
	 
     /**
     *  KUSGov interface
     * 
     **/
 	interface KUSGovToken {
    function totalSupply() external view returns (uint256);
    function lockedEnd(address _addr) external view returns (uint256);
    function mintedForLock(address _addr) external view returns (uint256);
	}

    /**
     * Interface for Refferal system
     * 
     **/
    interface IReferral {
		function recordReferralCommission(address referrer, uint256 commission) external;
		function getReferrer(address user) external view returns (address);
        function setCurrentTimestamp(address _user) external;
 		function calculateRefReward(address _user, uint256 _pending) external view returns (uint256);
 	}

	contract MasterKUS is Ownable, ReentrancyGuard {
	    using SafeMath for uint;
	    using SafeMath for uint256;
	    using SafeKRC20 for IKRC20; 
	    // Info of each user.
	    struct UserInfo {
	        uint256 amount; // 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 KUSs
	        // entitled to a user but is pending to be distributed is:
	        //
	        //   pending reward = (user.amount * pool.accKUSPerShare) - user.rewardDebt
	        //
	        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
	        //   1. The pool's `accKUSPerShare` (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.
	    }
	    // Info of each pool.
	    struct PoolInfo {
	        IKRC20 lpToken; // Address of LP token contract.
	        uint256 allocPoint; // How many allocation points assigned to this pool. KUSs to distribute per block.
	        uint256 lastRewardBlock; // Last block number that KUSs distribution occurs.
	        uint256 accKUSPerShare; // Accumulated KUSs per share, times 1e12. See below.
	    }
	    // The KUS TOKEN!
	    KUSToken public immutable KUS;
		// The KuSwap Governance TOKEN!
	    KUSGovToken public immutable KUSGov;
		// The Referral System
        IReferral public Referral;
	    uint256 public constant percentDec = 1000000;
	    //Pools and Farms percent from token per block
	    uint256 public stakingPercent;
	    //Developers percent from token per block
	    uint256 public immutable devPercent;
	      //KuVault fund percent from token per block
	    uint256 public immutable kuVaultPercent;
	    //This will be 100% for Community Contents (com-engagement)
	    uint256 public immutable comPercent;
	    // Dev address.
	    address public devaddr;
	    // KuVault fund.
	    address public immutable kuVaultaddr;
	    address public comAddr;
	    uint256 public lastBlockDevWithdraw;
	    // KUS tokens created per block.
	    uint256 public KUSPerBlock;
	    // Bonus muliplier for early KUS makers.
	    uint256 public BONUS_MULTIPLIER = 1;
 		//! Burn address
    	address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;  
	    // Info of each pool.
	    PoolInfo[] public poolInfo;
	    // Info of each user that stakes LP tokens.
	    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
		mapping(address => bool) public bonusGovActivated;
 		// avoid duplicate KuSwap-LPs
	    mapping(address => bool) lpExist;
 		// Total allocation poitns. Must be the sum of all allocation points in all pools.
	    uint256 public totalAllocPoint = 0;
	    // The block number when KUS mining starts.
	    uint256 public immutable startBlock;
	    // Deposited amount KUS in MasterChef
	    uint256 public depositedKus;
		uint256 public minKUSGovDuration = block.timestamp + 30 days;

    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 ReferralCommissionPaid(address indexed user, address indexed referrer, uint256 newAmount);
    event UpdateMultiplier(uint256 multiplier);
    event SetDevAddress(address dev);
    event SetComAddress(address user);
    event UpdateKusPerBlock(uint256 block);
	    
    modifier PoolValidation(uint256 _pid) {
         require(_pid < poolInfo.length , "Pool does not exist.");
         _;
        }
 	// modifier to check if lockedEnd is higher than current timestamp
	modifier onlyLocker() {
       uint256 lockedEnd = KUSGov.lockedEnd(_msgSender());
		require(KUSGov.mintedForLock(_msgSender()) >= 50 ether, "you have less than 50 KUSGov");
		require(lockedEnd >= minKUSGovDuration, "KUSGov locked is less than 30 days");
		_;
	}

	    constructor(
	        KUSToken _KUS,
	        KUSGovToken _KUSGov,
	        address _devaddr,
	        address _comAddr,
	        address _kuVaultaddr,
	        uint256 _KUSPerBlock,
	        uint256 _startBlock,
	        uint256 _stakingPercent,
	        uint256 _devPercent,
	        uint256 _kuVaultPercent,
	        uint256 _comPercent
	    ) public {
	        KUS = _KUS;
	        KUSGov = _KUSGov;
	        devaddr = _devaddr;
	        comAddr = _comAddr;
	        kuVaultaddr = _kuVaultaddr;
	        KUSPerBlock = _KUSPerBlock;
	        startBlock = _startBlock;
	        stakingPercent = _stakingPercent;
	        devPercent = _devPercent;
	        kuVaultPercent = _kuVaultPercent;
	        comPercent = _comPercent;
	        lastBlockDevWithdraw = _startBlock;
	        uint256 totalPer = _stakingPercent.add(_devPercent).add(_kuVaultPercent).add(_comPercent);
	        require(totalPer == percentDec, "Must total to 1000000");
	        // staking pool
	        poolInfo.push(PoolInfo({
	            lpToken: _KUS,
	            allocPoint: 1000,
	            lastRewardBlock: _startBlock,
	            accKUSPerShare: 0
	        }));
	        totalAllocPoint = 1000;
	    }
	    
	    function updateMultiplier(uint256 multiplierNumber) public onlyOwner {
	        BONUS_MULTIPLIER = multiplierNumber;
            emit UpdateMultiplier(multiplierNumber);
	    }
	
	    function poolLength() external view returns (uint256) {
	        return poolInfo.length;
		}

	    function withdrawDevAndRefFee() public nonReentrant {
	        require(lastBlockDevWithdraw < block.number, 'Not matured yet');
	        uint256 multiplier = getMultiplier(lastBlockDevWithdraw, block.number);
	        uint256 KUSReward = multiplier.mul(KUSPerBlock);
	        KUS.mint(devaddr, KUSReward.mul(devPercent).div(percentDec));
	        KUS.mint(kuVaultaddr, KUSReward.mul(kuVaultPercent).div(percentDec));
	        KUS.mint(comAddr, KUSReward.mul(comPercent).div(percentDec));
	        lastBlockDevWithdraw = block.number;
	    }
	
	    // Add a new lp to the pool. Can only be called by the owner.
	    // Fixed: Do Not add the same LP token more than once. Rewards will be messed up if you do.
	    function add(uint256 _allocPoint, IKRC20 _lpToken) public onlyOwner {
	        require(!lpExist[address(_lpToken)], "Duplicate LP token");
            massUpdatePools();
	        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
	        totalAllocPoint = totalAllocPoint.add(_allocPoint);
	        poolInfo.push(
	            PoolInfo({
	                lpToken: _lpToken,
	                allocPoint: _allocPoint,
	                lastRewardBlock: lastRewardBlock,
	                accKUSPerShare: 0
	            })
	        );
	        lpExist[address(_lpToken)] = true;
	    }
	
	    // Update the given pool's KUS allocation point. Can only be called by the owner.
	    function set( uint256 _pid, uint256 _allocPoint) public onlyOwner PoolValidation(_pid) { 
            massUpdatePools(); 
	        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
	        poolInfo[_pid].allocPoint = _allocPoint;
	    }

		function hasGovBonus(address _addr) public view returns (bool) {
			return KUSGov.mintedForLock(_addr) >= 50 ether;
		}
		// function to check lockedEnd >= minKUSGovDuration
		function isLockedEndMin(address _addr) public view returns (bool) {
			return KUSGov.lockedEnd(_addr) >= minKUSGovDuration;
		}
 
		function hasBonusGovActivated(address _addr) public view returns (bool) {
			return bonusGovActivated[_addr];
		}
 
		function activateGovBonus() public onlyLocker {
			require(!bonusGovActivated[_msgSender()], "Bonus already activated");
			bonusGovActivated[_msgSender()] = true;
		}
 		
		function deactivateGovBonus() public onlyLocker {
			require(bonusGovActivated[_msgSender()], "Bonus already deactivated");
			bonusGovActivated[_msgSender()] = false;
		}

	    // Return reward multiplier over the given _from to _to block.
	    function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) { 
	         return _to.sub(_from).mul(BONUS_MULTIPLIER);
	    }

		// Function to calculate the bonus for KUSGov.
		function calculateBonus(uint256 pendingReward) internal view returns (uint256) {
			uint256 votingBalance = KUSGov.mintedForLock(_msgSender());
			uint256 votingTotal = KUSGov.totalSupply();
			uint bonus = pendingReward.mul(150).mul(votingBalance).mul(10**5).div(votingTotal).div(10**7);
			return bonus;
		}

	    // View function to see pending KUS on frontend.
	    function pendingKUS(uint256 _pid, address _user) external PoolValidation(_pid) view returns (uint256) {
	        PoolInfo storage pool = poolInfo[_pid];
	        UserInfo storage user = userInfo[_pid][_user];
	        uint256 accKUSPerShare = pool.accKUSPerShare;
	        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
	        if (_pid == 0){
	            lpSupply = depositedKus;
	        } 
	        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
	            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
				uint256 KUSReward = multiplier.mul(KUSPerBlock).mul(pool.allocPoint).mul(stakingPercent).div(totalAllocPoint).div(percentDec);
	            accKUSPerShare = accKUSPerShare.add(KUSReward.mul(1e12).div(lpSupply)); 
        	}
			uint256 pendingReward =  user.amount.mul(accKUSPerShare).div(1e12).sub(user.rewardDebt);
			
			if (hasGovBonus(_msgSender()) && isLockedEndMin(_msgSender()) && bonusGovActivated[_msgSender()]) { 
			uint256 bonusForKusGov = calculateBonus(pendingReward);
			uint256 reward = pendingReward.add(bonusForKusGov);
 			return reward;
			 } else {
				return pendingReward; 
			 }
        }

	    // Update reward vairables for all pools. Be careful of gas spending!
	    function massUpdatePools() public {
	        uint256 length = poolInfo.length;
	        for (uint256 pid = 0; pid < length; ++pid) {
	            updatePool(pid);
	        }
	    }
		
        function payReferralCommission(address _user, uint256 _pending) internal {
        if (address(Referral) != address(0)) {
            address userRef = Referral.getReferrer(_user);
			if (userRef != address(0)) { 
				// upto 5% of the pending KUS
			 	uint256 comission = Referral.calculateRefReward(_user, _pending);
				 // safety check
				 if (comission < _pending) {
					KUS.mint(address(userRef), comission);
					Referral.recordReferralCommission(userRef, comission);
					emit ReferralCommissionPaid(_user, userRef, comission);
				 }
			}  
        }
    }
	
	    // Update reward variables of the given pool to be up-to-date.
	  function updatePool(uint256 _pid) public PoolValidation(_pid) {
		PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (_pid == 0){
            lpSupply = depositedKus;
        }
        if (lpSupply <= 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 KUSReward = multiplier.mul(KUSPerBlock).mul(pool.allocPoint).mul(stakingPercent).div(totalAllocPoint).div(percentDec);
		// Automatically burn 2% of minted tokens
        KUS.mint(BURN_ADDRESS, KUSReward.mul(20).div(1000));
        KUS.mint(address(this), KUSReward);
        pool.accKUSPerShare = pool.accKUSPerShare.add(KUSReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

	    // Deposit LP tokens to MasterChef for KUS allocation.
	    function deposit(uint256 _pid, uint256 _amount) external PoolValidation(_pid) nonReentrant  {
	        require (_pid != 0, 'deposit KUS by staking');
	        PoolInfo storage pool = poolInfo[_pid];
	        UserInfo storage user = userInfo[_pid][msg.sender];
	        updatePool(_pid);
	        if (user.amount > 0) {	
	            uint256 pending = user.amount.mul(pool.accKUSPerShare).div(1e12).sub(user.rewardDebt);
				if (hasGovBonus(_msgSender()) && isLockedEndMin(_msgSender()) && bonusGovActivated[_msgSender()]) { 
					uint256 bonusForKusGov = calculateBonus(pending);
					uint256 reward = pending.add(bonusForKusGov);
					KUS.mint(address(this), bonusForKusGov);
					safeKUSTransfer(msg.sender, reward);
			 	} else {
 					safeKUSTransfer(msg.sender, pending);
				 }
 				payReferralCommission(msg.sender, pending);
	        }

            if(_amount > 0 ) {
	        pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
	        user.amount = user.amount.add(_amount);
            }

 			if (address(Referral) != address(0) && _amount > 0) {
            Referral.setCurrentTimestamp(msg.sender);
		    }

	        user.rewardDebt = user.amount.mul(pool.accKUSPerShare).div(1e12);
	        emit Deposit(msg.sender, _pid, _amount);
	    }
	
	    // Withdraw LP tokens from MasterChef.
	    function withdraw(uint256 _pid, uint256 _amount) external PoolValidation(_pid) nonReentrant {
	        require (_pid != 0, 'withdraw KUS by unstaking');
	        PoolInfo storage pool = poolInfo[_pid];
	        UserInfo storage user = userInfo[_pid][msg.sender];
	        require(user.amount >= _amount, "withdraw: not good");
	        updatePool(_pid);
	        uint256 pending = user.amount.mul(pool.accKUSPerShare).div(1e12).sub(user.rewardDebt); 
			if (hasGovBonus(_msgSender()) && isLockedEndMin(_msgSender()) && bonusGovActivated[_msgSender()]) { 
					uint256 bonusForKusGov = calculateBonus(pending);
					uint256 reward = pending.add(bonusForKusGov);
					KUS.mint(address(this), bonusForKusGov);
					safeKUSTransfer(msg.sender, reward);
 			} else {
		  	       safeKUSTransfer(msg.sender, pending);
			 }

            if(_amount > 0) {
                user.amount = user.amount.sub(_amount);
 				payReferralCommission(msg.sender, pending);
                pool.lpToken.safeTransfer(address(msg.sender), _amount);
            }

 			if (address(Referral) != address(0) && _amount > 0) {
          		Referral.setCurrentTimestamp(msg.sender);
		    }

	        user.rewardDebt = user.amount.mul(pool.accKUSPerShare).div(1e12);
	        emit Withdraw(msg.sender, _pid, _amount);
	    }
	
	        // Stake KUS tokens to MasterChef
	    function enterStaking(uint256 _amount) external PoolValidation(0) nonReentrant   {
	        PoolInfo storage pool = poolInfo[0];
	        UserInfo storage user = userInfo[0][msg.sender];
	        updatePool(0);
	        if (user.amount > 0) {
	            uint256 pending = user.amount.mul(pool.accKUSPerShare).div(1e12).sub(user.rewardDebt);
	            if(pending > 0) {
					if (hasGovBonus(_msgSender()) && isLockedEndMin(_msgSender()) && bonusGovActivated[_msgSender()]) { 
					uint256 bonusForKusGov = calculateBonus(pending);
					uint256 reward = pending.add(bonusForKusGov);
					KUS.mint(address(this), bonusForKusGov);
					safeKUSTransfer(msg.sender, reward);
			 		} else {
						safeKUSTransfer(msg.sender, pending);
					 }
 					payReferralCommission(msg.sender, pending);
	            }  
	        }
	        if(_amount > 0) {
	            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
	            user.amount = user.amount.add(_amount);
	            depositedKus = depositedKus.add(_amount);
	        }
			
 			if (address(Referral) != address(0) && _amount > 0) {
 				Referral.setCurrentTimestamp(msg.sender);
		    }

	        user.rewardDebt = user.amount.mul(pool.accKUSPerShare).div(1e12);
	        emit Deposit(msg.sender, 0, _amount);
	    }
	
	    // Withdraw KUS tokens from STAKING.
	    function leaveStaking(uint256 _amount) external PoolValidation(0) nonReentrant   {
	        PoolInfo storage pool = poolInfo[0];
	        UserInfo storage user = userInfo[0][msg.sender];
	        require(user.amount >= _amount, "withdraw: not good");
	        updatePool(0);
	        uint256 pending = user.amount.mul(pool.accKUSPerShare).div(1e12).sub(user.rewardDebt);
	        if(pending > 0) {
				if (hasGovBonus(_msgSender()) && isLockedEndMin(_msgSender()) && bonusGovActivated[_msgSender()]) { 
					uint256 bonusForKusGov = calculateBonus(pending);
					uint256 reward = pending.add(bonusForKusGov);
					KUS.mint(address(this), bonusForKusGov);
					safeKUSTransfer(msg.sender, reward);
			 	} else {
		            safeKUSTransfer(msg.sender, pending);
				 }
		 			payReferralCommission(msg.sender, pending);
	        }
	        if(_amount > 0) {
	            user.amount = user.amount.sub(_amount);
	            pool.lpToken.safeTransfer(address(msg.sender), _amount);
	            depositedKus = depositedKus.sub(_amount);
	        }
			
 			if (address(Referral) != address(0) && _amount > 0) {
            Referral.setCurrentTimestamp(msg.sender);
		    }

	        user.rewardDebt = user.amount.mul(pool.accKUSPerShare).div(1e12);
	        emit Withdraw(msg.sender, 0, _amount);
	    }
	
	    // Want to withdraw without caring about KUS rewards? EMERGENCY ONLY.
	    function emergencyWithdraw(uint256 _pid) external PoolValidation(_pid) nonReentrant   {
	        PoolInfo storage pool = poolInfo[_pid];
	        UserInfo storage user = userInfo[_pid][msg.sender];
	        pool.lpToken.safeTransfer(address(msg.sender), user.amount);
	        if(_pid == 0) {
	            depositedKus = depositedKus.sub(user.amount);
	        }
 			if (address(Referral) != address(0)) {
            Referral.setCurrentTimestamp(msg.sender);
		    }
	        emit EmergencyWithdraw(msg.sender, _pid, user.amount);
	        user.amount = 0;
	        user.rewardDebt = 0;
	    }
	
	    // Safe KUS transfer function, just in case if rounding error causes pool to not have enough KUSs.
	    function safeKUSTransfer(address _to, uint256 _amount) internal {
	        uint256 KUSBal = KUS.balanceOf(address(this));
	        if (_amount > KUSBal) {
	            KUS.transfer(_to, KUSBal);
	        } else {
	            KUS.transfer(_to, _amount);
	        }
	    }
	
	    function setDevAddress(address _devaddr) public onlyOwner {
	        devaddr = _devaddr;
            emit SetDevAddress(_devaddr);
	    }
	     function setComAddress(address _comaddr) public onlyOwner {
	        comAddr = _comaddr;
            emit SetComAddress(_comaddr);
	    }

	    function updateKusPerBlock(uint256 newAmount) public onlyOwner {
	        require(newAmount <= 30 * 1e18, 'Max per block 30 KUS');
	        KUSPerBlock = newAmount;
            emit UpdateKusPerBlock(newAmount);
	    }

         function setReferralSystem(address _address) public onlyOwner {
	        require(_address != address(0), 'Address(0) not allowed');
	        Referral = IReferral(_address);
	    }
	
	}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_KUS","internalType":"contract KUSToken"},{"type":"address","name":"_KUSGov","internalType":"contract KUSGovToken"},{"type":"address","name":"_devaddr","internalType":"address"},{"type":"address","name":"_comAddr","internalType":"address"},{"type":"address","name":"_kuVaultaddr","internalType":"address"},{"type":"uint256","name":"_KUSPerBlock","internalType":"uint256"},{"type":"uint256","name":"_startBlock","internalType":"uint256"},{"type":"uint256","name":"_stakingPercent","internalType":"uint256"},{"type":"uint256","name":"_devPercent","internalType":"uint256"},{"type":"uint256","name":"_kuVaultPercent","internalType":"uint256"},{"type":"uint256","name":"_comPercent","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":"ReferralCommissionPaid","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"address","name":"referrer","internalType":"address","indexed":true},{"type":"uint256","name":"newAmount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"SetComAddress","inputs":[{"type":"address","name":"user","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"SetDevAddress","inputs":[{"type":"address","name":"dev","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"UpdateKusPerBlock","inputs":[{"type":"uint256","name":"block","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"UpdateMultiplier","inputs":[{"type":"uint256","name":"multiplier","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":"uint256","name":"","internalType":"uint256"}],"name":"BONUS_MULTIPLIER","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"BURN_ADDRESS","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract KUSToken"}],"name":"KUS","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract KUSGovToken"}],"name":"KUSGov","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"KUSPerBlock","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IReferral"}],"name":"Referral","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"activateGovBonus","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"add","inputs":[{"type":"uint256","name":"_allocPoint","internalType":"uint256"},{"type":"address","name":"_lpToken","internalType":"contract IKRC20"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"bonusGovActivated","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"comAddr","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"comPercent","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deactivateGovBonus","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deposit","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"depositedKus","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"devPercent","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"devaddr","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"emergencyWithdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"enterStaking","inputs":[{"type":"uint256","name":"_amount","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":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasBonusGovActivated","inputs":[{"type":"address","name":"_addr","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasGovBonus","inputs":[{"type":"address","name":"_addr","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isLockedEndMin","inputs":[{"type":"address","name":"_addr","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"kuVaultPercent","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"kuVaultaddr","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"lastBlockDevWithdraw","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"leaveStaking","inputs":[{"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":"minKUSGovDuration","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":"pendingKUS","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_user","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"percentDec","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"lpToken","internalType":"contract IKRC20"},{"type":"uint256","name":"allocPoint","internalType":"uint256"},{"type":"uint256","name":"lastRewardBlock","internalType":"uint256"},{"type":"uint256","name":"accKUSPerShare","internalType":"uint256"}],"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":"function","stateMutability":"nonpayable","outputs":[],"name":"setComAddress","inputs":[{"type":"address","name":"_comaddr","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDevAddress","inputs":[{"type":"address","name":"_devaddr","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setReferralSystem","inputs":[{"type":"address","name":"_address","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"stakingPercent","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"startBlock","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":"updateKusPerBlock","inputs":[{"type":"uint256","name":"newAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateMultiplier","inputs":[{"type":"uint256","name":"multiplierNumber","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updatePool","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"amount","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":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdrawDevAndRefFee","inputs":[]}]
              

Contract Creation Code

0x61016060405260016007556000600c554262278d0001600e553480156200002557600080fd5b50604051620053583803806200535883398181016040526101608110156200004c57600080fd5b508051602082015160408301516060840151608085015160a086015160c087015160e08801516101008901516101208a0151610140909a0151989997989697959694959394929391929091906000620000a46200030e565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506000805460ff60a01b1916600160a01b1781556001600160601b031960608d811b82166080528c811b821660a052600380546001600160a01b038e81166001600160a01b03199283161790925560048054928e169290911691909117905589901b16610120526006879055610140869052600285905560c084905260e08390526101008290526005869055620001af826200019b8581898962003f6c62000312602090811b91909117901c565b6200031260201b62003f6c1790919060201c565b9050620f4240811462000209576040805162461bcd60e51b815260206004820152601560248201527f4d75737420746f74616c20746f20313030303030300000000000000000000000604482015290519081900360640190fd5b5050604080516080810182526001600160a01b039b8c1681526103e86020820181815292820196875260006060830181815260088054600181018255925292517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3600490920291820180546001600160a01b03191691909f1617909d5591517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee48d015594517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee58c015593517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee6909a01999099555050600c555062000374945050505050565b3390565b6000828201838110156200036d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60805160601c60a05160601c60c05160e051610100516101205160601c61014051614f006200045860003980611a455280611a6c52806125fc5250806110c352806132ad5250806111e25280612d545250806110ef5280612620525080610fe25280613f4452508061084452806115c752806116a25280612e9c5280612f23528061341752806134f252806140e052806141de525080610bc95280610fac528061109c52806111ac5280611e21528061238d528061280452806129095280612f47528061398f528061427e528061433b52806143fe52806146545250614f006000f3fe608060405234801561001057600080fd5b50600436106103205760003560e01c8063749916cd116101a7578063be1193ea116100ee578063e1f7837211610097578063f2fde38b11610071578063f2fde38b146107f3578063fc3c28af14610826578063fccc28131461082e57610320565b8063e1f783721461078f578063e2bbb15814610797578063eba0a1da146107ba57610320565b8063d49e77cd116100c8578063d49e77cd14610762578063d500d6d01461076a578063dba144911461077257610320565b8063be1193ea146106f4578063c3e6a788146106fc578063d0d41fe11461072f57610320565b806393e936a011610150578063a637558d1161012a578063a637558d146106dc578063b5c6864a146106e4578063b76e360c146106ec57610320565b806393e936a01461064f57806393f1a40b146106575780639a01126c146106a957610320565b80638aa28550116101815780638aa285501461061c5780638da5cb5b146106245780638dbb1e3a1461062c57610320565b8063749916cd146105d95780637a13fea81461060c57806385a71d671461061457610320565b80632b8bbbe81161026b5780635312ea8e11610214578063605f9268116101ee578063605f9268146105c1578063630b5ba1146105c9578063715018a6146105d157610320565b80635312ea8e1461057f5780635e51ab981461059c5780635ffe6146146105a457610320565b806348cd4cb11161024557806348cd4cb11461055257806349c6d6b11461055a57806351eb05a61461056257610320565b80632b8bbbe8146104d957806341441d3b14610512578063441a3e701461052f57610320565b806317caf6f1116102cd57806320f0acb3116102a757806320f0acb31461049657806321b1aecb146104c957806328ab6da1146104d157610320565b806317caf6f11461043a5780631ab06ee5146104425780631b02f4fd1461046557610320565b80631058d281116102fe5780631058d281146103b957806312270c40146103d85780631526fe27146103e057610320565b8063051dbf5514610325578063081e3eda1461036c5780630b7a5eb814610386575b600080fd5b6103586004803603602081101561033b57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610836565b604080519115158252519081900360200190f35b6103746108fd565b60408051918252519081900360200190f35b6103586004803603602081101561039c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610903565b6103d6600480360360208110156103cf57600080fd5b5035610918565b005b6103d6610e47565b6103fd600480360360208110156103f657600080fd5b50356112cc565b6040805173ffffffffffffffffffffffffffffffffffffffff90951685526020850193909352838301919091526060830152519081900360800190f35b61037461131a565b6103d66004803603604081101561045857600080fd5b5080359060200135611320565b61046d611496565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6103d6600480360360208110156104ac57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166114b2565b6103746115bc565b6103d66115c3565b6103d6600480360360408110156104ef57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16611913565b6103d66004803603602081101561052857600080fd5b5035611bf2565b6103d66004803603604081101561054557600080fd5b50803590602001356120a1565b6103746125fa565b61037461261e565b6103d66004803603602081101561057857600080fd5b5035612642565b6103d66004803603602081101561059557600080fd5b50356129b6565b610374612c80565b6103d6600480360360208110156105ba57600080fd5b5035612c86565b610374612d52565b6103d6612d76565b6103d6612d95565b610358600480360360208110156105ef57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16612e95565b61046d612f21565b61046d612f45565b610374612f69565b61046d612f6f565b6103746004803603604081101561064257600080fd5b5080359060200135612f8b565b610374612fa8565b6106906004803603604081101561066d57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16612fae565b6040805192835260208301919091528051918290030190f35b6103d6600480360360208110156106bf57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16612fd2565b61046d61312c565b610374613148565b61037461314e565b610374613154565b6103586004803603602081101561071257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661315a565b6103d66004803603602081101561074557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16613185565b61046d61328f565b61046d6132ab565b6103d66004803603602081101561078857600080fd5b50356132cf565b6103d6613413565b6103d6600480360360408110156107ad57600080fd5b508035906020013561370c565b610374600480360360408110156107d057600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16613bff565b6103d66004803603602081101561080957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16613ea5565b610374613f42565b61046d613f66565b60006802b5e3af16b18800007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663113f6653846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156108c957600080fd5b505afa1580156108dd573d6000803e3d6000fd5b505050506040513d60208110156108f357600080fd5b5051101592915050565b60085490565b600a6020526000908152604090205460ff1681565b60085460009061098957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f506f6f6c20646f6573206e6f742065786973742e000000000000000000000000604482015290519081900360640190fd5b60005474010000000000000000000000000000000000000000900460ff16610a1257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff168155600880548290610a4657fe5b600091825260208083203384527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b9091526040909220805460049092029092019250841115610af657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604482015290519081900360640190fd5b610b006000612642565b6000610b3a8260010154610b3464e8d4a51000610b2e87600301548760000154613fe090919063ffffffff16565b90614053565b90614095565b90508015610caa57610b52610b4d6140d7565b610836565b8015610b695750610b69610b646140d7565b612e95565b8015610ba75750600a6000610b7c6140d7565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff165b15610c96576000610bb7826140db565b90506000610bc58383613f6c565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f1930846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610c5857600080fd5b505af1158015610c6c573d6000803e3d6000fd5b505050506040513d6020811015610c8257600080fd5b50610c8f9050338261427a565b5050610ca0565b610ca0338261427a565b610caa33826144bf565b8415610cf2578154610cbc9086614095565b82558254610ce19073ffffffffffffffffffffffffffffffffffffffff1633876147f8565b600d54610cee9086614095565b600d555b60015473ffffffffffffffffffffffffffffffffffffffff1615801590610d195750600085115b15610da957600154604080517f7b8e9a8e000000000000000000000000000000000000000000000000000000008152336004820152905173ffffffffffffffffffffffffffffffffffffffff90921691637b8e9a8e9160248082019260009290919082900301818387803b158015610d9057600080fd5b505af1158015610da4573d6000803e3d6000fd5b505050505b60038301548254610dc49164e8d4a5100091610b2e91613fe0565b600183015560408051868152905160009133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055505050565b60005474010000000000000000000000000000000000000000900460ff16610ed057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690556005544311610f6857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4e6f74206d617475726564207965740000000000000000000000000000000000604482015290519081900360640190fd5b6000610f7660055443612f8b565b90506000610f8f60065483613fe090919063ffffffff16565b60035490915073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000008116916340c10f199116611006620f4240610b2e867f0000000000000000000000000000000000000000000000000000000000000000613fe0565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561105957600080fd5b505af115801561106d573d6000803e3d6000fd5b505050506040513d602081101561108357600080fd5b505073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000166340c10f197f0000000000000000000000000000000000000000000000000000000000000000611113620f4240610b2e867f0000000000000000000000000000000000000000000000000000000000000000613fe0565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561116657600080fd5b505af115801561117a573d6000803e3d6000fd5b505050506040513d602081101561119057600080fd5b505060045473ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000008116916340c10f199116611206620f4240610b2e867f0000000000000000000000000000000000000000000000000000000000000000613fe0565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561125957600080fd5b505af115801561126d573d6000803e3d6000fd5b505050506040513d602081101561128357600080fd5b5050436005555050600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b600881815481106112d957fe5b6000918252602090912060049091020180546001820154600283015460039093015473ffffffffffffffffffffffffffffffffffffffff9092169350919084565b600c5481565b6113286140d7565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146113b157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6008548290811061142357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f506f6f6c20646f6573206e6f742065786973742e000000000000000000000000604482015290519081900360640190fd5b61142b612d76565b611468826114626008868154811061143f57fe5b906000526020600020906004020160010154600c5461409590919063ffffffff16565b90613f6c565b600c81905550816008848154811061147c57fe5b906000526020600020906004020160010181905550505050565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b6114ba6140d7565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461154357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6004805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116811790915560408051918252517fc1a3529f08b5e3dcc7e073a230546e17cb0bd4f3492d7ed9ff72faa09ebc716c9181900360200190a150565b620f424081565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634deafcae6116096140d7565b6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561165357600080fd5b505afa158015611667573d6000803e3d6000fd5b505050506040513d602081101561167d57600080fd5b505190506802b5e3af16b188000073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001663113f66536116cf6140d7565b6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561171957600080fd5b505afa15801561172d573d6000803e3d6000fd5b505050506040513d602081101561174357600080fd5b505110156117b257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f796f752068617665206c657373207468616e203530204b5553476f7600000000604482015290519081900360640190fd5b600e5481101561180d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180614e7f6022913960400191505060405180910390fd5b600a60006118196140d7565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff16156118af57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f426f6e757320616c726561647920616374697661746564000000000000000000604482015290519081900360640190fd5b6001600a60006118bd6140d7565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905550565b61191b6140d7565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146119a457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166000908152600b602052604090205460ff1615611a3957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4475706c6963617465204c5020746f6b656e0000000000000000000000000000604482015290519081900360640190fd5b611a41612d76565b60007f00000000000000000000000000000000000000000000000000000000000000004311611a90577f0000000000000000000000000000000000000000000000000000000000000000611a92565b435b600c54909150611aa29084613f6c565b600c556040805160808101825273ffffffffffffffffffffffffffffffffffffffff9384168082526020808301968752828401948552600060608401818152600880546001808201835591845295517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3600490970296870180547fffffffffffffffffffffffff00000000000000000000000000000000000000001691909a161790985597517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee485015594517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee584015595517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee6909201919091558252600b9093529190912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169091179055565b600854600090611c6357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f506f6f6c20646f6573206e6f742065786973742e000000000000000000000000604482015290519081900360640190fd5b60005474010000000000000000000000000000000000000000900460ff16611cec57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff168155600880548290611d2057fe5b600091825260208083203384527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b90915260408320600490920201925090611d6790612642565b805415611f04576000611d9c8260010154610b3464e8d4a51000610b2e87600301548760000154613fe090919063ffffffff16565b90508015611f0257611daf610b4d6140d7565b8015611dc15750611dc1610b646140d7565b8015611dff5750600a6000611dd46140d7565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff165b15611eee576000611e0f826140db565b90506000611e1d8383613f6c565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f1930846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015611eb057600080fd5b505af1158015611ec4573d6000803e3d6000fd5b505050506040513d6020811015611eda57600080fd5b50611ee79050338261427a565b5050611ef8565b611ef8338261427a565b611f0233826144bf565b505b8315611f4d578154611f2e9073ffffffffffffffffffffffffffffffffffffffff16333087614885565b8054611f3a9085613f6c565b8155600d54611f499085613f6c565b600d555b60015473ffffffffffffffffffffffffffffffffffffffff1615801590611f745750600084115b1561200457600154604080517f7b8e9a8e000000000000000000000000000000000000000000000000000000008152336004820152905173ffffffffffffffffffffffffffffffffffffffff90921691637b8e9a8e9160248082019260009290919082900301818387803b158015611feb57600080fd5b505af1158015611fff573d6000803e3d6000fd5b505050505b6003820154815461201f9164e8d4a5100091610b2e91613fe0565b600182015560408051858152905160009133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790555050565b6008548290811061211357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f506f6f6c20646f6573206e6f742065786973742e000000000000000000000000604482015290519081900360640190fd5b60005474010000000000000000000000000000000000000000900460ff1661219c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690558261223057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f7769746864726177204b555320627920756e7374616b696e6700000000000000604482015290519081900360640190fd5b60006008848154811061223f57fe5b6000918252602080832087845260098252604080852033865290925292208054600490920290920192508411156122d757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604482015290519081900360640190fd5b6122e085612642565b600061230e8260010154610b3464e8d4a51000610b2e87600301548760000154613fe090919063ffffffff16565b905061231b610b4d6140d7565b801561232d575061232d610b646140d7565b801561236b5750600a60006123406140d7565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff165b1561245a57600061237b826140db565b905060006123898383613f6c565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f1930846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561241c57600080fd5b505af1158015612430573d6000803e3d6000fd5b505050506040513d602081101561244657600080fd5b506124539050338261427a565b5050612464565b612464338261427a565b84156124a55781546124769086614095565b825561248233826144bf565b82546124a59073ffffffffffffffffffffffffffffffffffffffff1633876147f8565b60015473ffffffffffffffffffffffffffffffffffffffff16158015906124cc5750600085115b1561255c57600154604080517f7b8e9a8e000000000000000000000000000000000000000000000000000000008152336004820152905173ffffffffffffffffffffffffffffffffffffffff90921691637b8e9a8e9160248082019260009290919082900301818387803b15801561254357600080fd5b505af1158015612557573d6000803e3d6000fd5b505050505b600383015482546125779164e8d4a5100091610b2e91613fe0565b6001830155604080518681529051879133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905550505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b600854819081106126b457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f506f6f6c20646f6573206e6f742065786973742e000000000000000000000000604482015290519081900360640190fd5b6000600883815481106126c357fe5b90600052602060002090600402019050806002015443116126e457506129b2565b8054604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561275457600080fd5b505afa158015612768573d6000803e3d6000fd5b505050506040513d602081101561277e57600080fd5b505190508361278c5750600d545b600081116127a15750436002909101556129b2565b60006127b1836002015443612f8b565b905060006127eb620f4240610b2e600c54610b2e6002546127e58a600101546127e56006548b613fe090919063ffffffff16565b90613fe0565b905073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000166340c10f1961dead61283d6103e8610b2e866014613fe0565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561289057600080fd5b505af11580156128a4573d6000803e3d6000fd5b505050506040513d60208110156128ba57600080fd5b5050604080517f40c10f1900000000000000000000000000000000000000000000000000000000815230600482015260248101839052905173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016916340c10f199160448083019260209291908290030181600087803b15801561295157600080fd5b505af1158015612965573d6000803e3d6000fd5b505050506040513d602081101561297b57600080fd5b5061299f905061299484610b2e8464e8d4a51000613fe0565b600386015490613f6c565b6003850155505043600290920191909155505b5050565b60085481908110612a2857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f506f6f6c20646f6573206e6f742065786973742e000000000000000000000000604482015290519081900360640190fd5b60005474010000000000000000000000000000000000000000900460ff16612ab157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1681556008805484908110612ae757fe5b60009182526020808320868452600982526040808520338087529352909320805460049093029093018054909450612b399273ffffffffffffffffffffffffffffffffffffffff9190911691906147f8565b83612b50578054600d54612b4c91614095565b600d555b60015473ffffffffffffffffffffffffffffffffffffffff1615612bf957600154604080517f7b8e9a8e000000000000000000000000000000000000000000000000000000008152336004820152905173ffffffffffffffffffffffffffffffffffffffff90921691637b8e9a8e9160248082019260009290919082900301818387803b158015612be057600080fd5b505af1158015612bf4573d6000803e3d6000fd5b505050505b80546040805191825251859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a36000808255600190910181905580547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055505050565b60065481565b612c8e6140d7565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614612d1757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60078190556040805182815290517fa0be54773ac26c27d6d0e44698c6b7c95df74fcf44847d1561849a34fc48b0789181900360200190a150565b7f000000000000000000000000000000000000000000000000000000000000000081565b60085460005b818110156129b257612d8d81612642565b600101612d7c565b612d9d6140d7565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614612e2657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b6000600e547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634deafcae846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156108c957600080fd5b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60075481565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b600754600090612f9f906127e58486614095565b90505b92915050565b600d5481565b60096020908152600092835260408084209091529082529020805460019091015482565b612fda6140d7565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461306357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166130e557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f41646472657373283029206e6f7420616c6c6f77656400000000000000000000604482015290519081900360640190fd5b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60045473ffffffffffffffffffffffffffffffffffffffff1681565b600e5481565b60055481565b60025481565b73ffffffffffffffffffffffffffffffffffffffff166000908152600a602052604090205460ff1690565b61318d6140d7565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461321657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6003805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116811790915560408051918252517ff5721dfa6ddbf8e4a2cd38b2152fff4008050b9b37de59ae1e022dde4bd5df739181900360200190a150565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b6132d76140d7565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461336057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6801a055690d9db800008111156133d857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4d61782070657220626c6f636b203330204b5553000000000000000000000000604482015290519081900360640190fd5b60068190556040805182815290517fc077cb3467c6ef6821609094c12502f1b717134a90c972af8dbda9ef0701c6309181900360200190a150565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634deafcae6134596140d7565b6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156134a357600080fd5b505afa1580156134b7573d6000803e3d6000fd5b505050506040513d60208110156134cd57600080fd5b505190506802b5e3af16b188000073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001663113f665361351f6140d7565b6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561356957600080fd5b505afa15801561357d573d6000803e3d6000fd5b505050506040513d602081101561359357600080fd5b5051101561360257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f796f752068617665206c657373207468616e203530204b5553476f7600000000604482015290519081900360640190fd5b600e5481101561365d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180614e7f6022913960400191505060405180910390fd5b600a60006136696140d7565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff166136fe57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f426f6e757320616c726561647920646561637469766174656400000000000000604482015290519081900360640190fd5b6000600a60006118bd6140d7565b6008548290811061377e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f506f6f6c20646f6573206e6f742065786973742e000000000000000000000000604482015290519081900360640190fd5b60005474010000000000000000000000000000000000000000900460ff1661380757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690558261389b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f6465706f736974204b5553206279207374616b696e6700000000000000000000604482015290519081900360640190fd5b6000600884815481106138aa57fe5b600091825260208083208784526009825260408085203386529092529220600490910290910191506138db85612642565b805415613a725760006139108260010154610b3464e8d4a51000610b2e87600301548760000154613fe090919063ffffffff16565b905061391d610b4d6140d7565b801561392f575061392f610b646140d7565b801561396d5750600a60006139426140d7565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff165b15613a5c57600061397d826140db565b9050600061398b8383613f6c565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f1930846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015613a1e57600080fd5b505af1158015613a32573d6000803e3d6000fd5b505050506040513d6020811015613a4857600080fd5b50613a559050338261427a565b5050613a66565b613a66338261427a565b613a7033826144bf565b505b8315613aab578154613a9c9073ffffffffffffffffffffffffffffffffffffffff16333087614885565b8054613aa89085613f6c565b81555b60015473ffffffffffffffffffffffffffffffffffffffff1615801590613ad25750600084115b15613b6257600154604080517f7b8e9a8e000000000000000000000000000000000000000000000000000000008152336004820152905173ffffffffffffffffffffffffffffffffffffffff90921691637b8e9a8e9160248082019260009290919082900301818387803b158015613b4957600080fd5b505af1158015613b5d573d6000803e3d6000fd5b505050505b60038201548154613b7d9164e8d4a5100091610b2e91613fe0565b6001820155604080518581529051869133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055505050565b60085460009083908110613c7457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f506f6f6c20646f6573206e6f742065786973742e000000000000000000000000604482015290519081900360640190fd5b600060088581548110613c8357fe5b6000918252602080832088845260098252604080852073ffffffffffffffffffffffffffffffffffffffff8a8116875290845281862060049586029093016003810154815484517f70a082310000000000000000000000000000000000000000000000000000000081523098810198909852935191985093969395939492909116926370a08231926024808301939192829003018186803b158015613d2757600080fd5b505afa158015613d3b573d6000803e3d6000fd5b505050506040513d6020811015613d5157600080fd5b5051905087613d5f5750600d545b836002015443118015613d7157508015155b15613dde576000613d86856002015443612f8b565b90506000613dba620f4240610b2e600c54610b2e6002546127e58c600101546127e56006548b613fe090919063ffffffff16565b9050613dd9613dd284610b2e8464e8d4a51000613fe0565b8590613f6c565b935050505b6000613e088460010154610b3464e8d4a51000610b2e878960000154613fe090919063ffffffff16565b9050613e15610b4d6140d7565b8015613e275750613e27610b646140d7565b8015613e655750600a6000613e3a6140d7565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff165b15613e92576000613e75826140db565b90506000613e838383613f6c565b9850613e9e9650505050505050565b9550613e9e9350505050565b5092915050565b613ead6140d7565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614613f3657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b613f3f8161491a565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b61dead81565b600082820183811015612f9f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082613fef57506000612fa2565b82820282848281613ffc57fe5b0414612f9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180614e5e6021913960400191505060405180910390fd5b6000612f9f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250614a13565b6000612f9f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614acf565b3390565b6000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663113f66536141226140d7565b6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561416c57600080fd5b505afa158015614180573d6000803e3d6000fd5b505050506040513d602081101561419657600080fd5b5051604080517f18160ddd000000000000000000000000000000000000000000000000000000008152905191925060009173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016916318160ddd916004808301926020929190829003018186803b15801561422457600080fd5b505afa158015614238573d6000803e3d6000fd5b505050506040513d602081101561424e57600080fd5b50519050600061427162989680610b2e8481620186a06127e589818d6096613fe0565b95945050505050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561430357600080fd5b505afa158015614317573d6000803e3d6000fd5b505050506040513d602081101561432d57600080fd5b50519050808211156143fc577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156143ca57600080fd5b505af11580156143de573d6000803e3d6000fd5b505050506040513d60208110156143f457600080fd5b506144ba9050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561448d57600080fd5b505af11580156144a1573d6000803e3d6000fd5b505050506040513d60208110156144b757600080fd5b50505b505050565b60015473ffffffffffffffffffffffffffffffffffffffff16156129b257600154604080517f4a9fefc700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015291516000939290921691634a9fefc791602480820192602092909190829003018186803b15801561455457600080fd5b505afa158015614568573d6000803e3d6000fd5b505050506040513d602081101561457e57600080fd5b5051905073ffffffffffffffffffffffffffffffffffffffff8116156144ba57600154604080517fc0a1ac7f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152602482018690529151600093929092169163c0a1ac7f91604480820192602092909190829003018186803b15801561461c57600080fd5b505afa158015614630573d6000803e3d6000fd5b505050506040513d602081101561464657600080fd5b50519050828110156147f2577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f1983836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156146e357600080fd5b505af11580156146f7573d6000803e3d6000fd5b505050506040513d602081101561470d57600080fd5b5050600154604080517fdc1694b800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152602482018590529151919092169163dc1694b891604480830192600092919082900301818387803b15801561478a57600080fd5b505af115801561479e573d6000803e3d6000fd5b505060408051848152905173ffffffffffffffffffffffffffffffffffffffff8087169450881692507f86ddab457291316e0f5496737e5ca67c4037234c32c3be04c48ae96186893a7b9181900360200190a35b50505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526144ba908490614b43565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790526147f2908590614b43565b73ffffffffffffffffffffffffffffffffffffffff8116614986576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180614e386026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60008183614ab9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614a7e578181015183820152602001614a66565b50505050905090810190601f168015614aab5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581614ac557fe5b0495945050505050565b60008184841115614b3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152835160248401528351909283926044909101919085019080838360008315614a7e578181015183820152602001614a66565b505050900390565b6060614ba5826040518060400160405280602081526020017f536166654b524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16614c1b9092919063ffffffff16565b8051909150156144ba57808060200190516020811015614bc457600080fd5b50516144ba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180614ea1602a913960400191505060405180910390fd5b6060614c2a8484600085614c32565b949350505050565b6060614c3d85614dfe565b614ca857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310614d1257805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101614cd5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114614d74576040519150601f19603f3d011682016040523d82523d6000602084013e614d79565b606091505b50915091508115614d8d579150614c2a9050565b805115614d9d5780518082602001fd5b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152865160248401528651879391928392604401919085019080838360008315614a7e578181015183820152602001614a66565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590614c2a57505015159291505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774b5553476f76206c6f636b6564206973206c657373207468616e2033302064617973536166654b524332303a204b52433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220418012d64119ae13f3a50ad487ce2916775eb23854da42d8e12a66367277aff664736f6c634300060c00330000000000000000000000004a81704d8c16d9fb0d7f61b747d0b5a272badf14000000000000000000000000e8aa65434a734186f607c1e95efb11b31dbe17570000000000000000000000000000000007c96ad6c9835204303c8fb35e48ffc3000000000000000000000000f60cef30825d26774b33f860cb04ea1384b6db33000000000000000000000000475dedf4523f4bb2f7dafaa52b6fcdaf3c13b2d3000000000000000000000000000000000000000000000000008e1bc9bf04000000000000000000000000000000000000000000000000000000000000005b3ba600000000000000000000000000000000000000000000000000000000000d13a80000000000000000000000000000000000000000000000000000000000015f900000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000a7f8

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106103205760003560e01c8063749916cd116101a7578063be1193ea116100ee578063e1f7837211610097578063f2fde38b11610071578063f2fde38b146107f3578063fc3c28af14610826578063fccc28131461082e57610320565b8063e1f783721461078f578063e2bbb15814610797578063eba0a1da146107ba57610320565b8063d49e77cd116100c8578063d49e77cd14610762578063d500d6d01461076a578063dba144911461077257610320565b8063be1193ea146106f4578063c3e6a788146106fc578063d0d41fe11461072f57610320565b806393e936a011610150578063a637558d1161012a578063a637558d146106dc578063b5c6864a146106e4578063b76e360c146106ec57610320565b806393e936a01461064f57806393f1a40b146106575780639a01126c146106a957610320565b80638aa28550116101815780638aa285501461061c5780638da5cb5b146106245780638dbb1e3a1461062c57610320565b8063749916cd146105d95780637a13fea81461060c57806385a71d671461061457610320565b80632b8bbbe81161026b5780635312ea8e11610214578063605f9268116101ee578063605f9268146105c1578063630b5ba1146105c9578063715018a6146105d157610320565b80635312ea8e1461057f5780635e51ab981461059c5780635ffe6146146105a457610320565b806348cd4cb11161024557806348cd4cb11461055257806349c6d6b11461055a57806351eb05a61461056257610320565b80632b8bbbe8146104d957806341441d3b14610512578063441a3e701461052f57610320565b806317caf6f1116102cd57806320f0acb3116102a757806320f0acb31461049657806321b1aecb146104c957806328ab6da1146104d157610320565b806317caf6f11461043a5780631ab06ee5146104425780631b02f4fd1461046557610320565b80631058d281116102fe5780631058d281146103b957806312270c40146103d85780631526fe27146103e057610320565b8063051dbf5514610325578063081e3eda1461036c5780630b7a5eb814610386575b600080fd5b6103586004803603602081101561033b57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610836565b604080519115158252519081900360200190f35b6103746108fd565b60408051918252519081900360200190f35b6103586004803603602081101561039c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610903565b6103d6600480360360208110156103cf57600080fd5b5035610918565b005b6103d6610e47565b6103fd600480360360208110156103f657600080fd5b50356112cc565b6040805173ffffffffffffffffffffffffffffffffffffffff90951685526020850193909352838301919091526060830152519081900360800190f35b61037461131a565b6103d66004803603604081101561045857600080fd5b5080359060200135611320565b61046d611496565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6103d6600480360360208110156104ac57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166114b2565b6103746115bc565b6103d66115c3565b6103d6600480360360408110156104ef57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16611913565b6103d66004803603602081101561052857600080fd5b5035611bf2565b6103d66004803603604081101561054557600080fd5b50803590602001356120a1565b6103746125fa565b61037461261e565b6103d66004803603602081101561057857600080fd5b5035612642565b6103d66004803603602081101561059557600080fd5b50356129b6565b610374612c80565b6103d6600480360360208110156105ba57600080fd5b5035612c86565b610374612d52565b6103d6612d76565b6103d6612d95565b610358600480360360208110156105ef57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16612e95565b61046d612f21565b61046d612f45565b610374612f69565b61046d612f6f565b6103746004803603604081101561064257600080fd5b5080359060200135612f8b565b610374612fa8565b6106906004803603604081101561066d57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16612fae565b6040805192835260208301919091528051918290030190f35b6103d6600480360360208110156106bf57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16612fd2565b61046d61312c565b610374613148565b61037461314e565b610374613154565b6103586004803603602081101561071257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661315a565b6103d66004803603602081101561074557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16613185565b61046d61328f565b61046d6132ab565b6103d66004803603602081101561078857600080fd5b50356132cf565b6103d6613413565b6103d6600480360360408110156107ad57600080fd5b508035906020013561370c565b610374600480360360408110156107d057600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16613bff565b6103d66004803603602081101561080957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16613ea5565b610374613f42565b61046d613f66565b60006802b5e3af16b18800007f000000000000000000000000e8aa65434a734186f607c1e95efb11b31dbe175773ffffffffffffffffffffffffffffffffffffffff1663113f6653846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156108c957600080fd5b505afa1580156108dd573d6000803e3d6000fd5b505050506040513d60208110156108f357600080fd5b5051101592915050565b60085490565b600a6020526000908152604090205460ff1681565b60085460009061098957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f506f6f6c20646f6573206e6f742065786973742e000000000000000000000000604482015290519081900360640190fd5b60005474010000000000000000000000000000000000000000900460ff16610a1257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff168155600880548290610a4657fe5b600091825260208083203384527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b9091526040909220805460049092029092019250841115610af657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604482015290519081900360640190fd5b610b006000612642565b6000610b3a8260010154610b3464e8d4a51000610b2e87600301548760000154613fe090919063ffffffff16565b90614053565b90614095565b90508015610caa57610b52610b4d6140d7565b610836565b8015610b695750610b69610b646140d7565b612e95565b8015610ba75750600a6000610b7c6140d7565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff165b15610c96576000610bb7826140db565b90506000610bc58383613f6c565b90507f0000000000000000000000004a81704d8c16d9fb0d7f61b747d0b5a272badf1473ffffffffffffffffffffffffffffffffffffffff166340c10f1930846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610c5857600080fd5b505af1158015610c6c573d6000803e3d6000fd5b505050506040513d6020811015610c8257600080fd5b50610c8f9050338261427a565b5050610ca0565b610ca0338261427a565b610caa33826144bf565b8415610cf2578154610cbc9086614095565b82558254610ce19073ffffffffffffffffffffffffffffffffffffffff1633876147f8565b600d54610cee9086614095565b600d555b60015473ffffffffffffffffffffffffffffffffffffffff1615801590610d195750600085115b15610da957600154604080517f7b8e9a8e000000000000000000000000000000000000000000000000000000008152336004820152905173ffffffffffffffffffffffffffffffffffffffff90921691637b8e9a8e9160248082019260009290919082900301818387803b158015610d9057600080fd5b505af1158015610da4573d6000803e3d6000fd5b505050505b60038301548254610dc49164e8d4a5100091610b2e91613fe0565b600183015560408051868152905160009133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055505050565b60005474010000000000000000000000000000000000000000900460ff16610ed057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690556005544311610f6857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4e6f74206d617475726564207965740000000000000000000000000000000000604482015290519081900360640190fd5b6000610f7660055443612f8b565b90506000610f8f60065483613fe090919063ffffffff16565b60035490915073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000004a81704d8c16d9fb0d7f61b747d0b5a272badf148116916340c10f199116611006620f4240610b2e867f0000000000000000000000000000000000000000000000000000000000015f90613fe0565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561105957600080fd5b505af115801561106d573d6000803e3d6000fd5b505050506040513d602081101561108357600080fd5b505073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000004a81704d8c16d9fb0d7f61b747d0b5a272badf14166340c10f197f000000000000000000000000475dedf4523f4bb2f7dafaa52b6fcdaf3c13b2d3611113620f4240610b2e867f0000000000000000000000000000000000000000000000000000000000002710613fe0565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561116657600080fd5b505af115801561117a573d6000803e3d6000fd5b505050506040513d602081101561119057600080fd5b505060045473ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000004a81704d8c16d9fb0d7f61b747d0b5a272badf148116916340c10f199116611206620f4240610b2e867f000000000000000000000000000000000000000000000000000000000000a7f8613fe0565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561125957600080fd5b505af115801561126d573d6000803e3d6000fd5b505050506040513d602081101561128357600080fd5b5050436005555050600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b600881815481106112d957fe5b6000918252602090912060049091020180546001820154600283015460039093015473ffffffffffffffffffffffffffffffffffffffff9092169350919084565b600c5481565b6113286140d7565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146113b157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6008548290811061142357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f506f6f6c20646f6573206e6f742065786973742e000000000000000000000000604482015290519081900360640190fd5b61142b612d76565b611468826114626008868154811061143f57fe5b906000526020600020906004020160010154600c5461409590919063ffffffff16565b90613f6c565b600c81905550816008848154811061147c57fe5b906000526020600020906004020160010181905550505050565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b6114ba6140d7565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461154357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6004805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116811790915560408051918252517fc1a3529f08b5e3dcc7e073a230546e17cb0bd4f3492d7ed9ff72faa09ebc716c9181900360200190a150565b620f424081565b60007f000000000000000000000000e8aa65434a734186f607c1e95efb11b31dbe175773ffffffffffffffffffffffffffffffffffffffff16634deafcae6116096140d7565b6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561165357600080fd5b505afa158015611667573d6000803e3d6000fd5b505050506040513d602081101561167d57600080fd5b505190506802b5e3af16b188000073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000e8aa65434a734186f607c1e95efb11b31dbe17571663113f66536116cf6140d7565b6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561171957600080fd5b505afa15801561172d573d6000803e3d6000fd5b505050506040513d602081101561174357600080fd5b505110156117b257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f796f752068617665206c657373207468616e203530204b5553476f7600000000604482015290519081900360640190fd5b600e5481101561180d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180614e7f6022913960400191505060405180910390fd5b600a60006118196140d7565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff16156118af57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f426f6e757320616c726561647920616374697661746564000000000000000000604482015290519081900360640190fd5b6001600a60006118bd6140d7565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905550565b61191b6140d7565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146119a457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166000908152600b602052604090205460ff1615611a3957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4475706c6963617465204c5020746f6b656e0000000000000000000000000000604482015290519081900360640190fd5b611a41612d76565b60007f00000000000000000000000000000000000000000000000000000000005b3ba64311611a90577f00000000000000000000000000000000000000000000000000000000005b3ba6611a92565b435b600c54909150611aa29084613f6c565b600c556040805160808101825273ffffffffffffffffffffffffffffffffffffffff9384168082526020808301968752828401948552600060608401818152600880546001808201835591845295517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3600490970296870180547fffffffffffffffffffffffff00000000000000000000000000000000000000001691909a161790985597517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee485015594517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee584015595517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee6909201919091558252600b9093529190912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169091179055565b600854600090611c6357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f506f6f6c20646f6573206e6f742065786973742e000000000000000000000000604482015290519081900360640190fd5b60005474010000000000000000000000000000000000000000900460ff16611cec57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff168155600880548290611d2057fe5b600091825260208083203384527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b90915260408320600490920201925090611d6790612642565b805415611f04576000611d9c8260010154610b3464e8d4a51000610b2e87600301548760000154613fe090919063ffffffff16565b90508015611f0257611daf610b4d6140d7565b8015611dc15750611dc1610b646140d7565b8015611dff5750600a6000611dd46140d7565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff165b15611eee576000611e0f826140db565b90506000611e1d8383613f6c565b90507f0000000000000000000000004a81704d8c16d9fb0d7f61b747d0b5a272badf1473ffffffffffffffffffffffffffffffffffffffff166340c10f1930846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015611eb057600080fd5b505af1158015611ec4573d6000803e3d6000fd5b505050506040513d6020811015611eda57600080fd5b50611ee79050338261427a565b5050611ef8565b611ef8338261427a565b611f0233826144bf565b505b8315611f4d578154611f2e9073ffffffffffffffffffffffffffffffffffffffff16333087614885565b8054611f3a9085613f6c565b8155600d54611f499085613f6c565b600d555b60015473ffffffffffffffffffffffffffffffffffffffff1615801590611f745750600084115b1561200457600154604080517f7b8e9a8e000000000000000000000000000000000000000000000000000000008152336004820152905173ffffffffffffffffffffffffffffffffffffffff90921691637b8e9a8e9160248082019260009290919082900301818387803b158015611feb57600080fd5b505af1158015611fff573d6000803e3d6000fd5b505050505b6003820154815461201f9164e8d4a5100091610b2e91613fe0565b600182015560408051858152905160009133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790555050565b6008548290811061211357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f506f6f6c20646f6573206e6f742065786973742e000000000000000000000000604482015290519081900360640190fd5b60005474010000000000000000000000000000000000000000900460ff1661219c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690558261223057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f7769746864726177204b555320627920756e7374616b696e6700000000000000604482015290519081900360640190fd5b60006008848154811061223f57fe5b6000918252602080832087845260098252604080852033865290925292208054600490920290920192508411156122d757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604482015290519081900360640190fd5b6122e085612642565b600061230e8260010154610b3464e8d4a51000610b2e87600301548760000154613fe090919063ffffffff16565b905061231b610b4d6140d7565b801561232d575061232d610b646140d7565b801561236b5750600a60006123406140d7565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff165b1561245a57600061237b826140db565b905060006123898383613f6c565b90507f0000000000000000000000004a81704d8c16d9fb0d7f61b747d0b5a272badf1473ffffffffffffffffffffffffffffffffffffffff166340c10f1930846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561241c57600080fd5b505af1158015612430573d6000803e3d6000fd5b505050506040513d602081101561244657600080fd5b506124539050338261427a565b5050612464565b612464338261427a565b84156124a55781546124769086614095565b825561248233826144bf565b82546124a59073ffffffffffffffffffffffffffffffffffffffff1633876147f8565b60015473ffffffffffffffffffffffffffffffffffffffff16158015906124cc5750600085115b1561255c57600154604080517f7b8e9a8e000000000000000000000000000000000000000000000000000000008152336004820152905173ffffffffffffffffffffffffffffffffffffffff90921691637b8e9a8e9160248082019260009290919082900301818387803b15801561254357600080fd5b505af1158015612557573d6000803e3d6000fd5b505050505b600383015482546125779164e8d4a5100091610b2e91613fe0565b6001830155604080518681529051879133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905550505050565b7f00000000000000000000000000000000000000000000000000000000005b3ba681565b7f000000000000000000000000000000000000000000000000000000000000271081565b600854819081106126b457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f506f6f6c20646f6573206e6f742065786973742e000000000000000000000000604482015290519081900360640190fd5b6000600883815481106126c357fe5b90600052602060002090600402019050806002015443116126e457506129b2565b8054604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561275457600080fd5b505afa158015612768573d6000803e3d6000fd5b505050506040513d602081101561277e57600080fd5b505190508361278c5750600d545b600081116127a15750436002909101556129b2565b60006127b1836002015443612f8b565b905060006127eb620f4240610b2e600c54610b2e6002546127e58a600101546127e56006548b613fe090919063ffffffff16565b90613fe0565b905073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000004a81704d8c16d9fb0d7f61b747d0b5a272badf14166340c10f1961dead61283d6103e8610b2e866014613fe0565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561289057600080fd5b505af11580156128a4573d6000803e3d6000fd5b505050506040513d60208110156128ba57600080fd5b5050604080517f40c10f1900000000000000000000000000000000000000000000000000000000815230600482015260248101839052905173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000004a81704d8c16d9fb0d7f61b747d0b5a272badf1416916340c10f199160448083019260209291908290030181600087803b15801561295157600080fd5b505af1158015612965573d6000803e3d6000fd5b505050506040513d602081101561297b57600080fd5b5061299f905061299484610b2e8464e8d4a51000613fe0565b600386015490613f6c565b6003850155505043600290920191909155505b5050565b60085481908110612a2857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f506f6f6c20646f6573206e6f742065786973742e000000000000000000000000604482015290519081900360640190fd5b60005474010000000000000000000000000000000000000000900460ff16612ab157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1681556008805484908110612ae757fe5b60009182526020808320868452600982526040808520338087529352909320805460049093029093018054909450612b399273ffffffffffffffffffffffffffffffffffffffff9190911691906147f8565b83612b50578054600d54612b4c91614095565b600d555b60015473ffffffffffffffffffffffffffffffffffffffff1615612bf957600154604080517f7b8e9a8e000000000000000000000000000000000000000000000000000000008152336004820152905173ffffffffffffffffffffffffffffffffffffffff90921691637b8e9a8e9160248082019260009290919082900301818387803b158015612be057600080fd5b505af1158015612bf4573d6000803e3d6000fd5b505050505b80546040805191825251859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a36000808255600190910181905580547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055505050565b60065481565b612c8e6140d7565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614612d1757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60078190556040805182815290517fa0be54773ac26c27d6d0e44698c6b7c95df74fcf44847d1561849a34fc48b0789181900360200190a150565b7f000000000000000000000000000000000000000000000000000000000000a7f881565b60085460005b818110156129b257612d8d81612642565b600101612d7c565b612d9d6140d7565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614612e2657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b6000600e547f000000000000000000000000e8aa65434a734186f607c1e95efb11b31dbe175773ffffffffffffffffffffffffffffffffffffffff16634deafcae846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156108c957600080fd5b7f000000000000000000000000e8aa65434a734186f607c1e95efb11b31dbe175781565b7f0000000000000000000000004a81704d8c16d9fb0d7f61b747d0b5a272badf1481565b60075481565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b600754600090612f9f906127e58486614095565b90505b92915050565b600d5481565b60096020908152600092835260408084209091529082529020805460019091015482565b612fda6140d7565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461306357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166130e557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f41646472657373283029206e6f7420616c6c6f77656400000000000000000000604482015290519081900360640190fd5b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60045473ffffffffffffffffffffffffffffffffffffffff1681565b600e5481565b60055481565b60025481565b73ffffffffffffffffffffffffffffffffffffffff166000908152600a602052604090205460ff1690565b61318d6140d7565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461321657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6003805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116811790915560408051918252517ff5721dfa6ddbf8e4a2cd38b2152fff4008050b9b37de59ae1e022dde4bd5df739181900360200190a150565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000475dedf4523f4bb2f7dafaa52b6fcdaf3c13b2d381565b6132d76140d7565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461336057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6801a055690d9db800008111156133d857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4d61782070657220626c6f636b203330204b5553000000000000000000000000604482015290519081900360640190fd5b60068190556040805182815290517fc077cb3467c6ef6821609094c12502f1b717134a90c972af8dbda9ef0701c6309181900360200190a150565b60007f000000000000000000000000e8aa65434a734186f607c1e95efb11b31dbe175773ffffffffffffffffffffffffffffffffffffffff16634deafcae6134596140d7565b6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156134a357600080fd5b505afa1580156134b7573d6000803e3d6000fd5b505050506040513d60208110156134cd57600080fd5b505190506802b5e3af16b188000073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000e8aa65434a734186f607c1e95efb11b31dbe17571663113f665361351f6140d7565b6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561356957600080fd5b505afa15801561357d573d6000803e3d6000fd5b505050506040513d602081101561359357600080fd5b5051101561360257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f796f752068617665206c657373207468616e203530204b5553476f7600000000604482015290519081900360640190fd5b600e5481101561365d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180614e7f6022913960400191505060405180910390fd5b600a60006136696140d7565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff166136fe57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f426f6e757320616c726561647920646561637469766174656400000000000000604482015290519081900360640190fd5b6000600a60006118bd6140d7565b6008548290811061377e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f506f6f6c20646f6573206e6f742065786973742e000000000000000000000000604482015290519081900360640190fd5b60005474010000000000000000000000000000000000000000900460ff1661380757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690558261389b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f6465706f736974204b5553206279207374616b696e6700000000000000000000604482015290519081900360640190fd5b6000600884815481106138aa57fe5b600091825260208083208784526009825260408085203386529092529220600490910290910191506138db85612642565b805415613a725760006139108260010154610b3464e8d4a51000610b2e87600301548760000154613fe090919063ffffffff16565b905061391d610b4d6140d7565b801561392f575061392f610b646140d7565b801561396d5750600a60006139426140d7565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff165b15613a5c57600061397d826140db565b9050600061398b8383613f6c565b90507f0000000000000000000000004a81704d8c16d9fb0d7f61b747d0b5a272badf1473ffffffffffffffffffffffffffffffffffffffff166340c10f1930846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015613a1e57600080fd5b505af1158015613a32573d6000803e3d6000fd5b505050506040513d6020811015613a4857600080fd5b50613a559050338261427a565b5050613a66565b613a66338261427a565b613a7033826144bf565b505b8315613aab578154613a9c9073ffffffffffffffffffffffffffffffffffffffff16333087614885565b8054613aa89085613f6c565b81555b60015473ffffffffffffffffffffffffffffffffffffffff1615801590613ad25750600084115b15613b6257600154604080517f7b8e9a8e000000000000000000000000000000000000000000000000000000008152336004820152905173ffffffffffffffffffffffffffffffffffffffff90921691637b8e9a8e9160248082019260009290919082900301818387803b158015613b4957600080fd5b505af1158015613b5d573d6000803e3d6000fd5b505050505b60038201548154613b7d9164e8d4a5100091610b2e91613fe0565b6001820155604080518581529051869133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055505050565b60085460009083908110613c7457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f506f6f6c20646f6573206e6f742065786973742e000000000000000000000000604482015290519081900360640190fd5b600060088581548110613c8357fe5b6000918252602080832088845260098252604080852073ffffffffffffffffffffffffffffffffffffffff8a8116875290845281862060049586029093016003810154815484517f70a082310000000000000000000000000000000000000000000000000000000081523098810198909852935191985093969395939492909116926370a08231926024808301939192829003018186803b158015613d2757600080fd5b505afa158015613d3b573d6000803e3d6000fd5b505050506040513d6020811015613d5157600080fd5b5051905087613d5f5750600d545b836002015443118015613d7157508015155b15613dde576000613d86856002015443612f8b565b90506000613dba620f4240610b2e600c54610b2e6002546127e58c600101546127e56006548b613fe090919063ffffffff16565b9050613dd9613dd284610b2e8464e8d4a51000613fe0565b8590613f6c565b935050505b6000613e088460010154610b3464e8d4a51000610b2e878960000154613fe090919063ffffffff16565b9050613e15610b4d6140d7565b8015613e275750613e27610b646140d7565b8015613e655750600a6000613e3a6140d7565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff165b15613e92576000613e75826140db565b90506000613e838383613f6c565b9850613e9e9650505050505050565b9550613e9e9350505050565b5092915050565b613ead6140d7565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614613f3657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b613f3f8161491a565b50565b7f0000000000000000000000000000000000000000000000000000000000015f9081565b61dead81565b600082820183811015612f9f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082613fef57506000612fa2565b82820282848281613ffc57fe5b0414612f9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180614e5e6021913960400191505060405180910390fd5b6000612f9f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250614a13565b6000612f9f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614acf565b3390565b6000807f000000000000000000000000e8aa65434a734186f607c1e95efb11b31dbe175773ffffffffffffffffffffffffffffffffffffffff1663113f66536141226140d7565b6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561416c57600080fd5b505afa158015614180573d6000803e3d6000fd5b505050506040513d602081101561419657600080fd5b5051604080517f18160ddd000000000000000000000000000000000000000000000000000000008152905191925060009173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000e8aa65434a734186f607c1e95efb11b31dbe175716916318160ddd916004808301926020929190829003018186803b15801561422457600080fd5b505afa158015614238573d6000803e3d6000fd5b505050506040513d602081101561424e57600080fd5b50519050600061427162989680610b2e8481620186a06127e589818d6096613fe0565b95945050505050565b60007f0000000000000000000000004a81704d8c16d9fb0d7f61b747d0b5a272badf1473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561430357600080fd5b505afa158015614317573d6000803e3d6000fd5b505050506040513d602081101561432d57600080fd5b50519050808211156143fc577f0000000000000000000000004a81704d8c16d9fb0d7f61b747d0b5a272badf1473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156143ca57600080fd5b505af11580156143de573d6000803e3d6000fd5b505050506040513d60208110156143f457600080fd5b506144ba9050565b7f0000000000000000000000004a81704d8c16d9fb0d7f61b747d0b5a272badf1473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561448d57600080fd5b505af11580156144a1573d6000803e3d6000fd5b505050506040513d60208110156144b757600080fd5b50505b505050565b60015473ffffffffffffffffffffffffffffffffffffffff16156129b257600154604080517f4a9fefc700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015291516000939290921691634a9fefc791602480820192602092909190829003018186803b15801561455457600080fd5b505afa158015614568573d6000803e3d6000fd5b505050506040513d602081101561457e57600080fd5b5051905073ffffffffffffffffffffffffffffffffffffffff8116156144ba57600154604080517fc0a1ac7f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152602482018690529151600093929092169163c0a1ac7f91604480820192602092909190829003018186803b15801561461c57600080fd5b505afa158015614630573d6000803e3d6000fd5b505050506040513d602081101561464657600080fd5b50519050828110156147f2577f0000000000000000000000004a81704d8c16d9fb0d7f61b747d0b5a272badf1473ffffffffffffffffffffffffffffffffffffffff166340c10f1983836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156146e357600080fd5b505af11580156146f7573d6000803e3d6000fd5b505050506040513d602081101561470d57600080fd5b5050600154604080517fdc1694b800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152602482018590529151919092169163dc1694b891604480830192600092919082900301818387803b15801561478a57600080fd5b505af115801561479e573d6000803e3d6000fd5b505060408051848152905173ffffffffffffffffffffffffffffffffffffffff8087169450881692507f86ddab457291316e0f5496737e5ca67c4037234c32c3be04c48ae96186893a7b9181900360200190a35b50505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526144ba908490614b43565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790526147f2908590614b43565b73ffffffffffffffffffffffffffffffffffffffff8116614986576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180614e386026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60008183614ab9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614a7e578181015183820152602001614a66565b50505050905090810190601f168015614aab5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581614ac557fe5b0495945050505050565b60008184841115614b3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152835160248401528351909283926044909101919085019080838360008315614a7e578181015183820152602001614a66565b505050900390565b6060614ba5826040518060400160405280602081526020017f536166654b524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16614c1b9092919063ffffffff16565b8051909150156144ba57808060200190516020811015614bc457600080fd5b50516144ba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180614ea1602a913960400191505060405180910390fd5b6060614c2a8484600085614c32565b949350505050565b6060614c3d85614dfe565b614ca857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310614d1257805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101614cd5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114614d74576040519150601f19603f3d011682016040523d82523d6000602084013e614d79565b606091505b50915091508115614d8d579150614c2a9050565b805115614d9d5780518082602001fd5b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152865160248401528651879391928392604401919085019080838360008315614a7e578181015183820152602001614a66565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590614c2a57505015159291505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774b5553476f76206c6f636b6564206973206c657373207468616e2033302064617973536166654b524332303a204b52433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220418012d64119ae13f3a50ad487ce2916775eb23854da42d8e12a66367277aff664736f6c634300060c0033