Contract 0xdB2DC4A236dDe18a31cf6fBFf8144E0f5C89Ea79 2

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x3f723ca4bc369ef8efec9d59f2bc199e360573d3d8a95bbee39ba22def799cc7Harvest118387952021-10-17 2:12:5944 mins ago0xe66dcc21034d9c3c005db7d58d5c50dfefa00749 IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.001829865
0x484f543d6e90bd91486061fb40339e3b778bdf315aa3dbd241a446d4f5d152e3Withdraw All118385352021-10-17 1:59:5957 mins ago0x73c95be188894213360adeb587d3ee74e063aea3 IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.00118678
0x35fc9e29fdf66f7533554e0c76e8f63093018bf6d2d3a20cd942b159e86fb0a8Deposit118381222021-10-17 1:39:201 hr 17 mins ago0x7b33918967eb8f48983cedcacbe4601cda2681c3 IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.001873515
0xaf553ce5625322b24c59a608a15853ffad9b45218eca34db374475910c912d04Harvest118372532021-10-17 0:55:532 hrs 1 min ago0x027a9194c84d72c9e2e96202dd6695ee283c3e35 IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.001808865
0x78ff670cc328a5fd231ab72fd4aabff1fcc612d690b5e9c9bb72a283f3e348d3Deposit118361242021-10-16 23:59:262 hrs 57 mins ago0xe2f2c0a4166370f4786c2a87292f17e47a4b6017 IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.00322824
0x58f7a5cdafa300dfd5878f36248aa7fa1416a1653dfdeb2a214c30740e117483Deposit118354032021-10-16 23:23:233 hrs 33 mins ago0xe725627dc8fdcbcd1d4141c3f24c84776089768e IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.001512545
0xbe9dd0f9a56b89792ae78f20efcb1c069fbdf616c49f270f3016d1c2ff8e0b45Deposit118353792021-10-16 23:22:113 hrs 35 mins ago0xe725627dc8fdcbcd1d4141c3f24c84776089768e IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.001798575
0x47fbabdc2ab10bbf37562af55f64bb5dedb31418e053f0f7ff2e0d7956cb3b3bDeposit118333582021-10-16 21:40:565 hrs 16 mins ago0xcb701dff000eb6b3d63189ad7884f2a3b4f1597d IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.001873575
0x58bb3f58684f88118011391c132a52b3fdb6ddaaf6d390abf0a2ba11b0e4d5b7Harvest118324562021-10-16 20:55:506 hrs 1 min ago0x53930ac88d811b98535e311a57c931239bba964e IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.003217575
0x3438a50b8e563faae7b92accc825586ed31c9bbd26172408c00a849a6a085a59Deposit118314652021-10-16 20:06:176 hrs 50 mins ago0x96a2a54b44e60dd665ac917fff61631221d5734c IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.002990735
0x76af41bc54699f77ac3a980215a5122a4310a4c7e0df8a7b773e47f7fed9c0a7Deposit118314532021-10-16 20:05:416 hrs 51 mins ago0x96a2a54b44e60dd665ac917fff61631221d5734c IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.002990735
0x02d965e57d27aac2a2542c096e4377690ef6b1bd0e42d1610577fc9a7fbabc0cWithdraw All118303782021-10-16 19:11:567 hrs 45 mins ago0xf8af95bf89fa5e0ce4b2975a6f5e7963eca9e04f IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.00126178
0xec33b3c902386633902677628b5574557d2b515d5a0880947e7f2d00dd179f64Deposit118301442021-10-16 18:59:377 hrs 57 mins ago0x99e7babdddfeed4581f459b262998f021dbdbb54 IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.001798455
0x59a4f9dea60b222f86d7ddfe5e3c521adb8ed98317fb027bb74adae6bbcae239Deposit118293372021-10-16 18:18:178 hrs 38 mins ago0x256f748e810dc8137013e9dfe0d0a9d061691f03 IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.0021833865
0x02b5dd81ab5a4bd1836108c42a6807ec94c55f040b2628e1e5f8b9696db81830Deposit118291052021-10-16 18:06:418 hrs 50 mins ago0x141c808a8d9edbb7cf702ae76d0fd149d3d5ee62 IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.001491545
0xa931c9b3f2ab005b9c77e950ac1dfe9a4444e18e12ccfe771a23ac95f679f5baWithdraw118285872021-10-16 17:40:019 hrs 17 mins ago0x5a1eb4d95244c0ff8373b5f177a864a3dfe929f9 IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.00136401
0xed6abff3c665d9b126205bf54288b9e33c595d8ea10ca31b4ba1397fb60b15a3Deposit118285792021-10-16 17:39:379 hrs 17 mins ago0xcf217faf7f88095fdb110919baa55946b1582964 IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.00106117
0xafeb3a4fc2448bb81293afcb6317b9055d7f41919f4fae49ca2cfafe241bc245Withdraw118285792021-10-16 17:39:379 hrs 17 mins ago0x5a1eb4d95244c0ff8373b5f177a864a3dfe929f9 IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.00136407
0xa1c17de08f028afeef7d4ac13024cfd08eee64d7fd89e99bc76fc0419e4c8afbWithdraw118285642021-10-16 17:38:529 hrs 18 mins ago0x5a1eb4d95244c0ff8373b5f177a864a3dfe929f9 IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.00143907
0x9a31ff8448ded6369cf9e13c56585ed4365612a9337828a0ba7f1a79f61d2e44Harvest118285522021-10-16 17:38:169 hrs 18 mins ago0xcf217faf7f88095fdb110919baa55946b1582964 IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.003250575
0x2f167269a4529c90d22585a990d78af3715e304b3fdf8a6221ba2ce4eef4280fWithdraw All118285342021-10-16 17:37:229 hrs 19 mins ago0x5a1eb4d95244c0ff8373b5f177a864a3dfe929f9 IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.00297169
0x602a5f616ce5ae2e474acb4763ec073a12ceac37dc01dae0e0781abf35dabb19Withdraw All118285232021-10-16 17:36:499 hrs 20 mins ago0x5a1eb4d95244c0ff8373b5f177a864a3dfe929f9 IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.00297169
0xf1ad800807fcc8cf16571afd462bdb874c68be7499b54d1f8c9e96615dfc0eacDeposit118281572021-10-16 17:17:569 hrs 39 mins ago0x141c808a8d9edbb7cf702ae76d0fd149d3d5ee62 IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.00299047
0x8f47126e26d36f1b0121c29ebb7524cc2c1326ff981545b1257a481b507abb32Deposit118281112021-10-16 17:15:389 hrs 41 mins ago0x141c808a8d9edbb7cf702ae76d0fd149d3d5ee62 IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.003588564
0x70250563d359dc5ef46aa7830277613331022bc56af552432eda76e70f493a82Deposit118280892021-10-16 17:14:329 hrs 42 mins ago0x141c808a8d9edbb7cf702ae76d0fd149d3d5ee62 IN  0xdb2dc4a236dde18a31cf6fbff8144e0f5c89ea790 BNB0.00299047
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading
This contract contains unverified libraries: __CACHE_BREAKER__

Contract Source Code Verified (Exact Match)

Contract Name:
RiceVault

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 1 : RiceVault.sol
// SPDX-License-Identifier: MIT

// File: @openzeppelin/contracts/utils/Context.sol

// SPDX-License-Identifier: MIT

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: @openzeppelin/contracts/access/Ownable.sol

pragma solidity >=0.6.0 <0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        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: @openzeppelin/contracts/math/SafeMath.sol

pragma solidity >=0.6.0 <0.8.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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol

pragma solidity >=0.6.0 <0.8.0;

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `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: @openzeppelin/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: @openzeppelin/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: @openzeppelin/contracts/utils/Pausable.sol

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() internal {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

// File: contracts/interfaces/IMasterChef.sol

pragma solidity 0.6.12;

interface IMasterChef {
    function deposit(uint256 _pid, uint256 _amount, address _referrer) external;

    function withdraw(uint256 _pid, uint256 _amount) external;

    function pendingRice(uint256 _pid, address _user) external view returns (uint256);

    function userInfo(uint256 _pid, address _user) external view returns (uint256, uint256);

    function emergencyWithdraw(uint256 _pid) external;
}

// File: contracts/RiceVault.sol

pragma solidity 0.6.12;

contract RiceVault is Ownable, Pausable {
    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    struct UserInfo {
        uint256 shares; // number of shares for a user
        uint256 lastDepositedTime; // keeps track of deposited time for potential penalty
        uint256 riceAtLastUserAction; // keeps track of rice deposited at the last user action
        uint256 lastUserActionTime; // keeps track of the last user action time
    }

    IERC20 public immutable token; // Rice
    IERC20 public immutable receiptToken; // xRice
    uint256 public pid = 0; // pid of rice single staking pool

    IMasterChef public immutable masterChef;

    mapping(address => UserInfo) public userInfo;

    uint256 public totalShares;
    uint256 public lastHarvestedTime;
    address public admin;
    address public treasury;

    uint256 public constant MAX_PERFORMANCE_FEE = 1400; // 14%
    uint256 public constant MAX_CALL_FEE = 100; // 1%
    uint256 public constant MAX_WITHDRAW_FEE = 9000; // 90%
    uint256 public constant MAX_WITHDRAW_FEE_PERIOD = 720 hours; // 30 days

    uint256 public performanceFee = 500; // 5%
    uint256 public callFee = 25; // 0.25%
    uint256 public withdrawFee = 2800; // 28%
    uint256 public withdrawFeePeriod = 168 hours; // 7 days

    event Deposit(address indexed sender, uint256 amount, uint256 shares, uint256 lastDepositedTime);
    event Withdraw(address indexed sender, uint256 amount, uint256 shares);
    event Harvest(address indexed sender, uint256 performanceFee, uint256 callFee);
    event Pause();
    event Unpause();

    /**
     * @notice Constructor
     * @param _token: Rice token contract
     * @param _receiptToken: RiceBar token contract
     * @param _masterChef: MasterChef contract
     * @param _admin: address of the admin
     * @param _treasury: address of the treasury (collects fees)
     */
    constructor(
        IERC20 _token,
        IERC20 _receiptToken,
        IMasterChef _masterChef,
        address _admin,
        address _treasury
    ) public {
        token = _token;
        receiptToken = _receiptToken;
        masterChef = _masterChef;
        admin = _admin;
        treasury = _treasury;

        // Infinite approve
        IERC20(_token).safeApprove(address(_masterChef), uint256(-1));
    }

    /**
     * @notice Checks if the msg.sender is the admin address
     */
    modifier onlyAdmin() {
        require(msg.sender == admin, "admin: wut?");
        _;
    }

    /**
     * @notice Checks if the msg.sender is a contract or a proxy
     */
    modifier notContract() {
        require(!_isContract(msg.sender), "contract not allowed");
        require(msg.sender == tx.origin, "proxy contract not allowed");
        _;
    }

    /**
     * @notice Deposits funds into the Rice Vault
     * @dev Only possible when contract not paused.
     * @param _amount: number of tokens to deposit (in RICE)
     */
    function deposit(uint256 _amount, address referrer) external whenNotPaused notContract {
        require(_amount > 0, "Nothing to deposit");
        require(referrer != address(0), "Referrer cannot be zero address");
        require(referrer != address(this), "Referrer cannot be this contract");

        uint256 pool = balanceOf();
        token.safeTransferFrom(msg.sender, address(this), _amount);
        uint256 currentShares = 0;
        if (totalShares != 0) {
            currentShares = (_amount.mul(totalShares)).div(pool);
        } else {
            currentShares = _amount;
        }
        UserInfo storage user = userInfo[msg.sender];

        user.shares = user.shares.add(currentShares);
        user.lastDepositedTime = block.timestamp;

        totalShares = totalShares.add(currentShares);

        user.riceAtLastUserAction = user.shares.mul(balanceOf()).div(totalShares);
        user.lastUserActionTime = block.timestamp;

        _earn(referrer);

        emit Deposit(msg.sender, _amount, currentShares, block.timestamp);
    }

    /**
     * @notice Withdraws all funds for a user
     */
    function withdrawAll() external notContract {
        withdraw(userInfo[msg.sender].shares);
    }

    /**
     * @notice Reinvests RICE tokens into MasterChef
     * @dev Only possible when contract not paused.
     */
    function harvest() external notContract whenNotPaused {
        IMasterChef(masterChef).withdraw(pid, 0);

        uint256 bal = available();
        uint256 currentPerformanceFee = bal.mul(performanceFee).div(10000);
        token.safeTransfer(treasury, currentPerformanceFee);

        uint256 currentCallFee = bal.mul(callFee).div(10000);
        token.safeTransfer(msg.sender, currentCallFee);

        _earn(treasury);

        lastHarvestedTime = block.timestamp;

        emit Harvest(msg.sender, currentPerformanceFee, currentCallFee);
    }

    /**
     * @notice Sets admin address
     * @dev Only callable by the contract owner.
     */
    function setAdmin(address _admin) external onlyOwner {
        require(_admin != address(0), "Cannot be zero address");
        admin = _admin;
    }

    /**
     * @notice Sets treasury address
     * @dev Only callable by the contract owner.
     */
    function setTreasury(address _treasury) external onlyOwner {
        require(_treasury != address(0), "Cannot be zero address");
        treasury = _treasury;
    }

    /**
     * @notice Sets pid of pool
     * @dev Only callable by the contract owner.
     */
    function setPid(uint256 _pid) external onlyAdmin {
        require(_pid >= 0, "pid must be greater than 0");
        pid = _pid;
    }

    /**
     * @notice Sets performance fee
     * @dev Only callable by the contract admin.
     */
    function setPerformanceFee(uint256 _performanceFee) external onlyAdmin {
        require(_performanceFee <= MAX_PERFORMANCE_FEE, "performanceFee cannot be more than MAX_PERFORMANCE_FEE");
        performanceFee = _performanceFee;
    }

    /**
     * @notice Sets call fee
     * @dev Only callable by the contract admin.
     */
    function setCallFee(uint256 _callFee) external onlyAdmin {
        require(_callFee <= MAX_CALL_FEE, "callFee cannot be more than MAX_CALL_FEE");
        callFee = _callFee;
    }

    /**
     * @notice Sets withdraw fee
     * @dev Only callable by the contract admin.
     */
    function setWithdrawFee(uint256 _withdrawFee) external onlyAdmin {
        require(_withdrawFee <= MAX_WITHDRAW_FEE, "withdrawFee cannot be more than MAX_WITHDRAW_FEE");
        withdrawFee = _withdrawFee;
    }

    /**
     * @notice Sets withdraw fee period
     * @dev Only callable by the contract admin.
     */
    function setWithdrawFeePeriod(uint256 _withdrawFeePeriod) external onlyAdmin {
        require(
            _withdrawFeePeriod <= MAX_WITHDRAW_FEE_PERIOD,
            "withdrawFeePeriod cannot be more than MAX_WITHDRAW_FEE_PERIOD"
        );
        withdrawFeePeriod = _withdrawFeePeriod;
    }

    /**
     * @notice Withdraws from MasterChef to Vault without caring about rewards.
     * @dev EMERGENCY ONLY. Only callable by the contract admin.
     */
    function emergencyWithdraw() external onlyAdmin {
        IMasterChef(masterChef).emergencyWithdraw(pid);
    }

    /**
     * @notice Withdraw unexpected tokens sent to the Rice Vault
     */
    function inCaseTokensGetStuck(address _token) external onlyAdmin {
        require(_token != address(token), "Token cannot be same as deposit token");
        require(_token != address(receiptToken), "Token cannot be same as receipt token");

        uint256 amount = IERC20(_token).balanceOf(address(this));
        IERC20(_token).safeTransfer(msg.sender, amount);
    }

    /**
     * @notice Triggers stopped state
     * @dev Only possible when contract not paused.
     */
    function pause() external onlyAdmin whenNotPaused {
        _pause();
        emit Pause();
    }

    /**
     * @notice Returns to normal state
     * @dev Only possible when contract is paused.
     */
    function unpause() external onlyAdmin whenPaused {
        _unpause();
        emit Unpause();
    }

    /**
     * @notice Calculates the expected harvest reward from third party
     * @return Expected reward to collect in RICE
     */
    function calculateHarvestRiceRewards() external view returns (uint256) {
        uint256 amount = IMasterChef(masterChef).pendingRice(pid, address(this));
        amount = amount.add(available());
        uint256 currentCallFee = amount.mul(callFee).div(10000);

        return currentCallFee;
    }

    /**
     * @notice Calculates the total pending rewards that can be restaked
     * @return Returns total pending rice rewards
     */
    function calculateTotalPendingRiceRewards() external view returns (uint256) {
        uint256 amount = IMasterChef(masterChef).pendingRice(pid, address(this));
        amount = amount.add(available());

        return amount;
    }

    /**
     * @notice Calculates the price per share
     */
    function getPricePerFullShare() external view returns (uint256) {
        return totalShares == 0 ? 1e18 : balanceOf().mul(1e18).div(totalShares);
    }

    /**
     * @notice Withdraws funds from the Rice Vault
     * @param _shares: Number of shares to withdraw
     */
    function withdraw(uint256 _shares) public notContract {
        UserInfo storage user = userInfo[msg.sender];
        require(_shares > 0, "Nothing to withdraw");
        require(_shares <= user.shares, "Withdraw amount exceeds balance");

        uint256 currentAmount = (balanceOf().mul(_shares)).div(totalShares);
        user.shares = user.shares.sub(_shares);
        totalShares = totalShares.sub(_shares);

        uint256 bal = available();
        if (bal < currentAmount) {
            uint256 balWithdraw = currentAmount.sub(bal);
            IMasterChef(masterChef).withdraw(pid, balWithdraw);
            uint256 balAfter = available();
            uint256 diff = balAfter.sub(bal);
            if (diff < balWithdraw) {
                currentAmount = bal.add(diff);
            }
        }

        if (block.timestamp < user.lastDepositedTime.add(withdrawFeePeriod)) {
            uint256 currentWithdrawFee = currentAmount.mul(withdrawFee).div(10000);
            token.safeTransfer(treasury, currentWithdrawFee);
            currentAmount = currentAmount.sub(currentWithdrawFee);
        }

        if (user.shares > 0) {
            user.riceAtLastUserAction = user.shares.mul(balanceOf()).div(totalShares);
        } else {
            user.riceAtLastUserAction = 0;
        }

        user.lastUserActionTime = block.timestamp;

        token.safeTransfer(msg.sender, currentAmount);

        emit Withdraw(msg.sender, currentAmount, _shares);
    }

    /**
     * @notice Custom logic for how much the vault allows to be borrowed
     * @dev The contract puts 100% of the tokens to work.
     */
    function available() public view returns (uint256) {
        return token.balanceOf(address(this));
    }

    /**
     * @notice Calculates the total underlying tokens
     * @dev It includes tokens held by the contract and held in MasterChef
     */
    function balanceOf() public view returns (uint256) {
        (uint256 amount, ) = IMasterChef(masterChef).userInfo(pid, address(this));
        return token.balanceOf(address(this)).add(amount);
    }

    /**
     * @notice Deposits tokens into MasterChef to earn staking rewards
     */
    function _earn(address referrer) internal {
        uint256 bal = available();
        if (bal > 0) {
            IMasterChef(masterChef).deposit(pid, bal, referrer);
        }
    }

    /**
     * @notice Checks if address is a contract
     * @dev It prevents contract from being targetted
     */
    function _isContract(address addr) internal view returns (bool) {
        uint256 size;
        assembly {
            size := extcodesize(addr)
        }
        return size > 0;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {
    "": {
      "__CACHE_BREAKER__": "0x00000000d41867734bbee4c6863d9255b2b06ac1"
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"contract IERC20","name":"_receiptToken","type":"address"},{"internalType":"contract IMasterChef","name":"_masterChef","type":"address"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastDepositedTime","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"performanceFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"callFee","type":"uint256"}],"name":"Harvest","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":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"MAX_CALL_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PERFORMANCE_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WITHDRAW_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WITHDRAW_FEE_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"available","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"calculateHarvestRiceRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"calculateTotalPendingRiceRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"callFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"referrer","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getPricePerFullShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"inCaseTokensGetStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastHarvestedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterChef","outputs":[{"internalType":"contract IMasterChef","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"receiptToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_callFee","type":"uint256"}],"name":"setCallFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_performanceFee","type":"uint256"}],"name":"setPerformanceFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"setPid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawFee","type":"uint256"}],"name":"setWithdrawFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawFeePeriod","type":"uint256"}],"name":"setWithdrawFeePeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","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":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"lastDepositedTime","type":"uint256"},{"internalType":"uint256","name":"riceAtLastUserAction","type":"uint256"},{"internalType":"uint256","name":"lastUserActionTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFeePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60e060405260006001556101f46007556019600855610af060095562093a80600a553480156200002e57600080fd5b5060405162002ec938038062002ec9833981810160405260a08110156200005457600080fd5b5080516020820151604083015160608401516080909401519293919290919060006200007f62000151565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506000805460ff60a01b191690556001600160601b0319606086811b821660805285811b821660a05284901b1660c052600580546001600160a01b038481166001600160a01b031992831617909255600680548484169216919091179055620001469086168460001962001e2a62000155602090811b91909117901c565b505050505062000568565b3390565b801580620001df575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015620001af57600080fd5b505afa158015620001c4573d6000803e3d6000fd5b505050506040513d6020811015620001db57600080fd5b5051155b6200021c5760405162461bcd60e51b815260040180806020018281038252603681526020018062002e936036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b17909152620002749185916200027916565b505050565b6060620002d5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166200033560201b62001f42179092919060201c565b8051909150156200027457808060200190516020811015620002f657600080fd5b5051620002745760405162461bcd60e51b815260040180806020018281038252602a81526020018062002e69602a913960400191505060405180910390fd5b606062000346848460008562000350565b90505b9392505050565b606082471015620003935760405162461bcd60e51b815260040180806020018281038252602681526020018062002e436026913960400191505060405180910390fd5b6200039e85620004b8565b620003f0576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310620004315780518252601f19909201916020918201910162000410565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811462000495576040519150601f19603f3d011682016040523d82523d6000602084013e6200049a565b606091505b509092509050620004ad828286620004be565b979650505050505050565b3b151590565b60608315620004cf57508162000349565b825115620004e05782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156200052c57818101518382015260200162000512565b50505050905090810190601f1680156200055a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b60805160601c60a05160601c60c05160601c612855620005ee600039806108a45280610c515280610e8b52806113f4528061172152806118a052806119a352806121ea525080611ae35280611bf55250806109a65280610a225280610d155280610d6a5280610ded52806110d852806114bd5280611a725280611e0852506128556000f3fe608060405234801561001057600080fd5b50600436106102535760003560e01c80638456cb5911610146578063d4b0de2f116100c3578063ec78e83211610087578063ec78e832146104d6578063f0f44260146104de578063f106845414610504578063f2fde38b1461050c578063f851a44014610532578063fc0c546a1461053a57610253565b8063d4b0de2f14610490578063db2e21bc14610498578063def68a9c146104a0578063df10b4e6146104c6578063e941fa78146104ce57610253565b806398e1ac811161010a57806398e1ac8114610453578063b60f05311461045b578063b6ac642a14610463578063bdca916514610480578063c97e929a1461048857610253565b80638456cb591461042b578063853828b614610433578063877887821461043b5780638da5cb5b1461044357806390321e1a1461044b57610253565b806348a0d754116101d4578063704b6c0211610198578063704b6c02146103d057806370897b23146103f6578063715018a614610413578063722713f71461041b57806377c7b8fc1461042357610253565b806348a0d75414610354578063575a86b21461035c5780635c975abb1461038057806361d027b31461039c5780636e553f65146103a457610253565b80632cfc5f011161021b5780632cfc5f01146103175780632e1a7d4d1461031f5780633a98ef391461033c5780633f4ba83a146103445780634641257d1461034c57610253565b80631959a002146102585780631b0d8aab146102a45780631efac1b8146102c357806326465826146102e05780632ad5a53f146102fd575b600080fd5b61027e6004803603602081101561026e57600080fd5b50356001600160a01b0316610542565b604080519485526020850193909352838301919091526060830152519081900360800190f35b6102c1600480360360208110156102ba57600080fd5b503561056b565b005b6102c1600480360360208110156102d957600080fd5b50356105bd565b6102c1600480360360208110156102f657600080fd5b5035610651565b6103056106e3565b60408051918252519081900360200190f35b6103056106e8565b6102c16004803603602081101561033557600080fd5b50356106ef565b610305610a89565b6102c1610a8f565b6102c1610b5f565b610305610de9565b610364610e89565b604080516001600160a01b039092168252519081900360200190f35b610388610ead565b604080519115158252519081900360200190f35b610364610ebd565b6102c1600480360360408110156103ba57600080fd5b50803590602001356001600160a01b0316610ecc565b6102c1600480360360208110156103e657600080fd5b50356001600160a01b03166111d8565b6102c16004803603602081101561040c57600080fd5b50356112b0565b6102c1611343565b6103056113ef565b61030561153c565b6102c1611576565b6102c1611643565b610305611701565b610364611707565b610305611716565b61030561171c565b6103056117fc565b6102c16004803603602081101561047957600080fd5b5035611802565b610305611895565b61030561189b565b61030561194e565b6102c1611954565b6102c1600480360360208110156104b657600080fd5b50356001600160a01b0316611a23565b610305611be7565b610305611bed565b610364611bf3565b6102c1600480360360208110156104f457600080fd5b50356001600160a01b0316611c17565b610305611cef565b6102c16004803603602081101561052257600080fd5b50356001600160a01b0316611cf5565b610364611df7565b610364611e06565b600260208190526000918252604090912080546001820154928201546003909201549092919084565b6005546001600160a01b031633146105b8576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b600155565b6005546001600160a01b0316331461060a576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b62278d0081111561064c5760405162461bcd60e51b815260040180806020018281038252603d815260200180612753603d913960400191505060405180910390fd5b600a55565b6005546001600160a01b0316331461069e576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b60648111156106de5760405162461bcd60e51b81526004018080602001828103825260288152602001806126b46028913960400191505060405180910390fd5b600855565b606481565b62278d0081565b6106f833611f5b565b15610741576040805162461bcd60e51b815260206004820152601460248201527318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b604482015290519081900360640190fd5b333214610792576040805162461bcd60e51b815260206004820152601a6024820152791c1c9bde1e4818dbdb9d1c9858dd081b9bdd08185b1b1bddd95960321b604482015290519081900360640190fd5b336000908152600260205260409020816107e9576040805162461bcd60e51b81526020600482015260136024820152724e6f7468696e6720746f20776974686472617760681b604482015290519081900360640190fd5b805482111561083f576040805162461bcd60e51b815260206004820152601f60248201527f576974686472617720616d6f756e7420657863656564732062616c616e636500604482015290519081900360640190fd5b600061085f600354610859856108536113ef565b90611f61565b90611fc3565b825490915061086e908461202a565b825560035461087d908461202a565b600355600061088a610de9565b90508181101561095d5760006108a0838361202a565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663441a3e70600154836040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561091257600080fd5b505af1158015610926573d6000803e3d6000fd5b505050506000610934610de9565b90506000610942828561202a565b905082811015610959576109568482612087565b94505b5050505b600a54600184015461096e91612087565b4210156109dd57600061099261271061085960095486611f6190919063ffffffff16565b6006549091506109cf906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169116836120e1565b6109d9838261202a565b9250505b825415610a07576109fd6003546108596109f56113ef565b865490611f61565b6002840155610a0f565b600060028401555b426003840155610a496001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633846120e1565b6040805183815260208101869052815133927ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568928290030190a250505050565b60035481565b6005546001600160a01b03163314610adc576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b610ae4610ead565b610b2c576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b610b34612133565b6040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b610b6833611f5b565b15610bb1576040805162461bcd60e51b815260206004820152601460248201527318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b604482015290519081900360640190fd5b333214610c02576040805162461bcd60e51b815260206004820152601a6024820152791c1c9bde1e4818dbdb9d1c9858dd081b9bdd08185b1b1bddd95960321b604482015290519081900360640190fd5b610c0a610ead565b15610c4f576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663441a3e7060015460006040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b158015610cc057600080fd5b505af1158015610cd4573d6000803e3d6000fd5b505050506000610ce2610de9565b90506000610d0161271061085960075485611f6190919063ffffffff16565b600654909150610d3e906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169116836120e1565b6000610d5b61271061085960085486611f6190919063ffffffff16565b9050610d916001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633836120e1565b600654610da6906001600160a01b03166121d6565b426004556040805183815260208101839052815133927f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae0660924954928290030190a2505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610e5857600080fd5b505afa158015610e6c573d6000803e3d6000fd5b505050506040513d6020811015610e8257600080fd5b5051905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b600054600160a01b900460ff1690565b6006546001600160a01b031681565b610ed4610ead565b15610f19576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b610f2233611f5b565b15610f6b576040805162461bcd60e51b815260206004820152601460248201527318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b604482015290519081900360640190fd5b333214610fbc576040805162461bcd60e51b815260206004820152601a6024820152791c1c9bde1e4818dbdb9d1c9858dd081b9bdd08185b1b1bddd95960321b604482015290519081900360640190fd5b60008211611006576040805162461bcd60e51b8152602060048201526012602482015271139bdd1a1a5b99c81d1bc819195c1bdcda5d60721b604482015290519081900360640190fd5b6001600160a01b038116611061576040805162461bcd60e51b815260206004820152601f60248201527f52656665727265722063616e6e6f74206265207a65726f206164647265737300604482015290519081900360640190fd5b6001600160a01b0381163014156110bf576040805162461bcd60e51b815260206004820181905260248201527f52656665727265722063616e6e6f74206265207468697320636f6e7472616374604482015290519081900360640190fd5b60006110c96113ef565b90506111006001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333086612285565b600060035460001461112c576111258261085960035487611f6190919063ffffffff16565b905061112f565b50825b336000908152600260205260409020805461114a9083612087565b815542600182015560035461115f9083612087565b600381905561117b906108596111736113ef565b845490611f61565b600282015542600382015561118f846121d6565b60408051868152602081018490524281830152905133917f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e919081900360600190a25050505050565b6111e06122df565b6001600160a01b03166111f1611707565b6001600160a01b03161461123a576040805162461bcd60e51b81526020600482018190526024820152600080516020612733833981519152604482015290519081900360640190fd5b6001600160a01b03811661128e576040805162461bcd60e51b815260206004820152601660248201527543616e6e6f74206265207a65726f206164647265737360501b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146112fd576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b61057881111561133e5760405162461bcd60e51b81526004018080602001828103825260368152602001806126dc6036913960400191505060405180910390fd5b600755565b61134b6122df565b6001600160a01b031661135c611707565b6001600160a01b0316146113a5576040805162461bcd60e51b81526020600482018190526024820152600080516020612733833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166393f1a40b600154306040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050604080518083038186803b15801561146857600080fd5b505afa15801561147c573d6000803e3d6000fd5b505050506040513d604081101561149257600080fd5b5051604080516370a0823160e01b815230600482015290519192506115369183916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b15801561150457600080fd5b505afa158015611518573d6000803e3d6000fd5b505050506040513d602081101561152e57600080fd5b505190612087565b91505090565b600060035460001461156757611562600354610859670de0b6b3a76400006108536113ef565b611571565b670de0b6b3a76400005b905090565b6005546001600160a01b031633146115c3576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b6115cb610ead565b15611610576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6116186122e3565b6040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b61164c33611f5b565b15611695576040805162461bcd60e51b815260206004820152601460248201527318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b604482015290519081900360640190fd5b3332146116e6576040805162461bcd60e51b815260206004820152601a6024820152791c1c9bde1e4818dbdb9d1c9858dd081b9bdd08185b1b1bddd95960321b604482015290519081900360640190fd5b336000908152600260205260409020546116ff906106ef565b565b60075481565b6000546001600160a01b031690565b60085481565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635edbd9de600154306040518363ffffffff1660e01b815260040180838152602001826001600160a01b031681526020019250505060206040518083038186803b15801561179657600080fd5b505afa1580156117aa573d6000803e3d6000fd5b505050506040513d60208110156117c057600080fd5b505190506117d66117cf610de9565b8290612087565b905060006117f561271061085960085485611f6190919063ffffffff16565b9250505090565b60045481565b6005546001600160a01b0316331461184f576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b6123288111156118905760405162461bcd60e51b81526004018080602001828103825260308152602001806127ba6030913960400191505060405180910390fd5b600955565b61057881565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635edbd9de600154306040518363ffffffff1660e01b815260040180838152602001826001600160a01b031681526020019250505060206040518083038186803b15801561191557600080fd5b505afa158015611929573d6000803e3d6000fd5b505050506040513d602081101561193f57600080fd5b505190506115366117cf610de9565b61232881565b6005546001600160a01b031633146119a1576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635312ea8e6001546040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611a0957600080fd5b505af1158015611a1d573d6000803e3d6000fd5b50505050565b6005546001600160a01b03163314611a70576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b03161415611ae15760405162461bcd60e51b81526004018080602001828103825260258152602001806126446025913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b03161415611b525760405162461bcd60e51b815260040180806020018281038252602581526020018061268f6025913960400191505060405180910390fd5b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611ba157600080fd5b505afa158015611bb5573d6000803e3d6000fd5b505050506040513d6020811015611bcb57600080fd5b50519050611be36001600160a01b03831633836120e1565b5050565b600a5481565b60095481565b7f000000000000000000000000000000000000000000000000000000000000000081565b611c1f6122df565b6001600160a01b0316611c30611707565b6001600160a01b031614611c79576040805162461bcd60e51b81526020600482018190526024820152600080516020612733833981519152604482015290519081900360640190fd5b6001600160a01b038116611ccd576040805162461bcd60e51b815260206004820152601660248201527543616e6e6f74206265207a65726f206164647265737360501b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60015481565b611cfd6122df565b6001600160a01b0316611d0e611707565b6001600160a01b031614611d57576040805162461bcd60e51b81526020600482018190526024820152600080516020612733833981519152604482015290519081900360640190fd5b6001600160a01b038116611d9c5760405162461bcd60e51b815260040180806020018281038252602681526020018061261e6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031681565b7f000000000000000000000000000000000000000000000000000000000000000081565b801580611eb0575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611e8257600080fd5b505afa158015611e96573d6000803e3d6000fd5b505050506040513d6020811015611eac57600080fd5b5051155b611eeb5760405162461bcd60e51b81526004018080602001828103825260368152602001806127ea6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611f3d90849061236c565b505050565b6060611f51848460008561241d565b90505b9392505050565b3b151590565b600082611f7057506000611fbd565b82820282848281611f7d57fe5b0414611fba5760405162461bcd60e51b81526004018080602001828103825260218152602001806127126021913960400191505060405180910390fd5b90505b92915050565b6000808211612019576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161202257fe5b049392505050565b600082821115612081576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082820183811015611fba576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611f3d90849061236c565b61213b610ead565b612183576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6121b96122df565b604080516001600160a01b039092168252519081900360200190a1565b60006121e0610de9565b90508015611be3577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638dbdbe6d60015483856040518463ffffffff1660e01b815260040180848152602001838152602001826001600160a01b031681526020019350505050600060405180830381600087803b15801561226957600080fd5b505af115801561227d573d6000803e3d6000fd5b505050505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611a1d90859061236c565b3390565b6122eb610ead565b15612330576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586121b96122df565b60606123c1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611f429092919063ffffffff16565b805190915015611f3d578080602001905160208110156123e057600080fd5b5051611f3d5760405162461bcd60e51b815260040180806020018281038252602a815260200180612790602a913960400191505060405180910390fd5b60608247101561245e5760405162461bcd60e51b81526004018080602001828103825260268152602001806126696026913960400191505060405180910390fd5b61246785611f5b565b6124b8576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106124f75780518252601f1990920191602091820191016124d8565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612559576040519150601f19603f3d011682016040523d82523d6000602084013e61255e565b606091505b509150915061256e828286612579565b979650505050505050565b60608315612588575081611f54565b8251156125985782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156125e25781810151838201526020016125ca565b50505050905090810190601f16801561260f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373546f6b656e2063616e6e6f742062652073616d65206173206465706f73697420746f6b656e416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c546f6b656e2063616e6e6f742062652073616d65206173207265636569707420746f6b656e63616c6c4665652063616e6e6f74206265206d6f7265207468616e204d41585f43414c4c5f464545706572666f726d616e63654665652063616e6e6f74206265206d6f7265207468616e204d41585f504552464f524d414e43455f464545536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65727769746864726177466565506572696f642063616e6e6f74206265206d6f7265207468616e204d41585f57495448445241575f4645455f504552494f445361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656477697468647261774665652063616e6e6f74206265206d6f7265207468616e204d41585f57495448445241575f4645455361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a26469706673582212207ebbdf2cffcda7443db682e33c76e1b7e07f18fc61da9c6a1ba94e0c066becdb64736f6c634300060c0033416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000000000c4eeff5aab678c3ff32362d80946a3f5de4a1861000000000000000000000000db759784cf1d1f21cccfa23f6101cd83ddf6e976000000000000000000000000af7e26be4397aa29f54679015dd61db40097d9ee00000000000000000000000087500968b83f3f7091b85ea58daabc815935b553000000000000000000000000dda752b218ca661f047eddbdb6a3b713d5eb997d

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000c4eeff5aab678c3ff32362d80946a3f5de4a1861000000000000000000000000db759784cf1d1f21cccfa23f6101cd83ddf6e976000000000000000000000000af7e26be4397aa29f54679015dd61db40097d9ee00000000000000000000000087500968b83f3f7091b85ea58daabc815935b553000000000000000000000000dda752b218ca661f047eddbdb6a3b713d5eb997d

-----Decoded View---------------
Arg [0] : _token (address): 0xc4eeff5aab678c3ff32362d80946a3f5de4a1861
Arg [1] : _receiptToken (address): 0xdb759784cf1d1f21cccfa23f6101cd83ddf6e976
Arg [2] : _masterChef (address): 0xaf7e26be4397aa29f54679015dd61db40097d9ee
Arg [3] : _admin (address): 0x87500968b83f3f7091b85ea58daabc815935b553
Arg [4] : _treasury (address): 0xdda752b218ca661f047eddbdb6a3b713d5eb997d

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000c4eeff5aab678c3ff32362d80946a3f5de4a1861
Arg [1] : 000000000000000000000000db759784cf1d1f21cccfa23f6101cd83ddf6e976
Arg [2] : 000000000000000000000000af7e26be4397aa29f54679015dd61db40097d9ee
Arg [3] : 00000000000000000000000087500968b83f3f7091b85ea58daabc815935b553
Arg [4] : 000000000000000000000000dda752b218ca661f047eddbdb6a3b713d5eb997d


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.