Contract Address Details
0xf7b1150cb31488bde3eB3201e0FDF1Bd54799712
- Contract Name
- YodeChef
- Creator
- 0x2a2e34–e9db6f at 0x1c94d5–4f7960
- Balance
- 0 Doge
- Tokens
-
Fetching tokens...
- Transactions
- 37,071 Transactions
- Transfers
- 198,525 Transfers
- Gas Used
- 6,067,749,288
- Last Balance Update
- 26297315
Transactions
Token Transfers
Tokens
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
- Contract name:
- YodeChef
- Optimization enabled
- true
- Compiler version
- v0.8.16+commit.07a7930e
- Optimization runs
- 999999
- EVM Version
- default
- Verified at
- 2022-08-20T18:54:10.177688Z
Constructor Arguments
0000000000000000000000006fc4563460d5f45932c473334d5c1c5b4aea0e010000000000000000000000000000000000000000000000000403fbf9eb99d7000000000000000000000000002816ac29a2240f8cb5ee602d55ade39e10e5ed2b0000000000000000000000000000000000000000000000000000000000000064
Arg [0] (address) : 0x6fc4563460d5f45932c473334d5c1c5b4aea0e01
Arg [1] (uint256) : 289351851900000000
Arg [2] (address) : 0x2816ac29a2240f8cb5ee602d55ade39e10e5ed2b
Arg [3] (uint256) : 100
Contract source code
// File @openzeppelin/contracts/token/ERC20/IERC20.sol@v4.5.0 // SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, 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 ); } // File @openzeppelin/contracts/utils/Address.sol@v4.5.0 // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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); } } } } // File @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol@v4.5.0 // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; /** * @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" ); } } } // File @openzeppelin/contracts/utils/Context.sol@v4.5.0 // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File @openzeppelin/contracts/access/Ownable.sol@v4.5.0 // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require( newOwner != address(0), "Ownable: new owner is the zero address" ); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File @openzeppelin/contracts/security/ReentrancyGuard.sol@v4.5.0 // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File @openzeppelin/contracts/utils/math/SafeMath.sol@v4.5.0 // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // 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 (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @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) { return a + b; } /** * @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 a - b; } /** * @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) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting 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 a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting 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) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * 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) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File contracts/yield-farm/libraries/IBoringERC20.sol pragma solidity 0.8.16; interface IBoringERC20 { function mint(address to, uint256 amount) external; function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); event Approval( address indexed owner, address indexed spender, uint256 value ); /// @notice EIP 2612 function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; } // File contracts/yield-farm/libraries/BoringERC20.sol pragma solidity 0.8.16; // solhint-disable avoid-low-level-calls library BoringERC20 { bytes4 private constant SIG_SYMBOL = 0x95d89b41; // symbol() bytes4 private constant SIG_NAME = 0x06fdde03; // name() bytes4 private constant SIG_DECIMALS = 0x313ce567; // decimals() bytes4 private constant SIG_TRANSFER = 0xa9059cbb; // transfer(address,uint256) bytes4 private constant SIG_TRANSFER_FROM = 0x23b872dd; // transferFrom(address,address,uint256) function returnDataToString(bytes memory data) internal pure returns (string memory) { if (data.length >= 64) { return abi.decode(data, (string)); } else if (data.length == 32) { uint8 i = 0; while (i < 32 && data[i] != 0) { i++; } bytes memory bytesArray = new bytes(i); for (i = 0; i < 32 && data[i] != 0; i++) { bytesArray[i] = data[i]; } return string(bytesArray); } else { return "???"; } } /// @notice Provides a safe ERC20.symbol version which returns '???' as fallback string. /// @param token The address of the ERC-20 token contract. /// @return (string) Token symbol. function safeSymbol(IBoringERC20 token) internal view returns (string memory) { (bool success, bytes memory data) = address(token).staticcall( abi.encodeWithSelector(SIG_SYMBOL) ); return success ? returnDataToString(data) : "???"; } /// @notice Provides a safe ERC20.name version which returns '???' as fallback string. /// @param token The address of the ERC-20 token contract. /// @return (string) Token name. function safeName(IBoringERC20 token) internal view returns (string memory) { (bool success, bytes memory data) = address(token).staticcall( abi.encodeWithSelector(SIG_NAME) ); return success ? returnDataToString(data) : "???"; } /// @notice Provides a safe ERC20.decimals version which returns '18' as fallback value. /// @param token The address of the ERC-20 token contract. /// @return (uint8) Token decimals. function safeDecimals(IBoringERC20 token) internal view returns (uint8) { (bool success, bytes memory data) = address(token).staticcall( abi.encodeWithSelector(SIG_DECIMALS) ); return success && data.length == 32 ? abi.decode(data, (uint8)) : 18; } /// @notice Provides a safe ERC20.transfer version for different ERC-20 implementations. /// Reverts on a failed transfer. /// @param token The address of the ERC-20 token. /// @param to Transfer tokens to. /// @param amount The token amount. function safeTransfer( IBoringERC20 token, address to, uint256 amount ) internal { (bool success, bytes memory data) = address(token).call( abi.encodeWithSelector(SIG_TRANSFER, to, amount) ); require( success && (data.length == 0 || abi.decode(data, (bool))), "BoringERC20: Transfer failed" ); } /// @notice Provides a safe ERC20.transferFrom version for different ERC-20 implementations. /// Reverts on a failed transfer. /// @param token The address of the ERC-20 token. /// @param from Transfer tokens from. /// @param to Transfer tokens to. /// @param amount The token amount. function safeTransferFrom( IBoringERC20 token, address from, address to, uint256 amount ) internal { (bool success, bytes memory data) = address(token).call( abi.encodeWithSelector(SIG_TRANSFER_FROM, from, to, amount) ); require( success && (data.length == 0 || abi.decode(data, (bool))), "BoringERC20: TransferFrom failed" ); } } // File contracts/yield-farm/IYodedexPair.sol pragma solidity 0.8.16; interface IYodedexPair { function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; function initialize(address, address) external; } // File contracts/yield-farm/YodeChef.sol pragma solidity ^0.8.0; contract YodeChef is Ownable, ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; using BoringERC20 for IBoringERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. uint256 rewardLockedUp; // Reward locked up. uint256 nextHarvestUntil; // When can the user harvest again. } // Info of each pool. struct PoolInfo { IERC20 lpToken; // Address of LP token contract. uint256 allocPoint; // How many allocation points assigned to this pool. Yode to distribute per block. uint256 lastRewardBlock; // Last block number that Yode distribution occurs. uint256 accYodePerShare; // Accumulated Yode per share, times 1e12. See below. uint16 depositFeeBP; // Deposit fee in basis points uint256 harvestInterval; // Harvest interval in seconds uint256 totalLp; // Total token in Pool } IBoringERC20 public yode; // The operator can only update EmissionRate and AllocPoint to protect tokenomics //i.e some wrong setting and a pools get too much allocation accidentally address private _operator; // Yode tokens created per block uint256 public yodePerBlock; // Max harvest interval: 90 days uint256 public constant MAXIMUM_HARVEST_INTERVAL = 90 days; // Maximum deposit fee rate: 10% uint16 public constant MAXIMUM_DEPOSIT_FEE_RATE = 1000; // Info of each pool PoolInfo[] public poolInfo; // Info of each user that stakes LP tokens. mapping(uint256 => mapping(address => UserInfo)) public userInfo; // Total allocation points. Must be the sum of all allocation points in all pools. uint256 public totalAllocPoint = 0; // The block number when Yode mining starts. uint256 public startBlock; // Total locked up rewards uint256 public totalLockedUpRewards; // Total Yode in Yode Pools (can be multiple pools) uint256 public totalYodeInPools = 0; // Control support for EIP-2771 Meta Transactions bool public metaTxnsEnabled = false; // Team address. address public marketingAddress; // Percentage of pool rewards that goto the team. uint256 public marketingPercent; 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 EmissionRateUpdated( address indexed caller, uint256 previousAmount, uint256 newAmount ); event RewardLockedUp( address indexed user, uint256 indexed pid, uint256 amountLockedUp ); event OperatorTransferred( address indexed previousOperator, address indexed newOperator ); event AllocPointsUpdated( address indexed caller, uint256 previousAmount, uint256 newAmount ); event MetaTxnsEnabled(address indexed caller); event MetaTxnsDisabled(address indexed caller); event SetmarketingAddress( address indexed oldAddress, address indexed newAddress ); event SetmarketingPercent(uint256 oldPercent, uint256 newPercent); modifier validatePoolByPid(uint256 _pid) { require(_pid < poolInfo.length, "Pool does not exist"); _; } modifier onlyOperator() { require( _operator == msg.sender, "Operator: caller is not the operator" ); _; } constructor( IBoringERC20 _yode, uint256 _yodePerBlock, address _marketingAddress, uint256 _marketingPercent ) { require( 0 <= _marketingPercent && _marketingPercent <= 100, "constructor: invalid team percent value" ); //StartBlock always many years later from contract construct, will be set later in StartFarming function startBlock = block.number + (10 * 365 * 24 * 60 * 60); yode = _yode; yodePerBlock = _yodePerBlock; marketingAddress = _marketingAddress; marketingPercent = _marketingPercent; _operator = msg.sender; emit OperatorTransferred(address(0), _operator); } function operator() public view returns (address) { return _operator; } // Return reward multiplier over the given _from to _to block. function getMultiplier(uint256 _from, uint256 _to) public pure returns (uint256) { return _to.sub(_from); } function transferOperator(address newOperator) public onlyOperator { require( newOperator != address(0), "TransferOperator: new operator is the zero address" ); emit OperatorTransferred(_operator, newOperator); _operator = newOperator; } // Set farming start, can call only once function startFarming() public onlyOwner { require(block.number < startBlock, "Error::Farm started already"); uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { PoolInfo storage pool = poolInfo[pid]; pool.lastRewardBlock = block.number; } startBlock = block.number; } function poolLength() external view returns (uint256) { return poolInfo.length; } // Add a new lp to the pool. Can only be called by the owner. // Can add multiple pool with same lp token without messing up rewards, because each pool's balance is tracked using its own totalLp function add( uint256 _allocPoint, IERC20 _lpToken, uint16 _depositFeeBP, uint256 _harvestInterval, bool _withUpdate ) public onlyOwner { require( _depositFeeBP <= MAXIMUM_DEPOSIT_FEE_RATE, "add: deposit fee too high" ); require( _harvestInterval <= MAXIMUM_HARVEST_INTERVAL, "add: invalid harvest interval" ); if (_withUpdate) { massUpdatePools(); } uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock; totalAllocPoint = totalAllocPoint.add(_allocPoint); poolInfo.push( PoolInfo({ lpToken: _lpToken, allocPoint: _allocPoint, lastRewardBlock: lastRewardBlock, accYodePerShare: 0, depositFeeBP: _depositFeeBP, harvestInterval: _harvestInterval, totalLp: 0 }) ); } // Update the given pool's Yode allocation point and deposit fee. Can only be called by the owner. function set( uint256 _pid, uint256 _allocPoint, uint16 _depositFeeBP, uint256 _harvestInterval, bool _withUpdate ) public onlyOwner { require( _depositFeeBP <= MAXIMUM_DEPOSIT_FEE_RATE, "set: deposit fee too high" ); require( _harvestInterval <= MAXIMUM_HARVEST_INTERVAL, "set: invalid harvest interval" ); if (_withUpdate) { massUpdatePools(); } totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add( _allocPoint ); poolInfo[_pid].allocPoint = _allocPoint; poolInfo[_pid].depositFeeBP = _depositFeeBP; poolInfo[_pid].harvestInterval = _harvestInterval; } // View function to see pending Yode on frontend. function pendingYode(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accYodePerShare = pool.accYodePerShare; uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (block.number > pool.lastRewardBlock && lpSupply != 0) { uint256 multiplier = getMultiplier( pool.lastRewardBlock, block.number ); uint256 yodeReward = multiplier .mul(yodePerBlock) .mul(pool.allocPoint) .div(totalAllocPoint); accYodePerShare = accYodePerShare.add( yodeReward.mul(1e12).div(lpSupply) ); } uint256 pending = user.amount.mul(accYodePerShare).div(1e12).sub( user.rewardDebt ); return pending.add(user.rewardLockedUp); } // View function to see if user can harvest Yode. function canHarvest(uint256 _pid, address _user) public view returns (bool) { UserInfo storage user = userInfo[_pid][_user]; return block.number >= startBlock && block.timestamp >= user.nextHarvestUntil; } // 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); } } // Update reward variables of the given pool to be up-to-date. function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.number <= pool.lastRewardBlock) { return; } uint256 lpSupply = pool.totalLp; if (lpSupply == 0 || pool.allocPoint == 0) { pool.lastRewardBlock = block.number; return; } uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number); uint256 yodeReward = multiplier .mul(yodePerBlock) .mul(pool.allocPoint) .div(totalAllocPoint); uint256 lpPercent = 1000 - marketingPercent; yode.mint(marketingAddress, (yodeReward * marketingPercent) / 1000); yode.mint(address(this), (yodeReward * lpPercent) / 1000); pool.accYodePerShare = pool.accYodePerShare + (((yodeReward * 1e12) / pool.totalLp) * lpPercent) / 1000; pool.lastRewardBlock = block.number; } function depositWithPermit( uint256 pid, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public nonReentrant validatePoolByPid(pid) { PoolInfo storage pool = poolInfo[pid]; IYodedexPair pair = IYodedexPair(address(pool.lpToken)); pair.permit(msg.sender, address(this), amount, deadline, v, r, s); deposit(pid, amount); } // Deposit LP tokens to MasterChef for Yode allocation. function deposit(uint256 _pid, uint256 _amount) public nonReentrant { require( block.number >= startBlock, "YodedexChef: Can not deposit before start" ); PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; updatePool(_pid); payOrLockupPendingYode(_pid); if (_amount > 0) { uint256 beforeDeposit = pool.lpToken.balanceOf(address(this)); pool.lpToken.safeTransferFrom(msg.sender, address(this), _amount); uint256 afterDeposit = pool.lpToken.balanceOf(address(this)); _amount = afterDeposit.sub(beforeDeposit); if (pool.depositFeeBP > 0) { uint256 depositFee = _amount.mul(pool.depositFeeBP).div(10000); pool.lpToken.safeTransfer(marketingAddress, depositFee); _amount = _amount.sub(depositFee); } user.amount = user.amount.add(_amount); pool.totalLp = pool.totalLp.add(_amount); if (address(pool.lpToken) == address(yode)) { totalYodeInPools = totalYodeInPools.add(_amount); } } user.rewardDebt = user.amount.mul(pool.accYodePerShare).div(1e12); emit Deposit(msg.sender, _pid, _amount); } // Withdraw tokens function withdraw(uint256 _pid, uint256 _amount) public nonReentrant { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; //this will make sure that user can only withdraw from his pool require(user.amount >= _amount, "Withdraw: User amount not enough"); //Cannot withdraw more than pool's balance require(pool.totalLp >= _amount, "Withdraw: Pool total not enough"); updatePool(_pid); payOrLockupPendingYode(_pid); if (_amount > 0) { user.amount = user.amount.sub(_amount); pool.totalLp = pool.totalLp.sub(_amount); if (address(pool.lpToken) == address(yode)) { totalYodeInPools = totalYodeInPools.sub(_amount); } pool.lpToken.safeTransfer(msg.sender, _amount); } user.rewardDebt = user.amount.mul(pool.accYodePerShare).div(1e12); emit Withdraw(msg.sender, _pid, _amount); } // Withdraw without caring about rewards. EMERGENCY ONLY. function emergencyWithdraw(uint256 _pid) public nonReentrant { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; uint256 amount = user.amount; //Cannot withdraw more than pool's balance require( pool.totalLp >= amount, "EmergencyWithdraw: Pool total not enough" ); user.amount = 0; user.rewardDebt = 0; user.rewardLockedUp = 0; user.nextHarvestUntil = 0; pool.totalLp = pool.totalLp.sub(amount); if (address(pool.lpToken) == address(yode)) { totalYodeInPools = totalYodeInPools.sub(amount); } pool.lpToken.safeTransfer(msg.sender, amount); emit EmergencyWithdraw(msg.sender, _pid, amount); } // Pay or lockup pending Yode. function payOrLockupPendingYode(uint256 _pid) internal { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; if (user.nextHarvestUntil == 0 && block.number >= startBlock) { user.nextHarvestUntil = block.timestamp.add(pool.harvestInterval); } uint256 pending = user.amount.mul(pool.accYodePerShare).div(1e12).sub( user.rewardDebt ); if (canHarvest(_pid, msg.sender)) { if (pending > 0 || user.rewardLockedUp > 0) { uint256 totalRewards = pending.add(user.rewardLockedUp); // reset lockup totalLockedUpRewards = totalLockedUpRewards.sub( user.rewardLockedUp ); user.rewardLockedUp = 0; user.nextHarvestUntil = block.timestamp.add( pool.harvestInterval ); // send rewards safeYodeTransfer(msg.sender, totalRewards); } } else if (pending > 0) { user.rewardLockedUp = user.rewardLockedUp.add(pending); totalLockedUpRewards = totalLockedUpRewards.add(pending); emit RewardLockedUp(msg.sender, _pid, pending); } } // Safe Yode transfer function, just in case if rounding error causes pool do not have enough Yode. function safeYodeTransfer(address _to, uint256 _amount) internal { if (yode.balanceOf(address(this)) > totalYodeInPools) { //YodeBal = total Yode in YodedexChef - total Yode in Yode pools, this will make sure that YodedexChef never transfer rewards from deposited Yode pools uint256 YodeBal = yode.balanceOf(address(this)).sub( totalYodeInPools ); if (_amount >= YodeBal) { yode.safeTransfer(_to, YodeBal); } else if (_amount > 0) { yode.safeTransfer(_to, _amount); } } } // Pancake has to add hidden dummy pools in order to alter the emission, here we make it simple and transparent to all. function updateEmissionRate(uint256 _yodePerBlock) public onlyOperator { massUpdatePools(); emit EmissionRateUpdated(msg.sender, yodePerBlock, _yodePerBlock); yodePerBlock = _yodePerBlock; } function updateAllocPoint( uint256 _pid, uint256 _allocPoint, bool _withUpdate ) public onlyOperator { if (_withUpdate) { massUpdatePools(); } emit AllocPointsUpdated( msg.sender, poolInfo[_pid].allocPoint, _allocPoint ); totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add( _allocPoint ); poolInfo[_pid].allocPoint = _allocPoint; } // Function to harvest many pools in a single transaction function harvestMany(uint256[] calldata _pids) public { for (uint256 index = 0; index < _pids.length; ++index) { deposit(_pids[index], 0); } } // Update team address by the previous team address. function setmarketingAddress(address _marketingAddress) public { require( msg.sender == marketingAddress, "set team address: only previous team address can call this method" ); marketingAddress = _marketingAddress; emit SetmarketingAddress(msg.sender, _marketingAddress); } function setmarketingPercent(uint256 _newmarketingPercent) public onlyOwner { require( 0 <= _newmarketingPercent && _newmarketingPercent <= 100, "set team percent: invalid percent value" ); require( _newmarketingPercent <= 100, "set team percent: total percent over max" ); emit SetmarketingPercent(marketingPercent, _newmarketingPercent); marketingPercent = _newmarketingPercent; } }
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_yode","internalType":"contract IBoringERC20"},{"type":"uint256","name":"_yodePerBlock","internalType":"uint256"},{"type":"address","name":"_marketingAddress","internalType":"address"},{"type":"uint256","name":"_marketingPercent","internalType":"uint256"}]},{"type":"event","name":"AllocPointsUpdated","inputs":[{"type":"address","name":"caller","internalType":"address","indexed":true},{"type":"uint256","name":"previousAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"newAmount","internalType":"uint256","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":"EmissionRateUpdated","inputs":[{"type":"address","name":"caller","internalType":"address","indexed":true},{"type":"uint256","name":"previousAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"newAmount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"MetaTxnsDisabled","inputs":[{"type":"address","name":"caller","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"MetaTxnsEnabled","inputs":[{"type":"address","name":"caller","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"OperatorTransferred","inputs":[{"type":"address","name":"previousOperator","internalType":"address","indexed":true},{"type":"address","name":"newOperator","internalType":"address","indexed":true}],"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":"RewardLockedUp","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amountLockedUp","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"SetmarketingAddress","inputs":[{"type":"address","name":"oldAddress","internalType":"address","indexed":true},{"type":"address","name":"newAddress","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SetmarketingPercent","inputs":[{"type":"uint256","name":"oldPercent","internalType":"uint256","indexed":false},{"type":"uint256","name":"newPercent","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":"uint16","name":"","internalType":"uint16"}],"name":"MAXIMUM_DEPOSIT_FEE_RATE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAXIMUM_HARVEST_INTERVAL","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":"uint256","name":"_harvestInterval","internalType":"uint256"},{"type":"bool","name":"_withUpdate","internalType":"bool"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"canHarvest","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_user","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deposit","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"depositWithPermit","inputs":[{"type":"uint256","name":"pid","internalType":"uint256"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"deadline","internalType":"uint256"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"emergencyWithdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"pure","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":"harvestMany","inputs":[{"type":"uint256[]","name":"_pids","internalType":"uint256[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"marketingAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"marketingPercent","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"massUpdatePools","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"metaTxnsEnabled","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"operator","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":"pendingYode","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_user","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"lpToken","internalType":"contract IERC20"},{"type":"uint256","name":"allocPoint","internalType":"uint256"},{"type":"uint256","name":"lastRewardBlock","internalType":"uint256"},{"type":"uint256","name":"accYodePerShare","internalType":"uint256"},{"type":"uint16","name":"depositFeeBP","internalType":"uint16"},{"type":"uint256","name":"harvestInterval","internalType":"uint256"},{"type":"uint256","name":"totalLp","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":"uint16","name":"_depositFeeBP","internalType":"uint16"},{"type":"uint256","name":"_harvestInterval","internalType":"uint256"},{"type":"bool","name":"_withUpdate","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setmarketingAddress","inputs":[{"type":"address","name":"_marketingAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setmarketingPercent","inputs":[{"type":"uint256","name":"_newmarketingPercent","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"startBlock","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"startFarming","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalAllocPoint","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalLockedUpRewards","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalYodeInPools","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOperator","inputs":[{"type":"address","name":"newOperator","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateAllocPoint","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_allocPoint","internalType":"uint256"},{"type":"bool","name":"_withUpdate","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateEmissionRate","inputs":[{"type":"uint256","name":"_yodePerBlock","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"},{"type":"uint256","name":"rewardLockedUp","internalType":"uint256"},{"type":"uint256","name":"nextHarvestUntil","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":"view","outputs":[{"type":"address","name":"","internalType":"contract IBoringERC20"}],"name":"yode","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"yodePerBlock","inputs":[]}]
Contract Creation Code
0x608060405260006007819055600a55600b805460ff191690553480156200002557600080fd5b50604051620035b6380380620035b68339810160408190526200004891620001c4565b62000053336200015b565b600180556064811115620000bd5760405162461bcd60e51b815260206004820152602760248201527f636f6e7374727563746f723a20696e76616c6964207465616d2070657263656e604482015266742076616c756560c81b606482015260840160405180910390fd5b620000cd436312cc030062000212565b600855600280546001600160a01b038087166001600160a01b0319928316179092556004859055600b805492851661010002610100600160a81b031990931692909217909155600c82905560038054909116339081179091556040516000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3505050506200023a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114620001c157600080fd5b50565b60008060008060808587031215620001db57600080fd5b8451620001e881620001ab565b6020860151604087015191955093506200020281620001ab565b6060959095015193969295505050565b808201808211156200023457634e487b7160e01b600052601160045260246000fd5b92915050565b61336c806200024a6000396000f3fe608060405234801561001057600080fd5b506004361061025c5760003560e01c8063715018a611610145578063afbcfea1116100bd578063d8020a181161008c578063de73149d11610071578063de73149d14610583578063e2bbb1581461058d578063f2fde38b146105a057600080fd5b8063d8020a1814610567578063dc640ac91461057057600080fd5b8063afbcfea114610523578063ba16f6a81461052b578063bde4aeca1461054b578063be8c91561461055e57600080fd5b806393f1a40b11610114578063a5ece941116100f9578063a5ece941146104de578063a8c95dc014610503578063af018de81461051057600080fd5b806393f1a40b146104755780639483cf14146104d557600080fd5b8063715018a614610420578063812c64f1146104285780638da5cb5b146104445780638dbb1e3a1461046257600080fd5b8063441a3e70116101d8578063515bc323116101a75780635312ea8e1161018c5780635312ea8e146103c6578063570ca735146103d9578063630b5ba11461041857600080fd5b8063515bc323146103a057806351eb05a6146103b357600080fd5b8063441a3e7014610368578063474fa6301461037b57806348cd4cb114610384578063495e6e611461038d57600080fd5b80632143e5451161022f57806329605e771161021457806329605e771461031f5780632d51ec93146103325780632e6c998d1461034557600080fd5b80632143e545146102f95780632517b6ba1461030c57600080fd5b8063081e3eda146102615780630ba84cd2146102785780631526fe271461028d57806317caf6f1146102f0575b600080fd5b6005545b6040519081526020015b60405180910390f35b61028b610286366004612ed9565b6105b3565b005b6102a061029b366004612ed9565b6106a9565b6040805173ffffffffffffffffffffffffffffffffffffffff9098168852602088019690965294860193909352606085019190915261ffff16608084015260a083015260c082015260e00161026f565b61026560075481565b61028b610307366004612f17565b610713565b61028b61031a366004612ed9565b610960565b61028b61032d366004612f8d565b610b44565b61028b610340366004612f8d565b610d1b565b610358610353366004612faa565b610e65565b604051901515815260200161026f565b61028b610376366004612fda565b610eb4565b61026560095481565b61026560085481565b61026561039b366004612faa565b611138565b61028b6103ae366004612ffc565b6112e2565b61028b6103c1366004612ed9565b6114ae565b61028b6103d4366004612ed9565b611739565b60035473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161026f565b61028b61193b565b61028b611966565b6104316103e881565b60405161ffff909116815260200161026f565b60005473ffffffffffffffffffffffffffffffffffffffff166103f3565b610265610470366004612fda565b6119f3565b6104b5610483366004612faa565b600660209081526000928352604080842090915290825290208054600182015460028301546003909301549192909184565b60408051948552602085019390935291830152606082015260800161026f565b61026560045481565b600b546103f390610100900473ffffffffffffffffffffffffffffffffffffffff1681565b600b546103589060ff1681565b61028b61051e366004613055565b611a06565b61028b611d67565b6002546103f39073ffffffffffffffffffffffffffffffffffffffff1681565b61028b61055936600461308d565b611ea9565b610265600a5481565b610265600c5481565b61028b61057e3660046130c6565b612028565b6102656276a70081565b61028b61059b366004612fda565b61206b565b61028b6105ae366004612f8d565b612437565b60035473ffffffffffffffffffffffffffffffffffffffff16331461065e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260448201527f61746f720000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61066661193b565b600454604080519182526020820183905233917feedc6338c9c1ad8f3cd6c90dd09dbe98dbd57e610d3e59a17996d07acb0d9511910160405180910390a2600455565b600581815481106106b957600080fd5b6000918252602090912060079091020180546001820154600283015460038401546004850154600586015460069096015473ffffffffffffffffffffffffffffffffffffffff909516965092949193909261ffff16919087565b60005473ffffffffffffffffffffffffffffffffffffffff163314610794576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610655565b6103e861ffff84161115610804576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f7365743a206465706f7369742066656520746f6f2068696768000000000000006044820152606401610655565b6276a700821115610871576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f7365743a20696e76616c6964206861727665737420696e74657276616c0000006044820152606401610655565b801561087f5761087f61193b565b6108c2846108bc600588815481106108995761089961313b565b90600052602060002090600702016001015460075461256790919063ffffffff16565b90612573565b60078190555083600586815481106108dc576108dc61313b565b90600052602060002090600702016001018190555082600586815481106109055761090561313b565b906000526020600020906007020160040160006101000a81548161ffff021916908361ffff16021790555081600586815481106109445761094461313b565b9060005260206000209060070201600501819055505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146109e1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610655565b6064811115610a72576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f736574207465616d2070657263656e743a20696e76616c69642070657263656e60448201527f742076616c7565000000000000000000000000000000000000000000000000006064820152608401610655565b6064811115610b03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f736574207465616d2070657263656e743a20746f74616c2070657263656e742060448201527f6f766572206d61780000000000000000000000000000000000000000000000006064820152608401610655565b600c5460408051918252602082018390527f59534c42991562a18609fd8a196a7dd65e3ed0233dac5827565398fc2177950e910160405180910390a1600c55565b60035473ffffffffffffffffffffffffffffffffffffffff163314610bea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260448201527f61746f72000000000000000000000000000000000000000000000000000000006064820152608401610655565b73ffffffffffffffffffffffffffffffffffffffff8116610c8d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f5472616e736665724f70657261746f723a206e6577206f70657261746f72206960448201527f7320746865207a65726f206164647265737300000000000000000000000000006064820152608401610655565b60035460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed90600090a3600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600b54610100900473ffffffffffffffffffffffffffffffffffffffff163314610ded576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604160248201527f736574207465616d20616464726573733a206f6e6c792070726576696f75732060448201527f7465616d20616464726573732063616e2063616c6c2074686973206d6574686f60648201527f6400000000000000000000000000000000000000000000000000000000000000608482015260a401610655565b600b80547fffffffffffffffffffffff0000000000000000000000000000000000000000ff1661010073ffffffffffffffffffffffffffffffffffffffff84169081029190911790915560405133907fbf3d051fd497480bee9aac0eb215667d83b4176bad2abe554ce701cc4316face90600090a350565b600082815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915281206008544310801590610eaa575080600301544210155b9150505b92915050565b600260015403610f20576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610655565b6002600181905550600060058381548110610f3d57610f3d61313b565b600091825260208083208684526006825260408085203386529092529220805460079092029092019250831115610fd0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f57697468647261773a205573657220616d6f756e74206e6f7420656e6f7567686044820152606401610655565b828260060154101561103e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f57697468647261773a20506f6f6c20746f74616c206e6f7420656e6f756768006044820152606401610655565b611047846114ae565b6110508461257f565b82156110d05780546110629084612567565b815560068201546110739084612567565b6006830155600254825473ffffffffffffffffffffffffffffffffffffffff9182169116036110ad57600a546110a99084612567565b600a555b81546110d09073ffffffffffffffffffffffffffffffffffffffff16338561270e565b600382015481546110f19164e8d4a51000916110eb916127e2565b906127ee565b6001820155604051838152849033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568906020015b60405180910390a35050600180555050565b6000806005848154811061114e5761114e61313b565b6000918252602080832087845260068252604080852073ffffffffffffffffffffffffffffffffffffffff898116875293528085206007949094029091016003810154815492517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015291965093949291909116906370a0823190602401602060405180830381865afa1580156111ef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611213919061316a565b905083600201544311801561122757508015155b1561128d57600061123c8560020154436119f3565b905060006112696007546110eb8860010154611263600454876127e290919063ffffffff16565b906127e2565b9050611288611281846110eb8464e8d4a510006127e2565b8590612573565b935050505b60006112bd84600101546112b764e8d4a510006110eb8789600001546127e290919063ffffffff16565b90612567565b90506112d684600201548261257390919063ffffffff16565b98975050505050505050565b60026001540361134e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610655565b6002600155600554869081106113c0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f506f6f6c20646f6573206e6f74206578697374000000000000000000000000006044820152606401610655565b6000600588815481106113d5576113d561313b565b6000918252602090912060079091020180546040517fd505accf000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018a90526064810189905260ff8816608482015260a4810187905260c4810186905291925073ffffffffffffffffffffffffffffffffffffffff1690819063d505accf9060e401600060405180830381600087803b15801561147d57600080fd5b505af1158015611491573d6000803e3d6000fd5b5050505061149f898961206b565b50506001805550505050505050565b6000600582815481106114c3576114c361313b565b90600052602060002090600702019050806002015443116114e2575050565b60068101548015806114f657506001820154155b1561150657504360029091015550565b60006115168360020154436119f3565b9050600061153d6007546110eb8660010154611263600454876127e290919063ffffffff16565b90506000600c546103e861155191906131b2565b600254600b54600c5492935073ffffffffffffffffffffffffffffffffffffffff918216926340c10f1992610100909204909116906103e89061159490876131c5565b61159e9190613202565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401600060405180830381600087803b15801561160957600080fd5b505af115801561161d573d6000803e3d6000fd5b505060025473ffffffffffffffffffffffffffffffffffffffff1691506340c10f199050306103e861164f85876131c5565b6116599190613202565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401600060405180830381600087803b1580156116c457600080fd5b505af11580156116d8573d6000803e3d6000fd5b505050506103e88186600601548464e8d4a510006116f691906131c5565b6117009190613202565b61170a91906131c5565b6117149190613202565b8560030154611723919061323d565b6003860155505043600290930192909255505050565b6002600154036117a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610655565b60026001819055506000600582815481106117c2576117c261313b565b6000918252602080832085845260068083526040808620338752909352919093208054600790930290930190810154909350811115611883576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f456d657267656e637957697468647261773a20506f6f6c20746f74616c206e6f60448201527f7420656e6f7567680000000000000000000000000000000000000000000000006064820152608401610655565b60008083556001830181905560028301819055600383015560068301546118aa9082612567565b6006840155600254835473ffffffffffffffffffffffffffffffffffffffff9182169116036118e457600a546118e09082612567565b600a555b82546119079073ffffffffffffffffffffffffffffffffffffffff16338361270e565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059590602001611126565b60055460005b8181101561196257611952816114ae565b61195b81613250565b9050611941565b5050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146119e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610655565b6119f160006127fa565b565b60006119ff8284612567565b9392505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611a87576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610655565b6103e861ffff84161115611af7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f6164643a206465706f7369742066656520746f6f2068696768000000000000006044820152606401610655565b6276a700821115611b64576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f6164643a20696e76616c6964206861727665737420696e74657276616c0000006044820152606401610655565b8015611b7257611b7261193b565b60006008544311611b8557600854611b87565b435b600754909150611b979087612573565b60079081556040805160e08101825273ffffffffffffffffffffffffffffffffffffffff97881681526020810198895290810192835260006060820181815261ffff9788166080840190815260a0840197885260c0840183815260058054600181018255945293517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db09390950292830180547fffffffffffffffffffffffff00000000000000000000000000000000000000001695909a169490941790985597517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db189015591517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db288015594517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db387015593517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db4860180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000169190941617909255517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db584015550517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db690910155565b60005473ffffffffffffffffffffffffffffffffffffffff163314611de8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610655565b6008544310611e53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f4572726f723a3a4661726d207374617274656420616c726561647900000000006044820152606401610655565b60055460005b81811015611ea157600060058281548110611e7657611e7661313b565b906000526020600020906007020190504381600201819055505080611e9a90613250565b9050611e59565b505043600855565b60035473ffffffffffffffffffffffffffffffffffffffff163314611f4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260448201527f61746f72000000000000000000000000000000000000000000000000000000006064820152608401610655565b8015611f5d57611f5d61193b565b3373ffffffffffffffffffffffffffffffffffffffff167f802633c8d26237616d81bdac01bc40fcdf36e098832601582ec19d7e431c5ef360058581548110611fa857611fa861313b565b90600052602060002090600702016001015484604051611fd2929190918252602082015260400190565b60405180910390a2611ff4826108bc600586815481106108995761089961313b565b600781905550816005848154811061200e5761200e61313b565b906000526020600020906007020160010181905550505050565b60005b81811015612066576120568383838181106120485761204861313b565b90506020020135600061206b565b61205f81613250565b905061202b565b505050565b6002600154036120d7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610655565b600260015560085443101561216e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f596f6465646578436865663a2043616e206e6f74206465706f7369742062656660448201527f6f726520737461727400000000000000000000000000000000000000000000006064820152608401610655565b6000600583815481106121835761218361313b565b600091825260208083208684526006825260408085203386529092529220600790910290910191506121b4846114ae565b6121bd8461257f565b82156123e35781546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015612231573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612255919061316a565b835490915061227c9073ffffffffffffffffffffffffffffffffffffffff1633308761286f565b82546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa1580156122ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061230e919061316a565b905061231a8183612567565b600485015490955061ffff161561238957600484015460009061234a90612710906110eb90899061ffff166127e2565b600b54865491925061237b9173ffffffffffffffffffffffffffffffffffffffff908116916101009004168361270e565b6123858682612567565b9550505b82546123959086612573565b835560068401546123a69086612573565b6006850155600254845473ffffffffffffffffffffffffffffffffffffffff9182169116036123e057600a546123dc9086612573565b600a555b50505b600382015481546123fe9164e8d4a51000916110eb916127e2565b6001820155604051838152849033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1590602001611126565b60005473ffffffffffffffffffffffffffffffffffffffff1633146124b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610655565b73ffffffffffffffffffffffffffffffffffffffff811661255b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610655565b612564816127fa565b50565b60006119ff82846131b2565b60006119ff828461323d565b6000600582815481106125945761259461313b565b6000918252602080832085845260068252604080852033865290925292206003810154600790920290920192501580156125d057506008544310155b156125eb5760058201546125e5904290612573565b60038201555b600061261982600101546112b764e8d4a510006110eb876003015487600001546127e290919063ffffffff16565b90506126258433610e65565b156126a657600081118061263d575060008260020154115b156126a157600061265b83600201548361257390919063ffffffff16565b9050612676836002015460095461256790919063ffffffff16565b600955600060028401556005840154612690904290612573565b600384015561269f33826128cd565b505b612708565b80156127085760028201546126bb9082612573565b60028301556009546126cd9082612573565b600955604051818152849033907fee470483107f579a55c754fa00613c45a9a3b617a418b39cb0be97e5381ba7c19060200160405180910390a35b50505050565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526120669084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152612a5d565b60006119ff82846131c5565b60006119ff8284613202565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526127089085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401612760565b600a546002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa15801561293e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612962919061316a565b111561196257600a546002546040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600092612a0692909173ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa1580156129e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b7919061316a565b9050808210612a33576002546120669073ffffffffffffffffffffffffffffffffffffffff168483612b69565b8115612066576002546120669073ffffffffffffffffffffffffffffffffffffffff168484612b69565b6000612abf826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612cd99092919063ffffffff16565b8051909150156120665780806020019051810190612add9190613288565b612066576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610655565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691612c0091906132c9565b6000604051808303816000865af19150503d8060008114612c3d576040519150601f19603f3d011682016040523d82523d6000602084013e612c42565b606091505b5091509150818015612c6c575080511580612c6c575080806020019051810190612c6c9190613288565b612cd2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f426f72696e6745524332303a205472616e73666572206661696c6564000000006044820152606401610655565b5050505050565b6060612ce88484600085612cf0565b949350505050565b606082471015612d82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610655565b73ffffffffffffffffffffffffffffffffffffffff85163b612e00576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610655565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612e2991906132c9565b60006040518083038185875af1925050503d8060008114612e66576040519150601f19603f3d011682016040523d82523d6000602084013e612e6b565b606091505b5091509150612e7b828286612e86565b979650505050505050565b60608315612e955750816119ff565b825115612ea55782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065591906132e5565b600060208284031215612eeb57600080fd5b5035919050565b803561ffff81168114612f0457600080fd5b919050565b801515811461256457600080fd5b600080600080600060a08688031215612f2f57600080fd5b8535945060208601359350612f4660408701612ef2565b9250606086013591506080860135612f5d81612f09565b809150509295509295909350565b73ffffffffffffffffffffffffffffffffffffffff8116811461256457600080fd5b600060208284031215612f9f57600080fd5b81356119ff81612f6b565b60008060408385031215612fbd57600080fd5b823591506020830135612fcf81612f6b565b809150509250929050565b60008060408385031215612fed57600080fd5b50508035926020909101359150565b60008060008060008060c0878903121561301557600080fd5b863595506020870135945060408701359350606087013560ff8116811461303b57600080fd5b9598949750929560808101359460a0909101359350915050565b600080600080600060a0868803121561306d57600080fd5b85359450602086013561307f81612f6b565b9350612f4660408701612ef2565b6000806000606084860312156130a257600080fd5b833592506020840135915060408401356130bb81612f09565b809150509250925092565b600080602083850312156130d957600080fd5b823567ffffffffffffffff808211156130f157600080fd5b818501915085601f83011261310557600080fd5b81358181111561311457600080fd5b8660208260051b850101111561312957600080fd5b60209290920196919550909350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561317c57600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b81810381811115610eae57610eae613183565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156131fd576131fd613183565b500290565b600082613238577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b80820180821115610eae57610eae613183565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361328157613281613183565b5060010190565b60006020828403121561329a57600080fd5b81516119ff81612f09565b60005b838110156132c05781810151838201526020016132a8565b50506000910152565b600082516132db8184602087016132a5565b9190910192915050565b60208152600082518060208401526133048160408501602087016132a5565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220edf0fa26e93a82fe933108e16da955ee74851c1736777a5c60866709dc6e32b064736f6c634300081000330000000000000000000000006fc4563460d5f45932c473334d5c1c5b4aea0e010000000000000000000000000000000000000000000000000403fbf9eb99d7000000000000000000000000002816ac29a2240f8cb5ee602d55ade39e10e5ed2b0000000000000000000000000000000000000000000000000000000000000064
Deployed ByteCode
0x608060405234801561001057600080fd5b506004361061025c5760003560e01c8063715018a611610145578063afbcfea1116100bd578063d8020a181161008c578063de73149d11610071578063de73149d14610583578063e2bbb1581461058d578063f2fde38b146105a057600080fd5b8063d8020a1814610567578063dc640ac91461057057600080fd5b8063afbcfea114610523578063ba16f6a81461052b578063bde4aeca1461054b578063be8c91561461055e57600080fd5b806393f1a40b11610114578063a5ece941116100f9578063a5ece941146104de578063a8c95dc014610503578063af018de81461051057600080fd5b806393f1a40b146104755780639483cf14146104d557600080fd5b8063715018a614610420578063812c64f1146104285780638da5cb5b146104445780638dbb1e3a1461046257600080fd5b8063441a3e70116101d8578063515bc323116101a75780635312ea8e1161018c5780635312ea8e146103c6578063570ca735146103d9578063630b5ba11461041857600080fd5b8063515bc323146103a057806351eb05a6146103b357600080fd5b8063441a3e7014610368578063474fa6301461037b57806348cd4cb114610384578063495e6e611461038d57600080fd5b80632143e5451161022f57806329605e771161021457806329605e771461031f5780632d51ec93146103325780632e6c998d1461034557600080fd5b80632143e545146102f95780632517b6ba1461030c57600080fd5b8063081e3eda146102615780630ba84cd2146102785780631526fe271461028d57806317caf6f1146102f0575b600080fd5b6005545b6040519081526020015b60405180910390f35b61028b610286366004612ed9565b6105b3565b005b6102a061029b366004612ed9565b6106a9565b6040805173ffffffffffffffffffffffffffffffffffffffff9098168852602088019690965294860193909352606085019190915261ffff16608084015260a083015260c082015260e00161026f565b61026560075481565b61028b610307366004612f17565b610713565b61028b61031a366004612ed9565b610960565b61028b61032d366004612f8d565b610b44565b61028b610340366004612f8d565b610d1b565b610358610353366004612faa565b610e65565b604051901515815260200161026f565b61028b610376366004612fda565b610eb4565b61026560095481565b61026560085481565b61026561039b366004612faa565b611138565b61028b6103ae366004612ffc565b6112e2565b61028b6103c1366004612ed9565b6114ae565b61028b6103d4366004612ed9565b611739565b60035473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161026f565b61028b61193b565b61028b611966565b6104316103e881565b60405161ffff909116815260200161026f565b60005473ffffffffffffffffffffffffffffffffffffffff166103f3565b610265610470366004612fda565b6119f3565b6104b5610483366004612faa565b600660209081526000928352604080842090915290825290208054600182015460028301546003909301549192909184565b60408051948552602085019390935291830152606082015260800161026f565b61026560045481565b600b546103f390610100900473ffffffffffffffffffffffffffffffffffffffff1681565b600b546103589060ff1681565b61028b61051e366004613055565b611a06565b61028b611d67565b6002546103f39073ffffffffffffffffffffffffffffffffffffffff1681565b61028b61055936600461308d565b611ea9565b610265600a5481565b610265600c5481565b61028b61057e3660046130c6565b612028565b6102656276a70081565b61028b61059b366004612fda565b61206b565b61028b6105ae366004612f8d565b612437565b60035473ffffffffffffffffffffffffffffffffffffffff16331461065e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260448201527f61746f720000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61066661193b565b600454604080519182526020820183905233917feedc6338c9c1ad8f3cd6c90dd09dbe98dbd57e610d3e59a17996d07acb0d9511910160405180910390a2600455565b600581815481106106b957600080fd5b6000918252602090912060079091020180546001820154600283015460038401546004850154600586015460069096015473ffffffffffffffffffffffffffffffffffffffff909516965092949193909261ffff16919087565b60005473ffffffffffffffffffffffffffffffffffffffff163314610794576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610655565b6103e861ffff84161115610804576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f7365743a206465706f7369742066656520746f6f2068696768000000000000006044820152606401610655565b6276a700821115610871576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f7365743a20696e76616c6964206861727665737420696e74657276616c0000006044820152606401610655565b801561087f5761087f61193b565b6108c2846108bc600588815481106108995761089961313b565b90600052602060002090600702016001015460075461256790919063ffffffff16565b90612573565b60078190555083600586815481106108dc576108dc61313b565b90600052602060002090600702016001018190555082600586815481106109055761090561313b565b906000526020600020906007020160040160006101000a81548161ffff021916908361ffff16021790555081600586815481106109445761094461313b565b9060005260206000209060070201600501819055505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146109e1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610655565b6064811115610a72576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f736574207465616d2070657263656e743a20696e76616c69642070657263656e60448201527f742076616c7565000000000000000000000000000000000000000000000000006064820152608401610655565b6064811115610b03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f736574207465616d2070657263656e743a20746f74616c2070657263656e742060448201527f6f766572206d61780000000000000000000000000000000000000000000000006064820152608401610655565b600c5460408051918252602082018390527f59534c42991562a18609fd8a196a7dd65e3ed0233dac5827565398fc2177950e910160405180910390a1600c55565b60035473ffffffffffffffffffffffffffffffffffffffff163314610bea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260448201527f61746f72000000000000000000000000000000000000000000000000000000006064820152608401610655565b73ffffffffffffffffffffffffffffffffffffffff8116610c8d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f5472616e736665724f70657261746f723a206e6577206f70657261746f72206960448201527f7320746865207a65726f206164647265737300000000000000000000000000006064820152608401610655565b60035460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed90600090a3600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600b54610100900473ffffffffffffffffffffffffffffffffffffffff163314610ded576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604160248201527f736574207465616d20616464726573733a206f6e6c792070726576696f75732060448201527f7465616d20616464726573732063616e2063616c6c2074686973206d6574686f60648201527f6400000000000000000000000000000000000000000000000000000000000000608482015260a401610655565b600b80547fffffffffffffffffffffff0000000000000000000000000000000000000000ff1661010073ffffffffffffffffffffffffffffffffffffffff84169081029190911790915560405133907fbf3d051fd497480bee9aac0eb215667d83b4176bad2abe554ce701cc4316face90600090a350565b600082815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915281206008544310801590610eaa575080600301544210155b9150505b92915050565b600260015403610f20576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610655565b6002600181905550600060058381548110610f3d57610f3d61313b565b600091825260208083208684526006825260408085203386529092529220805460079092029092019250831115610fd0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f57697468647261773a205573657220616d6f756e74206e6f7420656e6f7567686044820152606401610655565b828260060154101561103e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f57697468647261773a20506f6f6c20746f74616c206e6f7420656e6f756768006044820152606401610655565b611047846114ae565b6110508461257f565b82156110d05780546110629084612567565b815560068201546110739084612567565b6006830155600254825473ffffffffffffffffffffffffffffffffffffffff9182169116036110ad57600a546110a99084612567565b600a555b81546110d09073ffffffffffffffffffffffffffffffffffffffff16338561270e565b600382015481546110f19164e8d4a51000916110eb916127e2565b906127ee565b6001820155604051838152849033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568906020015b60405180910390a35050600180555050565b6000806005848154811061114e5761114e61313b565b6000918252602080832087845260068252604080852073ffffffffffffffffffffffffffffffffffffffff898116875293528085206007949094029091016003810154815492517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015291965093949291909116906370a0823190602401602060405180830381865afa1580156111ef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611213919061316a565b905083600201544311801561122757508015155b1561128d57600061123c8560020154436119f3565b905060006112696007546110eb8860010154611263600454876127e290919063ffffffff16565b906127e2565b9050611288611281846110eb8464e8d4a510006127e2565b8590612573565b935050505b60006112bd84600101546112b764e8d4a510006110eb8789600001546127e290919063ffffffff16565b90612567565b90506112d684600201548261257390919063ffffffff16565b98975050505050505050565b60026001540361134e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610655565b6002600155600554869081106113c0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f506f6f6c20646f6573206e6f74206578697374000000000000000000000000006044820152606401610655565b6000600588815481106113d5576113d561313b565b6000918252602090912060079091020180546040517fd505accf000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018a90526064810189905260ff8816608482015260a4810187905260c4810186905291925073ffffffffffffffffffffffffffffffffffffffff1690819063d505accf9060e401600060405180830381600087803b15801561147d57600080fd5b505af1158015611491573d6000803e3d6000fd5b5050505061149f898961206b565b50506001805550505050505050565b6000600582815481106114c3576114c361313b565b90600052602060002090600702019050806002015443116114e2575050565b60068101548015806114f657506001820154155b1561150657504360029091015550565b60006115168360020154436119f3565b9050600061153d6007546110eb8660010154611263600454876127e290919063ffffffff16565b90506000600c546103e861155191906131b2565b600254600b54600c5492935073ffffffffffffffffffffffffffffffffffffffff918216926340c10f1992610100909204909116906103e89061159490876131c5565b61159e9190613202565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401600060405180830381600087803b15801561160957600080fd5b505af115801561161d573d6000803e3d6000fd5b505060025473ffffffffffffffffffffffffffffffffffffffff1691506340c10f199050306103e861164f85876131c5565b6116599190613202565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401600060405180830381600087803b1580156116c457600080fd5b505af11580156116d8573d6000803e3d6000fd5b505050506103e88186600601548464e8d4a510006116f691906131c5565b6117009190613202565b61170a91906131c5565b6117149190613202565b8560030154611723919061323d565b6003860155505043600290930192909255505050565b6002600154036117a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610655565b60026001819055506000600582815481106117c2576117c261313b565b6000918252602080832085845260068083526040808620338752909352919093208054600790930290930190810154909350811115611883576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f456d657267656e637957697468647261773a20506f6f6c20746f74616c206e6f60448201527f7420656e6f7567680000000000000000000000000000000000000000000000006064820152608401610655565b60008083556001830181905560028301819055600383015560068301546118aa9082612567565b6006840155600254835473ffffffffffffffffffffffffffffffffffffffff9182169116036118e457600a546118e09082612567565b600a555b82546119079073ffffffffffffffffffffffffffffffffffffffff16338361270e565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059590602001611126565b60055460005b8181101561196257611952816114ae565b61195b81613250565b9050611941565b5050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146119e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610655565b6119f160006127fa565b565b60006119ff8284612567565b9392505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611a87576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610655565b6103e861ffff84161115611af7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f6164643a206465706f7369742066656520746f6f2068696768000000000000006044820152606401610655565b6276a700821115611b64576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f6164643a20696e76616c6964206861727665737420696e74657276616c0000006044820152606401610655565b8015611b7257611b7261193b565b60006008544311611b8557600854611b87565b435b600754909150611b979087612573565b60079081556040805160e08101825273ffffffffffffffffffffffffffffffffffffffff97881681526020810198895290810192835260006060820181815261ffff9788166080840190815260a0840197885260c0840183815260058054600181018255945293517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db09390950292830180547fffffffffffffffffffffffff00000000000000000000000000000000000000001695909a169490941790985597517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db189015591517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db288015594517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db387015593517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db4860180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000169190941617909255517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db584015550517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db690910155565b60005473ffffffffffffffffffffffffffffffffffffffff163314611de8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610655565b6008544310611e53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f4572726f723a3a4661726d207374617274656420616c726561647900000000006044820152606401610655565b60055460005b81811015611ea157600060058281548110611e7657611e7661313b565b906000526020600020906007020190504381600201819055505080611e9a90613250565b9050611e59565b505043600855565b60035473ffffffffffffffffffffffffffffffffffffffff163314611f4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260448201527f61746f72000000000000000000000000000000000000000000000000000000006064820152608401610655565b8015611f5d57611f5d61193b565b3373ffffffffffffffffffffffffffffffffffffffff167f802633c8d26237616d81bdac01bc40fcdf36e098832601582ec19d7e431c5ef360058581548110611fa857611fa861313b565b90600052602060002090600702016001015484604051611fd2929190918252602082015260400190565b60405180910390a2611ff4826108bc600586815481106108995761089961313b565b600781905550816005848154811061200e5761200e61313b565b906000526020600020906007020160010181905550505050565b60005b81811015612066576120568383838181106120485761204861313b565b90506020020135600061206b565b61205f81613250565b905061202b565b505050565b6002600154036120d7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610655565b600260015560085443101561216e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f596f6465646578436865663a2043616e206e6f74206465706f7369742062656660448201527f6f726520737461727400000000000000000000000000000000000000000000006064820152608401610655565b6000600583815481106121835761218361313b565b600091825260208083208684526006825260408085203386529092529220600790910290910191506121b4846114ae565b6121bd8461257f565b82156123e35781546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015612231573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612255919061316a565b835490915061227c9073ffffffffffffffffffffffffffffffffffffffff1633308761286f565b82546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa1580156122ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061230e919061316a565b905061231a8183612567565b600485015490955061ffff161561238957600484015460009061234a90612710906110eb90899061ffff166127e2565b600b54865491925061237b9173ffffffffffffffffffffffffffffffffffffffff908116916101009004168361270e565b6123858682612567565b9550505b82546123959086612573565b835560068401546123a69086612573565b6006850155600254845473ffffffffffffffffffffffffffffffffffffffff9182169116036123e057600a546123dc9086612573565b600a555b50505b600382015481546123fe9164e8d4a51000916110eb916127e2565b6001820155604051838152849033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1590602001611126565b60005473ffffffffffffffffffffffffffffffffffffffff1633146124b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610655565b73ffffffffffffffffffffffffffffffffffffffff811661255b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610655565b612564816127fa565b50565b60006119ff82846131b2565b60006119ff828461323d565b6000600582815481106125945761259461313b565b6000918252602080832085845260068252604080852033865290925292206003810154600790920290920192501580156125d057506008544310155b156125eb5760058201546125e5904290612573565b60038201555b600061261982600101546112b764e8d4a510006110eb876003015487600001546127e290919063ffffffff16565b90506126258433610e65565b156126a657600081118061263d575060008260020154115b156126a157600061265b83600201548361257390919063ffffffff16565b9050612676836002015460095461256790919063ffffffff16565b600955600060028401556005840154612690904290612573565b600384015561269f33826128cd565b505b612708565b80156127085760028201546126bb9082612573565b60028301556009546126cd9082612573565b600955604051818152849033907fee470483107f579a55c754fa00613c45a9a3b617a418b39cb0be97e5381ba7c19060200160405180910390a35b50505050565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526120669084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152612a5d565b60006119ff82846131c5565b60006119ff8284613202565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526127089085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401612760565b600a546002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa15801561293e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612962919061316a565b111561196257600a546002546040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600092612a0692909173ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa1580156129e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b7919061316a565b9050808210612a33576002546120669073ffffffffffffffffffffffffffffffffffffffff168483612b69565b8115612066576002546120669073ffffffffffffffffffffffffffffffffffffffff168484612b69565b6000612abf826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612cd99092919063ffffffff16565b8051909150156120665780806020019051810190612add9190613288565b612066576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610655565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691612c0091906132c9565b6000604051808303816000865af19150503d8060008114612c3d576040519150601f19603f3d011682016040523d82523d6000602084013e612c42565b606091505b5091509150818015612c6c575080511580612c6c575080806020019051810190612c6c9190613288565b612cd2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f426f72696e6745524332303a205472616e73666572206661696c6564000000006044820152606401610655565b5050505050565b6060612ce88484600085612cf0565b949350505050565b606082471015612d82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610655565b73ffffffffffffffffffffffffffffffffffffffff85163b612e00576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610655565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612e2991906132c9565b60006040518083038185875af1925050503d8060008114612e66576040519150601f19603f3d011682016040523d82523d6000602084013e612e6b565b606091505b5091509150612e7b828286612e86565b979650505050505050565b60608315612e955750816119ff565b825115612ea55782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065591906132e5565b600060208284031215612eeb57600080fd5b5035919050565b803561ffff81168114612f0457600080fd5b919050565b801515811461256457600080fd5b600080600080600060a08688031215612f2f57600080fd5b8535945060208601359350612f4660408701612ef2565b9250606086013591506080860135612f5d81612f09565b809150509295509295909350565b73ffffffffffffffffffffffffffffffffffffffff8116811461256457600080fd5b600060208284031215612f9f57600080fd5b81356119ff81612f6b565b60008060408385031215612fbd57600080fd5b823591506020830135612fcf81612f6b565b809150509250929050565b60008060408385031215612fed57600080fd5b50508035926020909101359150565b60008060008060008060c0878903121561301557600080fd5b863595506020870135945060408701359350606087013560ff8116811461303b57600080fd5b9598949750929560808101359460a0909101359350915050565b600080600080600060a0868803121561306d57600080fd5b85359450602086013561307f81612f6b565b9350612f4660408701612ef2565b6000806000606084860312156130a257600080fd5b833592506020840135915060408401356130bb81612f09565b809150509250925092565b600080602083850312156130d957600080fd5b823567ffffffffffffffff808211156130f157600080fd5b818501915085601f83011261310557600080fd5b81358181111561311457600080fd5b8660208260051b850101111561312957600080fd5b60209290920196919550909350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561317c57600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b81810381811115610eae57610eae613183565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156131fd576131fd613183565b500290565b600082613238577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b80820180821115610eae57610eae613183565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361328157613281613183565b5060010190565b60006020828403121561329a57600080fd5b81516119ff81612f09565b60005b838110156132c05781810151838201526020016132a8565b50506000910152565b600082516132db8184602087016132a5565b9190910192915050565b60208152600082518060208401526133048160408501602087016132a5565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220edf0fa26e93a82fe933108e16da955ee74851c1736777a5c60866709dc6e32b064736f6c63430008100033