Contract Overview
My Name Tag:
Not Available, login to update
[ Download CSV Export ]
Latest 25 internal transaction
[ Download CSV Export ]
Contract Name:
OolongFarmV2
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at bobascan.com on 2022-08-19 */ // File: contracts/common/IERC20.sol // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.6.12; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: contracts/common/SafeMath.sol pragma solidity 0.6.12; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: contracts/common/Address.sol pragma solidity 0.6.12; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: contracts/common/SafeERC20.sol pragma solidity 0.6.12; /** * @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 SafeMath for uint256; 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' // solhint-disable-next-line max-line-length 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).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(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 // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: contracts/common/Context.sol pragma solidity 0.6.12; /* * @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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: contracts/common/Ownable.sol pragma solidity 0.6.12; /** * @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. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: contracts/common/ReentrancyGuard.sol pragma solidity 0.6.12; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the `nonReentrant` modifier * available, which can be aplied 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. */ contract ReentrancyGuard { /// @dev counter to allow mutex lock with only one SSTORE operation uint256 private _guardCounter; constructor () internal { // The counter starts at one to prevent changing it from zero to a non-zero // value, which is a more expensive operation. _guardCounter = 1; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { _guardCounter += 1; uint256 localCounter = _guardCounter; _; require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call"); } } // File: contracts/common/ERC20.sol pragma solidity 0.6.12; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol) public { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } // File: contracts/token/OolongToken.sol pragma solidity 0.6.12; contract OolongToken is ERC20("OolongSwap Token", "OLO"), Ownable { /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (OolongFarm). function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); } // Copied and modified from YAM code: // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol // Which is copied and modified from COMPOUND: // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol /// @dev A record of each accounts delegate mapping (address => address) internal _delegates; /// @notice A checkpoint for marking number of votes from a given block struct Checkpoint { uint32 fromBlock; uint256 votes; } /// @notice A record of votes checkpoints for each account, by index mapping (address => mapping (uint32 => Checkpoint)) public checkpoints; /// @notice The number of checkpoints for each account mapping (address => uint32) public numCheckpoints; /// @notice The EIP-712 typehash for the contract's domain bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)"); /// @notice The EIP-712 typehash for the delegation struct used by the contract bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)"); /// @notice A record of states for signing / validating signatures mapping (address => uint) public nonces; /// @notice An event thats emitted when an account changes its delegate event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate); /// @notice An event thats emitted when a delegate account's vote balance changes event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance); /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegator The address to get delegatee for */ function delegates(address delegator) external view returns (address) { return _delegates[delegator]; } /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegatee The address to delegate votes to */ function delegate(address delegatee) external { return _delegate(msg.sender, delegatee); } /** * @notice Delegates votes from signatory to `delegatee` * @param delegatee The address to delegate votes to * @param nonce The contract state required to match the signature * @param expiry The time at which to expire the signature * @param v The recovery byte of the signature * @param r Half of the ECDSA signature pair * @param s Half of the ECDSA signature pair */ function delegateBySig( address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s ) external { bytes32 domainSeparator = keccak256( abi.encode( DOMAIN_TYPEHASH, keccak256(bytes(name())), getChainId(), address(this) ) ); bytes32 structHash = keccak256( abi.encode( DELEGATION_TYPEHASH, delegatee, nonce, expiry ) ); bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", domainSeparator, structHash ) ); address signatory = ecrecover(digest, v, r, s); require(signatory != address(0), "OLO::delegateBySig: invalid signature"); require(nonce == nonces[signatory]++, "OLO::delegateBySig: invalid nonce"); require(now <= expiry, "OLO::delegateBySig: signature expired"); return _delegate(signatory, delegatee); } /** * @notice Gets the current votes balance for `account` * @param account The address to get votes balance * @return The number of current votes for `account` */ function getCurrentVotes(address account) external view returns (uint256) { uint32 nCheckpoints = numCheckpoints[account]; return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0; } /** * @notice Determine the prior number of votes for an account as of a block number * @dev Block number must be a finalized block or else this function will revert to prevent misinformation. * @param account The address of the account to check * @param blockNumber The block number to get the vote balance at * @return The number of votes the account had as of the given block */ function getPriorVotes(address account, uint blockNumber) external view returns (uint256) { require(blockNumber < block.number, "OLO::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0; } // First check most recent balance if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) { return checkpoints[account][nCheckpoints - 1].votes; } // Next check implicit zero balance if (checkpoints[account][0].fromBlock > blockNumber) { return 0; } uint32 lower = 0; uint32 upper = nCheckpoints - 1; while (upper > lower) { uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow Checkpoint memory cp = checkpoints[account][center]; if (cp.fromBlock == blockNumber) { return cp.votes; } else if (cp.fromBlock < blockNumber) { lower = center; } else { upper = center - 1; } } return checkpoints[account][lower].votes; } function _delegate(address delegator, address delegatee) internal { address currentDelegate = _delegates[delegator]; uint256 delegatorBalance = balanceOf(delegator); // balance of underlying OLOs (not scaled); _delegates[delegator] = delegatee; emit DelegateChanged(delegator, currentDelegate, delegatee); _moveDelegates(currentDelegate, delegatee, delegatorBalance); } function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal { if (srcRep != dstRep && amount > 0) { if (srcRep != address(0)) { // decrease old representative uint32 srcRepNum = numCheckpoints[srcRep]; uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0; uint256 srcRepNew = srcRepOld.sub(amount); _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew); } if (dstRep != address(0)) { // increase new representative uint32 dstRepNum = numCheckpoints[dstRep]; uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0; uint256 dstRepNew = dstRepOld.add(amount); _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew); } } } function _writeCheckpoint( address delegatee, uint32 nCheckpoints, uint256 oldVotes, uint256 newVotes ) internal { uint32 blockNumber = safe32(block.number, "OLO::_writeCheckpoint: block number exceeds 32 bits"); if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) { checkpoints[delegatee][nCheckpoints - 1].votes = newVotes; } else { checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes); numCheckpoints[delegatee] = nCheckpoints + 1; } emit DelegateVotesChanged(delegatee, oldVotes, newVotes); } function safe32(uint n, string memory errorMessage) internal pure returns (uint32) { require(n < 2**32, errorMessage); return uint32(n); } function getChainId() internal pure returns (uint) { uint256 chainId; assembly { chainId := chainid() } return chainId; } } // File: contracts/interfaces/IBonusFarmV2.sol pragma solidity 0.6.12; interface IBonusFarmV2 { function onParentReward(address _account, uint _amount, bool _isDeposit) external; function getParentFarm() external view returns(address); function getParentPoolId() external view returns(uint); function getParentStakingToken() external view returns(address); } // File: contracts/interfaces/IOolongFarm.sol pragma solidity 0.6.12; interface IOolongFarm { function poolInfo(uint _poolId) external view returns (address _lpToken, uint _allocPoint, uint _lastRewardTimestamp, uint _accOolongPerShare, address _bonusFarm); function userInfo(uint _poolId, address _user) external view returns (uint _balance, uint _rewardDebt); function deposit(uint256 _pid, uint256 _amount) external; function withdraw(uint256 _pid, uint256 _amount) external; function pendingOolong(uint256 _pid, address _user) external view returns (uint256); function claimAll() external; function distributorPercent() external view returns (uint); function oolongPerSec() external view returns (uint); function totalAllocPoint() external view returns (uint); } // File: contracts/mining/OolongFarmV2.sol pragma solidity 0.6.12; /// @notice The (older) OolongFarm contract gives out a constant number of OLO tokens per second. /// It is the only address with minting rights for OLO. /// The idea for this OolongFarmV2 contract is therefore to be the owner of a dummy token /// that is deposited into the OolongFarm contract. contract OolongFarmV2 is Ownable, ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; /* ========== STRUCT ========== */ /// @notice Info of each V2 farm user. /// `amount` LP token amount the user has provided. /// `rewardDebt` The amount of OLO entitled to the user. struct UserInfo { uint256 amount; uint256 rewardDebt; } /// @notice Info of each V2 Farm pool. /// `allocPoint` The amount of allocation points assigned to the pool. /// Also known as the amount of OLO to distribute per block. struct PoolInfo { IERC20 lpToken; uint256 accOolongPerShare; uint256 lastRewardTimestamp; uint256 allocPoint; IBonusFarmV2 bonusFarm; } /* ========== STATE VARIABLES ========== */ /// @notice Address of V1 Farm contract. IOolongFarm public immutable OOLONG_FARM_V1; /// @notice Address of OLO contract. IERC20 public immutable OLO; /// @notice The index of V2 Farm master pool in V1 Farm uint256 public immutable FARM_V1_PID; /// @notice Info of each V2 Farm pool. PoolInfo[] public poolInfo; // Mapping to check which LP tokens have been added as pools. mapping(IERC20 => bool) public isPool; /// @notice Info of each user that stakes LP tokens. mapping(uint256 => mapping(address => UserInfo)) public userInfo; /// @dev Total allocation points. Must be the sum of all allocation points in all pools. uint256 public totalAllocPoint = 0; // For backwards compatibility with callers uint256 public distributorPercent = 0; uint256 private constant ACC_TOKEN_PRECISION = 1e18; bool enableMassUpdatePools = true; event Add(uint256 indexed pid, uint256 allocPoint, IERC20 indexed lpToken); event Set(uint256 indexed pid, uint256 allocPoint); event Deposit(address indexed user, uint256 indexed pid, uint256 amount); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount); event UpdatePool(uint256 indexed pid, uint256 lastRewardTimestamp, uint256 lpSupply, uint256 accOolongPerShare); event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount); event Init(); event AddBonusFarm(uint indexed pid, address bonusFarm); event RemoveBonusFarm(uint indexed pid); /* ========== CONSTRUCTOR ========== */ /// @param _OOLONG_FARM_V1 The V1 Farm contract address. /// @param _OLO The OLO token contract address. /// @param _FARM_V1_PID The pool ID of the dummy token on the base V1 Farm contract. constructor( IOolongFarm _OOLONG_FARM_V1, IERC20 _OLO, uint256 _FARM_V1_PID ) public { OOLONG_FARM_V1 = _OOLONG_FARM_V1; OLO = _OLO; FARM_V1_PID = _FARM_V1_PID; } /// @notice Deposits a dummy token to `OOLONG_FARM_V1` V1 Farm. This is required because V1 Farm holds the minting rights for OLO. /// Any balance of transaction sender in `dummyToken` is transferred. /// The allocation point for the pool on V1 Farm is the total allocation point. /// @param dummyToken The address of the ERC-20 token to deposit into V1 Farm. function init(IERC20 dummyToken) external onlyOwner { uint256 balance = dummyToken.balanceOf(msg.sender); require(balance != 0, "OolongFarmV2: Balance must exceed 0"); dummyToken.safeTransferFrom(msg.sender, address(this), balance); dummyToken.approve(address(OOLONG_FARM_V1), balance); OOLONG_FARM_V1.deposit(FARM_V1_PID, balance); emit Init(); } /* ========== VIEWS ========== */ /// @notice Returns the number of V2 Farm pools. function poolLength() external view returns (uint256 pools) { pools = poolInfo.length; } /// @notice Calculates and returns the `amount` of OLO per block. function oolongPerSec() public view returns (uint256 amount) { uint256 total = 1000; uint256 lpPercent = total.sub(OOLONG_FARM_V1.distributorPercent()); uint256 lpShare = OOLONG_FARM_V1.oolongPerSec().mul(lpPercent).div(total); ( , uint allocPoint, , , ) = OOLONG_FARM_V1.poolInfo(FARM_V1_PID); amount = lpShare.mul(allocPoint).div(OOLONG_FARM_V1.totalAllocPoint()); } /// @notice View function to see pending OLO on frontend. /// @param _pid The index of the pool. See `poolInfo`. /// @param _user Address of user. /// @return pendingOLO OLO reward for a given user. // bonusTokenAddress The address of the bonus reward. // bonusTokenSymbol The symbol of the bonus token. // pendingBonusToken The amount of bonus rewards pending. function pendingOolong(uint256 _pid, address _user) external view returns (uint256) { PoolInfo memory pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accOolongPerShare = pool.accOolongPerShare; uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (block.timestamp > pool.lastRewardTimestamp && lpSupply != 0) { uint256 secondsElapsed = block.timestamp.sub(pool.lastRewardTimestamp); uint256 oloReward = secondsElapsed.mul(oolongPerSec()).mul(pool.allocPoint).div(totalAllocPoint); accOolongPerShare = accOolongPerShare.add(oloReward.mul(ACC_TOKEN_PRECISION).div(lpSupply)); } return user.amount.mul(accOolongPerShare).div(ACC_TOKEN_PRECISION).sub(user.rewardDebt); } /* ========== MUTATIVE FUNCTIONS ========== */ /// @notice Deposit LP tokens to V2 Farm for OLO allocation. /// @param pid The index of the pool. See `poolInfo`. /// @param amount LP token amount to deposit. function deposit(uint256 pid, uint256 amount) external nonReentrant { harvestFromV1Farm(); updatePool(pid); PoolInfo memory pool = poolInfo[pid]; UserInfo storage user = userInfo[pid][msg.sender]; if (user.amount > 0) { // Harvest OLO uint256 pending = user.amount.mul(pool.accOolongPerShare).div(ACC_TOKEN_PRECISION).sub(user.rewardDebt); OLO.safeTransfer(msg.sender, pending); } // Update bonus farm if (address(pool.bonusFarm) != address(0)) { pool.bonusFarm.onParentReward(msg.sender, amount, true); } // for deposit, transfer token from user first then update user amount pool.lpToken.safeTransferFrom(msg.sender, address(this), amount); user.amount = user.amount.add(amount); user.rewardDebt = user.amount.mul(pool.accOolongPerShare).div(ACC_TOKEN_PRECISION); emit Deposit(msg.sender, pid, amount); } /// @notice Withdraw LP tokens from V2 Farm. /// @param pid The index of the pool. See `poolInfo`. /// @param amount LP token amount to withdraw. function withdraw(uint256 pid, uint256 amount) external nonReentrant { harvestFromV1Farm(); updatePool(pid); PoolInfo memory pool = poolInfo[pid]; UserInfo storage user = userInfo[pid][msg.sender]; require(user.amount >= amount, "withdraw: not good"); if (user.amount > 0) { // Harvest OLO uint256 pending = user.amount.mul(pool.accOolongPerShare).div(ACC_TOKEN_PRECISION).sub(user.rewardDebt); OLO.safeTransfer(msg.sender, pending); } // Update bonus farm if (address(pool.bonusFarm) != address(0)) { pool.bonusFarm.onParentReward(msg.sender, amount, false); } // for withdraw, update user amount first then transfer token back to user user.amount = user.amount.sub(amount); user.rewardDebt = user.amount.mul(pool.accOolongPerShare).div(ACC_TOKEN_PRECISION); pool.lpToken.safeTransfer(msg.sender, amount); emit Withdraw(msg.sender, pid, amount); } // Claim pending rewards for input pools function claimAll(uint256[] calldata pids) external nonReentrant { uint256 pending; for (uint pid = 0; pid < pids.length; pid++) { updatePool(pid); PoolInfo memory pool = poolInfo[pid]; UserInfo storage user = userInfo[pid][msg.sender]; if (user.amount > 0) { pending = pending.add(user.amount.mul(pool.accOolongPerShare).div(ACC_TOKEN_PRECISION).sub(user.rewardDebt)); } // always update bonus farm: to be consistent with deposit/withdraw if (address(pool.bonusFarm) != address(0)) { pool.bonusFarm.onParentReward(msg.sender, 0, false); } // update user state after bonus reward action: to be consistent with deposit/withdraw user.rewardDebt = user.amount.mul(pool.accOolongPerShare).div(ACC_TOKEN_PRECISION); } if (pending > 0) { OLO.safeTransfer(msg.sender, pending); } } /// @notice Harvests OLO from `OOLONG_FARM_V1` V1 Farm and pool `FARM_V1_PID` to this V2 Farm contract. function harvestFromV1Farm() public { OOLONG_FARM_V1.deposit(FARM_V1_PID, 0); } /// @notice Withdraw without caring about rewards. EMERGENCY ONLY. /// @param pid The index of the pool. See `poolInfo`. function emergencyWithdraw(uint256 pid) external nonReentrant { PoolInfo memory pool = poolInfo[pid]; UserInfo storage user = userInfo[pid][msg.sender]; uint256 amount = user.amount; user.amount = 0; user.rewardDebt = 0; // Note: transfer can fail or succeed if `amount` is zero. pool.lpToken.safeTransfer(msg.sender, amount); emit EmergencyWithdraw(msg.sender, pid, amount); } /// @notice Update reward variables of the given pool. /// @param pid The index of the pool. See `poolInfo`. function updatePool(uint256 pid) public { PoolInfo memory pool = poolInfo[pid]; if (block.timestamp > pool.lastRewardTimestamp) { uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (lpSupply > 0) { uint256 secondsElapsed = block.timestamp.sub(pool.lastRewardTimestamp); uint256 oloReward = secondsElapsed.mul(oolongPerSec()).mul(pool.allocPoint).div(totalAllocPoint); pool.accOolongPerShare = pool.accOolongPerShare.add((oloReward.mul(ACC_TOKEN_PRECISION).div(lpSupply))); } pool.lastRewardTimestamp = block.timestamp; poolInfo[pid] = pool; emit UpdatePool(pid, pool.lastRewardTimestamp, lpSupply, pool.accOolongPerShare); } } /// @notice Update reward variables for input pools. /// @param pids Pool IDs of all to be updated. Make sure to update all active pools. function massUpdatePoolsByID(uint256[] calldata pids) external { uint256 len = pids.length; for (uint256 i = 0; i < len; ++i) { updatePool(pids[i]); } } // Update reward variables for all pools. Be careful of gas spending! function massUpdatePools() public { if (enableMassUpdatePools) { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { updatePool(pid); } } } /* ========== RESTRICTED FUNCTIONS ========== */ /// @notice Add a new LP to the pool. Can only be called by the owner. /// DO NOT add the same LP token more than once. Rewards will be messed up if you do. /// @param allocPoint AP of the new pool. /// @param _lpToken Address of the LP ERC-20 token. function add( uint256 allocPoint, IERC20 _lpToken ) external onlyOwner { require(!isPool[_lpToken], "add: LP already added"); // Sanity check to ensure _lpToken is an ERC20 token _lpToken.balanceOf(address(this)); massUpdatePools(); uint256 lastRewardTimestamp = block.timestamp; totalAllocPoint = totalAllocPoint.add(allocPoint); poolInfo.push( PoolInfo({ lpToken: _lpToken, allocPoint: allocPoint, lastRewardTimestamp: lastRewardTimestamp, accOolongPerShare: 0, bonusFarm: IBonusFarmV2(address(0)) // default to no bonus farm }) ); isPool[_lpToken] = true; emit Add(poolInfo.length.sub(1), allocPoint, _lpToken); } /// @notice Update the given pool's OLO allocation point. Can only be called by the owner. /// @param _pid The index of the pool. See `poolInfo`. /// @param _allocPoint New AP of the pool. function set( uint256 _pid, uint256 _allocPoint ) external onlyOwner { massUpdatePools(); totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint); poolInfo[_pid].allocPoint = _allocPoint; emit Set(_pid, _allocPoint); } // Add bonus farm to pool function addBonusFarm(uint _pid, IBonusFarmV2 _bonusFarm) external onlyOwner { PoolInfo storage pool = poolInfo[_pid]; require(address(pool.bonusFarm) == address(0), "bonus farm already initialized"); require(_bonusFarm.getParentPoolId() == _pid, "pid does not match"); require(_bonusFarm.getParentFarm() == address(this), "address does not match"); pool.bonusFarm = _bonusFarm; emit AddBonusFarm(_pid, address(_bonusFarm)); } // Clear bonus farm address for pool function removeBonusFarm(uint _pid) external onlyOwner { PoolInfo storage pool = poolInfo[_pid]; require(address(pool.bonusFarm) != address(0), "bonus farm not initialized"); pool.bonusFarm = IBonusFarmV2(address(0)); emit RemoveBonusFarm(_pid); } function toggleEnableMassUpdatePools() external onlyOwner { enableMassUpdatePools = !enableMassUpdatePools; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IOolongFarm","name":"_OOLONG_FARM_V1","type":"address"},{"internalType":"contract IERC20","name":"_OLO","type":"address"},{"internalType":"uint256","name":"_FARM_V1_PID","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":true,"internalType":"contract IERC20","name":"lpToken","type":"address"}],"name":"Add","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"address","name":"bonusFarm","type":"address"}],"name":"AddBonusFarm","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[],"name":"Init","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"}],"name":"RemoveBonusFarm","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"}],"name":"Set","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastRewardTimestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lpSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accOolongPerShare","type":"uint256"}],"name":"UpdatePool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"FARM_V1_PID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OLO","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OOLONG_FARM_V1","outputs":[{"internalType":"contract IOolongFarm","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"contract IBonusFarmV2","name":"_bonusFarm","type":"address"}],"name":"addBonusFarm","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pids","type":"uint256[]"}],"name":"claimAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributorPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvestFromV1Farm","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"dummyToken","type":"address"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"isPool","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pids","type":"uint256[]"}],"name":"massUpdatePoolsByID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"oolongPerSec","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingOolong","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"accOolongPerShare","type":"uint256"},{"internalType":"uint256","name":"lastRewardTimestamp","type":"uint256"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"contract IBonusFarmV2","name":"bonusFarm","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"pools","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"removeBonusFarm","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleEnableMassUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e0604052600060058190556006556007805460ff1916600117905534801561002757600080fd5b5060405162002a6f38038062002a6f8339818101604052606081101561004c57600080fd5b508051602082015160409092015190919060006100676100d8565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180556001600160601b0319606093841b81166080529190921b1660a05260c0526100dc565b3390565b60805160601c60a05160601c60c05161291f62000150600039806107fd5280610bf85280610fec52806114115250806105fc5280610b7752806111385280611d6d52508061075b52806108345280610c315280610cfc52806112bb528061135352806113e252806114b6525061291f6000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c806351eb05a6116100f957806382495bfd1161009757806393f1a40b1161007157806393f1a40b146104ef578063e2bbb15814610534578063e3174ddd14610557578063f2fde38b14610583576101c4565b806382495bfd1461045a57806386519844146104ca5780638da5cb5b146104e7576101c4565b80635b16ebb7116100d35780635b16ebb7146103e4578063630b5ba11461041e578063715018a614610426578063774ed55c1461042e576101c4565b806351eb05a6146103a25780635312ea8e146103bf57806355740e92146103dc576101c4565b80632a598fa3116101665780632b8bbbe8116101405780632b8bbbe8146103435780632e32ba561461036f578063441a3e701461037757806345a20d111461039a576101c4565b80632a598fa31461032b5780632ad69aba146103335780632b62d2fe1461033b576101c4565b806317caf6f1116101a257806317caf6f11461026857806319ab453c146102705780631ab06ee51461029857806328c77820146102bb576101c4565b8063081e3eda146101c95780631526fe27146101e357806315dd7daf14610244575b600080fd5b6101d16105a9565b60408051918252519081900360200190f35b610200600480360360208110156101f957600080fd5b50356105af565b60405180866001600160a01b03168152602001858152602001848152602001838152602001826001600160a01b031681526020019550505050505060405180910390f35b61024c6105fa565b604080516001600160a01b039092168252519081900360200190f35b6101d161061e565b6102966004803603602081101561028657600080fd5b50356001600160a01b0316610624565b005b610296600480360360408110156102ae57600080fd5b50803590602001356108c0565b610296600480360360208110156102d157600080fd5b8101906020810181356401000000008111156102ec57600080fd5b8201836020820111156102fe57600080fd5b8035906020019184602083028401116401000000008311171561032057600080fd5b5090925090506109c2565b610296610be8565b610296610c8e565b61024c610cfa565b6102966004803603604081101561035957600080fd5b50803590602001356001600160a01b0316610d1e565b6101d1610fea565b6102966004803603604081101561038d57600080fd5b508035906020013561100e565b6101d16112ac565b610296600480360360208110156103b857600080fd5b5035611538565b610296600480360360208110156103d557600080fd5b5035611769565b6101d161188c565b61040a600480360360208110156103fa57600080fd5b50356001600160a01b0316611892565b604080519115158252519081900360200190f35b6102966118a7565b6102966118d3565b6101d16004803603604081101561044457600080fd5b50803590602001356001600160a01b0316611975565b6102966004803603602081101561047057600080fd5b81019060208101813564010000000081111561048b57600080fd5b82018360208201111561049d57600080fd5b803590602001918460208302840111640100000000831117156104bf57600080fd5b509092509050611b12565b610296600480360360208110156104e057600080fd5b5035611b41565b61024c611c5b565b61051b6004803603604081101561050557600080fd5b50803590602001356001600160a01b0316611c6a565b6040805192835260208301919091528051918290030190f35b6102966004803603604081101561054a57600080fd5b5080359060200135611c8e565b6102966004803603604081101561056d57600080fd5b50803590602001356001600160a01b0316611ee3565b6102966004803603602081101561059957600080fd5b50356001600160a01b0316612188565b60025490565b600281815481106105bc57fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0393841695509193909290911685565b7f000000000000000000000000000000000000000000000000000000000000000081565b60055481565b61062c612280565b6000546001600160a01b0390811691161461067c576040805162461bcd60e51b815260206004820181905260248201526000805160206128a0833981519152604482015290519081900360640190fd5b6000816001600160a01b03166370a08231336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156106cb57600080fd5b505afa1580156106df573d6000803e3d6000fd5b505050506040513d60208110156106f557600080fd5b50519050806107355760405162461bcd60e51b815260040180806020018281038252602381526020018061287d6023913960400191505060405180910390fd5b61074a6001600160a01b038316333084612284565b816001600160a01b031663095ea7b37f0000000000000000000000000000000000000000000000000000000000000000836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156107c157600080fd5b505af11580156107d5573d6000803e3d6000fd5b505050506040513d60208110156107eb57600080fd5b505060408051631c57762b60e31b81527f000000000000000000000000000000000000000000000000000000000000000060048201526024810183905290516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163e2bbb15891604480830192600092919082900301818387803b15801561087b57600080fd5b505af115801561088f573d6000803e3d6000fd5b50506040517f57a86f7d14ccde89e22870afe839e3011216827daa9b24e18629f0a1e9d6cc14925060009150a15050565b6108c8612280565b6000546001600160a01b03908116911614610918576040805162461bcd60e51b815260206004820181905260248201526000805160206128a0833981519152604482015290519081900360640190fd5b6109206118a7565b61095d816109576002858154811061093457fe5b9060005260206000209060050201600301546005546122de90919063ffffffff16565b90612327565b600581905550806002838154811061097157fe5b906000526020600020906005020160030181905550817f545b620a3000f6303b158b321f06b4e95e28a27d70aecac8c6bdac4f48a9f6b3826040518082815260200191505060405180910390a25050565b600180548101908190556000805b83811015610b63576109e181611538565b6109e96127d4565b600282815481106109f657fe5b600091825260208083206040805160a081018252600590940290910180546001600160a01b03908116855260018201548585015260028201548584015260038201546060860152600491820154166080850152868552825280842033855290915290912080549192509015610aad57610aaa610aa38260010154610a9d670de0b6b3a7640000610a978760200151876000015461238190919063ffffffff16565b906123da565b906122de565b8590612327565b93505b60808201516001600160a01b031615610b345760808201516040805163529e79a360e01b81523360048201526000602482018190526044820181905291516001600160a01b039093169263529e79a39260648084019391929182900301818387803b158015610b1b57600080fd5b505af1158015610b2f573d6000803e3d6000fd5b505050505b60208201518154610b5291670de0b6b3a764000091610a9791612381565b6001918201559190910190506109d0565b508015610b9e57610b9e6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016338361241c565b506001548114610be3576040805162461bcd60e51b815260206004820152601f6024820152600080516020612816833981519152604482015290519081900360640190fd5b505050565b60408051631c57762b60e31b81527f0000000000000000000000000000000000000000000000000000000000000000600482015260006024820181905291516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169263e2bbb158926044808201939182900301818387803b158015610c7457600080fd5b505af1158015610c88573d6000803e3d6000fd5b50505050565b610c96612280565b6000546001600160a01b03908116911614610ce6576040805162461bcd60e51b815260206004820181905260248201526000805160206128a0833981519152604482015290519081900360640190fd5b6007805460ff19811660ff90911615179055565b7f000000000000000000000000000000000000000000000000000000000000000081565b610d26612280565b6000546001600160a01b03908116911614610d76576040805162461bcd60e51b815260206004820181905260248201526000805160206128a0833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526003602052604090205460ff1615610ddc576040805162461bcd60e51b81526020600482015260156024820152741859190e88131408185b1c9958591e481859191959605a1b604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516001600160a01b038316916370a08231916024808301926020929190829003018186803b158015610e2257600080fd5b505afa158015610e36573d6000803e3d6000fd5b505050506040513d6020811015610e4c57600080fd5b50610e5790506118a7565b6005544290610e669084612327565b60059081556040805160a0810182526001600160a01b0380861680835260006020808501828152858701898152606087018c81526080880185815260028054600181810183558289529a519c027f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace810180549d8b166001600160a01b03199e8f1617905594517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf86015592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad085015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad1840155517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad290920180549290961691909816179093558181526003909252929020805460ff19168217905591549091610fb291906122de565b6040805186815290517f84461c1f75d6def105393c12cb407ec6123206d6ddb2a25980b5e3e842dd12b29181900360200190a3505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60018054810190819055611020610be8565b61102983611538565b6110316127d4565b6002848154811061103e57fe5b600091825260208083206040805160a081018252600590940290910180546001600160a01b0390811685526001820154858501526002820154858401526003820154606086015260049182015416608085015288855282528084203385529091529091208054919250908411156110f1576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b8054156111615760006111298260010154610a9d670de0b6b3a7640000610a978760200151876000015461238190919063ffffffff16565b905061115f6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016338361241c565b505b60808201516001600160a01b0316156111e85760808201516040805163529e79a360e01b81523360048201526024810187905260006044820181905291516001600160a01b039093169263529e79a39260648084019391929182900301818387803b1580156111cf57600080fd5b505af11580156111e3573d6000803e3d6000fd5b505050505b80546111f490856122de565b808255602083015161121491670de0b6b3a764000091610a979190612381565b6001820155815161122f906001600160a01b0316338661241c565b604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a350506001548114610be3576040805162461bcd60e51b815260206004820152601f6024820152600080516020612816833981519152604482015290519081900360640190fd5b6000806103e8905060006113457f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166355740e926040518163ffffffff1660e01b815260040160206040518083038186803b15801561131257600080fd5b505afa158015611326573d6000803e3d6000fd5b505050506040513d602081101561133c57600080fd5b505183906122de565b905060006113dc83610a97847f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166345a20d116040518163ffffffff1660e01b815260040160206040518083038186803b1580156113aa57600080fd5b505afa1580156113be573d6000803e3d6000fd5b505050506040513d60208110156113d457600080fd5b505190612381565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631526fe277f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b81526004018082815260200191505060a06040518083038186803b15801561146457600080fd5b505afa158015611478573d6000803e3d6000fd5b505050506040513d60a081101561148e57600080fd5b50602090810151604080516317caf6f160e01b8152905191935061152f926001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016926317caf6f1926004808201939291829003018186803b1580156114f957600080fd5b505afa15801561150d573d6000803e3d6000fd5b505050506040513d602081101561152357600080fd5b5051610a978484612381565b94505050505090565b6115406127d4565b6002828154811061154d57fe5b60009182526020918290206040805160a081018252600590930290910180546001600160a01b0390811684526001820154948401949094526002810154918301829052600381015460608401526004015490921660808201529150421115611765578051604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156115f957600080fd5b505afa15801561160d573d6000803e3d6000fd5b505050506040513d602081101561162357600080fd5b50519050801561169e5760006116468360400151426122de90919063ffffffff16565b90506000611670600554610a97866060015161166a6116636112ac565b8790612381565b90612381565b905061169661168b84610a9784670de0b6b3a7640000612381565b602086015190612327565b602085015250505b42604083015260028054839190859081106116b557fe5b600091825260209182902083516005929092020180546001600160a01b03199081166001600160a01b0393841617825584840151600183015560408086015160028401556060808701516003850155608090960151600490930180549092169290931691909117905584810151858301518251918252928101859052808201929092525185927f3be3541fc42237d611b30329040bfa4569541d156560acdbbae57640d20b8f46928290030190a2505b5050565b6001805481019081905561177b6127d4565b6002838154811061178857fe5b600091825260208083206040805160a081018252600590940290910180546001600160a01b03908116855260018083015486860152600283015486850152600383015460608701526004928301548216608087015289875291845282862033808852945291852080548682559181019590955583519395509261180e929116908361241c565b604080518281529051869133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a35050506001548114611765576040805162461bcd60e51b815260206004820152601f6024820152600080516020612816833981519152604482015290519081900360640190fd5b60065481565b60036020526000908152604090205460ff1681565b60075460ff16156118d15760025460005b81811015611765576118c981611538565b6001016118b8565b565b6118db612280565b6000546001600160a01b0390811691161461192b576040805162461bcd60e51b815260206004820181905260248201526000805160206128a0833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600061197f6127d4565b6002848154811061198c57fe5b600091825260208083206040805160a081018252600590940290910180546001600160a01b039081168552600182015485850190815260028301548685015260038301546060870152600492830154821660808701528a87528285528387208a8316885285528387209051865185516370a0823160e01b81523095810195909552945196985090969095909493909116926370a082319260248082019391829003018186803b158015611a3e57600080fd5b505afa158015611a52573d6000803e3d6000fd5b505050506040513d6020811015611a6857600080fd5b5051604085015190915042118015611a7f57508015155b15611ada576000611a9d8560400151426122de90919063ffffffff16565b90506000611aba600554610a97886060015161166a6116636112ac565b9050611ad5610aa384610a9784670de0b6b3a7640000612381565b935050505b611b058360010154610a9d670de0b6b3a7640000610a9786886000015461238190919063ffffffff16565b9450505050505b92915050565b8060005b81811015610c8857611b39848483818110611b2d57fe5b90506020020135611538565b600101611b16565b611b49612280565b6000546001600160a01b03908116911614611b99576040805162461bcd60e51b815260206004820181905260248201526000805160206128a0833981519152604482015290519081900360640190fd5b600060028281548110611ba857fe5b6000918252602090912060059091020160048101549091506001600160a01b0316611c1a576040805162461bcd60e51b815260206004820152601a60248201527f626f6e7573206661726d206e6f7420696e697469616c697a6564000000000000604482015290519081900360640190fd5b6004810180546001600160a01b031916905560405182907fbfe8c72a2363127748cf24c324a88a8767239615a235c4300407960fe23829a890600090a25050565b6000546001600160a01b031690565b60046020908152600092835260408084209091529082529020805460019091015482565b60018054810190819055611ca0610be8565b611ca983611538565b611cb16127d4565b60028481548110611cbe57fe5b600091825260208083206040805160a081018252600590940290910180546001600160a01b03908116855260018201548585015260028201548584015260038201546060860152600491820154166080850152888552825280842033855290915290912080549192509015611d96576000611d5e8260010154610a9d670de0b6b3a7640000610a978760200151876000015461238190919063ffffffff16565b9050611d946001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016338361241c565b505b60808201516001600160a01b031615611e1e5760808201516040805163529e79a360e01b8152336004820152602481018790526001604482015290516001600160a01b039092169163529e79a39160648082019260009290919082900301818387803b158015611e0557600080fd5b505af1158015611e19573d6000803e3d6000fd5b505050505b8151611e35906001600160a01b0316333087612284565b8054611e419085612327565b8082556020830151611e6191670de0b6b3a764000091610a979190612381565b6001820155604080518581529051869133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350506001548114610be3576040805162461bcd60e51b815260206004820152601f6024820152600080516020612816833981519152604482015290519081900360640190fd5b611eeb612280565b6000546001600160a01b03908116911614611f3b576040805162461bcd60e51b815260206004820181905260248201526000805160206128a0833981519152604482015290519081900360640190fd5b600060028381548110611f4a57fe5b6000918252602090912060059091020160048101549091506001600160a01b031615611fbd576040805162461bcd60e51b815260206004820152601e60248201527f626f6e7573206661726d20616c726561647920696e697469616c697a65640000604482015290519081900360640190fd5b82826001600160a01b031663170bc3386040518163ffffffff1660e01b815260040160206040518083038186803b158015611ff757600080fd5b505afa15801561200b573d6000803e3d6000fd5b505050506040513d602081101561202157600080fd5b50511461206a576040805162461bcd60e51b81526020600482015260126024820152710e0d2c840c8decae640dcdee840dac2e8c6d60731b604482015290519081900360640190fd5b306001600160a01b0316826001600160a01b0316632263b0a16040518163ffffffff1660e01b815260040160206040518083038186803b1580156120ad57600080fd5b505afa1580156120c1573d6000803e3d6000fd5b505050506040513d60208110156120d757600080fd5b50516001600160a01b03161461212d576040805162461bcd60e51b81526020600482015260166024820152750c2c8c8e4cae6e640c8decae640dcdee840dac2e8c6d60531b604482015290519081900360640190fd5b6004810180546001600160a01b0384166001600160a01b03199091168117909155604080519182525184917f4a64ec0118a73079e427e468976860098db6ef0f18a8e097c32ab151d9aba122919081900360200190a2505050565b612190612280565b6000546001600160a01b039081169116146121e0576040805162461bcd60e51b815260206004820181905260248201526000805160206128a0833981519152604482015290519081900360640190fd5b6001600160a01b0381166122255760405162461bcd60e51b81526004018080602001828103825260268152602001806128366026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610c8890859061246a565b600061232083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061251b565b9392505050565b600082820183811015612320576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008261239057506000611b0c565b8282028284828161239d57fe5b04146123205760405162461bcd60e51b815260040180806020018281038252602181526020018061285c6021913960400191505060405180910390fd5b600061232083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506125b2565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610be39084905b60606124bf826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166126179092919063ffffffff16565b805190915015610be3578080602001905160208110156124de57600080fd5b5051610be35760405162461bcd60e51b815260040180806020018281038252602a8152602001806128c0602a913960400191505060405180910390fd5b600081848411156125aa5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561256f578181015183820152602001612557565b50505050905090810190601f16801561259c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836126015760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561256f578181015183820152602001612557565b50600083858161260d57fe5b0495945050505050565b6060612626848460008561262e565b949350505050565b60606126398561279b565b61268a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106126c95780518252601f1990920191602091820191016126aa565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461272b576040519150601f19603f3d011682016040523d82523d6000602084013e612730565b606091505b509150915081156127445791506126269050565b8051156127545780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561256f578181015183820152602001612557565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612626575050151592915050565b6040518060a0016040528060006001600160a01b0316815260200160008152602001600081526020016000815260200160006001600160a01b03168152509056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c004f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f6f6c6f6e674661726d56323a2042616c616e6365206d7573742065786365656420304f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220080b6b90e6690e7c285a162d8b44f6d5fc522bfc7d4a235675284c1db2eda1d264736f6c634300060c003300000000000000000000000031b9fbd965397d697d2daa434ebd219ab878e49b0000000000000000000000005008f837883ea9a07271a1b5eb0658404f5a96100000000000000000000000000000000000000000000000000000000000000013
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000031b9fbd965397d697d2daa434ebd219ab878e49b0000000000000000000000005008f837883ea9a07271a1b5eb0658404f5a96100000000000000000000000000000000000000000000000000000000000000013
-----Decoded View---------------
Arg [0] : _OOLONG_FARM_V1 (address): 0x31b9fbd965397d697d2daa434ebd219ab878e49b
Arg [1] : _OLO (address): 0x5008f837883ea9a07271a1b5eb0658404f5a9610
Arg [2] : _FARM_V1_PID (uint256): 19
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000031b9fbd965397d697d2daa434ebd219ab878e49b
Arg [1] : 0000000000000000000000005008f837883ea9a07271a1b5eb0658404f5a9610
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000013
Deployed ByteCode Sourcemap
44473:14268:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48250:102;;;:::i;:::-;;;;;;;;;;;;;;;;45639:26;;;;;;;;;;;;;;;;-1:-1:-1;45639:26:0;;:::i;:::-;;;;;-1:-1:-1;;;;;45639:26:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;45639:26:0;;;;;;;;;;;;;;;;;;;45457:27;;;:::i;:::-;;;;-1:-1:-1;;;;;45457:27:0;;;;;;;;;;;;;;46006:34;;;:::i;47741:406::-;;;;;;;;;;;;;;;;-1:-1:-1;47741:406:0;-1:-1:-1;;;;;47741:406:0;;:::i;:::-;;57437:308;;;;;;;;;;;;;;;;-1:-1:-1;57437:308:0;;;;;;;:::i;52630:1001::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52630:1001:0;;-1:-1:-1;52630:1001:0;-1:-1:-1;52630:1001:0;:::i;53748:93::-;;;:::i;58615:123::-;;;:::i;45365:43::-;;;:::i;56376:849::-;;;;;;;;;;;;;;;;-1:-1:-1;56376:849:0;;;;;;-1:-1:-1;;;;;56376:849:0;;:::i;45552:36::-;;;:::i;51528:1048::-;;;;;;;;;;;;;;;;-1:-1:-1;51528:1048:0;;;;;;;:::i;48431:418::-;;;:::i;54563:797::-;;;;;;;;;;;;;;;;-1:-1:-1;54563:797:0;;:::i;53980:456::-;;;;;;;;;;;;;;;;-1:-1:-1;53980:456:0;;:::i;46096:37::-;;;:::i;45739:::-;;;;;;;;;;;;;;;;-1:-1:-1;45739:37:0;-1:-1:-1;;;;;45739:37:0;;:::i;:::-;;;;;;;;;;;;;;;;;;55796:245;;;:::i;20808:148::-;;;:::i;49281:843::-;;;;;;;;;;;;;;;;-1:-1:-1;49281:843:0;;;;;;-1:-1:-1;;;;;49281:843:0;;:::i;55516:197::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;55516:197:0;;-1:-1:-1;55516:197:0;-1:-1:-1;55516:197:0;:::i;58319:288::-;;;;;;;;;;;;;;;;-1:-1:-1;58319:288:0;;:::i;20166:79::-;;;:::i;45841:64::-;;;;;;;;;;;;;;;;-1:-1:-1;45841:64:0;;;;;;-1:-1:-1;;;;;45841:64:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;50362:997;;;;;;;;;;;;;;;;-1:-1:-1;50362:997:0;;;;;;;:::i;57784:485::-;;;;;;;;;;;;;;;;-1:-1:-1;57784:485:0;;;;;;-1:-1:-1;;;;;57784:485:0;;:::i;21111:244::-;;;;;;;;;;;;;;;;-1:-1:-1;21111:244:0;-1:-1:-1;;;;;21111:244:0;;:::i;48250:102::-;48329:8;:15;;48250:102::o;45639:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;45639:26:0;;;;-1:-1:-1;45639:26:0;;;;;;;;:::o;45457:27::-;;;:::o;46006:34::-;;;;:::o;47741:406::-;20388:12;:10;:12::i;:::-;20378:6;;-1:-1:-1;;;;;20378:6:0;;;:22;;;20370:67;;;;;-1:-1:-1;;;20370:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20370:67:0;;;;;;;;;;;;;;;47804:15:::1;47822:10;-1:-1:-1::0;;;;;47822:20:0::1;;47843:10;47822:32;;;;;;;;;;;;;-1:-1:-1::0;;;;;47822:32:0::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;47822:32:0;;-1:-1:-1;47873:12:0;47865:60:::1;;;;-1:-1:-1::0;;;47865:60:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47936:63;-1:-1:-1::0;;;;;47936:27:0;::::1;47964:10;47984:4;47991:7:::0;47936:27:::1;:63::i;:::-;48010:10;-1:-1:-1::0;;;;;48010:18:0::1;;48037:14;48054:7;48010:52;;;;;;;;;;;;;-1:-1:-1::0;;;;;48010:52:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;;48073:44:0::1;::::0;;-1:-1:-1;;;48073:44:0;;48096:11:::1;48073:44;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;;;;;48073:14:0::1;:22;::::0;::::1;::::0;:44;;;;;-1:-1:-1;;48073:44:0;;;;;;;-1:-1:-1;48073:22:0;:44;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;48133:6:0::1;::::0;::::1;::::0;-1:-1:-1;48133:6:0;;-1:-1:-1;48133:6:0::1;20448:1;47741:406:::0;:::o;57437:308::-;20388:12;:10;:12::i;:::-;20378:6;;-1:-1:-1;;;;;20378:6:0;;;:22;;;20370:67;;;;;-1:-1:-1;;;20370:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20370:67:0;;;;;;;;;;;;;;;57540:17:::1;:15;:17::i;:::-;57586:63;57637:11;57586:46;57606:8;57615:4;57606:14;;;;;;;;;;;;;;;;;;:25;;;57586:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::1;:63::i;:::-;57568:15;:81;;;;57688:11;57660:8;57669:4;57660:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;57719:4;57715:22;57725:11;57715:22;;;;;;;;;;;;;;;;;;57437:308:::0;;:::o;52630:1001::-;22761:1;22744:18;;;;;;;;:13;;52732:801:::1;52751:17:::0;;::::1;52732:801;;;52792:15;52803:3;52792:10;:15::i;:::-;52822:20;;:::i;:::-;52845:8;52854:3;52845:13;;;;;;;;;::::0;;;::::1;::::0;;;52822:36:::1;::::0;;::::1;::::0;::::1;::::0;;52845:13:::1;::::0;;::::1;::::0;;::::1;52822:36:::0;;-1:-1:-1;;;;;52822:36:0;;::::1;::::0;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;52897:13;;;;;;;;52911:10:::1;52897:25:::0;;;;;;;;52941:11;;52822:36;;-1:-1:-1;52897:25:0;52941:15;52937:164:::1;;52987:98;52999:85;53068:4;:15;;;52999:64;46187:4;52999:39;53015:4;:22;;;52999:4;:11;;;:15;;:39;;;;:::i;:::-;:43:::0;::::1;:64::i;:::-;:68:::0;::::1;:85::i;:::-;52987:7:::0;;:11:::1;:98::i;:::-;52977:108;;52937:164;53208:14;::::0;::::1;::::0;-1:-1:-1;;;;;53200:37:0::1;::::0;53196:129:::1;;53258:14;::::0;::::1;::::0;:51:::1;::::0;;-1:-1:-1;;;53258:51:0;;53288:10:::1;53258:51;::::0;::::1;::::0;53300:1:::1;53258:51:::0;;;;;;;;;;;;;;-1:-1:-1;;;;;53258:29:0;;::::1;::::0;::::1;::::0;:51;;;;;53300:1;;53258:51;;;;;;53300:1;53258:29;:51;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;53196:129;53473:22;::::0;::::1;::::0;53457:11;;:64:::1;::::0;46187:4:::1;::::0;53457:39:::1;::::0;:15:::1;:39::i;:64::-;53439:15;::::0;;::::1;:82:::0;52770:5;;;::::1;::::0;-1:-1:-1;52732:801:0::1;;;-1:-1:-1::0;53547:11:0;;53543:81:::1;;53575:37;-1:-1:-1::0;;;;;53575:3:0::1;:16;53592:10;53604:7:::0;53575:16:::1;:37::i;:::-;22820:1;22856:13:::0;;22840:12;:29;22832:73;;;;;-1:-1:-1;;;22832:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22832:73:0;;;;;;;;;;;;;;;52630:1001;;;:::o;53748:93::-;53795:38;;;-1:-1:-1;;;53795:38:0;;53818:11;53795:38;;;;53831:1;53795:38;;;;;;;;-1:-1:-1;;;;;53795:14:0;:22;;;;:38;;;;;;;;;;;53831:1;53795:22;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53748:93::o;58615:123::-;20388:12;:10;:12::i;:::-;20378:6;;-1:-1:-1;;;;;20378:6:0;;;:22;;;20370:67;;;;;-1:-1:-1;;;20370:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20370:67:0;;;;;;;;;;;;;;;58709:21:::1;::::0;;-1:-1:-1;;58684:46:0;::::1;58709:21;::::0;;::::1;58708:22;58684:46;::::0;;58615:123::o;45365:43::-;;;:::o;56376:849::-;20388:12;:10;:12::i;:::-;20378:6;;-1:-1:-1;;;;;20378:6:0;;;:22;;;20370:67;;;;;-1:-1:-1;;;20370:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20370:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;56490:16:0;::::1;;::::0;;;:6:::1;:16;::::0;;;;;::::1;;56489:17;56481:51;;;::::0;;-1:-1:-1;;;56481:51:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;56481:51:0;;;;;;;;;;;;;::::1;;56605:33;::::0;;-1:-1:-1;;;56605:33:0;;56632:4:::1;56605:33;::::0;::::1;::::0;;;-1:-1:-1;;;;;56605:18:0;::::1;::::0;::::1;::::0;:33;;;;;::::1;::::0;;;;;;;;:18;:33;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;56649:17:0::1;::::0;-1:-1:-1;56649:15:0::1;:17::i;:::-;56753:15;::::0;56709::::1;::::0;56753:31:::1;::::0;56773:10;56753:19:::1;:31::i;:::-;56735:15;:49:::0;;;56825:282:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;56825:282:0;;::::1;::::0;;;-1:-1:-1;56825:282:0::1;::::0;;::::1;::::0;;;;;;;;;;;;;;;;;;;;;56797:8:::1;:321:::0;;::::1;::::0;;::::1;::::0;;;;;;;;::::1;::::0;;::::1;::::0;;;;::::1;-1:-1:-1::0;;;;;;56797:321:0;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::1;::::0;;;::::1;;::::0;;;57129:16;;;-1:-1:-1;57129:16:0;;;;;;:23;;-1:-1:-1;;57129:23:0::1;::::0;::::1;::::0;;57172:15;;56825:282;;57172:22:::1;::::0;:15;:19:::1;:22::i;:::-;57168:49;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;20448:1;56376:849:::0;;:::o;45552:36::-;;;:::o;51528:1048::-;22761:1;22744:18;;;;;;;;51608:19:::1;:17;:19::i;:::-;51638:15;51649:3;51638:10;:15::i;:::-;51664:20;;:::i;:::-;51687:8;51696:3;51687:13;;;;;;;;;::::0;;;::::1;::::0;;;51664:36:::1;::::0;;::::1;::::0;::::1;::::0;;51687:13:::1;::::0;;::::1;::::0;;::::1;51664:36:::0;;-1:-1:-1;;;;;51664:36:0;;::::1;::::0;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;51735:13;;;;;;;;51749:10:::1;51735:25:::0;;;;;;;;51779:11;;51664:36;;-1:-1:-1;51735:25:0;51779:21;-1:-1:-1;51779:21:0::1;51771:52;;;::::0;;-1:-1:-1;;;51771:52:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;51771:52:0;;;;;;;;;;;;;::::1;;51840:11:::0;;:15;51836:231:::1;;51900:15;51918:85;51987:4;:15;;;51918:64;46187:4;51918:39;51934:4;:22;;;51918:4;:11;;;:15;;:39;;;;:::i;:85::-;51900:103:::0;-1:-1:-1;52018:37:0::1;-1:-1:-1::0;;;;;52018:3:0::1;:16;52035:10;51900:103:::0;52018:16:::1;:37::i;:::-;51836:231;;52121:14;::::0;::::1;::::0;-1:-1:-1;;;;;52113:37:0::1;::::0;52109:126:::1;;52167:14;::::0;::::1;::::0;:56:::1;::::0;;-1:-1:-1;;;52167:56:0;;52197:10:::1;52167:56;::::0;::::1;::::0;;;;;;;52217:5:::1;52167:56:::0;;;;;;;;-1:-1:-1;;;;;52167:29:0;;::::1;::::0;::::1;::::0;:56;;;;;52217:5;;52167:56;;;;;;52217:5;52167:29;:56;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;52109:126;52345:11:::0;;:23:::1;::::0;52361:6;52345:15:::1;:23::i;:::-;52331:37:::0;;;52413:22:::1;::::0;::::1;::::0;52397:64:::1;::::0;46187:4:::1;::::0;52397:39:::1;::::0;52331:37;52397:15:::1;:39::i;:64::-;52379:15;::::0;::::1;:82:::0;52472:12;;:45:::1;::::0;-1:-1:-1;;;;;52472:25:0::1;52498:10;52510:6:::0;52472:25:::1;:45::i;:::-;52535:33;::::0;;;;;;;52556:3;;52544:10:::1;::::0;52535:33:::1;::::0;;;;::::1;::::0;;::::1;22820:1;;22856:13:::0;;22840:12;:29;22832:73;;;;;-1:-1:-1;;;22832:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22832:73:0;;;;;;;;;;;;;;48431:418;48476:14;48503:13;48519:4;48503:20;;48534:17;48554:46;48564:14;-1:-1:-1;;;;;48564:33:0;;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48564:35:0;48554:5;;:9;:46::i;:::-;48534:66;;48611:15;48629:55;48678:5;48629:44;48663:9;48629:14;-1:-1:-1;;;;;48629:27:0;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48629:29:0;;:33;:44::i;:55::-;48611:73;;48699:15;48724:14;-1:-1:-1;;;;;48724:23:0;;48748:11;48724:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48724:36:0;;;;;;48808:32;;-1:-1:-1;;;48808:32:0;;;;48724:36;;-1:-1:-1;48780:61:0;;-1:-1:-1;;;;;48808:14:0;:30;;;;:32;;;;;48724:36;48808:32;;;;;;:30;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48808:32:0;48780:23;:7;48792:10;48780:11;:23::i;:61::-;48771:70;;48431:418;;;;;:::o;54563:797::-;54614:20;;:::i;:::-;54637:8;54646:3;54637:13;;;;;;;;;;;;;;;;;54614:36;;;;;;;;54637:13;;;;;;;54614:36;;-1:-1:-1;;;;;54614:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54665:15:0;:42;54661:692;;;54743:12;;:37;;;-1:-1:-1;;;54743:37:0;;54774:4;54743:37;;;;;;54724:16;;-1:-1:-1;;;;;54743:22:0;;;;:37;;;;;;;;;;;;;;:22;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54743:37:0;;-1:-1:-1;54799:12:0;;54795:360;;54832:22;54857:45;54877:4;:24;;;54857:15;:19;;:45;;;;:::i;:::-;54832:70;;54921:17;54941:76;55001:15;;54941:55;54980:4;:15;;;54941:34;54960:14;:12;:14::i;:::-;54941;;:18;:34::i;:::-;:38;;:55::i;:76::-;54921:96;-1:-1:-1;55061:78:0;55089:48;55128:8;55089:34;54921:96;46187:4;55089:13;:34::i;:48::-;55061:22;;;;;:26;:78::i;:::-;55036:22;;;:103;-1:-1:-1;;54795:360:0;55196:15;55169:24;;;:42;55226:8;:13;;55169:4;;55226:8;55235:3;;55226:13;;;;;;;;;;;;;;;:20;;:13;;;;;;:20;;-1:-1:-1;;;;;;55226:20:0;;;-1:-1:-1;;;;;55226:20:0;;;;;;;;;;-1:-1:-1;55226:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55282:24;;;;55318:22;;;;55266:75;;;;;;;;;;;;;;;;;;;55277:3;;55266:75;;;;;;;;54661:692;;54563:797;;:::o;53980:456::-;22761:1;22744:18;;;;;;;;54053:20:::1;;:::i;:::-;54076:8;54085:3;54076:13;;;;;;;;;::::0;;;::::1;::::0;;;54053:36:::1;::::0;;::::1;::::0;::::1;::::0;;54076:13:::1;::::0;;::::1;::::0;;::::1;54053:36:::0;;-1:-1:-1;;;;;54053:36:0;;::::1;::::0;;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;;54124:13;;;;;;;;;54138:10:::1;54124:25:::0;;;;;;;;54177:11;;54199:15;;;54225;;::::1;:19:::0;;;;54325:12;;54053:36;;-1:-1:-1;54177:11:0;54325:45:::1;::::0;:25;::::1;::::0;54177:11;54325:25:::1;:45::i;:::-;54386:42;::::0;;;;;;;54416:3;;54404:10:::1;::::0;54386:42:::1;::::0;;;;::::1;::::0;;::::1;22820:1;;;22856:13:::0;;22840:12;:29;22832:73;;;;;-1:-1:-1;;;22832:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22832:73:0;;;;;;;;;;;;;;46096:37;;;;:::o;45739:::-;;;;;;;;;;;;;;;:::o;55796:245::-;55845:21;;;;55841:193;;;55900:8;:15;55883:14;55930:93;55958:6;55952:3;:12;55930:93;;;55992:15;56003:3;55992:10;:15::i;:::-;55966:5;;55930:93;;55841:193;55796:245::o;20808:148::-;20388:12;:10;:12::i;:::-;20378:6;;-1:-1:-1;;;;;20378:6:0;;;:22;;;20370:67;;;;;-1:-1:-1;;;20370:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20370:67:0;;;;;;;;;;;;;;;20915:1:::1;20899:6:::0;;20878:40:::1;::::0;-1:-1:-1;;;;;20899:6:0;;::::1;::::0;20878:40:::1;::::0;20915:1;;20878:40:::1;20946:1;20929:19:::0;;-1:-1:-1;;;;;;20929:19:0::1;::::0;;20808:148::o;49281:843::-;49383:7;49408:20;;:::i;:::-;49431:8;49440:4;49431:14;;;;;;;;;;;;;;;;49408:37;;;;;;;;49431:14;;;;;;;49408:37;;-1:-1:-1;;;;;49408:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49480:14;;;;;;;;;:21;;;;;;;;;;49540:22;;49592:12;;:37;;-1:-1:-1;;;49592:37:0;;49623:4;49592:37;;;;;;;;;49408;;-1:-1:-1;49480:21:0;;49540:22;;49431:14;;49592:22;;;;;;;:37;;;;;;;;;;;:22;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;49592:37:0;49662:24;;;;49592:37;;-1:-1:-1;49644:15:0;:42;:59;;;;-1:-1:-1;49690:13:0;;;49644:59;49640:379;;;49720:22;49745:45;49765:4;:24;;;49745:15;:19;;:45;;;;:::i;:::-;49720:70;;49805:17;49825:76;49885:15;;49825:55;49864:4;:15;;;49825:34;49844:14;:12;:14::i;49825:76::-;49805:96;-1:-1:-1;49936:71:0;49958:48;49997:8;49958:34;49805:96;46187:4;49958:13;:34::i;49936:71::-;49916:91;;49640:379;;;50036:80;50100:4;:15;;;50036:59;46187:4;50036:34;50052:17;50036:4;:11;;;:15;;:34;;;;:::i;:80::-;50029:87;;;;;;49281:843;;;;;:::o;55516:197::-;55604:4;55590:11;55626:80;55650:3;55646:1;:7;55626:80;;;55675:19;55686:4;;55691:1;55686:7;;;;;;;;;;;;;55675:10;:19::i;:::-;55655:3;;55626:80;;58319:288;20388:12;:10;:12::i;:::-;20378:6;;-1:-1:-1;;;;;20378:6:0;;;:22;;;20370:67;;;;;-1:-1:-1;;;20370:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20370:67:0;;;;;;;;;;;;;;;58385:21:::1;58409:8;58418:4;58409:14;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;58450;::::0;::::1;::::0;58409;;-1:-1:-1;;;;;;58450:14:0::1;58434:76;;;::::0;;-1:-1:-1;;;58434:76:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;58521:14;::::0;::::1;:41:::0;;-1:-1:-1;;;;;;58521:41:0::1;::::0;;58578:21:::1;::::0;58594:4;;58578:21:::1;::::0;58559:1:::1;::::0;58578:21:::1;20448:1;58319:288:::0;:::o;20166:79::-;20204:7;20231:6;-1:-1:-1;;;;;20231:6:0;20166:79;:::o;45841:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;50362:997::-;22761:1;22744:18;;;;;;;;50441:19:::1;:17;:19::i;:::-;50471:15;50482:3;50471:10;:15::i;:::-;50497:20;;:::i;:::-;50520:8;50529:3;50520:13;;;;;;;;;::::0;;;::::1;::::0;;;50497:36:::1;::::0;;::::1;::::0;::::1;::::0;;50520:13:::1;::::0;;::::1;::::0;;::::1;50497:36:::0;;-1:-1:-1;;;;;50497:36:0;;::::1;::::0;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;50568:13;;;;;;;;50582:10:::1;50568:25:::0;;;;;;;;50610:11;;50497:36;;-1:-1:-1;50568:25:0;50610:15;50606:231:::1;;50670:15;50688:85;50757:4;:15;;;50688:64;46187:4;50688:39;50704:4;:22;;;50688:4;:11;;;:15;;:39;;;;:::i;:85::-;50670:103:::0;-1:-1:-1;50788:37:0::1;-1:-1:-1::0;;;;;50788:3:0::1;:16;50805:10;50670:103:::0;50788:16:::1;:37::i;:::-;50606:231;;50891:14;::::0;::::1;::::0;-1:-1:-1;;;;;50883:37:0::1;::::0;50879:125:::1;;50937:14;::::0;::::1;::::0;:55:::1;::::0;;-1:-1:-1;;;50937:55:0;;50967:10:::1;50937:55;::::0;::::1;::::0;;;;;;;50987:4:::1;50937:55:::0;;;;;;-1:-1:-1;;;;;50937:29:0;;::::1;::::0;::::1;::::0;:55;;;;;-1:-1:-1;;50937:55:0;;;;;;;;-1:-1:-1;50937:29:0;:55;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;50879:125;51096:12:::0;;:64:::1;::::0;-1:-1:-1;;;;;51096:29:0::1;51126:10;51146:4;51153:6:::0;51096:29:::1;:64::i;:::-;51185:11:::0;;:23:::1;::::0;51201:6;51185:15:::1;:23::i;:::-;51171:37:::0;;;51253:22:::1;::::0;::::1;::::0;51237:64:::1;::::0;46187:4:::1;::::0;51237:39:::1;::::0;51171:37;51237:15:::1;:39::i;:64::-;51219:15;::::0;::::1;:82:::0;51319:32:::1;::::0;;;;;;;51339:3;;51327:10:::1;::::0;51319:32:::1;::::0;;;;::::1;::::0;;::::1;22820:1;;22856:13:::0;;22840:12;:29;22832:73;;;;;-1:-1:-1;;;22832:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22832:73:0;;;;;;;;;;;;;;57784:485;20388:12;:10;:12::i;:::-;20378:6;;-1:-1:-1;;;;;20378:6:0;;;:22;;;20370:67;;;;;-1:-1:-1;;;20370:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20370:67:0;;;;;;;;;;;;;;;57872:21:::1;57896:8;57905:4;57896:14;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;57937;::::0;::::1;::::0;57896;;-1:-1:-1;;;;;;57937:14:0::1;57929:37:::0;57921:80:::1;;;::::0;;-1:-1:-1;;;57921:80:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;58052:4;58020:10;-1:-1:-1::0;;;;;58020:26:0::1;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;58020:28:0;:36:::1;58012:67;;;::::0;;-1:-1:-1;;;58012:67:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;58012:67:0;;;;;;;;;;;;;::::1;;58136:4;-1:-1:-1::0;;;;;58098:43:0::1;:10;-1:-1:-1::0;;;;;58098:24:0::1;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;58098:26:0;-1:-1:-1;;;;;58098:43:0::1;;58090:78;;;::::0;;-1:-1:-1;;;58090:78:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;58090:78:0;;;;;;;;;;;;;::::1;;58179:14;::::0;::::1;:27:::0;;-1:-1:-1;;;;;58179:27:0;::::1;-1:-1:-1::0;;;;;;58179:27:0;;::::1;::::0;::::1;::::0;;;58222:39:::1;::::0;;;;;;58235:4;;58222:39:::1;::::0;;;;;::::1;::::0;;::::1;20448:1;57784:485:::0;;:::o;21111:244::-;20388:12;:10;:12::i;:::-;20378:6;;-1:-1:-1;;;;;20378:6:0;;;:22;;;20370:67;;;;;-1:-1:-1;;;20370:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20370:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;21200:22:0;::::1;21192:73;;;;-1:-1:-1::0;;;21192:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21302:6;::::0;;21281:38:::1;::::0;-1:-1:-1;;;;;21281:38:0;;::::1;::::0;21302:6;::::1;::::0;21281:38:::1;::::0;::::1;21330:6;:17:::0;;-1:-1:-1;;;;;;21330:17:0::1;-1:-1:-1::0;;;;;21330:17:0;;;::::1;::::0;;;::::1;::::0;;21111:244::o;18734:106::-;18822:10;18734:106;:::o;15235:205::-;15363:68;;;-1:-1:-1;;;;;15363:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15363:68:0;-1:-1:-1;;;15363:68:0;;;15336:96;;15356:5;;15336:19;:96::i;4192:136::-;4250:7;4277:43;4281:1;4284;4277:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;4270:50;4192:136;-1:-1:-1;;;4192:136:0:o;3728:181::-;3786:7;3818:5;;;3842:6;;;;3834:46;;;;;-1:-1:-1;;;3834:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;5082:471;5140:7;5385:6;5381:47;;-1:-1:-1;5415:1:0;5408:8;;5381:47;5452:5;;;5456:1;5452;:5;:1;5476:5;;;;;:10;5468:56;;;;-1:-1:-1;;;5468:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6029:132;6087:7;6114:39;6118:1;6121;6114:39;;;;;;;;;;;;;;;;;:3;:39::i;15050:177::-;15160:58;;;-1:-1:-1;;;;;15160:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15160:58:0;-1:-1:-1;;;15160:58:0;;;15133:86;;15153:5;;17355:761;17779:23;17805:69;17833:4;17805:69;;;;;;;;;;;;;;;;;17813:5;-1:-1:-1;;;;;17805:27:0;;;:69;;;;;:::i;:::-;17889:17;;17779:95;;-1:-1:-1;17889:21:0;17885:224;;18031:10;18020:30;;;;;;;;;;;;;;;-1:-1:-1;18020:30:0;18012:85;;;;-1:-1:-1;;;18012:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4631:192;4717:7;4753:12;4745:6;;;;4737:29;;;;-1:-1:-1;;;4737:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;4789:5:0;;;4631:192::o;6657:278::-;6743:7;6778:12;6771:5;6763:28;;;;-1:-1:-1;;;6763:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6802:9;6818:1;6814;:5;;;;;;;6657:278;-1:-1:-1;;;;;6657:278:0:o;12052:196::-;12155:12;12187:53;12210:6;12218:4;12224:1;12227:12;12187:22;:53::i;:::-;12180:60;12052:196;-1:-1:-1;;;;12052:196:0:o;13429:979::-;13559:12;13592:18;13603:6;13592:10;:18::i;:::-;13584:60;;;;;-1:-1:-1;;;13584:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13718:12;13732:23;13759:6;-1:-1:-1;;;;;13759:11:0;13779:8;13790:4;13759:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13759:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13717:78;;;;13810:7;13806:595;;;13841:10;-1:-1:-1;13834:17:0;;-1:-1:-1;13834:17:0;13806:595;13955:17;;:21;13951:439;;14218:10;14212:17;14279:15;14266:10;14262:2;14258:19;14251:44;14166:148;14354:20;;-1:-1:-1;;;14354:20:0;;;;;;;;;;;;;;;;;14361:12;;14354:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8937:619;8997:4;9465:20;;9308:66;9505:23;;;;;;:42;;-1:-1:-1;;9532:15:0;;;9497:51;-1:-1:-1;;8937:619:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o
Swarm Source
ipfs://080b6b90e6690e7c285a162d8b44f6d5fc522bfc7d4a235675284c1db2eda1d2
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.