Contract Overview
My Name Tag:
Not Available, login to update
[ Download CSV Export ]
Contract Name:
MasterChef
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at polygonscan.com on 2021-07-05 */ pragma solidity >=0.6.0 <0.8.0; // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.4.0/contracts/utils/ReentrancyGuard.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.4.0/contracts/utils/Context.sol pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with 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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.4.0/contracts/access/Ownable.sol pragma solidity ^0.6.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ 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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.4.0/contracts/utils/Address.sol pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // 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"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.4.0/contracts/math/SafeMath.sol pragma solidity ^0.6.0; /** * @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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.4.0/contracts/token/ERC20/SafeERC20.sol pragma solidity >=0.6.0 <0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using 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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.4.0/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.4.0/contracts/token/ERC20/ERC20.sol pragma solidity ^0.6.0; /** * @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/AppleToken.sol pragma solidity 0.6.12; contract AppleToken is ERC20("Apple", "APPLE"), Ownable { 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; /// @dev A checkpoint for marking number of votes from a given block struct Checkpoint { uint32 fromBlock; uint256 votes; } /// @dev A record of votes checkpoints for each account, by index mapping (address => mapping (uint32 => Checkpoint)) public checkpoints; /// @dev The number of checkpoints for each account mapping (address => uint32) public numCheckpoints; /// @dev The EIP-712 typehash for the contract's domain bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)"); /// @dev 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)"); /// @dev A record of states for signing / validating signatures mapping (address => uint) public nonces; /// @dev An event thats emitted when an account changes its delegate event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate); /// @dev An event thats emitted when a delegate account's vote balance changes event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance); /** * @dev 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]; } /** * @dev 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); } /** * @dev 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), "EGG::delegateBySig: invalid signature"); require(nonce == nonces[signatory]++, "EGG::delegateBySig: invalid nonce"); require(now <= expiry, "EGG::delegateBySig: signature expired"); return _delegate(signatory, delegatee); } /** * @dev 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; } /** * @dev 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, "EGG::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 EGGs (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, "EGG::_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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.4.0/contracts/GSN/Context.sol // File: contracts/MasterChef.sol pragma solidity 0.6.12; // MasterChef is the master of Apple. He can make Apple and he is a fair guy. // // Note that it's ownable and the owner wields tremendous power. The ownership // will be transferred to a governance smart contract once APPLE is sufficiently // distributed and the community can show to govern itself. // // Have fun reading it. Hopefully it's bug-free. God bless. contract MasterChef is Ownable, ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. uint256 rewardLockedUp; // Reward locked up. uint256 nextHarvestUntil; // When can the user harvest again. // // We do some fancy math here. Basically, any point in time, the amount of APPLEs // entitled to a user but is pending to be distributed is: // // pending reward = (user.amount * pool.accApplePerShare) - user.rewardDebt // // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens: // 1. The pool's `accApplePerShare` (and `lastRewardBlock`) gets updated. // 2. User receives the pending reward sent to his/her address. // 3. User's `amount` gets updated. // 4. User's `rewardDebt` gets updated. } // Info of each pool. struct PoolInfo { IERC20 lpToken; // Address of LP token contract. uint256 allocPoint; // How many allocation points assigned to this pool. APPLEs to distribute per block. uint256 lastRewardBlock; // Last block number that APPLEs distribution occurs. uint256 accApplePerShare; // Accumulated APPLEs per share, times 1e12. See below. uint16 depositFeeBP; // Deposit fee in basis points uint256 harvestInterval; // Harvest interval in seconds } // The APPLE TOKEN! AppleToken public apple; // Dev address. address public devAddress; // Deposit Fee address address public feeAddress; // APPLE tokens created per block. uint256 public applePerBlock; // Bonus muliplier for early apple makers. uint256 public constant BONUS_MULTIPLIER = 1; // Max harvest interval: 14 days. uint256 public constant MAXIMUM_HARVEST_INTERVAL = 14 days; // Info of each pool. PoolInfo[] public poolInfo; // Info of each user that stakes LP tokens. mapping(uint256 => mapping(address => UserInfo)) public userInfo; // Total allocation points. Must be the sum of all allocation points in all pools. uint256 public totalAllocPoint = 0; // The block number when APPLE mining starts. uint256 public startBlock; // Total locked up rewards uint256 public totalLockedUpRewards; event Deposit(address indexed user, uint256 indexed pid, uint256 amount); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount); event EmissionRateUpdated(address indexed caller, uint256 previousAmount, uint256 newAmount); event ReferralCommissionPaid(address indexed user, address indexed referrer, uint256 commissionAmount); event RewardLockedUp(address indexed user, uint256 indexed pid, uint256 amountLockedUp); constructor( AppleToken _apple, uint256 _startBlock, uint256 _applePerBlock ) public { apple = _apple; startBlock = _startBlock; applePerBlock = _applePerBlock; devAddress = msg.sender; feeAddress = msg.sender; add(2500, _apple, 0, 0, true); } function poolLength() external view returns (uint256) { return poolInfo.length; } // Add a new lp to the pool. Can only be called by the owner. // XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do. function add(uint256 _allocPoint, IERC20 _lpToken, uint16 _depositFeeBP, uint256 _harvestInterval, bool _withUpdate) public onlyOwner { require(_depositFeeBP <= 400, "add: invalid deposit fee basis points"); require(_harvestInterval <= MAXIMUM_HARVEST_INTERVAL, "add: invalid harvest interval"); if (_withUpdate) { massUpdatePools(); } uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock; totalAllocPoint = totalAllocPoint.add(_allocPoint); poolInfo.push(PoolInfo({ lpToken: _lpToken, allocPoint: _allocPoint, lastRewardBlock: lastRewardBlock, accApplePerShare: 0, depositFeeBP: _depositFeeBP, harvestInterval: _harvestInterval })); } // Update the given pool's APPLE allocation point and deposit fee. Can only be called by the owner. function set(uint256 _pid, uint256 _allocPoint, uint16 _depositFeeBP, uint256 _harvestInterval, bool _withUpdate) public onlyOwner { require(_depositFeeBP <= 400, "set: invalid deposit fee basis points"); require(_harvestInterval <= MAXIMUM_HARVEST_INTERVAL, "set: invalid harvest interval"); if (_withUpdate) { massUpdatePools(); } totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint); poolInfo[_pid].allocPoint = _allocPoint; poolInfo[_pid].depositFeeBP = _depositFeeBP; poolInfo[_pid].harvestInterval = _harvestInterval; } // Return reward multiplier over the given _from to _to block. function getMultiplier(uint256 _from, uint256 _to) public pure returns (uint256) { return _to.sub(_from).mul(BONUS_MULTIPLIER); } // View function to see pending APPLEs on frontend. function pendingApple(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accApplePerShare = pool.accApplePerShare; uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (block.number > pool.lastRewardBlock && lpSupply != 0) { uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number); uint256 appleReward = multiplier.mul(applePerBlock).mul(pool.allocPoint).div(totalAllocPoint); accApplePerShare = accApplePerShare.add(appleReward.mul(1e12).div(lpSupply)); } uint256 pending = user.amount.mul(accApplePerShare).div(1e12).sub(user.rewardDebt); return pending.add(user.rewardLockedUp); } // View function to see if user can harvest APPLEs. function canHarvest(uint256 _pid, address _user) public view returns (bool) { UserInfo storage user = userInfo[_pid][_user]; return block.timestamp >= user.nextHarvestUntil; } // Update reward variables for all pools. Be careful of gas spending! function massUpdatePools() public { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { updatePool(pid); } } // Update reward variables of the given pool to be up-to-date. function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.number <= pool.lastRewardBlock) { return; } uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (lpSupply == 0 || pool.allocPoint == 0) { pool.lastRewardBlock = block.number; return; } uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number); uint256 appleReward = multiplier.mul(applePerBlock).mul(pool.allocPoint).div(totalAllocPoint); apple.mint(devAddress, appleReward.div(10)); apple.mint(address(this), appleReward); pool.accApplePerShare = pool.accApplePerShare.add(appleReward.mul(1e12).div(lpSupply)); pool.lastRewardBlock = block.number; } // Deposit LP tokens to MasterChef for APPLE allocation. function deposit(uint256 _pid, uint256 _amount) public nonReentrant { PoolInfo storage pool = poolInfo[_pid]; if (pool.harvestInterval > 0) { require(block.number >= startBlock, "deposit: farming not started"); } UserInfo storage user = userInfo[_pid][msg.sender]; updatePool(_pid); payOrLockupPendingApple(_pid); if (_amount > 0) { pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount); if (pool.depositFeeBP > 0) { uint256 depositFee = _amount.mul(pool.depositFeeBP).div(10000); pool.lpToken.safeTransfer(feeAddress, depositFee); user.amount = user.amount.add(_amount).sub(depositFee); } else { user.amount = user.amount.add(_amount); } } user.rewardDebt = user.amount.mul(pool.accApplePerShare).div(1e12); emit Deposit(msg.sender, _pid, _amount); } // Withdraw LP tokens from MasterChef. function withdraw(uint256 _pid, uint256 _amount) public nonReentrant { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; require(user.amount >= _amount, "withdraw: not good"); updatePool(_pid); payOrLockupPendingApple(_pid); if (_amount > 0) { user.amount = user.amount.sub(_amount); pool.lpToken.safeTransfer(address(msg.sender), _amount); } user.rewardDebt = user.amount.mul(pool.accApplePerShare).div(1e12); emit Withdraw(msg.sender, _pid, _amount); } // Withdraw without caring about rewards. EMERGENCY ONLY. function emergencyWithdraw(uint256 _pid) public nonReentrant { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; uint256 amount = user.amount; user.amount = 0; user.rewardDebt = 0; user.rewardLockedUp = 0; user.nextHarvestUntil = 0; pool.lpToken.safeTransfer(address(msg.sender), amount); emit EmergencyWithdraw(msg.sender, _pid, amount); } // Pay or lockup pending APPLEs. function payOrLockupPendingApple(uint256 _pid) internal { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; if (user.nextHarvestUntil == 0) { user.nextHarvestUntil = block.timestamp.add(pool.harvestInterval); } uint256 pending = user.amount.mul(pool.accApplePerShare).div(1e12).sub(user.rewardDebt); if (canHarvest(_pid, msg.sender)) { if (pending > 0 || user.rewardLockedUp > 0) { uint256 totalRewards = pending.add(user.rewardLockedUp); // reset lockup totalLockedUpRewards = totalLockedUpRewards.sub(user.rewardLockedUp); user.rewardLockedUp = 0; user.nextHarvestUntil = block.timestamp.add(pool.harvestInterval); // send rewards safeAppleTransfer(msg.sender, totalRewards); } } else if (pending > 0) { user.rewardLockedUp = user.rewardLockedUp.add(pending); totalLockedUpRewards = totalLockedUpRewards.add(pending); emit RewardLockedUp(msg.sender, _pid, pending); } } // Safe apple transfer function, just in case if rounding error causes pool to not have enough APPLEs. function safeAppleTransfer(address _to, uint256 _amount) internal { uint256 appleBal = apple.balanceOf(address(this)); if (_amount > appleBal) { apple.transfer(_to, appleBal); } else { apple.transfer(_to, _amount); } } // Update dev address by the previous dev. function setDevAddress(address _devAddress) public { require(msg.sender == devAddress, "setDevAddress: FORBIDDEN"); require(_devAddress != address(0), "setDevAddress: ZERO"); devAddress = _devAddress; } function setFeeAddress(address _feeAddress) public { require(msg.sender == feeAddress, "setFeeAddress: FORBIDDEN"); require(_feeAddress != address(0), "setFeeAddress: ZERO"); feeAddress = _feeAddress; } // Pancake has to add hidden dummy pools in order to alter the emission, here we make it simple and transparent to all. function updateEmissionRate(uint256 _applePerBlock) public onlyOwner { massUpdatePools(); emit EmissionRateUpdated(msg.sender, applePerBlock, _applePerBlock); applePerBlock = _applePerBlock; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract AppleToken","name":"_apple","type":"address"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_applePerBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"EmissionRateUpdated","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":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"referrer","type":"address"},{"indexed":false,"internalType":"uint256","name":"commissionAmount","type":"uint256"}],"name":"ReferralCommissionPaid","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":"amountLockedUp","type":"uint256"}],"name":"RewardLockedUp","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":"BONUS_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_HARVEST_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"uint256","name":"_harvestInterval","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"apple","outputs":[{"internalType":"contract AppleToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"applePerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"canHarvest","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","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":"pendingApple","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":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accApplePerShare","type":"uint256"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"},{"internalType":"uint256","name":"harvestInterval","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"uint256","name":"_harvestInterval","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devAddress","type":"address"}],"name":"setDevAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"setFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalLockedUpRewards","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":"_applePerBlock","type":"uint256"}],"name":"updateEmissionRate","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"},{"internalType":"uint256","name":"rewardLockedUp","type":"uint256"},{"internalType":"uint256","name":"nextHarvestUntil","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
608060405260006008553480156200001657600080fd5b5060405162002a0f38038062002a0f833981810160405260608110156200003c57600080fd5b508051602082015160409092015190919060006200005962000106565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001808055600280546001600160a01b0386166001600160a01b031991821617909155600984905560058390556003805482163390811790915560048054909216179055620000fd906109c490859060009081906200010a565b505050620008fc565b3390565b6200011462000106565b6000546001600160a01b0390811691161462000177576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6101908361ffff161115620001be5760405162461bcd60e51b8152600401808060200182810382526025815260200180620029c96025913960400191505060405180910390fd5b6212750082111562000217576040805162461bcd60e51b815260206004820152601d60248201527f6164643a20696e76616c6964206861727665737420696e74657276616c000000604482015290519081900360640190fd5b8015620002285762000228620003be565b600060095443116200023d576009546200023f565b435b90506200025d86600854620003e560201b620017051790919060201c565b6008556040805160c0810182526001600160a01b0396871681526020810197885290810191825260006060820181815261ffff9687166080840190815260a08401968752600680546001810182559381905293517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f9390940292830180546001600160a01b031916949099169390931790975596517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4088015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4187015593517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d428601555091517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d438401805461ffff191691909216179055517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4490910155565b60065460005b81811015620003e157620003d88162000449565b600101620003c4565b5050565b60008282018381101562000440576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b6000600682815481106200045957fe5b90600052602060002090600602019050806002015443116200047c5750620006e1565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015620004c757600080fd5b505afa158015620004dc573d6000803e3d6000fd5b505050506040513d6020811015620004f357600080fd5b505190508015806200050757506001820154155b156200051b575043600290910155620006e1565b600062000533836002015443620006e460201b60201c565b905060006200058b60085462000577866001015462000563600554876200070660201b6200175f1790919060201c565b6200070660201b6200175f1790919060201c565b6200076460201b620017b81790919060201c565b6002546003549192506001600160a01b03908116916340c10f199116620005c084600a62000764602090811b620017b817901c565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156200060757600080fd5b505af11580156200061c573d6000803e3d6000fd5b5050600254604080516340c10f1960e01b81523060048201526024810186905290516001600160a01b0390921693506340c10f19925060448082019260009290919082900301818387803b1580156200067457600080fd5b505af115801562000689573d6000803e3d6000fd5b50505050620006ce620006b5846200057764e8d4a51000856200070660201b6200175f1790919060201c565b8560030154620003e560201b620017051790919060201c565b6003850155505043600290920191909155505b50565b6000620004406001620005638585620007ae60201b620017fa1790919060201c565b600082620007175750600062000443565b828202828482816200072557fe5b0414620004405760405162461bcd60e51b8152600401808060200182810382526021815260200180620029ee6021913960400191505060405180910390fd5b60006200044083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250620007f860201b60201c565b60006200044083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506200089f60201b60201c565b60008183620008885760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156200084c57818101518382015260200162000832565b50505050905090810190601f1680156200087a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816200089557fe5b0495945050505050565b60008184841115620008f45760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156200084c57818101518382015260200162000832565b505050900390565b6120bd806200090c6000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80635e88bc14116100f95780638dbb1e3a11610097578063d0d41fe111610071578063d0d41fe1146104b7578063de73149d146104dd578063e2bbb158146104e5578063f2fde38b14610508576101c4565b80638dbb1e3a146103fe57806393f1a40b14610421578063af018de814610473576101c4565b8063715018a6116100d3578063715018a6146103c05780638705fcd4146103c85780638aa28550146103ee5780638da5cb5b146103f6576101c4565b80635e88bc1414610384578063630b5ba11461038c5780636c0ade5a14610394576101c4565b80633ad10ef611610166578063474fa63011610140578063474fa6301461033a57806348cd4cb11461034257806351eb05a61461034a5780635312ea8e14610367576101c4565b80633ad10ef6146102eb578063412753581461030f578063441a3e7014610317576101c4565b806317caf6f1116101a257806317caf6f1146102605780632143e545146102685780632e6c998d146102a3578063377f856f146102e3576101c4565b8063081e3eda146101c95780630ba84cd2146101e35780631526fe2714610202575b600080fd5b6101d161052e565b60408051918252519081900360200190f35b610200600480360360208110156101f957600080fd5b5035610534565b005b61021f6004803603602081101561021857600080fd5b50356105d7565b604080516001600160a01b039097168752602087019590955285850193909352606085019190915261ffff16608084015260a0830152519081900360c00190f35b6101d161062b565b610200600480360360a081101561027e57600080fd5b5080359060208101359061ffff60408201351690606081013590608001351515610631565b6102cf600480360360408110156102b957600080fd5b50803590602001356001600160a01b03166107fd565b604080519115158252519081900360200190f35b6101d161082d565b6102f3610833565b604080516001600160a01b039092168252519081900360200190f35b6102f3610842565b6102006004803603604081101561032d57600080fd5b5080359060200135610851565b6101d16109d6565b6101d16109dc565b6102006004803603602081101561036057600080fd5b50356109e2565b6102006004803603602081101561037d57600080fd5b5035610c18565b6102f3610d26565b610200610d35565b6101d1600480360360408110156103aa57600080fd5b50803590602001356001600160a01b0316610d58565b610200610ed8565b610200600480360360208110156103de57600080fd5b50356001600160a01b0316610f7a565b6101d161104c565b6102f3611051565b6101d16004803603604081101561041457600080fd5b5080359060200135611060565b61044d6004803603604081101561043757600080fd5b50803590602001356001600160a01b0316611078565b604080519485526020850193909352838301919091526060830152519081900360800190f35b610200600480360360a081101561048957600080fd5b508035906001600160a01b036020820135169061ffff604082013516906060810135906080013515156110aa565b610200600480360360208110156104cd57600080fd5b50356001600160a01b0316611333565b6101d1611405565b610200600480360360408110156104fb57600080fd5b508035906020013561140c565b6102006004803603602081101561051e57600080fd5b50356001600160a01b031661160d565b60065490565b61053c61183c565b6000546001600160a01b0390811691161461058c576040805162461bcd60e51b8152602060048201819052602482015260008051602061203e833981519152604482015290519081900360640190fd5b610594610d35565b6005546040805191825260208201839052805133927feedc6338c9c1ad8f3cd6c90dd09dbe98dbd57e610d3e59a17996d07acb0d951192908290030190a2600555565b600681815481106105e457fe5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501546001600160a01b0390941695509193909261ffff9091169086565b60085481565b61063961183c565b6000546001600160a01b03908116911614610689576040805162461bcd60e51b8152602060048201819052602482015260008051602061203e833981519152604482015290519081900360640190fd5b6101908361ffff1611156106ce5760405162461bcd60e51b81526004018080602001828103825260258152602001806120196025913960400191505060405180910390fd5b62127500821115610726576040805162461bcd60e51b815260206004820152601d60248201527f7365743a20696e76616c6964206861727665737420696e74657276616c000000604482015290519081900360640190fd5b801561073457610734610d35565b6107718461076b6006888154811061074857fe5b9060005260206000209060060201600101546008546117fa90919063ffffffff16565b90611705565b600881905550836006868154811061078557fe5b90600052602060002090600602016001018190555082600686815481106107a857fe5b906000526020600020906006020160040160006101000a81548161ffff021916908361ffff16021790555081600686815481106107e157fe5b9060005260206000209060060201600501819055505050505050565b60008281526007602090815260408083206001600160a01b03851684529091529020600301544210155b92915050565b60055481565b6003546001600160a01b031681565b6004546001600160a01b031681565b600260015414156108a9576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001819055506000600683815481106108c057fe5b600091825260208083208684526007825260408085203386529092529220805460069092029092019250831115610933576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b61093c846109e2565b61094584611840565b821561096f57805461095790846117fa565b8155815461096f906001600160a01b031633856119b9565b600382015481546109909164e8d4a510009161098a9161175f565b906117b8565b6001820155604080518481529051859133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050600180555050565b600a5481565b60095481565b6000600682815481106109f157fe5b9060005260206000209060060201905080600201544311610a125750610c15565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610a5c57600080fd5b505afa158015610a70573d6000803e3d6000fd5b505050506040513d6020811015610a8657600080fd5b50519050801580610a9957506001820154155b15610aab575043600290910155610c15565b6000610abb836002015443611060565b90506000610ae860085461098a8660010154610ae26005548761175f90919063ffffffff16565b9061175f565b6002546003549192506001600160a01b03908116916340c10f199116610b0f84600a6117b8565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610b5557600080fd5b505af1158015610b69573d6000803e3d6000fd5b5050600254604080516340c10f1960e01b81523060048201526024810186905290516001600160a01b0390921693506340c10f19925060448082019260009290919082900301818387803b158015610bc057600080fd5b505af1158015610bd4573d6000803e3d6000fd5b50505050610c02610bf78461098a64e8d4a510008561175f90919063ffffffff16565b600386015490611705565b6003850155505043600290920191909155505b50565b60026001541415610c70576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600181905550600060068281548110610c8757fe5b6000918252602080832085845260078252604080852033808752935284208054858255600182018690556002820186905560038201959095556006909302018054909450919291610ce5916001600160a01b039190911690836119b9565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a35050600180555050565b6002546001600160a01b031681565b60065460005b81811015610d5457610d4c816109e2565b600101610d3b565b5050565b60008060068481548110610d6857fe5b600091825260208083208784526007825260408085206001600160a01b0389811687529084528186206006959095029092016003810154815483516370a0823160e01b815230600482015293519298509596909590949316926370a082319260248082019391829003018186803b158015610de257600080fd5b505afa158015610df6573d6000803e3d6000fd5b505050506040513d6020811015610e0c57600080fd5b5051600285015490915043118015610e2357508015155b15610e83576000610e38856002015443611060565b90506000610e5f60085461098a8860010154610ae26005548761175f90919063ffffffff16565b9050610e7e610e778461098a8464e8d4a5100061175f565b8590611705565b935050505b6000610eb38460010154610ead64e8d4a5100061098a87896000015461175f90919063ffffffff16565b906117fa565b9050610ecc84600201548261170590919063ffffffff16565b98975050505050505050565b610ee061183c565b6000546001600160a01b03908116911614610f30576040805162461bcd60e51b8152602060048201819052602482015260008051602061203e833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6004546001600160a01b03163314610fd9576040805162461bcd60e51b815260206004820152601860248201527f736574466565416464726573733a20464f5242494444454e0000000000000000604482015290519081900360640190fd5b6001600160a01b03811661102a576040805162461bcd60e51b8152602060048201526013602482015272736574466565416464726573733a205a45524f60681b604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b600181565b6000546001600160a01b031690565b60006110716001610ae284866117fa565b9392505050565b600760209081526000928352604080842090915290825290208054600182015460028301546003909301549192909184565b6110b261183c565b6000546001600160a01b03908116911614611102576040805162461bcd60e51b8152602060048201819052602482015260008051602061203e833981519152604482015290519081900360640190fd5b6101908361ffff1611156111475760405162461bcd60e51b8152600401808060200182810382526025815260200180611f876025913960400191505060405180910390fd5b6212750082111561119f576040805162461bcd60e51b815260206004820152601d60248201527f6164643a20696e76616c6964206861727665737420696e74657276616c000000604482015290519081900360640190fd5b80156111ad576111ad610d35565b600060095443116111c0576009546111c2565b435b6008549091506111d29087611705565b6008556040805160c0810182526001600160a01b0396871681526020810197885290810191825260006060820181815261ffff9687166080840190815260a08401968752600680546001810182559381905293517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f9390940292830180546001600160a01b031916949099169390931790975596517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4088015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4187015593517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d428601555091517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d438401805461ffff191691909216179055517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4490910155565b6003546001600160a01b03163314611392576040805162461bcd60e51b815260206004820152601860248201527f736574446576416464726573733a20464f5242494444454e0000000000000000604482015290519081900360640190fd5b6001600160a01b0381166113e3576040805162461bcd60e51b8152602060048201526013602482015272736574446576416464726573733a205a45524f60681b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6212750081565b60026001541415611464576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260018190555060006006838154811061147b57fe5b906000526020600020906006020190506000816005015411156114ef576009544310156114ef576040805162461bcd60e51b815260206004820152601c60248201527f6465706f7369743a206661726d696e67206e6f74207374617274656400000000604482015290519081900360640190fd5b60008381526007602090815260408083203384529091529020611511846109e2565b61151a84611840565b82156115ac578154611537906001600160a01b0316333086611a10565b600482015461ffff161561159d576004820154600090611564906127109061098a90879061ffff1661175f565b6004548454919250611583916001600160a01b039081169116836119b9565b8154611595908290610ead9087611705565b8255506115ac565b80546115a99084611705565b81555b600382015481546115c79164e8d4a510009161098a9161175f565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050600180555050565b61161561183c565b6000546001600160a01b03908116911614611665576040805162461bcd60e51b8152602060048201819052602482015260008051602061203e833981519152604482015290519081900360640190fd5b6001600160a01b0381166116aa5760405162461bcd60e51b8152600401808060200182810382526026815260200180611fac6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600082820183811015611071576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008261176e57506000610827565b8282028284828161177b57fe5b04146110715760405162461bcd60e51b8152600401808060200182810382526021815260200180611ff86021913960400191505060405180910390fd5b600061107183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611a6a565b600061107183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611b0c565b3390565b60006006828154811061184f57fe5b600091825260208083208584526007825260408085203386529092529220600381015460069092029092019250611896576005820154611890904290611705565b60038201555b60006118c48260010154610ead64e8d4a5100061098a8760030154876000015461175f90919063ffffffff16565b90506118d084336107fd565b156119515760008111806118e8575060008260020154115b1561194c57600061190683600201548361170590919063ffffffff16565b90506119218360020154600a546117fa90919063ffffffff16565b600a5560006002840155600584015461193b904290611705565b600384015561194a3382611b66565b505b6119b3565b80156119b35760028201546119669082611705565b6002830155600a546119789082611705565b600a55604080518281529051859133917fee470483107f579a55c754fa00613c45a9a3b617a418b39cb0be97e5381ba7c19181900360200190a35b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611a0b908490611cf6565b505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526119b3908590611cf6565b60008183611af65760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611abb578181015183820152602001611aa3565b50505050905090810190601f168015611ae85780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611b0257fe5b0495945050505050565b60008184841115611b5e5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611abb578181015183820152602001611aa3565b505050900390565b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611bb157600080fd5b505afa158015611bc5573d6000803e3d6000fd5b505050506040513d6020811015611bdb57600080fd5b5051905080821115611c6f576002546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015611c3d57600080fd5b505af1158015611c51573d6000803e3d6000fd5b505050506040513d6020811015611c6757600080fd5b50611a0b9050565b6002546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015611cc557600080fd5b505af1158015611cd9573d6000803e3d6000fd5b505050506040513d6020811015611cef57600080fd5b5050505050565b6060611d4b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611da79092919063ffffffff16565b805190915015611a0b57808060200190516020811015611d6a57600080fd5b5051611a0b5760405162461bcd60e51b815260040180806020018281038252602a81526020018061205e602a913960400191505060405180910390fd5b6060611db68484600085611dbe565b949350505050565b606082471015611dff5760405162461bcd60e51b8152600401808060200182810382526026815260200180611fd26026913960400191505060405180910390fd5b611e0885611f1a565b611e59576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611e985780518252601f199092019160209182019101611e79565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611efa576040519150601f19603f3d011682016040523d82523d6000602084013e611eff565b606091505b5091509150611f0f828286611f20565b979650505050505050565b3b151590565b60608315611f2f575081611071565b825115611f3f5782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315611abb578181015183820152602001611aa356fe6164643a20696e76616c6964206465706f7369742066656520626173697320706f696e74734f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f777365743a20696e76616c6964206465706f7369742066656520626173697320706f696e74734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122055c648060651f6bb2b9d9ac42d254d61bdf130895a3cfbda869a4ed373cc80fb64736f6c634300060c00336164643a20696e76616c6964206465706f7369742066656520626173697320706f696e7473536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f770000000000000000000000006cc2c94bf853fca7ee473b2a7186d5251099697e0000000000000000000000000000000000000000000000000000000000fe07400000000000000000000000000000000000000000000000001bc16d674ec80000
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000006cc2c94bf853fca7ee473b2a7186d5251099697e0000000000000000000000000000000000000000000000000000000000fe07400000000000000000000000000000000000000000000000001bc16d674ec80000
-----Decoded View---------------
Arg [0] : _apple (address): 0x6cc2c94bf853fca7ee473b2a7186d5251099697e
Arg [1] : _startBlock (uint256): 16648000
Arg [2] : _applePerBlock (uint256): 2000000000000000000
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000006cc2c94bf853fca7ee473b2a7186d5251099697e
Arg [1] : 0000000000000000000000000000000000000000000000000000000000fe0740
Arg [2] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Deployed ByteCode Sourcemap
46813:12637:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50280:95;;;:::i;:::-;;;;;;;;;;;;;;;;59221:224;;;;;;;;;;;;;;;;-1:-1:-1;59221:224:0;;:::i;:::-;;48939:26;;;;;;;;;;;;;;;;-1:-1:-1;48939:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;48939:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49180:34;;;:::i;51463:644::-;;;;;;;;;;;;;;;;-1:-1:-1;51463:644:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;53285:198::-;;;;;;;;;;;;;;;;-1:-1:-1;53285:198:0;;;;;;-1:-1:-1;;;;;53285:198:0;;:::i;:::-;;;;;;;;;;;;;;;;;;48672:28;;;:::i;48540:25::-;;;:::i;:::-;;;;-1:-1:-1;;;;;48540:25:0;;;;;;;;;;;;;;48600;;;:::i;55767:608::-;;;;;;;;;;;;;;;;-1:-1:-1;55767:608:0;;;;;;;:::i;49336:35::-;;;:::i;49272:25::-;;;:::i;53822:817::-;;;;;;;;;;;;;;;;-1:-1:-1;53822:817:0;;:::i;56446:468::-;;;;;;;;;;;;;;;;-1:-1:-1;56446:468:0;;:::i;48489:23::-;;;:::i;53566:180::-;;;:::i;52391:829::-;;;;;;;;;;;;;;;;-1:-1:-1;52391:829:0;;;;;;-1:-1:-1;;;;;52391:829:0;;:::i;5625:148::-;;;:::i;58854:234::-;;;;;;;;;;;;;;;;-1:-1:-1;58854:234:0;-1:-1:-1;;;;;58854:234:0;;:::i;48755:44::-;;;:::i;4983:79::-;;;:::i;52183:143::-;;;;;;;;;;;;;;;;-1:-1:-1;52183:143:0;;;;;;;:::i;49021:64::-;;;;;;;;;;;;;;;;-1:-1:-1;49021:64:0;;;;;;-1:-1:-1;;;;;49021:64:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50544:806;;;;;;;;;;;;;;;;-1:-1:-1;50544:806:0;;;-1:-1:-1;;;;;50544:806:0;;;;;;;;;;;;;;;;;;;;;;;;:::i;58612:234::-;;;;;;;;;;;;;;;;-1:-1:-1;58612:234:0;-1:-1:-1;;;;;58612:234:0;;:::i;48845:58::-;;;:::i;54709:1006::-;;;;;;;;;;;;;;;;-1:-1:-1;54709:1006:0;;;;;;;:::i;5928:244::-;;;;;;;;;;;;;;;;-1:-1:-1;5928:244:0;-1:-1:-1;;;;;5928:244:0;;:::i;50280:95::-;50352:8;:15;50280:95;:::o;59221:224::-;5205:12;:10;:12::i;:::-;5195:6;;-1:-1:-1;;;;;5195:6:0;;;:22;;;5187:67;;;;;-1:-1:-1;;;5187:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;5187:67:0;;;;;;;;;;;;;;;59301:17:::1;:15;:17::i;:::-;59366:13;::::0;59334:62:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;59354:10:::1;::::0;59334:62:::1;::::0;;;;;;;::::1;59407:13;:30:::0;59221:224::o;48939:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;48939:26:0;;;;-1:-1:-1;48939:26:0;;;;;;;;;;:::o;49180:34::-;;;;:::o;51463:644::-;5205:12;:10;:12::i;:::-;5195:6;;-1:-1:-1;;;;;5195:6:0;;;:22;;;5187:67;;;;;-1:-1:-1;;;5187:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;5187:67:0;;;;;;;;;;;;;;;51630:3:::1;51613:13;:20;;;;51605:70;;;;-1:-1:-1::0;;;51605:70:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48896:7;51694:16;:44;;51686:86;;;::::0;;-1:-1:-1;;;51686:86:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;51787:11;51783:61;;;51815:17;:15;:17::i;:::-;51872:63;51923:11;51872:46;51892:8;51901:4;51892:14;;;;;;;;;;;;;;;;;;:25;;;51872:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::1;:63::i;:::-;51854:15;:81;;;;51974:11;51946:8;51955:4;51946:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;52026:13;51996:8;52005:4;51996:14;;;;;;;;;;;;;;;;;;:27;;;:43;;;;;;;;;;;;;;;;;;52083:16;52050:8;52059:4;52050:14;;;;;;;;;;;;;;;;;;:30;;:49;;;;51463:644:::0;;;;;:::o;53285:198::-;53355:4;53396:14;;;:8;:14;;;;;;;;-1:-1:-1;;;;;53396:21:0;;;;;;;;;53454;;;53435:15;:40;;53285:198;;;;;:::o;48672:28::-;;;;:::o;48540:25::-;;;-1:-1:-1;;;;;48540:25:0;;:::o;48600:::-;;;-1:-1:-1;;;;;48600:25:0;;:::o;55767:608::-;1842:1;2448:7;;:19;;2440:63;;;;;-1:-1:-1;;;2440:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1842:1;2581:7;:18;;;;55847:21:::1;55871:8;55880:4;55871:14;;;;;;;;;::::0;;;::::1;::::0;;;55920;;;:8:::1;:14:::0;;;;;;55935:10:::1;55920:26:::0;;;;;;;55965:11;;55871:14:::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;55965:22:0;-1:-1:-1;55965:22:0::1;55957:53;;;::::0;;-1:-1:-1;;;55957:53:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;55957:53:0;;;;;;;;;;;;;::::1;;56021:16;56032:4;56021:10;:16::i;:::-;56048:29;56072:4;56048:23;:29::i;:::-;56092:11:::0;;56088:152:::1;;56134:11:::0;;:24:::1;::::0;56150:7;56134:15:::1;:24::i;:::-;56120:38:::0;;56173:12;;:55:::1;::::0;-1:-1:-1;;;;;56173:12:0::1;56207:10;56220:7:::0;56173:25:::1;:55::i;:::-;56284:21;::::0;::::1;::::0;56268:11;;:48:::1;::::0;56311:4:::1;::::0;56268:38:::1;::::0;:15:::1;:38::i;:::-;:42:::0;::::1;:48::i;:::-;56250:15;::::0;::::1;:66:::0;56332:35:::1;::::0;;;;;;;56353:4;;56341:10:::1;::::0;56332:35:::1;::::0;;;;::::1;::::0;;::::1;-1:-1:-1::0;;1798:1:0;2760:22;;-1:-1:-1;;55767:608:0:o;49336:35::-;;;;:::o;49272:25::-;;;;:::o;53822:817::-;53874:21;53898:8;53907:4;53898:14;;;;;;;;;;;;;;;;;;53874:38;;53943:4;:20;;;53927:12;:36;53923:75;;53980:7;;;53923:75;54027:12;;:37;;;-1:-1:-1;;;54027:37:0;;54058:4;54027:37;;;;;;54008:16;;-1:-1:-1;;;;;54027:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54027:37:0;;-1:-1:-1;54079:13:0;;;:37;;-1:-1:-1;54096:15:0;;;;:20;54079:37;54075:126;;;-1:-1:-1;54156:12:0;54133:20;;;;:35;54183:7;;54075:126;54211:18;54232:49;54246:4;:20;;;54268:12;54232:13;:49::i;:::-;54211:70;;54292:19;54314:71;54369:15;;54314:50;54348:4;:15;;;54314:29;54329:13;;54314:10;:14;;:29;;;;:::i;:::-;:33;;:50::i;:71::-;54396:5;;54407:10;;54292:93;;-1:-1:-1;;;;;;54396:5:0;;;;:10;;54407;54419:19;54292:93;54435:2;54419:15;:19::i;:::-;54396:43;;;;;;;;;;;;;-1:-1:-1;;;;;54396:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;54450:5:0;;:38;;;-1:-1:-1;;;54450:38:0;;54469:4;54450:38;;;;;;;;;;;;-1:-1:-1;;;;;54450:5:0;;;;-1:-1:-1;54450:10:0;;-1:-1:-1;54450:38:0;;;;;:5;;:38;;;;;;;;:5;;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54523:62;54549:35;54575:8;54549:21;54565:4;54549:11;:15;;:21;;;;:::i;:35::-;54523:21;;;;;:25;:62::i;:::-;54499:21;;;:86;-1:-1:-1;;54619:12:0;54596:20;;;;:35;;;;-1:-1:-1;53822:817:0;;:::o;56446:468::-;1842:1;2448:7;;:19;;2440:63;;;;;-1:-1:-1;;;2440:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1842:1;2581:7;:18;;;;56518:21:::1;56542:8;56551:4;56542:14;;;;;;;;;::::0;;;::::1;::::0;;;56591;;;:8:::1;:14:::0;;;;;;56606:10:::1;56591:26:::0;;;;;;;56645:11;;56667:15;;;-1:-1:-1;56693:15:0;::::1;:19:::0;;;56723::::1;::::0;::::1;:23:::0;;;56757:21:::1;::::0;::::1;:25:::0;;;;56542:14:::1;::::0;;::::1;;56793:12:::0;;56542:14;;-1:-1:-1;56591:26:0;;56645:11;56793:54:::1;::::0;-1:-1:-1;;;;;56793:12:0;;;::::1;::::0;56645:11;56793:25:::1;:54::i;:::-;56863:43;::::0;;;;;;;56893:4;;56881:10:::1;::::0;56863:43:::1;::::0;;;;::::1;::::0;;::::1;-1:-1:-1::0;;1798:1:0;2760:22;;-1:-1:-1;;56446:468:0:o;48489:23::-;;;-1:-1:-1;;;;;48489:23:0;;:::o;53566:180::-;53628:8;:15;53611:14;53654:85;53682:6;53676:3;:12;53654:85;;;53712:15;53723:3;53712:10;:15::i;:::-;53690:5;;53654:85;;;;53566:180;:::o;52391:829::-;52465:7;52485:21;52509:8;52518:4;52509:14;;;;;;;;;;;;;;;;52558;;;:8;:14;;;;;;-1:-1:-1;;;;;52558:21:0;;;;;;;;;;;52509:14;;;;;;;;52617:21;;;;52668:12;;:37;;-1:-1:-1;;;52668:37:0;;52699:4;52668:37;;;;;;52509:14;;-1:-1:-1;52558:21:0;;52617;;52509:14;;52668:12;;;:22;;:37;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52668:37:0;52735:20;;;;52668:37;;-1:-1:-1;52720:12:0;:35;:52;;;;-1:-1:-1;52759:13:0;;;52720:52;52716:354;;;52789:18;52810:49;52824:4;:20;;;52846:12;52810:13;:49::i;:::-;52789:70;;52874:19;52896:71;52951:15;;52896:50;52930:4;:15;;;52896:29;52911:13;;52896:10;:14;;:29;;;;:::i;:71::-;52874:93;-1:-1:-1;53001:57:0;53022:35;53048:8;53022:21;52874:93;53038:4;53022:15;:21::i;:35::-;53001:16;;:20;:57::i;:::-;52982:76;;52716:354;;;53080:15;53098:64;53146:4;:15;;;53098:43;53136:4;53098:33;53114:16;53098:4;:11;;;:15;;:33;;;;:::i;:43::-;:47;;:64::i;:::-;53080:82;;53180:32;53192:4;:19;;;53180:7;:11;;:32;;;;:::i;:::-;53173:39;52391:829;-1:-1:-1;;;;;;;;52391:829:0:o;5625:148::-;5205:12;:10;:12::i;:::-;5195:6;;-1:-1:-1;;;;;5195:6:0;;;:22;;;5187:67;;;;;-1:-1:-1;;;5187:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;5187:67:0;;;;;;;;;;;;;;;5732:1:::1;5716:6:::0;;5695:40:::1;::::0;-1:-1:-1;;;;;5716:6:0;;::::1;::::0;5695:40:::1;::::0;5732:1;;5695:40:::1;5763:1;5746:19:::0;;-1:-1:-1;;;;;;5746:19:0::1;::::0;;5625:148::o;58854:234::-;58938:10;;-1:-1:-1;;;;;58938:10:0;58924;:24;58916:61;;;;;-1:-1:-1;;;58916:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;58996:25:0;;58988:57;;;;;-1:-1:-1;;;58988:57:0;;;;;;;;;;;;-1:-1:-1;;;58988:57:0;;;;;;;;;;;;;;;59056:10;:24;;-1:-1:-1;;;;;;59056:24:0;-1:-1:-1;;;;;59056:24:0;;;;;;;;;;58854:234::o;48755:44::-;48798:1;48755:44;:::o;4983:79::-;5021:7;5048:6;-1:-1:-1;;;;;5048:6:0;4983:79;:::o;52183:143::-;52255:7;52282:36;48798:1;52282:14;:3;52290:5;52282:7;:14::i;:36::-;52275:43;52183:143;-1:-1:-1;;;52183:143:0:o;49021:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;50544:806::-;5205:12;:10;:12::i;:::-;5195:6;;-1:-1:-1;;;;;5195:6:0;;;:22;;;5187:67;;;;;-1:-1:-1;;;5187:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;5187:67:0;;;;;;;;;;;;;;;50714:3:::1;50697:13;:20;;;;50689:70;;;;-1:-1:-1::0;;;50689:70:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48896:7;50778:16;:44;;50770:86;;;::::0;;-1:-1:-1;;;50770:86:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;50871:11;50867:61;;;50899:17;:15;:17::i;:::-;50938:23;50979:10;;50964:12;:25;:53;;51007:10;;50964:53;;;50992:12;50964:53;51046:15;::::0;50938:79;;-1:-1:-1;51046:32:0::1;::::0;51066:11;51046:19:::1;:32::i;:::-;51028:15;:50:::0;51103:238:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;51103:238:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;51103:238:0;;;;;;::::1;::::0;;::::1;::::0;;;;;;;;;;;;51089:8:::1;:253:::0;;::::1;::::0;::::1;::::0;;;;;;;;;;;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;51089:253:0::1;::::0;;;::::1;::::0;;;::::1;::::0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51089:253:0;;;;;;;-1:-1:-1;;51089:253:0::1;::::0;;;::::1;;::::0;;;;;;;;50544:806::o;58612:234::-;58696:10;;-1:-1:-1;;;;;58696:10:0;58682;:24;58674:61;;;;;-1:-1:-1;;;58674:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;58754:25:0;;58746:57;;;;;-1:-1:-1;;;58746:57:0;;;;;;;;;;;;-1:-1:-1;;;58746:57:0;;;;;;;;;;;;;;;58814:10;:24;;-1:-1:-1;;;;;;58814:24:0;-1:-1:-1;;;;;58814:24:0;;;;;;;;;;58612:234::o;48845:58::-;48896:7;48845:58;:::o;54709:1006::-;1842:1;2448:7;;:19;;2440:63;;;;;-1:-1:-1;;;2440:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1842:1;2581:7;:18;;;;54790:21:::1;54814:8;54823:4;54814:14;;;;;;;;;;;;;;;;;;54790:38;;54868:1;54845:4;:20;;;:24;54841:124;;;54910:10;;54894:12;:26;;54886:67;;;::::0;;-1:-1:-1;;;54886:67:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;54977:21;55001:14:::0;;;:8:::1;:14;::::0;;;;;;;55016:10:::1;55001:26:::0;;;;;;;55038:16:::1;55010:4:::0;55038:10:::1;:16::i;:::-;55065:29;55089:4;55065:23;:29::i;:::-;55109:11:::0;;55105:476:::1;;55137:12:::0;;:74:::1;::::0;-1:-1:-1;;;;;55137:12:0::1;55175:10;55196:4;55203:7:::0;55137:29:::1;:74::i;:::-;55230:17;::::0;::::1;::::0;::::1;;:21:::0;55226:344:::1;;55305:17;::::0;::::1;::::0;55272:18:::1;::::0;55293:41:::1;::::0;55328:5:::1;::::0;55293:30:::1;::::0;:7;;55305:17:::1;;55293:11;:30::i;:41::-;55379:10;::::0;55353:12;;55272:62;;-1:-1:-1;55353:49:0::1;::::0;-1:-1:-1;;;;;55353:12:0;;::::1;::::0;55379:10:::1;55272:62:::0;55353:25:::1;:49::i;:::-;55435:11:::0;;:40:::1;::::0;55464:10;;55435:24:::1;::::0;55451:7;55435:15:::1;:24::i;:40::-;55421:54:::0;;-1:-1:-1;55226:344:0::1;;;55530:11:::0;;:24:::1;::::0;55546:7;55530:15:::1;:24::i;:::-;55516:38:::0;;55226:344:::1;55625:21;::::0;::::1;::::0;55609:11;;:48:::1;::::0;55652:4:::1;::::0;55609:38:::1;::::0;:15:::1;:38::i;:48::-;55591:15;::::0;::::1;:66:::0;55673:34:::1;::::0;;;;;;;55693:4;;55681:10:::1;::::0;55673:34:::1;::::0;;;;::::1;::::0;;::::1;-1:-1:-1::0;;1798:1:0;2760:22;;-1:-1:-1;;54709:1006:0:o;5928:244::-;5205:12;:10;:12::i;:::-;5195:6;;-1:-1:-1;;;;;5195:6:0;;;:22;;;5187:67;;;;;-1:-1:-1;;;5187:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;5187:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;6017:22:0;::::1;6009:73;;;;-1:-1:-1::0;;;6009:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6119:6;::::0;;6098:38:::1;::::0;-1:-1:-1;;;;;6098:38:0;;::::1;::::0;6119:6;::::1;::::0;6098:38:::1;::::0;::::1;6147:6;:17:::0;;-1:-1:-1;;;;;;6147:17:0::1;-1:-1:-1::0;;;;;6147:17:0;;;::::1;::::0;;;::::1;::::0;;5928:244::o;15241:181::-;15299:7;15331:5;;;15355:6;;;;15347:46;;;;;-1:-1:-1;;;15347:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;16595:471;16653:7;16898:6;16894:47;;-1:-1:-1;16928:1:0;16921:8;;16894:47;16965:5;;;16969:1;16965;:5;:1;16989:5;;;;;:10;16981:56;;;;-1:-1:-1;;;16981:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17542:132;17600:7;17627:39;17631:1;17634;17627:39;;;;;;;;;;;;;;;;;:3;:39::i;15705:136::-;15763:7;15790:43;15794:1;15797;15790:43;;;;;;;;;;;;;;;;;:3;:43::i;3484:106::-;3572:10;3484:106;:::o;56960:1195::-;57027:21;57051:8;57060:4;57051:14;;;;;;;;;;;;;;;;57100;;;:8;:14;;;;;;57115:10;57100:26;;;;;;;57143:21;;;;57051:14;;;;;;;;-1:-1:-1;57139:124:0;;57230:20;;;;57210:41;;:15;;:19;:41::i;:::-;57186:21;;;:65;57139:124;57275:15;57293:69;57346:4;:15;;;57293:48;57336:4;57293:38;57309:4;:21;;;57293:4;:11;;;:15;;:38;;;;:::i;:69::-;57275:87;;57377:28;57388:4;57394:10;57377;:28::i;:::-;57373:775;;;57436:1;57426:7;:11;:38;;;;57463:1;57441:4;:19;;;:23;57426:38;57422:479;;;57485:20;57508:32;57520:4;:19;;;57508:7;:11;;:32;;;;:::i;:::-;57485:55;;57617:45;57642:4;:19;;;57617:20;;:24;;:45;;;;:::i;:::-;57594:20;:68;57703:1;57681:19;;;:23;57767:20;;;;57747:41;;:15;;:19;:41::i;:::-;57723:21;;;:65;57842:43;57860:10;57872:12;57842:17;:43::i;:::-;57422:479;;57373:775;;;57922:11;;57918:230;;57972:19;;;;:32;;57996:7;57972:23;:32::i;:::-;57950:19;;;:54;58042:20;;:33;;58067:7;58042:24;:33::i;:::-;58019:20;:56;58095:41;;;;;;;;58122:4;;58110:10;;58095:41;;;;;;;;;57918:230;56960:1195;;;;:::o;20418:177::-;20528:58;;;-1:-1:-1;;;;;20528:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20528:58:0;-1:-1:-1;;;20528:58:0;;;20501:86;;20521:5;;20501:19;:86::i;:::-;20418:177;;;:::o;20603:205::-;20731:68;;;-1:-1:-1;;;;;20731:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20731:68:0;-1:-1:-1;;;20731:68:0;;;20704:96;;20724:5;;20704:19;:96::i;18170:278::-;18256:7;18291:12;18284:5;18276:28;;;;-1:-1:-1;;;18276:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18315:9;18331:1;18327;:5;;;;;;;18170:278;-1:-1:-1;;;;;18170:278:0:o;16144:192::-;16230:7;16266:12;16258:6;;;;16250:29;;;;-1:-1:-1;;;16250:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;16302:5:0;;;16144:192::o;58271:285::-;58367:5;;:30;;;-1:-1:-1;;;58367:30:0;;58391:4;58367:30;;;;;;58348:16;;-1:-1:-1;;;;;58367:5:0;;:15;;:30;;;;;;;;;;;;;;:5;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;58367:30:0;;-1:-1:-1;58412:18:0;;;58408:141;;;58447:5;;:29;;;-1:-1:-1;;;58447:29:0;;-1:-1:-1;;;;;58447:29:0;;;;;;;;;;;;;;;:5;;;;;:14;;:29;;;;;;;;;;;;;;:5;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;58408:141:0;;-1:-1:-1;58408:141:0;;58509:5;;:28;;;-1:-1:-1;;;58509:28:0;;-1:-1:-1;;;;;58509:28:0;;;;;;;;;;;;;;;:5;;;;;:14;;:28;;;;;;;;;;;;;;:5;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;58271:285:0;;;:::o;22723:761::-;23147:23;23173:69;23201:4;23173:69;;;;;;;;;;;;;;;;;23181:5;-1:-1:-1;;;;;23173:27:0;;;:69;;;;;:::i;:::-;23257:17;;23147:95;;-1:-1:-1;23257:21:0;23253:224;;23399:10;23388:30;;;;;;;;;;;;;;;-1:-1:-1;23388:30:0;23380:85;;;;-1:-1:-1;;;23380:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9924:195;10027:12;10059:52;10081:6;10089:4;10095:1;10098:12;10059:21;:52::i;:::-;10052:59;9924:195;-1:-1:-1;;;;9924:195:0:o;10976:530::-;11103:12;11161:5;11136:21;:30;;11128:81;;;;-1:-1:-1;;;11128:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11228:18;11239:6;11228:10;:18::i;:::-;11220:60;;;;;-1:-1:-1;;;11220:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;11354:12;11368:23;11395:6;-1:-1:-1;;;;;11395:11:0;11415:5;11423:4;11395:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;11395:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11353:75;;;;11446:52;11464:7;11473:10;11485:12;11446:17;:52::i;:::-;11439:59;10976:530;-1:-1:-1;;;;;;;10976:530:0:o;7006:422::-;7373:20;7412:8;;;7006:422::o;13516:742::-;13631:12;13660:7;13656:595;;;-1:-1:-1;13691:10:0;13684:17;;13656:595;13805:17;;:21;13801:439;;14068:10;14062:17;14129:15;14116:10;14112:2;14108:19;14101:44;14016:148;14204:20;;-1:-1:-1;;;14204:20:0;;;;;;;;;;;;;;;;;14211:12;;14204:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://55c648060651f6bb2b9d9ac42d254d61bdf130895a3cfbda869a4ed373cc80fb
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.