Contract Address Details

0x7a5bAcFA98fE103Af76d23bF1b54CEC12ded84d8

Contract Name
Masterchef
Creator
0xcc5beb–aa9cca at 0xd92745–d57b8c
Balance
0 CRO
Tokens
Fetching tokens...
Transactions
5,901 Transactions
Transfers
13,784 Transfers
Gas Used
1,016,929,107
Last Balance Update
13685585
Contract name:
Masterchef




Optimization enabled
false
Compiler version
v0.8.9+commit.e5eed63a




EVM Version
default




Verified at
2021-12-11T21:34:25.113907Z

Constructor Arguments

00000000000000000000000074f53e67d68a348611979e3012edf9781c437529000000000000000000000000000000000000000000000000000000000007fe91000000000000000000000000693d38efe8b113e9a383378fce40fc2c15abd3ae00000000000000000000000099fb7c32020680ab5bea10061f4f1ad0e44d8690

Arg [0] (address) : 0x74f53e67d68a348611979e3012edf9781c437529
Arg [1] (uint256) : 523921
Arg [2] (address) : 0x693d38efe8b113e9a383378fce40fc2c15abd3ae
Arg [3] (address) : 0x99fb7c32020680ab5bea10061f4f1ad0e44d8690

              

Contract source code

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}
 
 /**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, Ownable, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;
    uint256 private _totalBurned;
    
    uint256 private MAXSUPPLY = 3000 ether;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }
    
    function TotalDestroyed() public view returns (uint256) {
        return _totalBurned;
    }
    
    function maxSupply() public view returns (uint256) {
        return MAXSUPPLY;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");
        require(amount != 0, "ERC20: amount must be greater than 0");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalBurned += amount;
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

contract CROTerraToken is ERC20('CROTerra', 'CROTERRA') {

    address public destroyer;
    address public masterchef;

    event SetContracts(address indexed newDestroyer, address indexed newMasterchef);

    constructor() {
        _mint(_msgSender(), uint256(100000000000000000000)); // 100 tokens for initial liquidity
        _mint(address(0x99Fb7c32020680AB5bea10061f4f1AD0e44d8690), uint256(200000000000000000000)); // 200 tokens for treasury
    }

    modifier onlyDestroyer() {
        require(_msgSender() == destroyer, "destroyer: caller is not the destroyer");
        _;
    }

    modifier onlyMasterchef() {
        require(_msgSender() == masterchef, "masterchef: caller is not the masterchef");
        _;
    }

    function mint(address to, uint256 amount) external onlyMasterchef {
        _mint(to, amount);
    }

    function burn(uint256 amount) external onlyDestroyer {
        _burn(_msgSender(), amount);
    }

    function setContracts(address _destroyer, address _masterchef) public onlyOwner {
        require(destroyer == address(0) && masterchef == address(0), "set already");
        destroyer = _destroyer;
        masterchef = _masterchef;
        emit SetContracts(destroyer, masterchef);
    }
}

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

contract Masterchef is Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;

    struct UserInfo {
        uint256 amount;       
        uint256 rewardDebt;
    }

    struct PoolInfo {
        IERC20 lpToken;               
        uint256 allocPoint;            
        uint256 lastRewardperBlock;     
        uint256 accTerraPerShare;    
        uint16 depositFeeBP;
        uint256 lpSupply;
    }
    
    CROTerraToken public immutable terra;

    uint256 public startBlock;
    address public feeAdd;
    address public treasuryAdd;
    
    uint256 private immutable MAXSUPPLY;
    uint256 public terraPerBlock = 0.004 ether;
    uint256 public constant MAX_PERBLOCK = 0.1 ether;
    uint256 public constant MIN_PERBLOCK = 0.0001 ether;
    
    uint256 public totalAllocPoint = 0;
    
    PoolInfo[] public poolInfo;
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    mapping(IERC20 => bool) public poolExistence;
    
    modifier nonDuplicated(IERC20 _lpToken) {
        require(poolExistence[_lpToken] == false, "nonDuplicated: duplicated");
        _;
    }
    
    event UpdateFeeAddress(address indexed user, address indexed newAddress);
    event UpdateTreasuryAddress(address indexed user, address indexed newAddress);
    event Add(uint256 indexed pid, address lpToken, uint256 allocPoint, uint16 depositFeeBP);
    event Set(uint256 indexed pid, address lpToken, uint256 allocPoint, uint16 depositFeeBP);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event UpdateStartBlock(uint256 newStartBlock);
    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event UpdateEmissionRate(address indexed user, uint256 terraPerBlock);

    constructor(CROTerraToken _terra, uint256 _startBlock, address _feeAdd, address _treasuryAdd) {
        terra = _terra;
        startBlock = _startBlock;
        feeAdd = _feeAdd;
        treasuryAdd = _treasuryAdd;
        MAXSUPPLY = _terra.maxSupply();
    }

    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }
    
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    function safeTerraTransfer(address _to, uint256 _amount) internal {
        uint256 terraBalance = terra.balanceOf(address(this));
        bool transferSuccess = false;
        if (_amount > terraBalance) {
            transferSuccess = terra.transfer(_to, terraBalance);
        } else {
            transferSuccess = terra.transfer(_to, _amount);
        }
        require(transferSuccess, "safeTerraTransfer: Transfer failed");
    }
    
    function updateEmissionRate(uint256 _terraPerBlock) external onlyOwner {
        require(_terraPerBlock >= MIN_PERBLOCK && _terraPerBlock <= MAX_PERBLOCK, "Bad Emissions per second");
        massUpdatePools();
        terraPerBlock = _terraPerBlock;
        emit UpdateEmissionRate(msg.sender, _terraPerBlock);
    }

    function add(uint256 _allocPoint, IERC20 _lpToken, uint16 _depositFeeBP, bool _withUpdate) external onlyOwner nonDuplicated(_lpToken) {
        require(_depositFeeBP <= 400, "add: invalid deposit fee basis points");
        _lpToken.balanceOf(address(this));
        if (_withUpdate) { massUpdatePools(); }
        uint256 lastRewardperBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint += _allocPoint;
        poolExistence[_lpToken] = true;
        poolInfo.push(PoolInfo({
            lpToken: _lpToken,
            allocPoint: _allocPoint,
            depositFeeBP: _depositFeeBP,
            lastRewardperBlock: lastRewardperBlock,
            accTerraPerShare: 0,
            lpSupply: 0
        }));
        
        emit Add(poolInfo.length - 1, address(_lpToken), _allocPoint, _depositFeeBP);
    }

    function set(uint256 _pid, uint256 _allocPoint, uint16 _depositFeeBP, bool _withUpdate) external onlyOwner {
        require(_depositFeeBP <= 400, "set: invalid deposit fee basis points");
        if (_withUpdate) { massUpdatePools(); }
        totalAllocPoint = totalAllocPoint - poolInfo[_pid].allocPoint + _allocPoint;
        poolInfo[_pid].allocPoint = _allocPoint;
        poolInfo[_pid].depositFeeBP = _depositFeeBP;
        emit Set(_pid, address(poolInfo[_pid].lpToken), _allocPoint, _depositFeeBP);
    }

    function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {
        if (TOTALSUPPLY() >= MAXSUPPLY) { 
            return 0; 
        }
        return _to - _from;
    }

    function pendingTerra(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accTerraPerShare = pool.accTerraPerShare;

        if (block.number > pool.lastRewardperBlock && pool.lpSupply != 0 && totalAllocPoint > 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardperBlock, block.number);
            uint256 terraReward = (multiplier * terraPerBlock * pool.allocPoint) / totalAllocPoint;
            uint256 distribution = terraReward / 110;
            if (terraReward + distribution + TOTALSUPPLY() > MAXSUPPLY) {
                terraReward = MAXSUPPLY - TOTALSUPPLY();
            }
            accTerraPerShare += terraReward * 1e18 / pool.lpSupply;
        }
        return ((user.amount * accTerraPerShare) / 1e18) - user.rewardDebt;
    }

    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        
        if (block.number <= pool.lastRewardperBlock) { 
            return;
        }
        
        uint256 multiplier = getMultiplier(pool.lastRewardperBlock, block.number);
        if (pool.lpSupply == 0 || pool.allocPoint == 0 || multiplier == 0) {
                pool.lastRewardperBlock = block.number;
                return;
        }

        uint256 terraReward = (multiplier * terraPerBlock * pool.allocPoint) / totalAllocPoint;
        uint256 toTreasury = terraReward / 100;
        uint256 toBurn = terraReward / 10;
        
        if (TOTALSUPPLY() + terraReward + toTreasury + toBurn <= MAXSUPPLY) {
            terra.mint(treasuryAdd, toTreasury);
            terra.mint(destroyerAdd(), toBurn);
            terra.mint(address(this), terraReward);
        } else {
            terraReward = MAXSUPPLY - TOTALSUPPLY();
            terra.mint(address(this), terraReward);
        }

        pool.accTerraPerShare += terraReward * 1e18 / pool.lpSupply;
        pool.lastRewardperBlock = block.number;
    }
    
    function deposit(uint256 _pid, uint256 _amount) external nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        
        if (user.amount > 0) {
            uint256 pending = ((user.amount * pool.accTerraPerShare) / 1e18) - user.rewardDebt;
            
            if (pending > 0) {
                safeTerraTransfer(msg.sender, pending);
            }
        }

        if (_amount > 0) {
            uint256 balanceBefore = pool.lpToken.balanceOf(address(this));
            pool.lpToken.safeTransferFrom(msg.sender, address(this), _amount);
            _amount = pool.lpToken.balanceOf(address(this)) - balanceBefore;
            require(_amount > 0, "We dont accept deposits of 0 size");

            if (pool.depositFeeBP > 0) {
                uint256 depositFee = (_amount * pool.depositFeeBP) / 10000;
                pool.lpToken.safeTransfer(feeAdd, depositFee);
                user.amount += _amount - depositFee;
                pool.lpSupply += _amount - depositFee;
            } else {
                user.amount += _amount;
                pool.lpSupply += _amount;
            }
        }
        user.rewardDebt = (user.amount * pool.accTerraPerShare) / 1e18;
        emit Deposit(msg.sender, _pid, _amount);
    }

    function withdraw(uint256 _pid, uint256 _amount) external nonReentrant {
        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 * pool.accTerraPerShare) / 1e18) - user.rewardDebt;
        
        if (pending > 0) {
            safeTerraTransfer(msg.sender, pending);
        }
        
        if (_amount > 0) {
            user.amount -= _amount;
            pool.lpSupply -= _amount;
            pool.lpToken.safeTransfer(msg.sender, _amount);
        }
        
        user.rewardDebt = (user.amount * pool.accTerraPerShare) / 1e18;
        emit Withdraw(msg.sender, _pid, _amount);
    }

    function emergencyWithdraw(uint256 _pid) external nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        uint256 amount = user.amount;

        require(amount > 0, "emergencyWithdraw: NO amount");
        require(pool.lpSupply >= amount, "emergencyWithdraw: Pool balance not enough"); 

        user.amount = 0;
        user.rewardDebt = 0;
        pool.lpSupply -= amount;
        pool.lpToken.safeTransfer(msg.sender, amount);

        emit EmergencyWithdraw(msg.sender, _pid, amount);
    }

    function TOTALSUPPLY() private view returns (uint256) {
        return terra.totalSupply();
    }

    function destroyerAdd() public view returns (address) {
        return terra.destroyer();
    }
    
    function updateTreasuryAddress(address _treasuryAdd) external onlyOwner {
        require(_treasuryAdd != address(0), "!nonzero");
        treasuryAdd = _treasuryAdd;
        emit UpdateTreasuryAddress(msg.sender, _treasuryAdd);
    }

    function updateFeeAddress(address _feeAdd) external onlyOwner {
        require(_feeAdd != address(0), "!nonzero");
        feeAdd = _feeAdd;
        emit UpdateFeeAddress(msg.sender, _feeAdd);
    }

    function updateStartBlock(uint256 _newStartBlock) external onlyOwner {
        require(block.number < startBlock, "Farm has already started");
        require(block.number < _newStartBlock, "Cannot set time in the past");
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            PoolInfo storage pool = poolInfo[pid];
            pool.lastRewardperBlock = _newStartBlock;
        }
        startBlock = _newStartBlock;
        emit UpdateStartBlock(startBlock);
    }
}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_terra","internalType":"contract CROTerraToken"},{"type":"uint256","name":"_startBlock","internalType":"uint256"},{"type":"address","name":"_feeAdd","internalType":"address"},{"type":"address","name":"_treasuryAdd","internalType":"address"}]},{"type":"event","name":"Add","inputs":[{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"address","name":"lpToken","internalType":"address","indexed":false},{"type":"uint256","name":"allocPoint","internalType":"uint256","indexed":false},{"type":"uint16","name":"depositFeeBP","internalType":"uint16","indexed":false}],"anonymous":false},{"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":"Set","inputs":[{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"address","name":"lpToken","internalType":"address","indexed":false},{"type":"uint256","name":"allocPoint","internalType":"uint256","indexed":false},{"type":"uint16","name":"depositFeeBP","internalType":"uint16","indexed":false}],"anonymous":false},{"type":"event","name":"UpdateEmissionRate","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"terraPerBlock","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"UpdateFeeAddress","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"address","name":"newAddress","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"UpdateStartBlock","inputs":[{"type":"uint256","name":"newStartBlock","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"UpdateTreasuryAddress","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"address","name":"newAddress","internalType":"address","indexed":true}],"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":"MAX_PERBLOCK","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MIN_PERBLOCK","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"add","inputs":[{"type":"uint256","name":"_allocPoint","internalType":"uint256"},{"type":"address","name":"_lpToken","internalType":"contract IERC20"},{"type":"uint16","name":"_depositFeeBP","internalType":"uint16"},{"type":"bool","name":"_withUpdate","internalType":"bool"}]},{"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":"address","name":"","internalType":"address"}],"name":"destroyerAdd","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"emergencyWithdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"feeAdd","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getMultiplier","inputs":[{"type":"uint256","name":"_from","internalType":"uint256"},{"type":"uint256","name":"_to","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"massUpdatePools","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":"pendingTerra","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_user","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"poolExistence","inputs":[{"type":"address","name":"","internalType":"contract IERC20"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"lpToken","internalType":"contract IERC20"},{"type":"uint256","name":"allocPoint","internalType":"uint256"},{"type":"uint256","name":"lastRewardperBlock","internalType":"uint256"},{"type":"uint256","name":"accTerraPerShare","internalType":"uint256"},{"type":"uint16","name":"depositFeeBP","internalType":"uint16"},{"type":"uint256","name":"lpSupply","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":"set","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_allocPoint","internalType":"uint256"},{"type":"uint16","name":"_depositFeeBP","internalType":"uint16"},{"type":"bool","name":"_withUpdate","internalType":"bool"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"startBlock","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract CROTerraToken"}],"name":"terra","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"terraPerBlock","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":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"treasuryAdd","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateEmissionRate","inputs":[{"type":"uint256","name":"_terraPerBlock","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateFeeAddress","inputs":[{"type":"address","name":"_feeAdd","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updatePool","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateStartBlock","inputs":[{"type":"uint256","name":"_newStartBlock","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateTreasuryAddress","inputs":[{"type":"address","name":"_treasuryAdd","internalType":"address"}]},{"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"}]}]
            

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106101c45760003560e01c8063630b5ba1116100f9578063bbcaac3811610097578063e10eafb111610071578063e10eafb1146104d5578063e2bbb158146104f3578063f2fde38b1461050f578063fac2b9ba1461052b576101c4565b8063bbcaac381461046d578063cbd258b514610489578063d9638422146104b9576101c4565b80638a216ed8116100d35780638a216ed8146103d05780638da5cb5b146103ee5780638dbb1e3a1461040c57806393f1a40b1461043c576101c4565b8063630b5ba11461038e578063841e45611461039857806384e82a33146103b4576101c4565b8063441a3e70116101665780634d521be7116101405780634d521be71461031a57806351eb05a6146103385780635312ea8e14610354578063618ea1c414610370576101c4565b8063441a3e70146102b057806345ad4129146102cc57806348cd4cb1146102fc576101c4565b80631526fe27116101a25780631526fe271461022157806317caf6f11461025657806324bb1fc61461027457806333e0794214610292576101c4565b8063081e3eda146101c95780630ba84cd2146101e75780630e5f2c3214610203575b600080fd5b6101d1610547565b6040516101de9190612be6565b60405180910390f35b61020160048036038101906101fc9190612c32565b610554565b005b61020b61068d565b6040516102189190612be6565b60405180910390f35b61023b60048036038101906102369190612c32565b610697565b60405161024d96959493929190612cfb565b60405180910390f35b61025e610711565b60405161026b9190612be6565b60405180910390f35b61027c610717565b6040516102899190612d7d565b60405180910390f35b61029a61073d565b6040516102a79190612be6565b60405180910390f35b6102ca60048036038101906102c59190612d98565b610749565b005b6102e660048036038101906102e19190612e04565b6109ca565b6040516102f39190612be6565b60405180910390f35b610304610bb6565b6040516103119190612be6565b60405180910390f35b610322610bbc565b60405161032f9190612d7d565b60405180910390f35b610352600480360381019061034d9190612c32565b610be2565b005b61036e60048036038101906103699190612c32565b610fe8565b005b61037861121d565b6040516103859190612e65565b60405180910390f35b610396611241565b005b6103b260048036038101906103ad9190612e80565b611274565b005b6103ce60048036038101906103c99190612f4f565b6113fe565b005b6103d86117d5565b6040516103e59190612be6565b60405180910390f35b6103f66117db565b6040516104039190612d7d565b60405180910390f35b61042660048036038101906104219190612d98565b611804565b6040516104339190612be6565b60405180910390f35b61045660048036038101906104519190612e04565b611852565b604051610464929190612fb6565b60405180910390f35b61048760048036038101906104829190612e80565b611883565b005b6104a3600480360381019061049e9190612fdf565b611a0d565b6040516104b0919061301b565b60405180910390f35b6104d360048036038101906104ce9190613036565b611a2d565b005b6104dd611c36565b6040516104ea9190612d7d565b60405180910390f35b61050d60048036038101906105089190612d98565b611cdb565b005b61052960048036038101906105249190612e80565b6121ea565b005b61054560048036038101906105409190612c32565b6122e2565b005b6000600780549050905090565b61055c61247f565b73ffffffffffffffffffffffffffffffffffffffff1661057a6117db565b73ffffffffffffffffffffffffffffffffffffffff16146105d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105c7906130fa565b60405180910390fd5b655af3107a400081101580156105ee575067016345785d8a00008111155b61062d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062490613166565b60405180910390fd5b610635611241565b806005819055503373ffffffffffffffffffffffffffffffffffffffff167fe2492e003bbe8afa53088b406f0c1cb5d9e280370fc72a74cf116ffd343c4053826040516106829190612be6565b60405180910390a250565b655af3107a400081565b600781815481106106a757600080fd5b90600052602060002090600602016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040160009054906101000a900461ffff16908060050154905086565b60065481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b67016345785d8a000081565b6002600154141561078f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610786906131d2565b60405180910390fd5b60026001819055506000600783815481106107ad576107ac6131f2565b5b9060005260206000209060060201905060006008600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508281600001541015610858576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084f9061326d565b60405180910390fd5b61086184610be2565b60008160010154670de0b6b3a76400008460030154846000015461088591906132bc565b61088f9190613345565b6108999190613376565b905060008111156108af576108ae3382612487565b5b600084111561093e57838260000160008282546108cc9190613376565b92505081905550838360050160008282546108e79190613376565b9250508190555061093d33858560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166126e89092919063ffffffff16565b5b670de0b6b3a76400008360030154836000015461095b91906132bc565b6109659190613345565b8260010181905550843373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568866040516109b49190612be6565b60405180910390a3505050600180819055505050565b600080600784815481106109e1576109e06131f2565b5b9060005260206000209060060201905060006008600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600082600301549050826002015443118015610a6657506000836005015414155b8015610a7457506000600654115b15610b79576000610a89846002015443611804565b90506000600654856001015460055484610aa391906132bc565b610aad91906132bc565b610ab79190613345565b90506000606e82610ac89190613345565b90507f0000000000000000000000000000000000000000000000a2a15d09519be00000610af361276e565b8284610aff91906133aa565b610b0991906133aa565b1115610b4557610b1761276e565b7f0000000000000000000000000000000000000000000000a2a15d09519be00000610b429190613376565b91505b8560050154670de0b6b3a764000083610b5e91906132bc565b610b689190613345565b84610b7391906133aa565b93505050505b8160010154670de0b6b3a7640000828460000154610b9791906132bc565b610ba19190613345565b610bab9190613376565b935050505092915050565b60025481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060078281548110610bf857610bf76131f2565b5b9060005260206000209060060201905080600201544311610c195750610fe5565b6000610c29826002015443611804565b9050600082600501541480610c42575060008260010154145b80610c4d5750600081145b15610c62574382600201819055505050610fe5565b6000600654836001015460055484610c7a91906132bc565b610c8491906132bc565b610c8e9190613345565b90506000606482610c9f9190613345565b90506000600a83610cb09190613345565b90507f0000000000000000000000000000000000000000000000a2a15d09519be00000818385610cde61276e565b610ce891906133aa565b610cf291906133aa565b610cfc91906133aa565b11610ed6577f00000000000000000000000074f53e67d68a348611979e3012edf9781c43752973ffffffffffffffffffffffffffffffffffffffff166340c10f19600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518363ffffffff1660e01b8152600401610d7e929190613400565b600060405180830381600087803b158015610d9857600080fd5b505af1158015610dac573d6000803e3d6000fd5b505050507f00000000000000000000000074f53e67d68a348611979e3012edf9781c43752973ffffffffffffffffffffffffffffffffffffffff166340c10f19610df4611c36565b836040518363ffffffff1660e01b8152600401610e12929190613400565b600060405180830381600087803b158015610e2c57600080fd5b505af1158015610e40573d6000803e3d6000fd5b505050507f00000000000000000000000074f53e67d68a348611979e3012edf9781c43752973ffffffffffffffffffffffffffffffffffffffff166340c10f1930856040518363ffffffff1660e01b8152600401610e9f929190613400565b600060405180830381600087803b158015610eb957600080fd5b505af1158015610ecd573d6000803e3d6000fd5b50505050610f99565b610ede61276e565b7f0000000000000000000000000000000000000000000000a2a15d09519be00000610f099190613376565b92507f00000000000000000000000074f53e67d68a348611979e3012edf9781c43752973ffffffffffffffffffffffffffffffffffffffff166340c10f1930856040518363ffffffff1660e01b8152600401610f66929190613400565b600060405180830381600087803b158015610f8057600080fd5b505af1158015610f94573d6000803e3d6000fd5b505050505b8460050154670de0b6b3a764000084610fb291906132bc565b610fbc9190613345565b856003016000828254610fcf91906133aa565b9250508190555043856002018190555050505050505b50565b6002600154141561102e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611025906131d2565b60405180910390fd5b600260018190555060006007828154811061104c5761104b6131f2565b5b9060005260206000209060060201905060006008600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600081600001549050600081116110fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f390613475565b60405180910390fd5b8083600501541015611143576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113a90613507565b60405180910390fd5b60008260000181905550600082600101819055508083600501600082825461116b9190613376565b925050819055506111c133828560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166126e89092919063ffffffff16565b833373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595836040516112089190612be6565b60405180910390a35050506001808190555050565b7f00000000000000000000000074f53e67d68a348611979e3012edf9781c43752981565b6000600780549050905060005b818110156112705761125f81610be2565b8061126990613527565b905061124e565b5050565b61127c61247f565b73ffffffffffffffffffffffffffffffffffffffff1661129a6117db565b73ffffffffffffffffffffffffffffffffffffffff16146112f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e7906130fa565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611360576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611357906135bc565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f5634a90413b79beba6c5f37aa8f19d1aee84a5320ff20ac7bd1ac63280867d5c60405160405180910390a350565b61140661247f565b73ffffffffffffffffffffffffffffffffffffffff166114246117db565b73ffffffffffffffffffffffffffffffffffffffff161461147a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611471906130fa565b60405180910390fd5b8260001515600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151461150e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150590613628565b60405180910390fd5b6101908361ffff161115611557576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154e906136ba565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016115909190612d7d565b60206040518083038186803b1580156115a857600080fd5b505afa1580156115bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e091906136ef565b5081156115f0576115ef611241565b5b6000600254431161160357600254611605565b435b9050856006600082825461161991906133aa565b925050819055506001600960008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060076040518060c001604052808773ffffffffffffffffffffffffffffffffffffffff168152602001888152602001838152602001600081526020018661ffff1681526020016000815250908060018154018082558091505060019003906000526020600020906006020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548161ffff021916908361ffff16021790555060a08201518160050155505060016007805490506117929190613376565b7fe3dca48aba682ddc13d8f02ad9bf5fef0d2e71897c32507dd299954b7bee6cac8688876040516117c59392919061371c565b60405180910390a2505050505050565b60055481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60007f0000000000000000000000000000000000000000000000a2a15d09519be0000061182f61276e565b1061183d576000905061184c565b82826118499190613376565b90505b92915050565b6008602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b61188b61247f565b73ffffffffffffffffffffffffffffffffffffffff166118a96117db565b73ffffffffffffffffffffffffffffffffffffffff16146118ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f6906130fa565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561196f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611966906135bc565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f902851878f378b5ada06366b0ecb192abf50a68836fd2862d2bc551c174a6f8a60405160405180910390a350565b60096020528060005260406000206000915054906101000a900460ff1681565b611a3561247f565b73ffffffffffffffffffffffffffffffffffffffff16611a536117db565b73ffffffffffffffffffffffffffffffffffffffff1614611aa9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa0906130fa565b60405180910390fd5b6101908261ffff161115611af2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae9906137c5565b60405180910390fd5b8015611b0157611b00611241565b5b8260078581548110611b1657611b156131f2565b5b906000526020600020906006020160010154600654611b359190613376565b611b3f91906133aa565b6006819055508260078581548110611b5a57611b596131f2565b5b9060005260206000209060060201600101819055508160078581548110611b8457611b836131f2565b5b906000526020600020906006020160040160006101000a81548161ffff021916908361ffff160217905550837fabffcfffdbce9b6a74433ae1bb79897794bf3b7a21595e8b0aaf766e3afc67ba60078681548110611be557611be46131f2565b5b906000526020600020906006020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168585604051611c289392919061371c565b60405180910390a250505050565b60007f00000000000000000000000074f53e67d68a348611979e3012edf9781c43752973ffffffffffffffffffffffffffffffffffffffff166311367b266040518163ffffffff1660e01b815260040160206040518083038186803b158015611c9e57600080fd5b505afa158015611cb2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cd691906137fa565b905090565b60026001541415611d21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d18906131d2565b60405180910390fd5b6002600181905550600060078381548110611d3f57611d3e6131f2565b5b9060005260206000209060060201905060006008600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050611dac84610be2565b600081600001541115611e095760008160010154670de0b6b3a764000084600301548460000154611ddd91906132bc565b611de79190613345565b611df19190613376565b90506000811115611e0757611e063382612487565b5b505b600083111561215f5760008260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611e719190612d7d565b60206040518083038186803b158015611e8957600080fd5b505afa158015611e9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ec191906136ef565b9050611f143330868660000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612813909392919063ffffffff16565b808360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611f729190612d7d565b60206040518083038186803b158015611f8a57600080fd5b505afa158015611f9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc291906136ef565b611fcc9190613376565b935060008411612011576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200890613899565b60405180910390fd5b60008360040160009054906101000a900461ffff1661ffff1611156121265760006127108460040160009054906101000a900461ffff1661ffff168661205791906132bc565b6120619190613345565b90506120d4600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828660000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166126e89092919063ffffffff16565b80856120e09190613376565b8360000160008282546120f391906133aa565b9250508190555080856121069190613376565b84600501600082825461211991906133aa565b925050819055505061215d565b8382600001600082825461213a91906133aa565b925050819055508383600501600082825461215591906133aa565b925050819055505b505b670de0b6b3a76400008260030154826000015461217c91906132bc565b6121869190613345565b8160010181905550833373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15856040516121d59190612be6565b60405180910390a35050600180819055505050565b6121f261247f565b73ffffffffffffffffffffffffffffffffffffffff166122106117db565b73ffffffffffffffffffffffffffffffffffffffff1614612266576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225d906130fa565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156122d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122cd9061392b565b60405180910390fd5b6122df8161289c565b50565b6122ea61247f565b73ffffffffffffffffffffffffffffffffffffffff166123086117db565b73ffffffffffffffffffffffffffffffffffffffff161461235e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612355906130fa565b60405180910390fd5b60025443106123a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239990613997565b60405180910390fd5b8043106123e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123db90613a03565b60405180910390fd5b6000600780549050905060005b8181101561243a5760006007828154811061240f5761240e6131f2565b5b90600052602060002090600602019050838160020181905550508061243390613527565b90506123f1565b50816002819055507f1ff2238e284780b094bb341b41af7e6ce294dee1da3799ae49cd0e29fbe127096002546040516124739190612be6565b60405180910390a15050565b600033905090565b60007f00000000000000000000000074f53e67d68a348611979e3012edf9781c43752973ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016124e29190612d7d565b60206040518083038186803b1580156124fa57600080fd5b505afa15801561250e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061253291906136ef565b90506000818311156125f2577f00000000000000000000000074f53e67d68a348611979e3012edf9781c43752973ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85846040518363ffffffff1660e01b8152600401612599929190613400565b602060405180830381600087803b1580156125b357600080fd5b505af11580156125c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125eb9190613a38565b90506126a2565b7f00000000000000000000000074f53e67d68a348611979e3012edf9781c43752973ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040518363ffffffff1660e01b815260040161264d929190613400565b602060405180830381600087803b15801561266757600080fd5b505af115801561267b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061269f9190613a38565b90505b806126e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d990613ad7565b60405180910390fd5b50505050565b6127698363a9059cbb60e01b8484604051602401612707929190613400565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612960565b505050565b60007f00000000000000000000000074f53e67d68a348611979e3012edf9781c43752973ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156127d657600080fd5b505afa1580156127ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061280e91906136ef565b905090565b612896846323b872dd60e01b85858560405160240161283493929190613af7565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612960565b50505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006129c2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612a279092919063ffffffff16565b9050600081511115612a2257808060200190518101906129e29190613a38565b612a21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1890613ba0565b60405180910390fd5b5b505050565b6060612a368484600085612a3f565b90509392505050565b606082471015612a84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7b90613c32565b60405180910390fd5b612a8d85612b53565b612acc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ac390613c9e565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612af59190613d38565b60006040518083038185875af1925050503d8060008114612b32576040519150601f19603f3d011682016040523d82523d6000602084013e612b37565b606091505b5091509150612b47828286612b66565b92505050949350505050565b600080823b905060008111915050919050565b60608315612b7657829050612bc6565b600083511115612b895782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bbd9190613da4565b60405180910390fd5b9392505050565b6000819050919050565b612be081612bcd565b82525050565b6000602082019050612bfb6000830184612bd7565b92915050565b600080fd5b612c0f81612bcd565b8114612c1a57600080fd5b50565b600081359050612c2c81612c06565b92915050565b600060208284031215612c4857612c47612c01565b5b6000612c5684828501612c1d565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000612ca4612c9f612c9a84612c5f565b612c7f565b612c5f565b9050919050565b6000612cb682612c89565b9050919050565b6000612cc882612cab565b9050919050565b612cd881612cbd565b82525050565b600061ffff82169050919050565b612cf581612cde565b82525050565b600060c082019050612d106000830189612ccf565b612d1d6020830188612bd7565b612d2a6040830187612bd7565b612d376060830186612bd7565b612d446080830185612cec565b612d5160a0830184612bd7565b979650505050505050565b6000612d6782612c5f565b9050919050565b612d7781612d5c565b82525050565b6000602082019050612d926000830184612d6e565b92915050565b60008060408385031215612daf57612dae612c01565b5b6000612dbd85828601612c1d565b9250506020612dce85828601612c1d565b9150509250929050565b612de181612d5c565b8114612dec57600080fd5b50565b600081359050612dfe81612dd8565b92915050565b60008060408385031215612e1b57612e1a612c01565b5b6000612e2985828601612c1d565b9250506020612e3a85828601612def565b9150509250929050565b6000612e4f82612cab565b9050919050565b612e5f81612e44565b82525050565b6000602082019050612e7a6000830184612e56565b92915050565b600060208284031215612e9657612e95612c01565b5b6000612ea484828501612def565b91505092915050565b6000612eb882612d5c565b9050919050565b612ec881612ead565b8114612ed357600080fd5b50565b600081359050612ee581612ebf565b92915050565b612ef481612cde565b8114612eff57600080fd5b50565b600081359050612f1181612eeb565b92915050565b60008115159050919050565b612f2c81612f17565b8114612f3757600080fd5b50565b600081359050612f4981612f23565b92915050565b60008060008060808587031215612f6957612f68612c01565b5b6000612f7787828801612c1d565b9450506020612f8887828801612ed6565b9350506040612f9987828801612f02565b9250506060612faa87828801612f3a565b91505092959194509250565b6000604082019050612fcb6000830185612bd7565b612fd86020830184612bd7565b9392505050565b600060208284031215612ff557612ff4612c01565b5b600061300384828501612ed6565b91505092915050565b61301581612f17565b82525050565b6000602082019050613030600083018461300c565b92915050565b600080600080608085870312156130505761304f612c01565b5b600061305e87828801612c1d565b945050602061306f87828801612c1d565b935050604061308087828801612f02565b925050606061309187828801612f3a565b91505092959194509250565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006130e460208361309d565b91506130ef826130ae565b602082019050919050565b60006020820190508181036000830152613113816130d7565b9050919050565b7f42616420456d697373696f6e7320706572207365636f6e640000000000000000600082015250565b600061315060188361309d565b915061315b8261311a565b602082019050919050565b6000602082019050818103600083015261317f81613143565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006131bc601f8361309d565b91506131c782613186565b602082019050919050565b600060208201905081810360008301526131eb816131af565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f57697468647261773a206e6f7420676f6f640000000000000000000000000000600082015250565b600061325760128361309d565b915061326282613221565b602082019050919050565b600060208201905081810360008301526132868161324a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006132c782612bcd565b91506132d283612bcd565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561330b5761330a61328d565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061335082612bcd565b915061335b83612bcd565b92508261336b5761336a613316565b5b828204905092915050565b600061338182612bcd565b915061338c83612bcd565b92508282101561339f5761339e61328d565b5b828203905092915050565b60006133b582612bcd565b91506133c083612bcd565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156133f5576133f461328d565b5b828201905092915050565b60006040820190506134156000830185612d6e565b6134226020830184612bd7565b9392505050565b7f656d657267656e637957697468647261773a204e4f20616d6f756e7400000000600082015250565b600061345f601c8361309d565b915061346a82613429565b602082019050919050565b6000602082019050818103600083015261348e81613452565b9050919050565b7f656d657267656e637957697468647261773a20506f6f6c2062616c616e63652060008201527f6e6f7420656e6f75676800000000000000000000000000000000000000000000602082015250565b60006134f1602a8361309d565b91506134fc82613495565b604082019050919050565b60006020820190508181036000830152613520816134e4565b9050919050565b600061353282612bcd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156135655761356461328d565b5b600182019050919050565b7f216e6f6e7a65726f000000000000000000000000000000000000000000000000600082015250565b60006135a660088361309d565b91506135b182613570565b602082019050919050565b600060208201905081810360008301526135d581613599565b9050919050565b7f6e6f6e4475706c6963617465643a206475706c69636174656400000000000000600082015250565b600061361260198361309d565b915061361d826135dc565b602082019050919050565b6000602082019050818103600083015261364181613605565b9050919050565b7f6164643a20696e76616c6964206465706f73697420666565206261736973207060008201527f6f696e7473000000000000000000000000000000000000000000000000000000602082015250565b60006136a460258361309d565b91506136af82613648565b604082019050919050565b600060208201905081810360008301526136d381613697565b9050919050565b6000815190506136e981612c06565b92915050565b60006020828403121561370557613704612c01565b5b6000613713848285016136da565b91505092915050565b60006060820190506137316000830186612d6e565b61373e6020830185612bd7565b61374b6040830184612cec565b949350505050565b7f7365743a20696e76616c6964206465706f73697420666565206261736973207060008201527f6f696e7473000000000000000000000000000000000000000000000000000000602082015250565b60006137af60258361309d565b91506137ba82613753565b604082019050919050565b600060208201905081810360008301526137de816137a2565b9050919050565b6000815190506137f481612dd8565b92915050565b6000602082840312156138105761380f612c01565b5b600061381e848285016137e5565b91505092915050565b7f576520646f6e7420616363657074206465706f73697473206f6620302073697a60008201527f6500000000000000000000000000000000000000000000000000000000000000602082015250565b600061388360218361309d565b915061388e82613827565b604082019050919050565b600060208201905081810360008301526138b281613876565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061391560268361309d565b9150613920826138b9565b604082019050919050565b6000602082019050818103600083015261394481613908565b9050919050565b7f4661726d2068617320616c726561647920737461727465640000000000000000600082015250565b600061398160188361309d565b915061398c8261394b565b602082019050919050565b600060208201905081810360008301526139b081613974565b9050919050565b7f43616e6e6f74207365742074696d6520696e2074686520706173740000000000600082015250565b60006139ed601b8361309d565b91506139f8826139b7565b602082019050919050565b60006020820190508181036000830152613a1c816139e0565b9050919050565b600081519050613a3281612f23565b92915050565b600060208284031215613a4e57613a4d612c01565b5b6000613a5c84828501613a23565b91505092915050565b7f7361666554657272615472616e736665723a205472616e73666572206661696c60008201527f6564000000000000000000000000000000000000000000000000000000000000602082015250565b6000613ac160228361309d565b9150613acc82613a65565b604082019050919050565b60006020820190508181036000830152613af081613ab4565b9050919050565b6000606082019050613b0c6000830186612d6e565b613b196020830185612d6e565b613b266040830184612bd7565b949350505050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000613b8a602a8361309d565b9150613b9582613b2e565b604082019050919050565b60006020820190508181036000830152613bb981613b7d565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000613c1c60268361309d565b9150613c2782613bc0565b604082019050919050565b60006020820190508181036000830152613c4b81613c0f565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613c88601d8361309d565b9150613c9382613c52565b602082019050919050565b60006020820190508181036000830152613cb781613c7b565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015613cf2578082015181840152602081019050613cd7565b83811115613d01576000848401525b50505050565b6000613d1282613cbe565b613d1c8185613cc9565b9350613d2c818560208601613cd4565b80840191505092915050565b6000613d448284613d07565b915081905092915050565b600081519050919050565b6000601f19601f8301169050919050565b6000613d7682613d4f565b613d80818561309d565b9350613d90818560208601613cd4565b613d9981613d5a565b840191505092915050565b60006020820190508181036000830152613dbe8184613d6b565b90509291505056fea26469706673582212208674c4d3e2019673059f1245e5839f38e4716f276b872fbb6a8c4af169a25b1f64736f6c63430008090033